.accordion-body.in { overflow:visible; }
.accordion-body.in:hover { overflow:visible; }

/* ============================
   Champions Manager Formation UI
   (Modern layout, but same files)
   ============================ */
:root {
	--cm-bg: rgba(14, 7, 7, 0.72);
	--cm-bg-2: rgba(10, 5, 5, 0.62);
	--cm-border: rgba(255, 190, 120, 0.26);
	--cm-gold: #dca62e;
	--cm-gold-2: #f7d56f;
	--cm-red: #7a0f0f;
	--cm-green: #4ecf7a;
	--cm-text: #f6e4cf;
	--cm-muted: rgba(246, 228, 207, 0.72);
	--cm-shadow: 0 10px 30px rgba(0,0,0,.38);
	--cm-excellent: #6ccb7a;
	--cm-good: #f7d56f;
	--cm-low: #d77a7a;
}


/* Formation 2.0 – stabiler Layout-Pass 27
 * Trennt Spielfeld und Spielerliste ohne überbreite Mindestspalten,
 * hält die Reiter anklickbar und bündelt Zeilenaktionen in einem Menü.
 */
.cm-config-tabs,
.cm-config-tabbar {
	position: relative !important;
	z-index: 30 !important;
	pointer-events: auto !important;
}

.cm-config-tab {
	position: relative !important;
	z-index: 31 !important;
	pointer-events: auto !important;
	cursor: pointer !important;
}

.cm-formation-main,
.cm-formation-left,
.cm-formation-right,
.cm-pitch-col,
.cm-squad-panel,
.cm-squad-table {
	box-sizing: border-box !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.cm-formation-main {
	width: 100% !important;
	overflow: visible !important;
}

.cm-formation-left,
.cm-pitch-col {
	width: 100% !important;
	overflow: hidden !important;
}

.cm-formation-right {
	width: 100% !important;
	overflow: visible !important;
}

.cm-squad-panel {
	overflow: visible !important;
}

.cm-squad-table {
	width: 100% !important;
	table-layout: fixed !important;
}

.cm-squad-table th:nth-child(1),
.cm-squad-table td:nth-child(1) {
	width: 42px !important;
}

.cm-squad-table th:nth-child(3),
.cm-squad-table td:nth-child(3) {
	width: 52px !important;
}

.cm-squad-table th:nth-child(4),
.cm-squad-table td:nth-child(4) {
	width: 76px !important;
}

.cm-squad-table th:nth-child(5),
.cm-squad-table td:nth-child(5),
.cm-squad-table th:nth-child(6),
.cm-squad-table td:nth-child(6) {
	width: 74px !important;
}

.cm-squad-table th:nth-child(7),
.cm-squad-table td:nth-child(7) {
	width: 58px !important;
}

.cm-squad-table th:nth-child(8),
.cm-squad-table td:nth-child(8) {
	width: 44px !important;
}

.cm-squad-table .cm-name,
.cm-squad-table .cm-np,
.cm-squad-table .cm-form {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.cm-actions {
	position: relative !important;
	overflow: visible !important;
}

.cm-actions-wrap {
	position: relative !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	overflow: visible !important;
}

.cm-row-action-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 28px !important;
	padding: 0 !important;
	border: 1px solid #4774ff !important;
	border-radius: 5px !important;
	background: linear-gradient(180deg, #315be2 0%, #173ba8 100%) !important;
	color: #fff !important;
	font-size: 15px !important;
	line-height: 1 !important;
	cursor: pointer !important;
}

.cm-row-action-menu {
	position: absolute !important;
	top: 0 !important;
	right: 34px !important;
	z-index: 5000 !important;
	display: none !important;
	width: 172px !important;
	padding: 6px !important;
	border: 1px solid #315eaa !important;
	border-radius: 7px !important;
	background: #07172d !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .48) !important;
}

.cm-actions-wrap.is-open .cm-row-action-menu {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
}

.cm-row-action-menu .cm-action-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	min-height: 29px !important;
	margin: 0 !important;
	padding: 5px 8px !important;
	border: 1px solid rgba(75, 116, 196, .55) !important;
	border-radius: 4px !important;
	background: #0d2444 !important;
	color: #f4f7ff !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: normal !important;
}

.cm-row-action-menu .cm-action-btn:hover,
.cm-row-action-menu .cm-action-btn:focus {
	border-color: #6e94ff !important;
	background: #173b78 !important;
}

#formationForm .btn,
.cm-formation-strip .btn,
.cm-config-actions .btn,
.cm-config-pane .btn {
	border-color: #4774ff !important;
	background: linear-gradient(180deg, #315be2 0%, #173ba8 100%) !important;
	color: #fff !important;
	text-shadow: none !important;
}

#formationForm .btn:hover,
#formationForm .btn:focus,
.cm-formation-strip .btn:hover,
.cm-config-actions .btn:hover,
.cm-config-pane .btn:hover {
	border-color: #79a0ff !important;
	background: linear-gradient(180deg, #4671ef 0%, #244ab8 100%) !important;
}

@media (min-width: 1100px) {
	.cm-formation-main {
		display: grid !important;
		grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
		gap: 14px !important;
		align-items: start !important;
	}

	#pitch {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: 1.42 / 1 !important;
		overflow: hidden !important;
		background-size: 100% 100% !important;
	}
}

@media (max-width: 1099px) {
	.cm-formation-main {
		display: block !important;
	}

	.cm-formation-right {
		margin-top: 14px !important;
	}

	#pitch {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: 1.2 / 1 !important;
		background-size: 100% 100% !important;
	}
}

.cm-formation {
	display: block;
}

/* FTG tactical workspace: compact controls left, persistent live reading right. */
.ftg-tactics-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
	gap: 18px;
	align-items: start;
	max-width: 1320px;
	margin: 0 auto;
	padding: 18px;
}
.ftg-tactics-settings,
.ftg-tactics-analysis {
	box-sizing: border-box;
	padding: 18px;
	border: 1px solid rgba(80, 120, 195, .48);
	border-radius: 9px;
	background: rgba(5, 19, 40, .72);
}
.ftg-tactics-settings h4 {
	margin: 20px 0 8px !important;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(97, 137, 208, .25);
	font-size: 16px;
	letter-spacing: .03em;
}
.ftg-tactics-settings h4:first-of-type { margin-top: 4px !important; }
.ftg-tactics-settings .form-horizontal { margin: 0 !important; }
.ftg-tactics-settings .control-group {
	display: grid;
	grid-template-columns: minmax(130px, 38%) minmax(190px, 1fr);
	gap: 12px;
	align-items: center;
	margin: 8px 0 !important;
}
.ftg-tactics-settings .control-label {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	font-weight: 600;
}
.ftg-tactics-settings .controls {
	margin-left: 0 !important;
	min-height: 0 !important;
}
.ftg-tactics-settings select,
.ftg-tactics-settings input[type="number"] {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}
.ftg-tactics-offensive .controls { display: flex; align-items: center; gap: 7px; }
.ftg-tactics-offensive input[type="number"] { max-width: 95px !important; }
.ftg-tactics-analysis {
	position: sticky;
	top: 14px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.ftg-tactics-analysis > h3 { margin: 0 0 4px; font-size: 19px; color: #eef4ff; }
.ftg-analysis-profile {
	margin-top: 12px;
	padding: 13px;
	border: 1px solid rgba(92, 136, 210, .38);
	border-radius: 7px;
	background: rgba(2, 12, 28, .45);
}
.ftg-analysis-profile h4,
.ftg-analysis-lists h4 { margin: 0 0 9px; font-size: 14px; color: #cbd9fa; }
.ftg-profile-row {
	display: grid;
	grid-template-columns: 88px minmax(80px, 1fr) 40px;
	gap: 8px;
	align-items: center;
	margin: 7px 0;
	font-size: 13px;
}
.ftg-profile-row b { text-align: right; font-size: 12px; color: #ecf2ff; }
.ftg-profile-track { height: 10px; overflow: hidden; border-radius: 99px; background: #132a4d; }
.ftg-profile-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #386eea, #75a7ff); transition: width .18s ease; }
.ftg-profile-row:nth-of-type(2) i { background: linear-gradient(90deg, #169c73, #56d39b); }
.ftg-profile-row:nth-of-type(3) i { background: linear-gradient(90deg, #f7d56f, #f7d56f); }
.ftg-profile-row:nth-of-type(4) i { background: linear-gradient(90deg, #d26428, #ff9a47); }
.ftg-profile-row:nth-of-type(5) i { background: linear-gradient(90deg, #cf344c, #ff7180); }
.ftg-profile-row:nth-of-type(6) i { background: linear-gradient(90deg, #7753c9, #b18aff); }
.ftg-analysis-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.ftg-analysis-lists > div { padding: 11px; border-radius: 7px; background: rgba(4, 18, 39, .55); }
.ftg-analysis-lists ul { margin: 0; }
.ftg-analysis-lists li { margin: 5px 0; font-size: 13px; line-height: 1.25; }
.ftg-tactic-summary { margin-top: 13px; padding: 11px; border-left: 3px solid #547de3; background: rgba(20, 43, 86, .35); font-size: 13px; line-height: 1.42; }

@media (max-width: 900px) {
	.ftg-tactics-grid { display: block; padding: 10px; }
	.ftg-tactics-settings, .ftg-tactics-analysis { padding: 13px; }
	.ftg-tactics-analysis { position: static; margin-top: 14px; }
}
@media (max-width: 520px) {
	.ftg-tactics-settings .control-group { grid-template-columns: 1fr; gap: 4px; margin: 13px 0 !important; }
	.ftg-analysis-lists { grid-template-columns: 1fr; }
}
.cm-formation-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 12px;
	border: 1px solid var(--cm-border);
	background: linear-gradient(180deg, rgba(122, 15, 15, 0.40), rgba(10, 5, 5, 0.62));
	box-shadow: var(--cm-shadow);
	margin-bottom: 10px;
}
.cm-title {
	font-weight: 800;
	letter-spacing: .4px;
	color: var(--cm-text);
}
.cm-subtitle {
	margin-top: 2px;
	font-size: 12px;
	color: var(--cm-muted);
}
.cm-build-marker {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 5px;
	border: 1px solid rgba(255,216,106,.35);
	color: #f5ce65;
	font-size: 10px;
}
.cm-formation-topbar-right {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.cm-topstat {
	min-width: 110px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 190, 120, 0.18);
	background: rgba(0, 0, 0, 0.22);
}
.cm-topstat.cm-topstat-wide {
	min-width: 190px;
}
.cm-teamvalues {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 10px;
	margin-top: 3px;
}
.cm-teamvalue {
	font-size: 12px;
	color: rgba(255,255,255,.88);
	white-space: nowrap;
}
.cm-teamvalue b {
	display: inline-block;
	min-width: 30px;
	letter-spacing: .4px;
	color: rgba(255,255,255,.80);
}
.cm-teamvalue span {
	font-weight: 900;
	color: var(--cm-gold-2);
}
.cm-topstat-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	letter-spacing: .6px;
}
.cm-topstat-value {
	font-size: 18px;
	font-weight: 800;
	color: var(--cm-gold-2);
	margin-top: 2px;
}

.cm-formation-main {
	display: grid;
	/* Keep sidebar directly next to pitch */
	grid-template-columns: 620px minmax(0, 1fr);
	gap: 2px;
	align-items: start;
}
.cm-formation-left,
.cm-formation-right {
	min-width: 0;
}
.cm-row-reset {
	margin-left: 0 !important;
}
.cm-row-reset [class*="span"] {
	margin-left: 0 !important;
}
.cm-pitch-col {
	width: 100% !important;
}

.cm-panel {
	border: 1px solid var(--cm-border);
	background: var(--cm-bg);
	box-shadow: var(--cm-shadow);
	margin-bottom: 12px;
}
.cm-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	background: linear-gradient(180deg, rgba(122, 15, 15, 0.55), rgba(0,0,0,0.25));
	border-bottom: 1px solid rgba(255, 190, 120, 0.18);
}
.cm-panel-title {
	font-weight: 800;
	color: var(--cm-text);
	letter-spacing: .4px;
}
.cm-panel-hint {
	font-size: 12px;
	color: var(--cm-muted);
}
.cm-panel-body {
	padding: 8px 8px;
}
.cm-panel-body--squad {
	padding: 0;
	overflow: visible;
}
.cm-squad-scroll {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	padding: 8px;
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 190, 120, 0.55) rgba(0, 0, 0, 0.35);
}
.cm-squad-scroll::-webkit-scrollbar {
	height: 8px;
}
.cm-squad-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 190, 120, 0.55);
	border-radius: 4px;
}
.cm-squad-scroll::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.35);
}
.cm-panel-filter { margin-left: auto; }
.cm-filter-select {
	height: 28px;
	padding: 3px 8px;
	border: 1px solid rgba(255, 190, 120, 0.35);
	background: rgba(10, 5, 5, 0.85);
	color: #fff2dc;
	font-size: 12px;
}

.cm-squad-table {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	table-layout: fixed;
}
.cm-squad-table th:nth-child(1),
.cm-squad-table td.cm-pos { width: 7%; }
.cm-squad-table th:nth-child(2),
.cm-squad-table td.cm-np { width: 9%; }
.cm-squad-table th:nth-child(3),
.cm-squad-table td.cm-name { width: 22%; }
.cm-squad-table th:nth-child(4),
.cm-squad-table td.cm-strength { width: 8%; }
.cm-squad-table th:nth-child(5),
.cm-squad-table td.cm-form { width: 8%; }
.cm-squad-table th:nth-child(6),
.cm-squad-table td.cm-stamina { width: 9%; }
.cm-squad-table th:nth-child(7),
.cm-squad-table td.cm-fresh { width: 16%; }
.cm-squad-table th:nth-child(8),
.cm-squad-table td.cm-actions { width: 96px; }
.cm-squad-table th,
.cm-squad-table td {
	padding: 5px 6px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	vertical-align: middle;
	white-space: normal;
}
.cm-squad-table th {
	font-size: 11px;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	background: rgba(0,0,0,0.20);
	position: sticky;
	top: 0;
	z-index: 1;
}
.cm-squad-table td.cm-name {
	white-space: normal;
}
.cm-squad-table td.cm-pos,
.cm-squad-table td.cm-np,
.cm-squad-table td.cm-strength,
.cm-squad-table td.cm-form,
.cm-squad-table td.cm-fresh {
	white-space: nowrap;
}
.cm-squad-table td.cm-actions {
	white-space: normal;
	width: 96px;
	min-width: 96px;
	max-width: 96px;
	vertical-align: top;
	padding-left: 4px !important;
	padding-right: 4px !important;
}
.cm-squad-table th:last-child {
	width: 96px;
	min-width: 96px;
	max-width: 96px;
}
.cm-squad-table tr.cm-row-main td {
	border-bottom: 0;
}
.cm-squad-table tr.cm-row-attrs td {
	padding-top: 0;
	padding-bottom: 7px;
	font-size: 11px;
	border-bottom: 1px solid rgba(255,255,255,.10);
}
.cm-row-attrs-wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3px 10px;
}

/* Nur auf schmalen Viewports: Aktionen in der aufgeklappten Zeile (s. Media Query unten) */
.cm-row-attrs .cm-mobile-actions {
	display: none;
}

.cm-squad-status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 6px;
	vertical-align: middle;
	flex-wrap: wrap;
}
.cm-squad-badge {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 10px;
	font-weight: 800;
	padding: 1px 5px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	line-height: 1.15;
	vertical-align: middle;
}
.cm-squad-badge i {
	margin: 0;
}
.cm-squad-badge--inj {
	background: rgba(160, 35, 35, 0.62);
	color: #ffecec;
}
.cm-squad-badge--ban {
	background: rgba(185, 130, 0, 0.55);
	color: #fff8e6;
}
.cm-row-attr-item b {
	display: inline-block;
	min-width: 28px;
	color: rgba(255,255,255,.82);
}
.cm-row-attr-item span {
	font-weight: 800;
}
.cm-action-btn {
	display: block;
	margin: 0;
	padding: 4px 3px;
	border: 1px solid rgba(255, 190, 120, 0.45);
	background: linear-gradient(180deg, rgba(122, 15, 15, 0.92), rgba(83, 10, 10, 0.9));
	color: #fff3de;
	font-size: 9px;
	line-height: 1.2;
	border-radius: 2px;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cm-action-btn:hover {
	border-color: rgba(255,216,106,.75);
	background: linear-gradient(180deg, rgba(151, 24, 24, 0.96), rgba(100, 15, 15, 0.94));
	color: #fff8e6;
	text-decoration: none;
}
.cm-actions-wrap {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start;
	gap: 4px;
	width: 100%;
	max-width: 88px;
	margin: 0 auto;
}
.cm-squad-table .cm-actions-wrap .cm-action-btn {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

/* Bench panel in same visual language as squad list */
.cm-bench-panel { margin-top: 8px; }
.cm-bench-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	margin-bottom: 0;
}
.cm-bench-card {
	position: relative;
	min-height: 132px;
	padding: 10px;
	border: 1px solid rgba(77, 227, 255, 0.22);
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(13, 27, 46, 0.94), rgba(7, 16, 31, 0.96));
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.20);
	color: #ffffff;
}
.cm-bench-card.freePosition {
	display: flex;
	align-items: center;
	justify-content: center;
	border-style: dashed;
	background: rgba(8, 18, 34, 0.65);
}
.cm-bench-card .benchPlayerInfo {
	width: 100%;
	min-height: 112px;
}
.cm-bench-table .benchPlayerSubAdd {
	display: none;
	margin: 8px 0 0;
	padding: 3px 7px;
	border: 1px solid rgba(255, 190, 120, 0.45);
	background: linear-gradient(180deg, rgba(122, 15, 15, 0.92), rgba(83, 10, 10, 0.9));
	color: #fff3de !important;
	font-size: 10px;
	line-height: 1.15;
	border-radius: 2px;
	text-decoration: none;
}
.cm-bench-table .benchPlayerSubAdd:hover {
	border-color: rgba(255,216,106,.75);
	background: linear-gradient(180deg, rgba(151, 24, 24, 0.96), rgba(100, 15, 15, 0.94));
	color: #fff8e6 !important;
	text-decoration: none;
}
.cm-bench-table .benchPlayerSubInfo {
	display: none !important;
	margin-top: 4px;
	padding: 4px 6px;
	background: rgba(0,0,0,.25);
	border: 1px solid rgba(255,255,255,.08);
	color: #f6e4cf !important;
}
.cm-bench-table .benchPlayerRemove {
	position: absolute;
	right: 8px;
	bottom: 8px;
	display: none;
	width: 28px;
	height: 24px;
	border-radius: 6px;
	text-align: center;
	line-height: 24px;
	color: #ffffff;
	background: rgba(52, 92, 235, 0.9);
}
.cm-bench-card .cm-bench-slot-picker {
	position: absolute;
	right: 8px;
	top: 8px;
	width: 28px;
	height: 24px;
	border-radius: 6px;
	text-align: center;
	line-height: 24px;
	color: #ffffff;
	background: rgba(52, 92, 235, 0.9);
	text-decoration: none;
}
.cm-bench-card.freePosition .cm-bench-slot-picker {
	top: auto;
	right: auto;
	bottom: 10px;
}
.cm-bench-player-card,
.cm-bench-player-card > span {
	display: block;
}
.cm-bench-card-top {
	display: grid !important;
	grid-template-columns: 34px minmax(0, 1fr) 42px;
	gap: 8px;
	align-items: center;
	margin-right: 30px;
}
.cm-bench-pos {
	color: #f5ce65;
	font-weight: 900;
	font-size: 13px;
	letter-spacing: .4px;
}
.cm-bench-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #ffffff;
	font-weight: 900;
	font-size: 15px;
}
.cm-bench-strength {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(243, 201, 105, 0.75);
	color: #f5ce65;
	font-weight: 900;
	background: rgba(0,0,0,.24);
}
.cm-bench-card-meta {
	margin-top: 5px;
	color: #b8c7e0;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cm-bench-meter-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
	margin-top: 8px;
}
.cm-bench-meter {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2px;
	color: #c9d6ee;
	font-size: 10px;
	text-transform: uppercase;
}
.cm-bench-meter i {
	display: block;
	height: 7px;
	border-radius: 99px;
	background: rgba(255,255,255,.12);
	overflow: hidden;
}
.cm-bench-meter em {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, #66f2bf, #87d8ff);
}
.cm-bench-meter strong {
	color: #ffffff;
	font-size: 10px;
}
.cm-bench-table .benchAttrRow {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2px 10px;
	margin-top: 8px;
	font-size: 11px;
	color: #e8d8c4;
}
.cm-bench-table .benchAttrRow span strong {
	font-weight: 800;
	color: #ffffff;
}
.cm-bench-table .benchAttrRow .cm-attr.is-excellent { color: var(--cm-excellent); }
.cm-bench-table .benchAttrRow .cm-attr.is-good { color: var(--cm-good); }
.cm-bench-table .benchAttrRow .cm-attr.is-low { color: var(--cm-low); }

.cm-planned-subs-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.cm-planned-subs-table th,
.cm-planned-subs-table td {
	padding: 7px 8px;
	border-bottom: 1px solid rgba(77, 227, 255, 0.16);
	color: #ffffff;
	font-size: 12px;
	vertical-align: top;
}
.cm-planned-subs-table th {
	color: #f5ce65;
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: 10px;
	background: rgba(52, 92, 235, 0.26);
}
.cm-planned-subs-table .cm-sub-minute {
	width: 52px;
	color: #f5ce65;
}
.cm-sub-out { color: #ff8a8a; font-weight: 900; }
.cm-sub-in { color: #6ccb7a; font-weight: 900; }
.cm-sub-actions {
	width: 34px;
	text-align: right;
}
.cm-remove-sub {
	color: #ffffff;
	opacity: .85;
	font-weight: 900;
	text-decoration: none;
}
.cm-subrow.has-issue td {
	background: rgba(150, 45, 45, .18);
}
.cm-sub-issue {
	color: #ff9b9b;
	font-size: 11px;
	margin-top: 3px;
}

/* Top config tabs (Aufstellung / Taktik / Standards) */
.cm-config-tabs {
	margin-top: 10px;
	margin-bottom: 8px;
	border: 0;
	background: transparent;
}
.cm-config-tabbar {
	display: flex;
	gap: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 190, 120, 0.22);
}
.cm-config-tab {
	border: 1px solid rgba(255, 190, 120, 0.2);
	border-bottom: 0;
	margin-right: 2px;
	background: rgba(0, 0, 0, 0.28);
	color: #f6e4cf;
	padding: 7px 14px;
	font-size: 14px;
	cursor: pointer;
}
.cm-config-tab.is-active {
	background: linear-gradient(180deg, rgba(151, 24, 24, 0.96), rgba(100, 15, 15, 0.94));
	color: #fff8e6;
	font-weight: 700;
}
.cm-config-pane {
	display: none;
	padding: 10px 0;
}
.cm-config-pane.is-active {
	display: block;
}
.cm-config-actions {
	padding: 8px 0 2px;
}

/* Bring top area closer to requested mockup layout */
.cm-top-match-form {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 8px 10px;
	border: 1px solid rgba(255, 190, 120, 0.24);
	background: rgba(12, 6, 6, 0.55);
	margin-bottom: 8px;
}
.cm-top-match-form .input-xxlarge {
	min-width: 360px;
	background: rgba(10, 5, 5, 0.85);
	color: #fff2dc;
	border: 1px solid rgba(255, 190, 120, 0.35);
}
.cm-config-actions input[name="templatename"] {
	background: rgba(10, 5, 5, 0.85);
	color: #fff2dc;
	border: 1px solid rgba(255, 190, 120, 0.35);
	padding: 3px 8px;
}
.cm-next-match-grid {
	margin-left: 0 !important;
	margin-bottom: 8px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 190, 120, 0.2);
	background: rgba(10, 5, 5, 0.45);
}
.cm-next-match-grid > [class*="span"] {
	margin-left: 0 !important;
	margin-right: 20px;
}
.cm-nextmatch-card {
	border: 1px solid rgba(255, 190, 120, 0.2);
	background: rgba(0, 0, 0, 0.26);
	padding: 8px 10px;
}
.cm-nextmatch-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.cm-lineup-status {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	border: 1px solid transparent;
}
.cm-lineup-status.is-set {
	color: #b9f2bf;
	background: rgba(34, 123, 54, 0.28);
	border-color: rgba(94, 214, 119, 0.45);
}
.cm-lineup-status.is-missing {
	color: #ffc0c0;
	background: rgba(138, 23, 23, 0.3);
	border-color: rgba(255, 99, 99, 0.5);
}
.cm-nextmatch-teams {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}
.cm-nextmatch-team {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px;
	flex: 1 1 0;
	min-width: 0;
}
.cm-nextmatch-team:first-child {
	justify-content: flex-start;
}
.cm-nextmatch-team:last-child {
	justify-content: flex-end;
	text-align: right;
}
.cm-nextmatch-team img {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid rgba(255, 190, 120, 0.35);
}
.cm-nextmatch-team a {
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #f6e4cf;
	font-weight: 700;
}
.cm-nextmatch-team:last-child a {
	text-align: right;
}
.cm-nextmatch-vs {
	flex: 0 0 44px;
	text-align: center;
	color: #f5ce65;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .6px;
}
.cm-formation-strip {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 190, 120, 0.24);
	background: rgba(12, 6, 6, 0.55);
	margin-bottom: 8px;
}
.cm-formation-strip .cm-legacy-hide {
	display: none !important;
}
.cm-formation-select-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
}
.cm-formation-select-inline .control-label {
	margin: 0;
	color: #f6e4cf !important;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .6px;
}
.cm-formation-select-inline #formationPresetSelect {
	min-width: 300px;
	background: rgba(10, 5, 5, 0.85);
	color: #fff2dc;
	border: 1px solid rgba(255, 190, 120, 0.35);
}
.cm-formation-actions {
	margin-top: 0 !important;
}
.cm-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 6px;
	border: 1px solid rgba(255,255,255,.12);
	background: rgba(0,0,0,.20);
}
.cm-num {
	font-weight: 800;
	color: #fff;
}
.cm-attr {
	font-weight: 800;
}
.cm-attr.is-excellent { color: var(--cm-excellent); }
.cm-attr.is-good { color: var(--cm-good); }
.cm-attr.is-low { color: var(--cm-low); }
.cm-formtrend {
	font-weight: 800;
}
.cm-formtrend.pos { color: var(--cm-excellent); }
.cm-formtrend.neg { color: var(--cm-low); }
.cm-freshbar {
	height: 8px;
	width: 64px;
	background: rgba(255,255,255,.10);
	border: 1px solid rgba(255,255,255,.10);
	position: relative;
}
.cm-freshbar > span {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 0%;
	background: linear-gradient(90deg, rgba(78, 207, 122, 0.95), rgba(255, 216, 106, 0.85));
}
.cm-muted,
.cm-muted-note {
	color: var(--cm-muted) !important;
}
.cm-muted-note {
	margin-top: 8px;
}

/* Pitch player card: compact, always inside the position cell (no overlap). */
#pitch .position {
	overflow: visible;
}
#pitch .position .positionPlayer,
#pitch .position .playerinfoStrength {
	display: none !important; /* old blocks must not fight the modern card */
}
#pitch .cm-pcard {
	position: absolute;
	inset: 0;
	background: rgba(10, 5, 5, 0.88);
	border: 1px solid rgba(255, 216, 106, 0.34);
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0,0,0,.45);
	padding: 5px 6px 6px;
	color: #fff8f0;
}
#pitch .cm-pcard-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}
#pitch .cm-pcard-name {
	font-weight: 900;
	font-size: 10px;
	line-height: 1.05;
	white-space: normal;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	max-width: 74px;
}
#pitch .cm-pcard-pos {
	font-size: 9px;
	color: rgba(255,255,255,.78);
	margin-top: 1px;
	white-space: nowrap;
}
#pitch .cm-pcard-strength {
	font-weight: 900;
	color: var(--cm-gold-2);
	font-size: 12px;
}
#pitch .cm-pcard-attrs {
	margin-top: 4px;
	display: flex;
	justify-content: space-between;
	gap: 4px;
	font-size: 10px;
	color: rgba(255,255,255,.92);
}
#pitch .cm-pcard-attrs .cm-attr {
	text-shadow: 0 1px 2px rgba(0,0,0,.65);
}
#pitch .cm-pcard-attrs b {
	font-weight: 900;
}
#pitch .cm-pcard-freshline {
	margin-top: 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	font-size: 9px;
	color: rgba(255,255,255,.76);
}
#pitch .cm-pcard-freshline .cm-freshbar {
	width: 54px;
	height: 7px;
}

/* Auf dem Platz / Bank: deckende dunkle Flächen (kein helles „Giftgrün“ durch Transparent + helles Accordion) */
.playerIsOnPitch {
	background: linear-gradient(90deg, #173d28 0%, #1f5234 100%) !important;
	color: #f6fff9 !important;
	border-left: 4px solid #4ecf7a !important;
	box-shadow: inset 0 0 0 1px rgba(78, 207, 122, 0.35);
}

.playerIsOnBench {
	background: linear-gradient(90deg, #4a3810 0%, #5c4814 100%) !important;
	color: #fffaf0 !important;
	border-left: 4px solid #f7d56f !important;
	box-shadow: inset 0 0 0 1px rgba(224, 168, 46, 0.35);
}

/* Rechte Spielerliste: Accordion-Innenbereich nicht weiß; Karten einheitlich lesbar */
#contentArea #playersSelection .accordion-inner {
	padding: 0 !important;
	border-top: 1px solid rgba(255, 170, 90, 0.22) !important;
	background: rgba(10, 5, 5, 0.65) !important;
}
#contentArea .playersColumn .playerinfo {
	background: rgba(0, 0, 0, 0.3) !important;
	color: #f8f0e6 !important;
	border-top: 1px solid rgba(255, 170, 90, 0.2) !important;
}
#contentArea .playersColumn .playerinfo small {
	color: rgba(255, 245, 230, 0.9) !important;
}
#contentArea .playersColumn .playerinfo .mainposition,
#contentArea .playersColumn .playerinfo .secondposition,
#contentArea .playersColumn .playerinfo .thirdposition {
	color: #f5ce65 !important;
}
#contentArea .playersColumn .playerinfoBar {
	color: #fff8f0 !important;
}
#contentArea .playersColumn .playerinfoStrengthLabelFull {
	color: #fff4e8 !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
#contentArea .playersColumn .playerIsOnPitch small,
#contentArea .playersColumn .playerIsOnBench small {
	color: rgba(255, 255, 255, 0.9) !important;
}
#contentArea .playersColumn .playerinfoStrength > .bar {
	color: #ffffff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* Fallback außerhalb #contentArea (z. B. andere Skins): gleiche Leselogik */
.playerinfo {
	color: #f5f5f5 !important;
}
.playerinfo small {
	color: rgba(255, 255, 255, 0.85) !important;
}
.playerinfo .mainposition,
.playerinfo .secondposition,
.playerinfo .thirdposition {
	color: #f5ce65 !important;
}
.playerinfoBar {
	color: #ffffff !important;
}

#pitch {
	/* Bigger pitch like modern manager UIs (mockup). */
	width: 620px;
	height: 780px;
	border: 1px solid black;
	background-color: green;
	position: relative;
	margin-bottom: 10px;
	
	background-image: url('../img/formation_pitch_bg.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.playersColumn {
	margin-left: 0px;
}

.pitchColumn {
	width: 640px;
}

@media (max-width: 979px) and (min-width: 768px) {
	.playersColumn {
		margin-left: 20px;
	}
}

#playersSelection .accordion-inner {
	 padding: 0;
}

.playerinfo {
	border-top: 1px solid #e5e5e5;
	padding: 0 4px;
	position: relative;
	cursor: default;
}

.playerBlocked {
	opacity: 0.5;
}

.playerinfoBar {
	height: 24px;
	font-size: 12px;
}

.playerinfoIcons {
	position: absolute;
	right: 5px;
	padding-top: 2px;
}

.playerBlockedLabel {
	color: red;
	font-weight: bold;
	opacity: 1;
}

.playerinfoStrengthRow {
	width: 100%;
}

.playerinfoStrengthRow:before, .playerinfoStrengthRow:after {
	display: table;
	line-height: 0;
	content: "";
}

.playerinfoStrengthRow:after {
	clear: both;
}

.playerinfoStrength >.bar {
	font-size: 10px;
	line-height: 14px;
}

.playerinfoStrength {
	height: 14px;
	margin: 0;
}

.playerinfoStrengthLabelFull {
	display: block;
	float: left;
	width: 80px;
	font-size: 12px;
}
	
.mainposition {
	color: #0044cc;
}

.secondposition {
	color: #2f96b4;
}

.thirdposition {
	color: #5a7a94;
}

.position {
	position: absolute;
	/* Bigger card slots for mockup-like player cards */
	width: 122px;
	height: 86px;
}

.positionLabel {
	text-align: center;
	margin-top: 20px;
	font-size: 0.9em;
	font-weight: bold;
	cursor: default;
}

.positionPlayer {
	background-color: white;
	border: 1px solid black;
	font-size: 9px;
	width: 100%;
	text-align: center;
	position: absolute;
	top: 60px;
	left: -1px;
	word-wrap: break-word;
	border-radius: 3px;
	cursor: default;
}


.position >.playerinfoStrength {
	position: absolute;
	top: -18px;
	width: 100%;
}

.positionPlayerRemove {
	position: absolute;
	top: -5px;
	right: 0;
}

.positionPlayerIcons {
	position: absolute;
	top: -5px;
	right: 0;
}

/* Percent-based positioning so the bigger pitch scales cleanly */
.position.T { bottom: 6%; left: calc(50% - 61px); }

.position.LV, .position.IV.leftWing { bottom: 22%; left: 6%; }

.position.LV.goalyRow, .position.RV.goalyRow { bottom: 6%; }

.position.IV { bottom: 22%; left: calc(50% - 61px); }

.position.IV.leftPos { left: calc(50% - 61px - 98px); }

.position.IV.rightPos { left: calc(50% - 61px + 98px); }

.position.RV, .position.IV.rightWing { bottom: 22%; left: calc(94% - 122px); }

.position.DM { bottom: 36%; left: calc(50% - 61px); }

.position.DM.leftPos { left: calc(50% - 61px - 98px); }

.position.DM.rightPos { left: calc(50% - 61px + 98px); }

.position.DM.leftOuterPos { left: 6%; }

.position.DM.rightOuterPos { left: calc(94% - 122px); }

.position.LM { bottom: 50%; left: 6%; }

.position.ZM { bottom: 50%; left: calc(50% - 61px); }

.position.ZM.leftPos { left: calc(50% - 61px - 118px); }

.position.ZM.rightPos { left: calc(50% - 61px + 118px); }

.position.ZM.leftOuterPos { left: 18%; }

.position.ZM.rightOuterPos { left: calc(82% - 122px); }

/* 5er Mittelfeld: breitere Verteilung, keine Überlappung */
.position.midfield5 {
	width: 62px;
	font-size: 0.85em;
}
.position.midfield5.LM { left: 6% !important; }
.position.midfield5.ZM.leftPos { left: 22% !important; }
.position.midfield5.ZM { left: calc(50% - 31px) !important; }
.position.midfield5.ZM.rightPos { left: 62% !important; }
.position.midfield5.RM { left: calc(94% - 62px) !important; }

.position.midfield5 .positionLabel {
	font-size: 0.75em;
	margin-top: 14px;
}

/* 6er Mittelfeld: 6 Positionen gleichmäßig verteilt */
.position.midfield6 {
	width: 50px;
	font-size: 0.8em;
}
.position.midfield6.LM { left: 6% !important; }
.position.midfield6.ZM.leftOuterPos { left: 18% !important; }
.position.midfield6.ZM.leftPos { left: 30% !important; }
.position.midfield6.ZM.rightPos { left: 54% !important; }
.position.midfield6.ZM.rightOuterPos { left: 66% !important; }
.position.midfield6.RM { left: calc(94% - 50px) !important; }

.position.midfield6 .positionLabel {
	font-size: 0.7em;
	margin-top: 12px;
}

/* Spielernamen und Trikots in 5er/6er-Reihe anpassen */
.position.midfield5 .positionPlayer,
.position.midfield6 .positionPlayer {
	font-size: 8px;
	line-height: 1.1;
}

.position.midfield5 .formationPlayerPicture > img,
.position.midfield6 .formationPlayerPicture > img {
	max-width: 62px;
	max-height: 42px;
}

.position.midfield6 .formationPlayerPicture > img {
	max-width: 50px;
	max-height: 36px;
}

.position.RM { bottom: 50%; left: calc(94% - 122px); }

.position.OM { bottom: 64%; left: calc(50% - 61px); }

.position.OM.leftPos { left: calc(50% - 61px - 110px); }

.position.OM.rightPos { left: calc(50% - 61px + 110px); }

.position.OM.leftOuterPos { left: 6%; }

.position.OM.rightOuterPos { left: calc(94% - 122px); }

/* 4-2-3-1 (2)/(3): LM–OM–RM in the advanced row (same vertical band as 3×OM) */
#pitch .position.cmBand4231.LM {
	bottom: 64%;
	left: 6%;
}
#pitch .position.cmBand4231.OM {
	bottom: 64%;
	left: calc(50% - 61px);
}
#pitch .position.cmBand4231.RM {
	bottom: 64%;
	left: calc(94% - 122px);
}

.position.LS { bottom: 78%; left: 6%; }

.position.MS { bottom: 78%; left: calc(50% - 61px); }

.position.MS.leftPos { left: calc(50% - 61px - 110px); }

.position.MS.rightPos { left: calc(50% - 61px + 110px); }

.position.RS { bottom: 78%; left: calc(94% - 122px); }

.freePosition {
	background-color: white;
	border-radius: 6px;
	opacity: 0.7;
}

.playerDropHover {
	background-color: #CCCCCC;
	opacity: 1.0;
}

.playerRemoveLink {
	display: none;
}

.formationPlayerPicture {
	position: absolute;
	top: 0;
	text-align: center;
	width: 100%;
}

.formationPlayerPicture > img {
	max-width: 90px;
	max-height: 60px;
}

.positionStatePrimary.jersey {
	background-image: url('../img/shirts_sprite.png');
	background-repeat: no-repeat;
	background-position: 0px -60px;
}

.positionStateSecondary.jersey {
	background-image: url('../img/shirts_sprite.png');
	background-repeat: no-repeat;
	background-position: -90px -60px;
}

.positionStateWrong.jersey {
	background-image: url('../img/shirts_sprite.png');
	background-repeat: no-repeat;
	background-position: 0px 0px;
}

.positionStateSecondary {
	color: blue;
}

.positionStateWrong {
	color: red;
}

.playerinfo.ui-draggable-dragging {
	background-color: #ffffff;
	border: 1px solid black;
	border-radius: 6px;
	opacity: 0.95;
	max-width: 150px;
}

.playerinfo.ui-draggable-dragging .playerinfoIcons,
.playerinfo.ui-draggable-dragging .playerinfoStrengthRow {
	display: none;
}

.benchPlaceholder {
	font-style: italic;
}

.benchPlayerRemove,
.benchPlayerSubAdd,
.benchPlayerSubInfo,
.benchPlayerSubInfoConditionTie,
.benchPlayerSubInfoConditionLeading,
.benchPlayerSubInfoConditionDeficit {
	display: none;	
}

/* Strong dark-skin readability for formation page */
#formationForm h4,
#formationForm p,
#formationForm small,
#formationForm label,
#formationForm .control-label,
#formationForm .muted {
	color: #f2f2f2 !important;
}

#formationForm .table.table-bordered {
	background: rgba(0, 0, 0, 0.45) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
#formationForm .table.table-bordered th {
	background: rgba(122, 15, 15, 0.9) !important;
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
}
#formationForm .table.table-bordered td {
	background: rgba(0, 0, 0, 0.25) !important;
	color: #f4f4f4 !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
}
#formationForm .benchPlayerInfo,
#formationForm .benchPlayerSubInfo,
#formationForm .benchPlayer,
#formationForm .benchPlayerSubInfoMinute,
#formationForm .benchPlayerSubInfoPlayer {
	color: #f6f6f6 !important;
}
#formationForm .benchPlaceholder {
	color: #d8d8d8 !important;
}

/* All selects/inputs clearly readable */
#formationForm select,
#formationForm input[type="text"],
#formationForm input[type="number"] {
	background-color: #1f1f1f !important;
	color: #ffffff !important;
	border: 1px solid #9a9a9a !important;
}
#formationForm select option {
	background: #1f1f1f !important;
	color: #ffffff !important;
}

.formation-preset-drop {
	border: 2px dashed #999;
	border-radius: 6px;
	padding: 10px 12px;
	margin: 8px 0 12px;
	background: #f9f9f9;
	min-height: 36px;
}
.formation-preset-drop-hover {
	border-color: #468847;
	background: #e9f5e9;
}
.formation-preset-palette {
	max-height: 220px;
	overflow-y: auto;
	margin-bottom: 8px;
}
.preset-card {
	float: left;
	width: 140px;
	min-height: 88px;
	margin: 0 8px 8px 0;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	font-size: 12px;
	line-height: 1.25;
}
.preset-card:hover {
	border-color: #468847;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.preset-card-title {
	font-weight: bold;
	font-size: 13px;
}
.preset-card-struct {
	margin-top: 4px;
}
.preset-card-expl {
	margin-top: 6px;
}

/* Dunkles Skin: Namen auf dem Platz + leere Positionen lesbar (kein helles Panel + helle Schrift) */
#contentArea #pitch .positionPlayer {
	background: rgba(14, 8, 8, 0.94) !important;
	color: #fff8f0 !important;
	border: 1px solid rgba(255, 170, 90, 0.45) !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
#contentArea #pitch .freePosition {
	background-color: rgba(255, 255, 255, 0.88) !important;
	color: #1a0c0c !important;
}
#contentArea #pitch .freePosition > .positionLabel {
	color: #1a0c0c !important;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
	font-weight: 700;
}
#contentArea #pitch .position:not(.freePosition) > .positionLabel {
	color: #ffffff !important;
	text-shadow: 0 0 4px #000, 0 1px 3px #000;
	font-weight: 700;
}
#contentArea #pitch .position.midfield5:not(.freePosition) > .positionLabel,
#contentArea #pitch .position.midfield6:not(.freePosition) > .positionLabel {
	color: #ffffff !important;
}

/* ============================
   Mobile/Tablet responsive layer
   Desktop stays untouched
   ============================ */
@media (max-width: 1024px) {
	.cm-top-match-form,
	.cm-formation-strip {
		flex-wrap: wrap;
	}
	.cm-top-match-form .input-xxlarge,
	.cm-formation-select-inline #formationPresetSelect {
		width: 100%;
		min-width: 0;
	}
	.cm-next-match-grid {
		padding: 8px;
	}
	.cm-next-match-grid > [class*="span"] {
		width: 100%;
		margin-right: 0 !important;
	}
	.cm-formation-topbar {
		flex-wrap: wrap;
	}
	.cm-formation-topbar-right {
		width: 100%;
	}
	.cm-formation-main {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.cm-pitch-col {
		overflow: hidden;
		padding-bottom: 4px;
	}
	/* Keep desktop geometry, but scale-to-fit on mobile */
	.cm-pitch-wrap {
		--cm-pitch-scale: min(1, calc((100% - 10px) / 620));
		width: 100%;
		display: flex;
		justify-content: center;
		/* Critical: don't clip wide cards at the edges (LV/RV etc). */
		overflow-x: auto;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
		padding: 0 16px;
		margin-bottom: 10px;
	}
	.cm-pitch-wrap #pitch {
		transform-origin: top center;
		transform: scale(var(--cm-pitch-scale));
		margin: 0 auto;
	}
	/* Let layout height match the scaled pitch.
	   Add a bit of extra space so player cards at the very bottom/top don't get clipped. */
	.cm-pitch-wrap {
		--cm-pitch-extra-y: 160px;
		height: calc((780px + var(--cm-pitch-extra-y)) * var(--cm-pitch-scale));
	}
	.cm-panel-body {
		padding: 6px;
	}
	.cm-config-actions {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		align-items: center;
	}
}

@media (max-width: 768px) {
	.cm-config-tab {
		padding: 7px 10px;
		font-size: 13px;
	}
	.cm-topstat {
		min-width: 94px;
		padding: 6px 8px;
	}
	.cm-topstat.cm-topstat-wide {
		min-width: 160px;
	}
	.cm-topstat-value {
		font-size: 16px;
	}
	.cm-squad-table th,
	.cm-squad-table td {
		padding: 4px 5px;
		font-size: 11px;
	}
	.cm-action-btn {
		padding: 3px 6px;
		font-size: 10px;
	}
}

@media (max-width: 520px) {
	.cm-title {
		font-size: 18px;
	}
	.cm-subtitle {
		font-size: 11px;
	}
	.cm-nextmatch-card {
		padding: 7px 8px;
	}
	.cm-nextmatch-vs {
		flex: 0 0 32px;
		font-size: 14px;
	}
	.cm-nextmatch-team img {
		width: 24px;
		height: 24px;
	}
	.cm-config-tabbar {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Phase 2: mobile squad table = compact + tap to expand details */
	.cm-squad-table th:nth-child(2),
	.cm-squad-table td.cm-np { display: none; } /* hide NP */
	.cm-squad-table th:nth-child(5),
	.cm-squad-table td.cm-form { display: none; } /* hide Form column (still visible in expanded attrs via colors) */
	.cm-squad-table th:nth-child(6),
	.cm-squad-table td.cm-stamina { display: none; } /* hide Kondition on very small screens */
	.cm-squad-table th:nth-child(8),
	.cm-squad-table td.cm-actions { display: none; } /* hide actions column on mobile; use expanded row */

	.cm-squad-table tr.cm-row-attrs { display: none; }
	.cm-squad-table tr.cm-row-main.is-open + tr.cm-row-attrs { display: table-row; }
	.cm-squad-table tr.cm-row-main.is-open td {
		background: rgba(0,0,0,0.28);
	}

	/* Mobile actions live inside the expanded (attrs) row */
	.cm-row-attrs .cm-mobile-actions {
		margin-top: 8px;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 6px;
		max-width: 220px;
	}
	.cm-row-attrs .cm-mobile-actions .cm-action-btn {
		padding: 6px 10px;
		font-size: 11px;
		width: 100%;
	}
}

/* Position picker (Aufstellen) */
.cm-posmenu {
	position: absolute;
	z-index: 10050;
	min-width: 210px;
	max-width: 280px;
	border: 1px solid rgba(255, 190, 120, 0.28);
	background: linear-gradient(180deg, rgba(20, 10, 10, 0.96), rgba(0,0,0,0.92));
	box-shadow: 0 16px 40px rgba(0,0,0,.55);
	border-radius: 8px;
	padding: 8px;
	color: #fff2dc;
}
.cm-posmenu-title {
	font-weight: 900;
	letter-spacing: .3px;
	color: #f5ce65;
	margin-bottom: 6px;
	font-size: 12px;
	text-transform: uppercase;
}
.cm-posmenu-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 6px;
	color: #fff2dc;
	text-decoration: none;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(0,0,0,0.20);
	margin-bottom: 6px;
}
.cm-posmenu-item:hover {
	background: rgba(255, 216, 106, 0.10);
	border-color: rgba(255, 216, 106, 0.25);
	text-decoration: none;
	color: #fff;
}
.cm-posmenu-note {
	font-size: 11px;
	opacity: .75;
	margin-left: auto;
}
.cm-posmenu-tag {
	font-size: 10px;
	padding: 1px 6px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.14);
	opacity: .9;
	white-space: nowrap;
}
.cm-row-bench-empty .cm-bench-empty-cell {
	cursor: pointer;
	padding: 10px 12px !important;
	background: rgba(0, 0, 0, 0.12);
	border-radius: 4px;
}
.cm-row-bench-empty:hover .cm-bench-empty-cell {
	background: rgba(255, 216, 106, 0.12);
}
.cm-bench-empty-hint {
	color: rgba(255, 248, 236, 0.85);
	font-size: 12px;
}
.cm-bench-slot-picker {
	display: none;
	margin-left: 6px;
	color: #f5ce65;
	font-size: 13px;
	line-height: 1;
	text-decoration: none !important;
	vertical-align: middle;
	opacity: 0.9;
}
.benchposition:not(.freePosition) .cm-bench-slot-picker {
	display: inline-block;
}
.cm-bench-picker {
	font-weight: 700;
	min-width: 22px;
	text-align: center;
}

.cm-posmenu-tag.cm-ok {
	border-color: rgba(108, 203, 122, .45);
	color: rgba(140, 240, 170, .95);
}

/* Positionsauswahl auf dem Spielfeld: HP und NP getrennt, Einsatzstatus sofort sichtbar. */
.cm-slotmenu {
	max-height: min(520px, calc(100vh - 28px));
	overflow-y: auto;
}
.cm-slotmenu-section + .cm-slotmenu-section {
	margin-top: 9px;
	padding-top: 9px;
	border-top: 1px dashed rgba(255, 216, 106, .34);
}
.cm-slotmenu-section-title {
	padding: 1px 3px 6px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .7px;
	text-transform: uppercase;
}
.cm-slotmenu-main .cm-slotmenu-section-title {
	color: #8df0ad;
}
.cm-slotmenu-secondary .cm-slotmenu-section-title {
	color: #8dc8ff;
}
.cm-slotmenu-item {
	min-height: 33px;
}
.cm-slotmenu-player {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cm-slotmenu-player b {
	color: #f5ce65;
}
.cm-slotmenu-meta {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	margin-left: auto;
	white-space: nowrap;
}
.cm-slotmenu-meta .cm-posmenu-note {
	margin-left: 0;
}
.cm-slotmenu-state {
	padding: 2px 5px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .2px;
	line-height: 1.2;
}
.cm-slotmenu-state-starter {
	color: #aaf7bd;
	border-color: rgba(92, 214, 126, .55);
	background: rgba(53, 144, 76, .35);
}
.cm-slotmenu-state-bench {
	color: #f5ce65;
	border-color: rgba(236, 185, 65, .56);
	background: rgba(149, 102, 20, .35);
}
.cm-slotmenu-state-squad {
	color: #b8d5ff;
	border-color: rgba(85, 146, 238, .55);
	background: rgba(32, 78, 151, .34);
}

/* FTG formation fix: compact, readable pitch cards and reliable substitution modal */
#pitch .position {
	width: 126px !important;
	height: 82px !important;
	overflow: visible !important;
}
#pitch .cm-pcard {
	position: absolute !important;
	inset: 0 !important;
	display: grid !important;
	grid-template-rows: minmax(0, 1fr) auto !important;
	gap: 5px !important;
	padding: 7px 8px !important;
	overflow: hidden !important;
	border-radius: 9px !important;
	border: 1px solid rgba(77, 227, 255, 0.34) !important;
	background: linear-gradient(160deg, rgba(7, 20, 38, 0.94), rgba(13, 35, 67, 0.91)) !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}
#pitch .cm-pcard-top {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	gap: 6px !important;
	align-items: start !important;
	justify-content: stretch !important;
	min-width: 0 !important;
}
#pitch .cm-pcard-top > div:first-child {
	display: grid !important;
	grid-template-columns: 32px minmax(0, 1fr) !important;
	gap: 7px !important;
	align-items: center !important;
	min-width: 0 !important;
}
#pitch .cm-pcard-photo {
	width: 32px !important;
	height: 32px !important;
	border-radius: 999px !important;
	border-color: rgba(77, 227, 255, 0.48) !important;
}
#pitch .cm-pcard-name {
	display: block !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	color: #ffffff !important;
	font-size: 12px !important;
	line-height: 1.1 !important;
}
#pitch .cm-pcard-pos {
	display: block !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	color: #b8c7e0 !important;
	font-size: 10px !important;
	line-height: 1.1 !important;
	margin-top: 2px !important;
}
#pitch .cm-pcard-attrs {
	display: none !important;
}
#pitch .cm-pcard-score {
	display: flex !important;
	justify-content: flex-end !important;
}
#pitch .cm-pcard-strength {
	min-width: 30px !important;
	height: 24px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 7px !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #f7d56f, #f7d56f) !important;
	color: #071426 !important;
	font-size: 13px !important;
	line-height: 1 !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.28) !important;
}
#pitch .cm-pcard-footer {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 28px !important;
	gap: 7px !important;
	align-items: center !important;
}
#pitch .cm-pcard-freshline {
	display: block !important;
	margin: 0 !important;
	min-width: 0 !important;
}
#pitch .cm-pcard-freshline .cm-freshbar {
	width: 100% !important;
	height: 7px !important;
	margin: 0 !important;
}
#pitch .cm-slot-switch {
	position: static !important;
	width: 28px !important;
	height: 22px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 7px !important;
	border: 1px solid rgba(141, 241, 255, 0.42) !important;
	background: linear-gradient(180deg, rgba(30, 79, 255, 0.95), rgba(22, 57, 199, 0.95)) !important;
	color: #ffffff !important;
	font-size: 12px !important;
	text-decoration: none !important;
	box-shadow: 0 5px 14px rgba(30,79,255,0.32) !important;
}
.cm-squad-table td.cm-fresh {
	display: grid !important;
	grid-template-columns: auto minmax(58px, 1fr) auto !important;
	gap: 8px !important;
	align-items: center !important;
	white-space: nowrap !important;
}
.cm-squad-table td.cm-fresh .cm-fresh-label,
.cm-squad-table td.cm-fresh .cm-fresh-value {
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
}
.cm-squad-table td.cm-fresh .cm-freshbar {
	width: 100% !important;
	min-width: 48px !important;
}
.cm-next-match-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 760px) !important;
	justify-content: center !important;
	max-width: 980px !important;
	margin: 0 auto 14px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.cm-next-match-grid .span3 {
	display: none !important;
}
.cm-next-match-grid > [class*="span"] {
	width: auto !important;
	margin: 0 !important;
}
.cm-nextmatch-card {
	min-height: 92px !important;
	padding: 12px 16px !important;
	border-color: rgba(77, 227, 255, 0.28) !important;
	background: linear-gradient(135deg, rgba(13, 27, 46, 0.94), rgba(18, 35, 61, 0.88)) !important;
}
.cm-nextmatch-top {
	justify-content: center !important;
	color: #b8c7e0 !important;
}
.cm-nextmatch-teams {
	grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr) !important;
}
.modal[id^="subModal"],
.modal.cm-sub-modal-open {
	z-index: 20050 !important;
	width: min(720px, calc(100vw - 32px)) !important;
	max-width: none !important;
	left: 50% !important;
	top: 10% !important;
	margin-left: 0 !important;
	transform: translateX(-50%) !important;
	border: 1px solid rgba(77, 227, 255, 0.28) !important;
	background: #071426 !important;
	color: #ffffff !important;
	box-shadow: 0 26px 80px rgba(0,0,0,0.65) !important;
	pointer-events: auto !important;
}
.modal[id^="subModal"].cm-sub-modal-open {
	display: block !important;
	opacity: 1 !important;
}
.modal[id^="subModal"] .modal-header {
	background: linear-gradient(180deg, #1e4fff, #1639c7) !important;
	border-bottom: 1px solid rgba(141, 241, 255, 0.22) !important;
	color: #ffffff !important;
}
.modal[id^="subModal"] .modal-body,
.modal[id^="subModal"] .modal-footer {
	background: #071426 !important;
	color: #ffffff !important;
	border-color: rgba(77, 227, 255, 0.18) !important;
}
.modal[id^="subModal"] label,
.modal[id^="subModal"] .control-label {
	color: #ffffff !important;
	opacity: 1 !important;
}
.modal[id^="subModal"] input,
.modal[id^="subModal"] select {
	background: #0d1b2e !important;
	border: 1px solid rgba(77, 227, 255, 0.34) !important;
	color: #ffffff !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.modal-backdrop.cm-sub-modal-backdrop {
	z-index: 20040 !important;
	opacity: 0.62 !important;
	background: #02070f !important;
}

/* FTG formation restore: wide pitch first, readable cards, modern squad list */
.cm-formation-main {
	grid-template-columns: minmax(780px, 1fr) minmax(360px, 440px) !important;
	gap: 14px !important;
	width: 100% !important;
	max-width: none !important;
	align-items: start !important;
}
.cm-formation-left,
.cm-pitch-col {
	min-width: 0 !important;
	width: 100% !important;
}
.cm-formation-right {
	min-width: 360px !important;
	max-width: 440px !important;
}
.cm-pitch-wrap {
	width: 100% !important;
	overflow-x: auto !important;
	overflow-y: visible !important;
}
.cm-pitch-wrap #pitch,
#pitch {
	width: 100% !important;
	min-width: 780px !important;
	max-width: none !important;
	height: 780px !important;
	background-size: 100% 100% !important;
}
#pitch .position {
	width: 138px !important;
	height: 112px !important;
}
#pitch .cm-pcard {
	grid-template-rows: auto auto auto !important;
	gap: 5px !important;
	padding: 7px 8px !important;
	overflow: hidden !important;
}
#pitch .cm-pcard-top {
	grid-template-columns: minmax(0, 1fr) 34px !important;
	gap: 6px !important;
	align-items: start !important;
}
#pitch .cm-pcard-top > div:first-child {
	grid-template-columns: 34px minmax(0, 1fr) !important;
	gap: 7px !important;
	align-items: center !important;
}
#pitch .cm-pcard-photo {
	width: 34px !important;
	height: 34px !important;
}
#pitch .cm-pcard-name {
	font-size: 11px !important;
	line-height: 1.08 !important;
	max-width: none !important;
}
#pitch .cm-pcard-pos {
	font-size: 9px !important;
	line-height: 1.08 !important;
}
#pitch .cm-pcard-strength {
	min-width: 32px !important;
	height: 24px !important;
	font-size: 13px !important;
}
#pitch .cm-pcard-attrs {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 1px 7px !important;
	margin: 0 !important;
	font-size: 9px !important;
	line-height: 1.05 !important;
	color: #f5ce65 !important;
}
#pitch .cm-pcard-attrs .cm-attr {
	display: flex !important;
	justify-content: space-between !important;
	gap: 3px !important;
	min-width: 0 !important;
	white-space: nowrap !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.72) !important;
}
#pitch .cm-pcard-footer {
	grid-template-columns: minmax(0, 1fr) 28px !important;
	gap: 7px !important;
	align-items: end !important;
}

.cm-formation-right .cm-panel-body {
	padding: 10px !important;
}
.cm-squad-table,
.cm-squad-table tbody {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	border-collapse: separate !important;
	table-layout: auto !important;
}
.cm-squad-table thead {
	display: none !important;
}
.cm-squad-table tr.cm-row-main {
	display: grid !important;
	grid-template-columns: 58px minmax(0, 1fr) 46px !important;
	grid-template-areas:
		"pos name strength"
		"pos np strength"
		"fresh fresh fresh"
		"actions actions actions" !important;
	gap: 8px 10px !important;
	margin: 0 !important;
	padding: 12px !important;
	border: 1px solid rgba(77, 227, 255, 0.16) !important;
	border-bottom: 0 !important;
	border-radius: 10px 10px 0 0 !important;
	background: linear-gradient(145deg, rgba(13, 27, 46, 0.94), rgba(10, 25, 46, 0.86)) !important;
}
.cm-squad-table tr.cm-row-main + tr.cm-row-attrs {
	display: block !important;
	margin: -1px 0 12px !important;
	padding: 0 !important;
	border: 1px solid rgba(77, 227, 255, 0.16) !important;
	border-top: 0 !important;
	border-radius: 0 0 10px 10px !important;
	background: rgba(13, 27, 46, 0.92) !important;
}
.cm-squad-table tr.cm-row-main td,
.cm-squad-table tr.cm-row-attrs td {
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	white-space: normal !important;
}
.cm-squad-table td.cm-pos {
	grid-area: pos !important;
	width: 56px !important;
	height: 56px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid rgba(243, 201, 105, 0.5) !important;
	border-radius: 8px !important;
	color: #f5ce65 !important;
	font-size: 18px !important;
	font-weight: 900 !important;
	line-height: 1.05 !important;
	text-align: center !important;
}
.cm-squad-table td.cm-name {
	grid-area: name !important;
	align-self: end !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	line-height: 1.15 !important;
}
.cm-squad-table td.cm-name strong {
	display: block !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}
.cm-squad-table td.cm-np {
	grid-area: np !important;
	display: block !important;
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
}
.cm-squad-table td.cm-np::before {
	content: "Neben ";
	color: #4de3ff;
	font-weight: 900;
}
.cm-squad-table td.cm-strength {
	grid-area: strength !important;
	align-self: start !important;
	justify-self: end !important;
	width: 42px !important;
	height: 42px !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, rgba(30, 79, 255, 0.86), rgba(22, 57, 199, 0.84)) !important;
	border: 1px solid rgba(141, 241, 255, 0.22) !important;
	color: #f5ce65 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 15px !important;
	font-weight: 900 !important;
}
.cm-squad-table td.cm-form,
.cm-squad-table td.cm-stamina {
	display: none !important;
}
.cm-squad-table td.cm-fresh {
	grid-area: fresh !important;
	display: grid !important;
	grid-template-columns: auto minmax(90px, 1fr) auto !important;
	gap: 8px !important;
	align-items: center !important;
	padding-top: 3px !important;
}
.cm-squad-table td.cm-fresh .cm-fresh-label,
.cm-squad-table td.cm-fresh .cm-fresh-value {
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
}
.cm-squad-table td.cm-actions {
	grid-area: actions !important;
}
.cm-squad-table .cm-actions-wrap {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 8px !important;
	width: 100% !important;
	margin-top: 2px !important;
}
.cm-squad-table .cm-actions-wrap .cm-action-btn {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	white-space: nowrap !important;
}
.cm-row-attrs-wrap {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 8px !important;
	padding: 10px 12px !important;
}
.cm-row-attr-item {
	display: flex !important;
	justify-content: space-between !important;
	gap: 4px !important;
	color: #4de3ff !important;
	font-size: 12px !important;
	font-weight: 900 !important;
}

@media (min-width: 1500px) {
	.cm-formation-main {
		grid-template-columns: minmax(940px, 1fr) 430px !important;
	}
}
@media (max-width: 1180px) {
	.cm-formation-main {
		grid-template-columns: 1fr !important;
	}
	.cm-formation-right {
		min-width: 0 !important;
		max-width: none !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 720px !important;
	}
}

/* FTG formation polish 20260613-v5:
   use the full page width, keep pitch cards readable and remove remaining red UI. */
body > .container {
	width: calc(100vw - 28px) !important;
	max-width: none !important;
	margin-left: 14px !important;
	margin-right: 14px !important;
}

#contentArea,
#contentArea.span12,
#contentArea .box,
#pagecontent,
.cm-formation {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box !important;
}

#contentArea .box {
	background: rgba(7, 20, 38, 0.44) !important;
	border-color: rgba(77, 227, 255, 0.18) !important;
}

.cm-formation-main {
	grid-template-columns: minmax(0, 1fr) clamp(380px, 24vw, 480px) !important;
	gap: 16px !important;
	width: 100% !important;
	max-width: none !important;
	overflow: visible !important;
}

.cm-formation-left,
.cm-pitch-col,
.pitchColumn {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}

.cm-formation-right {
	min-width: 0 !important;
	max-width: none !important;
	width: 100% !important;
	overflow: hidden !important;
}

.cm-formation-right .cm-panel,
.cm-formation-right .cm-panel-body {
	min-width: 0 !important;
	max-width: none !important;
	overflow-x: hidden !important;
}

.cm-pitch-wrap {
	width: 100% !important;
	overflow-x: hidden !important;
	overflow-y: visible !important;
	background: linear-gradient(145deg, rgba(7, 20, 38, 0.72), rgba(13, 27, 46, 0.44)) !important;
	border-color: rgba(77, 227, 255, 0.20) !important;
}

.cm-pitch-wrap #pitch,
#pitch {
	width: 100% !important;
	min-width: 960px !important;
	max-width: none !important;
	height: 760px !important;
	background-size: 100% 100% !important;
}

#pitch .position {
	width: 168px !important;
	height: 104px !important;
}

#pitch .cm-pcard {
	display: grid !important;
	grid-template-rows: auto auto auto !important;
	gap: 4px !important;
	padding: 7px 8px !important;
	background: linear-gradient(145deg, rgba(13, 27, 46, 0.96), rgba(8, 19, 35, 0.91)) !important;
	border: 1px solid rgba(77, 227, 255, 0.42) !important;
	border-radius: 7px !important;
	box-shadow: 0 10px 22px rgba(0,0,0,0.40), inset 0 1px 0 rgba(141,241,255,0.14) !important;
	overflow: hidden !important;
}

#pitch .cm-pcard-top {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 34px !important;
	gap: 7px !important;
	align-items: start !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-top > div:first-child {
	display: grid !important;
	grid-template-columns: 32px minmax(0, 1fr) !important;
	gap: 7px !important;
	align-items: center !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-photo {
	width: 32px !important;
	height: 32px !important;
	flex: 0 0 32px !important;
	border-color: rgba(77, 227, 255, 0.48) !important;
	border-radius: 999px !important;
}

#pitch .cm-pcard-name {
	display: block !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	line-height: 1.12 !important;
	max-width: 94px !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	text-shadow: 0 1px 3px rgba(0,0,0,0.86) !important;
}

#pitch .cm-pcard-pos {
	display: block !important;
	color: #b8c7e0 !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	max-width: 94px !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-strength {
	min-width: 32px !important;
	width: 34px !important;
	height: 24px !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #f7d56f, #f7d56f) !important;
	color: #071426 !important;
	font-size: 13px !important;
	font-weight: 950 !important;
}

#pitch .cm-pcard-attrs {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 0 8px !important;
	min-width: 0 !important;
	max-height: 28px !important;
	overflow: hidden !important;
	font-size: 9px !important;
	line-height: 1.15 !important;
	color: #f5ce65 !important;
}

#pitch .cm-pcard-attrs .cm-attr {
	display: flex !important;
	justify-content: space-between !important;
	gap: 4px !important;
	white-space: nowrap !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.80) !important;
}

#pitch .cm-pcard-footer {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 28px !important;
	gap: 7px !important;
	align-items: end !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-freshline {
	display: grid !important;
	grid-template-columns: minmax(62px, 1fr) !important;
	align-items: center !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-freshline::before {
	content: "Frische";
	display: block;
	color: #b8c7e0;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 2px;
}

#pitch .cm-pcard-freshline .cm-freshbar,
.cm-squad-table td.cm-fresh .cm-freshbar {
	display: block !important;
	visibility: visible !important;
	height: 8px !important;
	min-width: 62px !important;
	border-radius: 999px !important;
	background: rgba(36, 74, 143, 0.78) !important;
	border: 1px solid rgba(141, 241, 255, 0.22) !important;
	overflow: hidden !important;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.45) !important;
}

#pitch .cm-pcard-freshline .cm-freshbar > span,
.cm-squad-table td.cm-fresh .cm-freshbar > span {
	display: block !important;
	height: 100% !important;
	border-radius: 999px !important;
	background: linear-gradient(90deg, #4de3ff, #43d17a) !important;
}

#pitch .cm-slot-switch {
	width: 28px !important;
	height: 26px !important;
	border-radius: 7px !important;
	background: linear-gradient(180deg, #1e4fff, #1639c7) !important;
	border: 1px solid rgba(141, 241, 255, 0.38) !important;
	color: #ffffff !important;
	box-shadow: 0 3px 9px rgba(0,0,0,0.35) !important;
}

.cm-squad-panel,
.cm-bench-panel,
.cm-formation-right .cm-panel {
	background: linear-gradient(145deg, rgba(13, 27, 46, 0.93), rgba(7, 20, 38, 0.86)) !important;
	border-color: rgba(77, 227, 255, 0.22) !important;
	box-shadow: 0 16px 42px rgba(0,0,0,0.34) !important;
}

.cm-squad-panel .cm-panel-header,
.cm-formation-right .cm-panel-header,
.cm-bench-panel .cm-panel-header {
	background: linear-gradient(180deg, #2f62ff, #1e4fff 45%, #1639c7) !important;
	border-bottom: 1px solid rgba(141, 241, 255, 0.30) !important;
	color: #ffffff !important;
	text-transform: uppercase !important;
	letter-spacing: .4px !important;
}

.cm-squad-table,
.cm-squad-table tbody {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	overflow-x: hidden !important;
}

.cm-squad-table thead {
	display: none !important;
}

.cm-squad-table tr.cm-row-main {
	display: grid !important;
	grid-template-columns: 54px minmax(0, 1fr) 42px !important;
	grid-template-areas:
		"pos name strength"
		"pos np strength"
		"fresh fresh fresh"
		"actions actions actions" !important;
	gap: 7px 10px !important;
	padding: 11px !important;
	margin: 0 !important;
	border: 1px solid rgba(77, 227, 255, 0.18) !important;
	border-bottom: 0 !important;
	border-radius: 10px 10px 0 0 !important;
	background: linear-gradient(145deg, rgba(13, 27, 46, 0.94), rgba(7, 20, 38, 0.88)) !important;
}

.cm-squad-table tr.cm-row-main + tr.cm-row-attrs {
	display: block !important;
	margin: -1px 0 12px !important;
	border: 1px solid rgba(77, 227, 255, 0.18) !important;
	border-top: 0 !important;
	border-radius: 0 0 10px 10px !important;
	background: rgba(13, 27, 46, 0.90) !important;
}

.cm-squad-table tr.cm-row-main td,
.cm-squad-table tr.cm-row-attrs td {
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	white-space: normal !important;
}

.cm-squad-table td.cm-pos {
	grid-area: pos !important;
	width: 52px !important;
	height: 52px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid rgba(243, 201, 105, 0.58) !important;
	border-radius: 8px !important;
	color: #f5ce65 !important;
	font-size: 17px !important;
	font-weight: 950 !important;
	line-height: 1.05 !important;
	text-align: center !important;
	background: rgba(7, 20, 38, 0.55) !important;
}

.cm-squad-table td.cm-name {
	grid-area: name !important;
	align-self: end !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 900 !important;
	line-height: 1.15 !important;
	min-width: 0 !important;
}

.cm-squad-table td.cm-name strong {
	display: block !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.cm-squad-table td.cm-np {
	grid-area: np !important;
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.cm-squad-table td.cm-np::before {
	content: "Neben ";
	color: #4de3ff !important;
	font-weight: 950 !important;
}

.cm-squad-table td.cm-strength {
	grid-area: strength !important;
	align-self: start !important;
	justify-self: end !important;
	width: 40px !important;
	height: 40px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #2f62ff, #1639c7) !important;
	border: 1px solid rgba(141, 241, 255, 0.28) !important;
	color: #f5ce65 !important;
	font-size: 15px !important;
	font-weight: 950 !important;
}

.cm-squad-table td.cm-form,
.cm-squad-table td.cm-stamina {
	display: none !important;
}

.cm-squad-table td.cm-fresh {
	grid-area: fresh !important;
	display: grid !important;
	grid-template-columns: auto minmax(96px, 1fr) auto !important;
	gap: 7px !important;
	align-items: center !important;
	min-width: 0 !important;
	padding-top: 3px !important;
	white-space: nowrap !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-label::after {
	content: ":";
}

.cm-squad-table td.cm-fresh .cm-fresh-label,
.cm-squad-table td.cm-fresh .cm-fresh-value {
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 900 !important;
}

.cm-squad-table td.cm-actions {
	grid-area: actions !important;
	display: block !important;
}

.cm-squad-table .cm-actions-wrap {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)) !important;
	gap: 7px !important;
	width: 100% !important;
	margin-top: 2px !important;
}

.cm-squad-table .cm-actions-wrap .cm-action-btn,
.cm-mobile-actions .cm-action-btn,
.cm-bench-table .benchPlayerSubAdd,
.cm-bench-table .benchPlayerRemove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 30px !important;
	min-width: 0 !important;
	width: 100% !important;
	max-width: none !important;
	padding: 6px 8px !important;
	border: 1px solid rgba(77, 227, 255, 0.44) !important;
	border-radius: 6px !important;
	background: linear-gradient(180deg, #1e4fff, #1639c7) !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 850 !important;
	line-height: 1.15 !important;
	text-align: center !important;
	text-indent: 0 !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	text-shadow: none !important;
	box-sizing: border-box !important;
}

.cm-squad-table .cm-actions-wrap .cm-action-btn:hover,
.cm-mobile-actions .cm-action-btn:hover,
.cm-bench-table .benchPlayerSubAdd:hover,
.cm-bench-table .benchPlayerRemove:hover {
	background: linear-gradient(180deg, #4de3ff, #1e4fff) !important;
	color: #071426 !important;
	text-decoration: none !important;
}

.cm-row-attrs-wrap {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	padding: 9px 11px !important;
}

.cm-row-attr-item {
	color: #4de3ff !important;
	font-size: 12px !important;
}

.cm-bench-table,
.cm-bench-table tbody,
.cm-bench-table tr,
.cm-bench-table th,
.cm-bench-table td,
.benchposition,
.benchPlayerInfo,
.benchPlayerSubInfo {
	background: rgba(13, 27, 46, 0.88) !important;
	border-color: rgba(77, 227, 255, 0.18) !important;
	color: #ffffff !important;
}

.cm-bench-table th {
	color: #f5ce65 !important;
}

.cm-bench-table .benchPlayer,
.cm-bench-table .benchPlaceholder {
	color: #ffffff !important;
}

.cm-bench-table .benchAttrRow span,
.cm-bench-table .benchAttrRow strong,
.cm-bench-table .benchPlayerSubInfo {
	color: #b8c7e0 !important;
}

@media (min-width: 1700px) {
	.cm-formation-main {
		grid-template-columns: minmax(0, 1fr) 500px !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 1120px !important;
	}
	#pitch .position {
		width: 176px !important;
	}
	#pitch .cm-pcard-name,
	#pitch .cm-pcard-pos {
		max-width: 102px !important;
	}
}

@media (max-width: 1450px) {
	body > .container {
		width: calc(100vw - 20px) !important;
		margin-left: 10px !important;
		margin-right: 10px !important;
	}
	.cm-formation-main {
		grid-template-columns: minmax(0, 1fr) 390px !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 880px !important;
	}
	#pitch .position {
		width: 152px !important;
	}
	#pitch .cm-pcard-name,
	#pitch .cm-pcard-pos {
		max-width: 80px !important;
	}
	.cm-squad-table .cm-actions-wrap {
		grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)) !important;
	}
}

@media (max-width: 1180px) {
	.cm-formation-main {
		grid-template-columns: 1fr !important;
	}
	.cm-formation-right {
		width: 100% !important;
	}
	.cm-pitch-wrap {
		overflow-x: auto !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 780px !important;
	}
}

/* FTG formation polish 20260613-v6:
   Keep the full pitch readable and make the squad/bench panels fully blue. */
body > .container,
.container,
#pagecontent,
#contentArea,
.cm-formation,
.cm-formation-page {
	max-width: none !important;
}

body > .container {
	width: calc(100vw - 18px) !important;
	margin-left: 9px !important;
	margin-right: 9px !important;
}

.cm-formation-main {
	grid-template-columns: minmax(1040px, 1fr) clamp(350px, 21vw, 420px) !important;
	gap: 14px !important;
	align-items: start !important;
}

.cm-pitch-wrap {
	width: 100% !important;
	min-width: 0 !important;
	overflow-x: hidden !important;
}

.cm-pitch-wrap #pitch,
#pitch {
	width: 100% !important;
	min-width: 1040px !important;
	height: 760px !important;
}

#pitch .position {
	width: 190px !important;
	height: 104px !important;
	overflow: visible !important;
}

#pitch .cm-pcard {
	min-height: 104px !important;
	padding: 9px 10px 8px !important;
	background: linear-gradient(155deg, rgba(7, 20, 38, 0.96), rgba(18, 35, 61, 0.92)) !important;
	border: 1px solid rgba(77, 227, 255, 0.38) !important;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

#pitch .cm-pcard-top > div:first-child {
	display: grid !important;
	grid-template-columns: 38px minmax(0, 1fr) !important;
	gap: 8px !important;
	width: calc(100% - 46px) !important;
}

#pitch .cm-pcard-photo,
#pitch .cm-pcard-photo img,
#pitch .cm-pcard-photo-fallback {
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
}

#pitch .cm-pcard-name {
	max-width: none !important;
	width: 100% !important;
	color: #ffffff !important;
	font-size: 12.5px !important;
	font-weight: 950 !important;
	line-height: 1.12 !important;
	letter-spacing: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65) !important;
}

#pitch .cm-pcard-pos {
	max-width: none !important;
	width: 100% !important;
	color: #b8c7e0 !important;
	font-size: 10.5px !important;
	font-weight: 850 !important;
	line-height: 1.12 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-rating {
	right: 8px !important;
	top: 8px !important;
	min-width: 38px !important;
	height: 28px !important;
	font-size: 16px !important;
}

#pitch .cm-pcard-attrs {
	margin-top: 7px !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 3px 6px !important;
}

#pitch .cm-pcard-attr {
	font-size: 10.5px !important;
	line-height: 1.05 !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-freshline {
	display: grid !important;
	grid-template-columns: auto minmax(58px, 1fr) !important;
	gap: 6px !important;
	align-items: center !important;
	margin-top: 7px !important;
	color: #b8c7e0 !important;
	font-size: 10px !important;
}

#pitch .cm-pcard-freshline .cm-freshbar,
.cm-squad-table td.cm-fresh .cm-freshbar,
.cm-player-card .cm-freshbar {
	display: block !important;
	visibility: visible !important;
	height: 8px !important;
	min-width: 58px !important;
	border-radius: 999px !important;
	background: rgba(30, 79, 255, 0.25) !important;
	border: 1px solid rgba(77, 227, 255, 0.22) !important;
	overflow: hidden !important;
}

#pitch .cm-pcard-freshline .cm-freshbar > span,
.cm-squad-table td.cm-fresh .cm-freshbar > span,
.cm-player-card .cm-freshbar > span {
	display: block !important;
	height: 100% !important;
	border-radius: inherit !important;
	background: linear-gradient(90deg, #43d17a, #4de3ff) !important;
}

.cm-formation-right,
.cm-squad-panel,
.cm-bench-panel,
.cm-formation-right .cm-panel,
.cm-squad-table tr.cm-row-main,
.cm-squad-table tr.cm-row-main + tr.cm-row-attrs,
.cm-bench-table,
.cm-bench-table tbody,
.cm-bench-table tr,
.cm-bench-table td,
.cm-bench-table th,
.benchposition,
.benchPlayerInfo,
.benchPlayerSubInfo {
	background: rgba(13, 27, 46, 0.9) !important;
	border-color: rgba(77, 227, 255, 0.22) !important;
	color: #ffffff !important;
}

.cm-squad-panel .cm-panel-header,
.cm-formation-right .cm-panel-header,
.cm-bench-panel .cm-panel-header,
.cm-bench-table th {
	background: linear-gradient(180deg, #2f62ff 0%, #1e4fff 55%, #1639c7 100%) !important;
	color: #ffffff !important;
	border-color: rgba(77, 227, 255, 0.34) !important;
}

.cm-squad-panel,
.cm-formation-right {
	min-width: 0 !important;
	max-width: 100% !important;
	overflow-x: hidden !important;
}

.cm-squad-table,
.cm-squad-table tbody {
	width: 100% !important;
	min-width: 0 !important;
	overflow-x: hidden !important;
}

.cm-squad-table tr.cm-row-main {
	grid-template-columns: 50px minmax(0, 1fr) 38px !important;
	grid-template-areas:
		"pos name strength"
		"pos np strength"
		"fresh fresh fresh"
		"actions actions actions" !important;
	padding: 12px 10px 10px !important;
}

.cm-squad-table td.cm-name strong {
	color: #ffffff !important;
	font-size: 13.5px !important;
	font-weight: 950 !important;
}

.cm-squad-table td.cm-fresh {
	display: grid !important;
	grid-template-columns: auto minmax(86px, 1fr) auto !important;
	gap: 7px !important;
	align-items: center !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-label {
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 900 !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-label::after {
	content: ":" !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-value {
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 950 !important;
}

.cm-squad-table .cm-actions-wrap {
	grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)) !important;
	gap: 7px !important;
}

.cm-squad-table .cm-actions-wrap .cm-action-btn,
.cm-mobile-actions .cm-action-btn,
.cm-bench-table .benchPlayerSubAdd,
.cm-bench-table .benchPlayerRemove,
.benchPlayerSubAdd,
.benchPlayerRemove {
	min-height: 31px !important;
	padding: 7px 8px !important;
	background: linear-gradient(180deg, #1e4fff, #1639c7) !important;
	border: 1px solid rgba(77, 227, 255, 0.48) !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	text-indent: 0 !important;
	text-align: center !important;
	text-shadow: none !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
}

.cm-squad-table .cm-actions-wrap .cm-action-btn:hover,
.cm-mobile-actions .cm-action-btn:hover,
.cm-bench-table .benchPlayerSubAdd:hover,
.cm-bench-table .benchPlayerRemove:hover,
.benchPlayerSubAdd:hover,
.benchPlayerRemove:hover {
	background: linear-gradient(180deg, #4de3ff, #1e4fff) !important;
	color: #071426 !important;
}

@media (min-width: 1700px) {
	.cm-formation-main {
		grid-template-columns: minmax(1120px, 1fr) 420px !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 1120px !important;
		height: 780px !important;
	}
	#pitch .position {
		width: 198px !important;
	}
}

@media (max-width: 1450px) {
	.cm-formation-main {
		grid-template-columns: minmax(900px, 1fr) 370px !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 900px !important;
	}
	#pitch .position {
		width: 164px !important;
	}
	#pitch .cm-pcard-name {
		font-size: 11.5px !important;
	}
}

/* FTG formation polish 20260613-v7:
   Full player names on pitch, no red list panels, no horizontal list scrolling. */
html,
body {
	overflow-x: hidden !important;
}

body > .container {
	width: calc(100vw - 16px) !important;
	margin-left: 8px !important;
	margin-right: 8px !important;
}

.cm-formation-main {
	grid-template-columns: minmax(0, 1fr) clamp(460px, 26vw, 540px) !important;
	gap: 14px !important;
	width: 100% !important;
	max-width: none !important;
	overflow: visible !important;
}

.cm-pitch-wrap {
	overflow-x: hidden !important;
}

.cm-pitch-wrap #pitch,
#pitch {
	width: 100% !important;
	min-width: 860px !important;
	height: 748px !important;
}

#pitch .position {
	width: 178px !important;
	height: 88px !important;
	overflow: visible !important;
}

#pitch .cm-pcard {
	display: grid !important;
	grid-template-rows: minmax(0, 1fr) auto !important;
	min-height: 88px !important;
	padding: 8px 9px 7px !important;
}

#pitch .cm-pcard-top {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 38px !important;
	gap: 6px !important;
	align-items: start !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-top > div:first-child {
	display: grid !important;
	grid-template-columns: 30px minmax(0, 1fr) !important;
	gap: 7px !important;
	width: 100% !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-top > div:first-child > div:last-child {
	min-width: 0 !important;
	width: 100% !important;
}

#pitch .cm-pcard-photo,
#pitch .cm-pcard-photo img,
#pitch .cm-pcard-photo-fallback {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	border-radius: 999px !important;
}

#pitch .cm-pcard-name {
	display: block !important;
	max-width: none !important;
	width: 100% !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 950 !important;
	line-height: 1.08 !important;
	letter-spacing: 0 !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-pos {
	display: block !important;
	max-width: none !important;
	width: 100% !important;
	color: #b8c7e0 !important;
	font-size: 9.5px !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-rating {
	position: static !important;
	justify-self: end !important;
	min-width: 34px !important;
	height: 25px !important;
	padding: 0 9px !important;
	font-size: 15px !important;
}

#pitch .cm-pcard-score {
	display: flex !important;
	justify-content: flex-end !important;
}

#pitch .cm-pcard-attrs {
	display: none !important;
}

#pitch .cm-pcard-footer {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 28px !important;
	gap: 7px !important;
	align-items: center !important;
}

#pitch .cm-pcard-freshline {
	display: grid !important;
	grid-template-columns: auto minmax(54px, 1fr) auto !important;
	gap: 5px !important;
	align-items: center !important;
	margin-top: 0 !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-freshline::before {
	content: none !important;
}

#pitch .cm-pcard-freshline .cm-fresh-label,
#pitch .cm-pcard-freshline .cm-fresh-value {
	color: #b8c7e0 !important;
	font-size: 9px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-freshline .cm-freshbar {
	min-width: 0 !important;
	width: 100% !important;
	height: 7px !important;
}

#pitch .cm-slot-switch {
	width: 28px !important;
	height: 26px !important;
	min-width: 28px !important;
	padding: 0 !important;
}

.cm-formation-right,
.cm-squad-panel,
.cm-bench-panel,
.cm-formation-right .cm-panel,
.cm-squad-table tr.cm-row-main,
.cm-squad-table tr.cm-row-main + tr.cm-row-attrs,
.cm-bench-table,
.cm-bench-table tbody,
.cm-bench-table tr,
.cm-bench-table td,
.cm-bench-table th,
.benchposition,
.benchPlayerInfo,
.benchPlayerSubInfo {
	background: rgba(13, 27, 46, 0.92) !important;
	border-color: rgba(77, 227, 255, 0.24) !important;
	color: #ffffff !important;
}

.cm-squad-panel .cm-panel-header,
.cm-formation-right .cm-panel-header,
.cm-bench-panel .cm-panel-header,
.cm-bench-table th {
	background: linear-gradient(180deg, #2f62ff 0%, #1e4fff 55%, #1639c7 100%) !important;
	color: #ffffff !important;
}

.cm-squad-table,
.cm-squad-table tbody,
.cm-squad-panel,
.cm-formation-right {
	min-width: 0 !important;
	max-width: 100% !important;
	overflow-x: hidden !important;
}

.cm-squad-table tr.cm-row-main {
	grid-template-columns: 56px minmax(0, 1fr) 44px !important;
	grid-template-areas:
		"pos name strength"
		"pos np strength"
		"fresh fresh fresh"
		"actions actions actions" !important;
	padding: 12px 14px 11px !important;
}

.cm-squad-table td.cm-fresh {
	grid-template-columns: auto minmax(120px, 1fr) auto !important;
	gap: 8px !important;
}

.cm-squad-table td.cm-fresh .cm-freshbar {
	width: 100% !important;
	min-width: 120px !important;
}

.cm-squad-table .cm-actions-wrap {
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
	gap: 8px !important;
}

.cm-squad-table .cm-actions-wrap .cm-action-btn,
.cm-mobile-actions .cm-action-btn,
.benchPlayerSubAdd,
.benchPlayerRemove {
	color: #ffffff !important;
	background: linear-gradient(180deg, #1e4fff, #1639c7) !important;
	border-color: rgba(77, 227, 255, 0.5) !important;
	font-size: 12px !important;
	font-weight: 950 !important;
	text-align: center !important;
	overflow: visible !important;
	text-overflow: clip !important;
	white-space: normal !important;
}

@media (min-width: 1700px) {
	.cm-formation-main {
		grid-template-columns: minmax(0, 1fr) 520px !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 900px !important;
	}
	#pitch .position {
		width: 184px !important;
	}
}

@media (max-width: 1450px) {
	.cm-formation-main {
		grid-template-columns: minmax(0, 1fr) 430px !important;
	}
	.cm-pitch-wrap #pitch,
	#pitch {
		min-width: 820px !important;
	}
	#pitch .position {
		width: 164px !important;
	}
	#pitch .cm-pcard-name {
		font-size: 11px !important;
	}
}

/* FTG formation polish 20260613-v8:
   Keep full readable pitch names and explicit squad metric labels. */
.cm-formation-main {
	grid-template-columns: minmax(0, 1fr) clamp(500px, 27vw, 560px) !important;
	gap: 14px !important;
}

.cm-formation-right,
.cm-squad-panel,
.cm-bench-panel {
	overflow-x: hidden !important;
}

#pitch .position {
	width: 188px !important;
	height: 86px !important;
	overflow: visible !important;
}

#pitch .cm-pcard {
	position: relative !important;
	min-height: 86px !important;
	padding: 8px 9px 7px !important;
	overflow: hidden !important;
}

#pitch .cm-pcard-top {
	display: block !important;
	min-width: 0 !important;
	padding-right: 36px !important;
}

#pitch .cm-pcard-top > div:first-child {
	display: grid !important;
	grid-template-columns: 28px minmax(0, 1fr) !important;
	gap: 7px !important;
	align-items: start !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-name {
	display: block !important;
	max-width: 100% !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 950 !important;
	line-height: 1.05 !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-pos {
	display: block !important;
	max-width: 100% !important;
	margin-top: 2px !important;
	color: #b8c7e0 !important;
	font-size: 9.5px !important;
	font-weight: 850 !important;
	line-height: 1.05 !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-score {
	position: absolute !important;
	top: 7px !important;
	right: 8px !important;
	z-index: 3 !important;
	display: block !important;
	pointer-events: none !important;
}

#pitch .cm-pcard-strength,
#pitch .cm-pcard-rating {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 29px !important;
	width: auto !important;
	height: 21px !important;
	padding: 0 7px !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #f7d56f, #f7d56f) !important;
	color: #071426 !important;
	font-size: 12px !important;
	font-weight: 950 !important;
	line-height: 1 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .28) !important;
}

#pitch .cm-pcard-footer {
	position: absolute !important;
	left: 9px !important;
	right: 8px !important;
	bottom: 7px !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 28px !important;
	gap: 7px !important;
	align-items: center !important;
}

#pitch .cm-pcard-freshline {
	display: grid !important;
	grid-template-columns: auto minmax(44px, 1fr) auto !important;
	gap: 5px !important;
	align-items: center !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-freshline .cm-fresh-label,
#pitch .cm-pcard-freshline .cm-fresh-value {
	font-size: 9px !important;
	font-weight: 900 !important;
	white-space: nowrap !important;
}

.cm-squad-table,
.cm-squad-table tbody {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	overflow-x: hidden !important;
}

.cm-squad-table tr.cm-row-main {
	display: grid !important;
	grid-template-columns: 62px minmax(0, 1fr) 48px !important;
	grid-template-areas:
		"pos name strength"
		"pos np strength"
		"fresh fresh fresh"
		"form stamina stamina"
		"actions actions actions" !important;
	gap: 5px 12px !important;
	width: auto !important;
	max-width: 100% !important;
	padding: 13px 14px 12px !important;
}

.cm-squad-table td.cm-pos {
	grid-area: pos !important;
	width: 58px !important;
	min-width: 58px !important;
	max-width: 58px !important;
	height: 38px !important;
	align-self: start !important;
	justify-self: start !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
	white-space: nowrap !important;
	font-size: 17px !important;
	line-height: 1 !important;
}

.cm-squad-table td.cm-name {
	grid-area: name !important;
	min-width: 0 !important;
	align-self: end !important;
	overflow: hidden !important;
}

.cm-squad-table td.cm-name strong {
	display: block !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	font-size: 14px !important;
	line-height: 1.15 !important;
}

.cm-squad-table td.cm-np {
	grid-area: np !important;
	min-width: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.cm-squad-table td.cm-strength {
	grid-area: strength !important;
	justify-self: end !important;
	align-self: start !important;
}

.cm-squad-table td.cm-fresh {
	grid-area: fresh !important;
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) auto !important;
	gap: 8px !important;
	align-items: center !important;
	min-width: 0 !important;
	margin-top: 4px !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-label::after {
	content: ":" !important;
}

.cm-squad-table td.cm-form,
.cm-squad-table td.cm-stamina {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	width: auto !important;
	min-width: 0 !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	white-space: nowrap !important;
}

.cm-squad-table td.cm-form {
	grid-area: form !important;
	justify-self: start !important;
}

.cm-squad-table td.cm-stamina {
	grid-area: stamina !important;
	justify-self: start !important;
}

.cm-squad-table td.cm-form::before {
	content: "Form:" !important;
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 900 !important;
}

.cm-squad-table td.cm-stamina::before {
	content: "Kondition:" !important;
	color: #b8c7e0 !important;
	font-size: 12px !important;
	font-weight: 900 !important;
}

.cm-squad-table td.cm-actions {
	grid-area: actions !important;
	min-width: 0 !important;
}

.cm-squad-table .cm-actions-wrap {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)) !important;
	gap: 8px !important;
	width: 100% !important;
}

.cm-squad-table .cm-actions-wrap .cm-action-btn,
.cm-mobile-actions .cm-action-btn {
	min-height: 32px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 950 !important;
	line-height: 1.1 !important;
	text-align: center !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
}

@media (min-width: 1700px) {
	.cm-formation-main {
		grid-template-columns: minmax(0, 1fr) 540px !important;
	}
	#pitch .position {
		width: 196px !important;
	}
}

@media (max-width: 1450px) {
	.cm-formation-main {
		grid-template-columns: minmax(0, 1fr) 460px !important;
	}
	#pitch .position {
		width: 178px !important;
	}
	#pitch .cm-pcard-name {
		font-size: 11.5px !important;
	}
}

/* FTG formation polish 20260613-v9:
   Keep pitch names readable by moving the strength badge out of the title row. */
.cm-formation-main {
	grid-template-columns: minmax(0, 1fr) clamp(500px, 28vw, 560px) !important;
}

#pitch .position {
	width: 198px !important;
	height: 84px !important;
	overflow: visible !important;
}

#pitch .cm-pcard {
	position: relative !important;
	min-height: 84px !important;
	padding: 8px 9px 7px !important;
	overflow: hidden !important;
}

#pitch .cm-pcard-top {
	display: block !important;
	min-width: 0 !important;
	padding-right: 0 !important;
}

#pitch .cm-pcard-top > div:first-child {
	display: grid !important;
	grid-template-columns: 28px minmax(0, 1fr) !important;
	gap: 7px !important;
	align-items: start !important;
	width: 100% !important;
	min-width: 0 !important;
}

#pitch .cm-pcard-name {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	color: #ffffff !important;
	font-size: 12px !important;
	font-weight: 950 !important;
	line-height: 1.08 !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-pos {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-top: 2px !important;
	color: #b8c7e0 !important;
	font-size: 9.5px !important;
	font-weight: 850 !important;
	line-height: 1.05 !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	white-space: nowrap !important;
}

#pitch .cm-pcard-score {
	position: absolute !important;
	right: 40px !important;
	bottom: 8px !important;
	top: auto !important;
	z-index: 4 !important;
	display: block !important;
	pointer-events: none !important;
}

#pitch .cm-pcard-strength,
#pitch .cm-pcard-rating {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 31px !important;
	height: 21px !important;
	padding: 0 7px !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #f7d56f, #f7d56f) !important;
	color: #071426 !important;
	font-size: 12px !important;
	font-weight: 950 !important;
	line-height: 1 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .28) !important;
}

#pitch .cm-pcard-footer {
	position: absolute !important;
	left: 9px !important;
	right: 8px !important;
	bottom: 7px !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 28px !important;
	gap: 43px !important;
	align-items: center !important;
}

#pitch .cm-pcard-freshline {
	display: grid !important;
	grid-template-columns: auto minmax(46px, 1fr) auto !important;
	gap: 5px !important;
	align-items: center !important;
	min-width: 0 !important;
}

.cm-squad-table tr.cm-row-main {
	grid-template-columns: 54px minmax(0, 1fr) 42px !important;
}

.cm-squad-table td.cm-pos {
	width: 54px !important;
	min-width: 54px !important;
	max-width: 54px !important;
	font-size: 16px !important;
	letter-spacing: 0 !important;
}

.cm-squad-table td.cm-form::before {
	content: "Form:" !important;
}

.cm-squad-table td.cm-stamina::before {
	content: "Kondition:" !important;
}

@media (min-width: 1700px) {
	#pitch .position {
		width: 206px !important;
	}
}

@media (max-width: 1450px) {
	.cm-formation-main {
		grid-template-columns: minmax(0, 1fr) 470px !important;
	}
	#pitch .position {
		width: 184px !important;
	}
	#pitch .cm-pcard-name {
		font-size: 11.5px !important;
	}
}

/* FTG formation polish 20260613-v10:
   Put the pitch strength badge above the slot switch and keep matchform readable. */
.cm-formation-topbar-right {
	display: grid !important;
	grid-template-columns: minmax(190px, 1.2fr) minmax(124px, .8fr) minmax(124px, .8fr) minmax(158px, .95fr) !important;
	gap: 10px !important;
	align-items: stretch !important;
	width: min(100%, 720px) !important;
	min-width: 0 !important;
}

.cm-formation-topbar-right .cm-topstat {
	min-width: 0 !important;
	overflow: visible !important;
}

#cmTeamForm {
	display: block !important;
	min-width: 120px !important;
	white-space: nowrap !important;
	overflow: visible !important;
	text-overflow: clip !important;
	font-size: 17px !important;
	letter-spacing: 0 !important;
}

#pitch .cm-pcard-score {
	top: 37px !important;
	right: 8px !important;
	bottom: auto !important;
	z-index: 5 !important;
}

#pitch .cm-pcard-footer {
	grid-template-columns: minmax(0, 1fr) 28px !important;
	gap: 7px !important;
}

#pitch .cm-pcard-freshline {
	padding-right: 45px !important;
}

@media (max-width: 1450px) {
	.cm-formation-topbar-right {
		grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
		width: min(100%, 470px) !important;
	}
}

/* FTG formation polish 20260613-v11:
   Render condition as a full progress bar below freshness in the squad list. */
.cm-squad-table tr.cm-row-main {
	grid-template-areas:
		"pos name strength"
		"pos np strength"
		"fresh fresh fresh"
		"stamina stamina stamina"
		"form form form"
		"actions actions actions" !important;
}

.cm-squad-table td.cm-fresh,
.cm-squad-table td.cm-stamina {
	display: grid !important;
	grid-template-columns: 78px minmax(0, 1fr) 42px !important;
	gap: 8px !important;
	align-items: center !important;
	min-width: 0 !important;
	width: auto !important;
}

.cm-squad-table td.cm-stamina {
	grid-area: stamina !important;
	margin-top: 1px !important;
}

.cm-squad-table td.cm-form {
	grid-area: form !important;
	justify-self: start !important;
	margin-top: 2px !important;
}

.cm-squad-table td.cm-stamina::before,
.cm-squad-table td.cm-fresh::before {
	content: none !important;
}

.cm-squad-table td.cm-stamina .cm-num {
	display: none !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-label,
.cm-squad-table td.cm-stamina .cm-stamina-label,
.cm-squad-table td.cm-fresh .cm-fresh-value,
.cm-squad-table td.cm-stamina .cm-stamina-value {
	color: #d7e1f5 !important;
	font-size: 13px !important;
	font-weight: 950 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-label::after,
.cm-squad-table td.cm-stamina .cm-stamina-label::after {
	content: ":" !important;
}

.cm-squad-table td.cm-fresh .cm-freshbar,
.cm-squad-table td.cm-stamina .cm-staminabar {
	display: block !important;
	min-width: 0 !important;
	height: 9px !important;
	border-radius: 999px !important;
	background: rgba(41, 71, 151, .72) !important;
	border: 1px solid rgba(126, 167, 255, .28) !important;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, .42) !important;
	overflow: hidden !important;
}

.cm-squad-table td.cm-fresh .cm-freshbar > span,
.cm-squad-table td.cm-stamina .cm-staminabar > span {
	display: block !important;
	height: 100% !important;
	max-width: 100% !important;
	border-radius: inherit !important;
	background: linear-gradient(90deg, #7ee0af, #73d7ff) !important;
}

/* FTG Aufstellung 2.0 · 20260724
   Final layout layer for Profi + Jugend formation pages. Keeps existing JS/dropdown logic intact. */
html body .container,
html body > .container {
	width: calc(100vw - 28px) !important;
	max-width: none !important;
	margin-left: 14px !important;
	margin-right: 14px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body #contentArea.span12,
body #contentArea {
	width: 100% !important;
	margin-left: 0 !important;
	float: none !important;
}

body #contentArea > .box {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 18px 20px 22px !important;
	box-sizing: border-box !important;
	background: linear-gradient(180deg, rgba(5,18,38,.90), rgba(4,14,30,.82)) !important;
	border: 1px solid rgba(54,110,205,.34) !important;
	border-radius: 10px !important;
	box-shadow: 0 22px 70px rgba(0,0,0,.35) !important;
}

body #contentArea > .box > .page-header,
body #contentArea > .box > .breadcrumb {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

#formationForm,
.cm-page-pane,
.cm-formation {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box !important;
}

.cm-top-match-form,
.cm-formation-strip {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin: 0 0 12px !important;
	padding: 10px 12px !important;
	background: rgba(6, 22, 48, .78) !important;
	border: 1px solid rgba(63, 124, 221, .28) !important;
	border-radius: 9px !important;
}

.cm-top-match-form select,
.cm-formation-strip select,
.cm-top-match-form .input-xxlarge,
.cm-formation-strip .input-xxlarge {
	min-width: 320px !important;
	max-width: min(620px, 52vw) !important;
	height: 38px !important;
	background: rgba(5, 16, 34, .94) !important;
	border: 1px solid rgba(103, 157, 255, .35) !important;
	color: #eaf2ff !important;
	border-radius: 7px !important;
}

.cm-next-match-grid {
	display: grid !important;
	grid-template-columns: minmax(420px, 1fr) minmax(280px, .42fr) !important;
	gap: 12px !important;
	margin: 0 0 12px !important;
}

.cm-next-match-grid > [class*="span"] {
	width: auto !important;
	margin-left: 0 !important;
	float: none !important;
}

.cm-nextmatch-card {
	min-height: 78px !important;
	background: linear-gradient(135deg, rgba(7, 33, 75, .95), rgba(8, 20, 43, .92)) !important;
	border: 1px solid rgba(65, 131, 232, .38) !important;
	border-radius: 10px !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.cm-next-match-grid table.table {
	margin: 0 !important;
	font-size: 12px !important;
}

.cm-formation-topbar {
	display: grid !important;
	grid-template-columns: minmax(260px, .9fr) minmax(600px, 1.5fr) !important;
	gap: 12px !important;
	padding: 12px !important;
	margin-bottom: 12px !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, rgba(6, 25, 55, .92), rgba(5, 17, 36, .86)) !important;
	border: 1px solid rgba(70, 132, 232, .30) !important;
}

.cm-formation-topbar-left {
	min-width: 0 !important;
}

.cm-formation-topbar-left .cm-title {
	font-size: 22px !important;
	line-height: 1.15 !important;
	letter-spacing: .02em !important;
}

.cm-formation-topbar-right {
	width: 100% !important;
	display: grid !important;
	grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
	gap: 8px !important;
}

.cm-topstat {
	min-height: 62px !important;
	padding: 10px 12px !important;
	border-radius: 9px !important;
	background: rgba(4, 16, 35, .86) !important;
	border: 1px solid rgba(68, 126, 218, .24) !important;
	overflow: hidden !important;
}

.cm-topstat-label {
	font-size: 11px !important;
	text-transform: uppercase !important;
	letter-spacing: .08em !important;
	color: #8fb4ef !important;
	font-weight: 900 !important;
}

.cm-topstat-value,
#cmTeamStrength,
#cmTeamChemistry,
#cmTeamForm {
	font-size: 24px !important;
	font-weight: 950 !important;
	color: #f3f7ff !important;
	white-space: nowrap !important;
}

.cm-teamvalues {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 4px !important;
	margin-top: 6px !important;
}

.cm-teamvalue {
	padding: 5px 4px !important;
	border-radius: 7px !important;
	background: rgba(16, 45, 88, .66) !important;
	text-align: center !important;
	font-size: 11px !important;
}

.cm-formation-main {
	display: grid !important;
	grid-template-columns: minmax(980px, 1.75fr) minmax(470px, .75fr) !important;
	gap: 14px !important;
	align-items: start !important;
	width: 100% !important;
	overflow: visible !important;
}

.cm-formation-left,
.cm-formation-right {
	min-width: 0 !important;
	width: 100% !important;
}

.cm-row-reset,
.cm-pitch-col,
.pitchColumn,
.cm-row-reset [class*="span"] {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin-left: 0 !important;
}

.cm-pitch-wrap {
	width: 100% !important;
	overflow: visible !important;
	background: linear-gradient(180deg, rgba(6, 24, 50, .72), rgba(4, 14, 29, .92)) !important;
	border: 1px solid rgba(71, 137, 236, .26) !important;
	border-radius: 12px !important;
	padding: 12px !important;
	box-sizing: border-box !important;
}

#pitch {
	position: relative !important;
	width: 100% !important;
	min-width: 920px !important;
	max-width: none !important;
	height: 570px !important;
	margin: 0 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background-size: cover !important;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 80px rgba(0,0,0,.34) !important;
}

#pitch .position {
	width: 142px !important;
	min-height: 74px !important;
	height: auto !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

#pitch .positionLabel {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 32px !important;
	height: 20px !important;
	padding: 0 7px !important;
	border-radius: 6px !important;
	background: rgba(10, 32, 63, .86) !important;
	border: 1px solid rgba(137, 180, 255, .34) !important;
	color: #dbe8ff !important;
	font-weight: 950 !important;
	font-size: 11px !important;
	text-shadow: 0 1px 2px rgba(0,0,0,.65) !important;
}

#pitch .position:not(.freePosition) .positionLabel {
	display: none !important;
}

#pitch .cm-pcard {
	width: 142px !important;
	min-height: 72px !important;
	padding: 6px 7px !important;
	border-radius: 8px !important;
	background: linear-gradient(135deg, rgba(5, 28, 67, .96), rgba(4, 15, 36, .94)) !important;
	border: 1px solid rgba(64, 135, 244, .44) !important;
	box-shadow: 0 10px 22px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.05) !important;
	box-sizing: border-box !important;
}

#pitch .T .cm-pcard {
	border-color: rgba(77, 163, 255, .70) !important;
}

#pitch .LV .cm-pcard,
#pitch .IV .cm-pcard,
#pitch .RV .cm-pcard {
	border-color: rgba(159, 177, 202, .58) !important;
}

#pitch .DM .cm-pcard,
#pitch .LM .cm-pcard,
#pitch .ZM .cm-pcard,
#pitch .RM .cm-pcard {
	border-color: rgba(75, 209, 133, .62) !important;
}

#pitch .OM .cm-pcard {
	border-color: rgba(246, 205, 79, .68) !important;
}

#pitch .LS .cm-pcard,
#pitch .MS .cm-pcard,
#pitch .RS .cm-pcard {
	border-color: rgba(255, 95, 95, .68) !important;
}

#pitch .cm-pcard-top > div:first-child {
	grid-template-columns: 31px minmax(0, 1fr) !important;
	gap: 6px !important;
}

#pitch .cm-pcard-photo {
	width: 31px !important;
	height: 31px !important;
	border-radius: 7px !important;
}

#pitch .cm-pcard-name {
	font-size: 12px !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
}

#pitch .cm-pcard-pos {
	font-size: 9.5px !important;
	color: #9fb3d0 !important;
}

#pitch .cm-pcard-attrs {
	display: none !important;
}

#pitch .cm-pcard-score {
	top: 5px !important;
	right: 6px !important;
}

#pitch .cm-pcard-strength {
	min-width: 25px !important;
	height: 20px !important;
	padding: 0 5px !important;
	font-size: 12px !important;
	border-radius: 6px !important;
}

#pitch .cm-pcard-footer {
	left: 7px !important;
	right: 6px !important;
	bottom: 6px !important;
	grid-template-columns: minmax(0, 1fr) 20px !important;
	gap: 5px !important;
}

#pitch .cm-pcard-freshline {
	grid-template-columns: minmax(44px, 1fr) 30px !important;
	padding-right: 0 !important;
}

#pitch .cm-pcard-freshline .cm-fresh-label {
	display: none !important;
}

#pitch .cm-freshbar {
	height: 6px !important;
	border-radius: 999px !important;
	background: rgba(28, 55, 101, .85) !important;
	overflow: hidden !important;
}

#pitch .cm-freshbar > span {
	background: linear-gradient(90deg, #75df80, #a6f184) !important;
}

#pitch .cm-slot-switch {
	width: 20px !important;
	height: 20px !important;
	border-radius: 6px !important;
}

.cm-bench-panel {
	margin-top: 12px !important;
}

.cm-bench-panel .cm-panel-header {
	padding-bottom: 6px !important;
}

.cm-bench-table,
.cm-bench-table tbody,
.cm-bench-table tr,
.cm-bench-table td {
	border: 0 !important;
	background: transparent !important;
}

.cm-bench-table thead {
	display: none !important;
}

.cm-bench-table tbody {
	display: grid !important;
	grid-template-columns: repeat(9, minmax(88px, 1fr)) !important;
	gap: 8px !important;
}

.cm-bench-table tr.benchposition {
	display: block !important;
	min-height: 72px !important;
	padding: 6px !important;
	border-radius: 8px !important;
	background: rgba(7, 24, 51, .86) !important;
	border: 1px solid rgba(91, 143, 226, .30) !important;
	box-sizing: border-box !important;
}

.cm-bench-table tr.benchposition td {
	display: block !important;
	padding: 0 !important;
}

.cm-bench-table tr.benchposition td + td {
	margin-top: 5px !important;
}

.benchPlayerInfo {
	min-height: 42px !important;
	position: relative !important;
}

.benchPlayerInfo .cm-pcard {
	width: 100% !important;
	min-height: 56px !important;
	padding: 5px 6px !important;
}

.benchPlayerInfo .cm-pcard-photo,
.benchPlayerInfo .cm-pcard-attrs,
.benchPlayerInfo .cm-formtrend,
.benchPlayerInfo .cm-pcard-pos {
	display: none !important;
}

.benchPlayerInfo .cm-pcard-name {
	font-size: 11px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.benchPlayerInfo .cm-pcard-strength {
	font-size: 12px !important;
	min-width: 24px !important;
	height: 19px !important;
}

.benchPlayerSubAdd {
	width: 100% !important;
	padding: 4px 5px !important;
	font-size: 10px !important;
	line-height: 1.1 !important;
	border-radius: 6px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	box-sizing: border-box !important;
}

.benchPlayerSubInfo {
	display: none !important;
}

.cm-squad-panel .cm-panel-header {
	display: grid !important;
	grid-template-columns: auto minmax(260px, 1fr) !important;
	gap: 10px !important;
	align-items: center !important;
}

.cm-panel-title {
	color: #f5ce65 !important;
	font-size: 13px !important;
	font-weight: 950 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
}

.cm-panel-filter {
	display: grid !important;
	grid-template-columns: minmax(150px, 1fr) 135px !important;
	gap: 8px !important;
	align-items: center !important;
}

.cm-squad-search,
.cm-filter-select {
	width: 100% !important;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 10px !important;
	border-radius: 7px !important;
	background: rgba(5, 16, 34, .96) !important;
	border: 1px solid rgba(92, 145, 235, .32) !important;
	color: #eaf2ff !important;
	box-sizing: border-box !important;
}

.cm-panel-body--squad,
.cm-squad-scroll {
	max-height: 620px !important;
	overflow: auto !important;
}

.cm-squad-table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 4px !important;
	display: table !important;
}

.cm-squad-table thead {
	display: table-header-group !important;
}

.cm-squad-table thead th {
	padding: 0 7px 5px !important;
	color: #8fb4ef !important;
	font-size: 10px !important;
	text-transform: uppercase !important;
	border: 0 !important;
}

.cm-squad-table tbody {
	display: table-row-group !important;
}

.cm-squad-table tr.cm-row-main {
	display: table-row !important;
	background: rgba(8, 29, 63, .72) !important;
	border-radius: 6px !important;
}

.cm-squad-table tr.cm-row-attrs {
	display: none !important;
}

.cm-squad-table tr.cm-row-main td {
	display: table-cell !important;
	vertical-align: middle !important;
	padding: 5px 7px !important;
	border-top: 1px solid rgba(69, 122, 207, .14) !important;
	border-bottom: 1px solid rgba(69, 122, 207, .14) !important;
	background: rgba(7, 27, 60, .74) !important;
	min-width: 0 !important;
}

.cm-squad-table tr.cm-row-main td:first-child {
	border-left: 1px solid rgba(69, 122, 207, .14) !important;
	border-radius: 6px 0 0 6px !important;
}

.cm-squad-table tr.cm-row-main td:last-child {
	border-right: 1px solid rgba(69, 122, 207, .14) !important;
	border-radius: 0 6px 6px 0 !important;
}

.cm-squad-table td.cm-pos {
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	text-align: center !important;
	font-size: 11px !important;
}

.cm-squad-table td.cm-np {
	width: 82px !important;
	max-width: 82px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	color: #b9c9e5 !important;
	font-size: 11px !important;
}

.cm-squad-table td.cm-name {
	width: auto !important;
	min-width: 145px !important;
	font-size: 12px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.cm-squad-table td.cm-strength {
	width: 52px !important;
	text-align: center !important;
}

.cm-squad-table .cm-strength .cm-num {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 28px !important;
	height: 28px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(246, 203, 72, .75) !important;
	color: #f5ce65 !important;
	background: rgba(246, 203, 72, .08) !important;
	font-weight: 950 !important;
}

.cm-squad-table td.cm-fresh,
.cm-squad-table td.cm-stamina {
	width: 95px !important;
	display: table-cell !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-label,
.cm-squad-table td.cm-stamina .cm-stamina-label {
	display: none !important;
}

.cm-squad-table td.cm-fresh .cm-freshbar,
.cm-squad-table td.cm-stamina .cm-staminabar {
	display: inline-block !important;
	width: 52px !important;
	height: 6px !important;
	margin-right: 6px !important;
	vertical-align: middle !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-value,
.cm-squad-table td.cm-stamina .cm-stamina-value {
	display: inline-block !important;
	width: 30px !important;
	font-size: 11px !important;
}

.cm-squad-table td.cm-form {
	width: 58px !important;
	font-size: 11px !important;
}

.cm-squad-table td.cm-actions {
	width: 84px !important;
}

.cm-actions-wrap {
	display: flex !important;
	gap: 4px !important;
	justify-content: flex-end !important;
	flex-wrap: nowrap !important;
	overflow: hidden !important;
}

.cm-action-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 24px !important;
	padding: 0 7px !important;
	border-radius: 6px !important;
	font-size: 10px !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

.cm-actions-wrap .cm-action-btn:nth-child(n+3) {
	display: none !important;
}

.cm-lineup-widgets {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 10px !important;
	margin-top: 12px !important;
}

.cm-widget-teamrow {
	display: flex !important;
	gap: 10px !important;
	align-items: center !important;
	margin-bottom: 10px !important;
}

.cm-widget-teamrow img {
	width: 44px !important;
	height: 44px !important;
	object-fit: contain !important;
}

.cm-widget-teamrow strong {
	display: block !important;
	color: #fff !important;
	font-size: 14px !important;
}

.cm-widget-teamrow span {
	display: block !important;
	color: #9eb2d2 !important;
	font-size: 12px !important;
}

.cm-widget-kpis {
	display: grid !important;
	gap: 7px !important;
}

.cm-widget-kpis span {
	display: flex !important;
	justify-content: space-between !important;
	gap: 10px !important;
	border-bottom: 1px solid rgba(91, 142, 226, .16) !important;
	padding-bottom: 6px !important;
	color: #aebbd0 !important;
}

.cm-widget-kpis b {
	color: #f4f7ff !important;
	text-align: right !important;
}

.cm-warning-list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid !important;
	gap: 7px !important;
}

.cm-warning-list li {
	color: #d6e3f8 !important;
	font-size: 12px !important;
}

.cm-warning-list li::before {
	content: "⚠";
	color: #f5ce65;
	margin-right: 7px;
}

.cm-warning-list li.is-good::before {
	content: "✓";
	color: #6ade82;
}

.cm-warning-list li.is-info::before {
	content: "ⓘ";
	color: #73b7ff;
}

.cm-muted-note {
	margin: 12px 0 0 !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
	background: rgba(7, 25, 55, .62) !important;
	border: 1px solid rgba(70, 132, 232, .18) !important;
}

@media (min-width: 1780px) {
	.cm-formation-main {
		grid-template-columns: minmax(1120px, 1.9fr) minmax(520px, .78fr) !important;
	}
	#pitch {
		min-width: 1060px !important;
		height: 610px !important;
	}
	#pitch .position,
	#pitch .cm-pcard {
		width: 156px !important;
	}
}

@media (max-width: 1500px) {
	body #contentArea > .box {
		padding-left: 14px !important;
		padding-right: 14px !important;
	}
	.cm-formation-main {
		grid-template-columns: minmax(830px, 1.45fr) minmax(420px, .75fr) !important;
	}
	#pitch {
		min-width: 800px !important;
		height: 540px !important;
	}
	#pitch .position,
	#pitch .cm-pcard {
		width: 128px !important;
	}
	.cm-bench-table tbody {
		grid-template-columns: repeat(5, minmax(96px, 1fr)) !important;
	}
}

@media (max-width: 1180px) {
	.cm-next-match-grid,
	.cm-formation-topbar,
	.cm-formation-main {
		grid-template-columns: 1fr !important;
	}
	.cm-formation-right {
		order: 2 !important;
	}
	.cm-pitch-wrap {
		overflow-x: auto !important;
	}
	#pitch {
		width: 920px !important;
		min-width: 920px !important;
	}
	.cm-formation-topbar-right {
		grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
	}
	.cm-bench-table tbody {
		grid-template-columns: repeat(3, minmax(110px, 1fr)) !important;
	}
}

/* FTG Aufstellung 2.0 · hard mockup pass 20260724
   This final layer intentionally wins against all legacy formation table/card rules above. */
body #contentArea > .box {
	padding: 16px 18px 20px !important;
	background: linear-gradient(180deg, rgba(2, 15, 35, .96), rgba(3, 12, 28, .94)) !important;
	border-color: rgba(32, 93, 185, .42) !important;
}

body #contentArea .page-header {
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: 0 !important;
}

body #contentArea .page-header h1 {
	margin: 0 !important;
	font-size: 25px !important;
	line-height: 1.15 !important;
	font-weight: 950 !important;
	letter-spacing: .02em !important;
	color: #f3f7ff !important;
	text-shadow: 0 2px 14px rgba(0,0,0,.55) !important;
}

.cm-top-match-form,
.cm-formation-strip,
.cm-config-tabs {
	background: rgba(4, 18, 42, .86) !important;
	border: 1px solid rgba(53, 116, 218, .34) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.cm-top-match-form,
.cm-formation-strip {
	min-height: 46px !important;
	padding: 8px 10px !important;
	gap: 10px !important;
	flex-wrap: nowrap !important;
}

.cm-top-match-form .btn,
.cm-formation-strip .btn,
.cm-config-actions .btn {
	background: linear-gradient(180deg, #174fc8, #0d3190) !important;
	border: 1px solid rgba(94, 150, 255, .55) !important;
	color: #fff !important;
	text-shadow: none !important;
	border-radius: 7px !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 18px rgba(0,0,0,.25) !important;
}

.cm-top-match-form .btn:hover,
.cm-formation-strip .btn:hover,
.cm-config-actions .btn:hover {
	background: linear-gradient(180deg, #2464ed, #123cad) !important;
	color: #fff !important;
}

.cm-config-tabs {
	margin: 10px 0 10px !important;
	padding: 0 !important;
	border-radius: 8px !important;
	display: flex !important;
	align-items: stretch !important;
	justify-content: space-between !important;
	gap: 10px !important;
}

.cm-config-tabbar {
	display: flex !important;
	gap: 2px !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

.cm-config-tab {
	height: 38px !important;
	padding: 0 18px !important;
	border-radius: 0 !important;
	border: 0 !important;
	border-right: 1px solid rgba(85, 143, 239, .22) !important;
	background: rgba(5, 20, 45, .74) !important;
	color: #c9d7ef !important;
	font-size: 13px !important;
	font-weight: 900 !important;
	text-transform: uppercase !important;
}

.cm-config-tab.is-active {
	background: linear-gradient(180deg, #1558d7, #0d3190) !important;
	color: #fff !important;
	box-shadow: inset 0 -2px 0 #f7d56f !important;
}

.cm-config-actions {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 5px 7px !important;
	flex: 0 0 auto !important;
}

.cm-config-actions input[type="text"] {
	height: 28px !important;
	max-width: 160px !important;
	background: rgba(3, 13, 30, .92) !important;
	color: #dce8ff !important;
	border-color: rgba(91, 143, 231, .34) !important;
}

.cm-next-match-grid {
	grid-template-columns: minmax(640px, 1.15fr) minmax(360px, .7fr) !important;
	gap: 10px !important;
	margin: 0 0 10px !important;
}

.cm-nextmatch-card {
	min-height: 82px !important;
	padding: 12px !important;
}

.cm-formation-topbar {
	grid-template-columns: minmax(360px, 1fr) minmax(690px, 1.55fr) !important;
	margin: 0 0 12px !important;
	padding: 13px 14px !important;
}

.cm-formation-topbar-left .cm-title {
	font-size: 26px !important;
}

.cm-formation-main {
	grid-template-columns: minmax(960px, 1.55fr) minmax(560px, .88fr) !important;
	gap: 14px !important;
	max-width: none !important;
}

.cm-pitch-wrap {
	padding: 10px !important;
}

#pitch {
	min-width: 0 !important;
	width: 100% !important;
	height: 530px !important;
	background-position: center center !important;
}

#pitch .position,
#pitch .cm-pcard {
	width: 128px !important;
}

#pitch .cm-pcard {
	min-height: 66px !important;
	padding: 6px 7px !important;
	border-radius: 7px !important;
}

#pitch .cm-pcard-photo {
	width: 30px !important;
	height: 30px !important;
}

#pitch .cm-pcard-name {
	font-size: 12px !important;
	line-height: 1.05 !important;
	max-width: 70px !important;
}

#pitch .cm-pcard-pos {
	font-size: 9px !important;
}

#pitch .cm-pcard-strength {
	min-width: 30px !important;
	height: 22px !important;
	font-size: 14px !important;
}

#pitch .cm-pcard-attrs {
	display: none !important;
}

#pitch .cm-pcard-freshline {
	margin-top: 5px !important;
}

#pitch .cm-slot-switch {
	right: 4px !important;
	bottom: 4px !important;
	width: 25px !important;
	height: 23px !important;
}

.cm-squad-panel {
	overflow: hidden !important;
}

.cm-squad-panel .cm-panel-header {
	display: grid !important;
	grid-template-columns: 1fr minmax(300px, 1.15fr) !important;
	align-items: center !important;
	gap: 10px !important;
	background: linear-gradient(180deg, #1c56dd, #102f90) !important;
	border-bottom: 1px solid rgba(114, 165, 255, .35) !important;
	padding: 10px 12px !important;
}

.cm-squad-panel .cm-panel-title {
	color: #f5ce65 !important;
	font-size: 15px !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	font-weight: 950 !important;
}

.cm-panel-filter {
	display: grid !important;
	grid-template-columns: 1fr 128px !important;
	gap: 8px !important;
	margin: 0 !important;
}

.cm-squad-search,
.cm-filter-select {
	height: 34px !important;
	border-radius: 7px !important;
	background: rgba(16, 54, 143, .74) !important;
	border: 1px solid rgba(122, 170, 255, .42) !important;
	color: #eaf2ff !important;
	box-shadow: none !important;
}

.cm-panel-body--squad {
	padding: 10px !important;
}

.cm-squad-scroll {
	max-height: 625px !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	padding-right: 2px !important;
}

.cm-squad-table,
.cm-squad-table thead,
.cm-squad-table tbody,
.cm-squad-table tr,
.cm-squad-table th,
.cm-squad-table td {
	display: revert !important;
}

.cm-squad-table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 4px !important;
	table-layout: fixed !important;
	background: transparent !important;
}

.cm-squad-table thead {
	position: sticky !important;
	top: 0 !important;
	z-index: 5 !important;
	background: rgba(4, 17, 40, .96) !important;
}

.cm-squad-table th {
	padding: 5px 5px !important;
	height: 25px !important;
	font-size: 9px !important;
	line-height: 1.1 !important;
	color: #7fa7e8 !important;
	background: rgba(4, 17, 40, .96) !important;
	border: 0 !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.cm-squad-table td {
	padding: 6px 5px !important;
	height: 31px !important;
	font-size: 11px !important;
	line-height: 1.15 !important;
	background: rgba(8, 32, 73, .76) !important;
	border-top: 1px solid rgba(60, 116, 210, .13) !important;
	border-bottom: 1px solid rgba(60, 116, 210, .13) !important;
	vertical-align: middle !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.cm-squad-table tr.cm-row-main:hover td {
	background: rgba(15, 57, 123, .82) !important;
}

.cm-squad-table tr.cm-row-attrs {
	display: none !important;
}

.cm-squad-table th:nth-child(1),
.cm-squad-table td.cm-pos {
	width: 46px !important;
}

.cm-squad-table th:nth-child(2),
.cm-squad-table td.cm-np {
	width: 92px !important;
}

.cm-squad-table th:nth-child(3),
.cm-squad-table td.cm-name {
	width: auto !important;
	min-width: 160px !important;
}

.cm-squad-table th:nth-child(4),
.cm-squad-table td.cm-strength {
	width: 58px !important;
}

.cm-squad-table th:nth-child(5),
.cm-squad-table td.cm-fresh {
	width: 84px !important;
}

.cm-squad-table th:nth-child(6),
.cm-squad-table td.cm-stamina {
	width: 86px !important;
}

.cm-squad-table th:nth-child(7),
.cm-squad-table td.cm-form {
	width: 62px !important;
}

.cm-squad-table th:nth-child(8),
.cm-squad-table td.cm-actions {
	width: 62px !important;
}

.cm-squad-table .cm-strength .cm-num {
	min-width: 27px !important;
	height: 27px !important;
	font-size: 13px !important;
}

.cm-squad-table td.cm-fresh .cm-freshbar,
.cm-squad-table td.cm-stamina .cm-staminabar {
	width: 44px !important;
	height: 6px !important;
	margin-right: 4px !important;
}

.cm-squad-table td.cm-fresh .cm-fresh-value,
.cm-squad-table td.cm-stamina .cm-stamina-value {
	width: 28px !important;
	font-size: 10px !important;
}

.cm-action-btn {
	height: 23px !important;
	padding: 0 6px !important;
	font-size: 9px !important;
}

.cm-panel-subs {
	margin-top: 10px !important;
}

.cm-panel-subs .cm-panel-header {
	min-height: 0 !important;
	padding: 9px 10px !important;
}

.cm-lineup-widgets .cm-panel {
	border-radius: 9px !important;
}

@media (min-width: 1840px) {
	.cm-formation-main {
		grid-template-columns: minmax(1080px, 1.6fr) minmax(650px, .9fr) !important;
	}
	#pitch {
		height: 590px !important;
	}
	#pitch .position,
	#pitch .cm-pcard {
		width: 142px !important;
	}
}

@media (max-width: 1500px) {
	.cm-formation-main {
		grid-template-columns: minmax(820px, 1.35fr) minmax(490px, .82fr) !important;
	}
	#pitch {
		height: 500px !important;
	}
	.cm-squad-table th:nth-child(6),
	.cm-squad-table td.cm-stamina,
	.cm-squad-table th:nth-child(7),
	.cm-squad-table td.cm-form {
		display: none !important;
	}
}

/* FTG Aufstellung 2.0 · bereinigtes Mockup-Layout 20260724-lineup24
   Diese Schicht ersetzt die widersprüchlichen Karten-/Grid-Regeln der alten
   Spielerliste bewusst durch eine echte kompakte Tabelle. */
@media (min-width: 1501px) {
	.cm-formation-main {
		display: grid !important;
		grid-template-columns: minmax(720px, 55fr) minmax(650px, 45fr) !important;
		align-items: start !important;
		gap: 12px !important;
		width: 100% !important;
	}

	.cm-formation-right {
		display: grid !important;
		grid-template-columns: minmax(430px, 1fr) minmax(245px, .46fr) !important;
		grid-template-rows: auto auto !important;
		align-items: start !important;
		gap: 10px !important;
		min-width: 0 !important;
	}

	.cm-formation-right > .cm-squad-panel {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.cm-formation-right > .cm-panel-subs {
		grid-column: 1 !important;
		grid-row: 2 !important;
		margin-top: 0 !important;
	}

	.cm-formation-right > .cm-lineup-widgets {
		grid-column: 2 !important;
		grid-row: 1 / span 2 !important;
		margin: 0 !important;
	}
}

.cm-formation-left,
.cm-pitch-col,
.pitchColumn.cm-pitch-col,
.cm-pitch-wrap {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin-left: 0 !important;
}

#pitch {
	height: 455px !important;
	min-height: 455px !important;
	max-height: 455px !important;
}

#pitch .position,
#pitch .cm-pcard {
	width: 116px !important;
}

#pitch .cm-pcard {
	min-height: 60px !important;
}

.cm-formation-topbar {
	grid-template-columns: minmax(300px, .8fr) minmax(720px, 1.75fr) !important;
}

.cm-formation-topbar-right {
	display: grid !important;
	grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(130px, .72fr)) !important;
	min-width: 0 !important;
}

.cm-topstat,
.cm-topstat-wide {
	min-width: 0 !important;
	overflow: visible !important;
}

.cm-teamvalues {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(50px, 1fr)) !important;
	gap: 5px !important;
	width: 100% !important;
}

.cm-teamvalue {
	min-width: 0 !important;
	padding: 5px 4px !important;
	white-space: nowrap !important;
	text-align: center !important;
}

/* Echte Tabelle: keine Kartenzeilen, keine zweite Attributzeile unter POS. */
table.cm-squad-table {
	display: table !important;
	width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
}

.cm-squad-table thead {
	display: table-header-group !important;
}

.cm-squad-table tbody {
	display: table-row-group !important;
}

.cm-squad-table tr.cm-row-main {
	display: table-row !important;
	position: static !important;
	height: 36px !important;
	transform: none !important;
}

.cm-squad-table tr.cm-row-attrs,
.cm-squad-table tr.cm-row-main + tr.cm-row-attrs {
	display: none !important;
}

.cm-squad-table tr.cm-row-main > td,
.cm-squad-table thead > tr > th {
	display: table-cell !important;
	position: static !important;
	float: none !important;
	inset: auto !important;
	transform: none !important;
	box-sizing: border-box !important;
}

.cm-squad-table th,
.cm-squad-table td {
	padding: 5px 6px !important;
	height: 34px !important;
	vertical-align: middle !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.cm-squad-table th:nth-child(1),
.cm-squad-table td.cm-pos {
	width: 48px !important;
}

.cm-squad-table th:nth-child(2),
.cm-squad-table td.cm-name {
	width: auto !important;
	min-width: 0 !important;
}

.cm-squad-table th:nth-child(3),
.cm-squad-table td.cm-strength {
	width: 56px !important;
}

.cm-squad-table th:nth-child(4),
.cm-squad-table td.cm-np {
	width: 86px !important;
}

.cm-squad-table th:nth-child(5),
.cm-squad-table td.cm-fresh {
	width: 82px !important;
}

.cm-squad-table th:nth-child(6),
.cm-squad-table td.cm-stamina {
	width: 86px !important;
}

.cm-squad-table th:nth-child(7),
.cm-squad-table td.cm-form {
	width: 62px !important;
}

.cm-squad-table th:nth-child(8),
.cm-squad-table td.cm-actions {
	width: 55px !important;
}

.cm-squad-table td.cm-name strong {
	display: block !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	color: #eef5ff !important;
}

.cm-squad-table .cm-actions-wrap {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 3px !important;
	max-width: 100% !important;
}

.cm-squad-table .cm-actions-wrap .cm-action-btn {
	display: none !important;
}

.cm-squad-table tr[data-section="squad"] .cm-actions-wrap .cm-action-btn[data-action="lineupmenu"],
.cm-squad-table tr[data-section="bench"] .cm-actions-wrap .cm-bench-picker {
	display: inline-flex !important;
	min-width: 34px;
	justify-content: center;
}

.cm-squad-scroll {
	max-height: 510px !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

/* Bank wie im Mockup: neun gleich breite, lesbare Karten mit eigenem Dropdown. */
.cm-bench-table,
.cm-bench-table tbody {
	display: grid !important;
	grid-template-columns: repeat(9, minmax(92px, 1fr)) !important;
	gap: 7px !important;
	width: 100% !important;
}

.cm-bench-table thead {
	display: none !important;
}

.cm-bench-table tr.benchposition {
	display: block !important;
	min-width: 0 !important;
	min-height: 112px !important;
	overflow: visible !important;
}

.cm-bench-table tr.benchposition td {
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 6px !important;
	overflow: visible !important;
}

.cm-bench-table tr.benchposition td + td {
	padding-top: 2px !important;
}

.cm-bench-table .benchPlaceholder,
.cm-bench-table .benchPlayer {
	display: block !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.cm-bench-slot-picker {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	width: 100% !important;
	min-height: 26px !important;
	margin-top: 5px !important;
	padding: 3px 5px !important;
	box-sizing: border-box !important;
	border: 1px solid rgba(92, 143, 235, .42) !important;
	border-radius: 5px !important;
	background: rgba(14, 46, 112, .86) !important;
	color: #edf4ff !important;
	font-size: 10px !important;
	text-decoration: none !important;
}

.cm-bench-table .benchPlayerSubAdd {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 26px !important;
	padding: 3px 5px !important;
	box-sizing: border-box !important;
	white-space: normal !important;
	overflow: visible !important;
	text-align: center !important;
	font-size: 10px !important;
	line-height: 1.15 !important;
}

.cm-benchmenu {
	width: min(460px, calc(100vw - 30px)) !important;
	max-height: 430px !important;
	overflow-y: auto !important;
}

.cm-benchmenu .cm-posmenu-item {
	display: flex !important;
	justify-content: space-between !important;
	gap: 12px !important;
	white-space: normal !important;
}

.cm-benchmenu .cm-posmenu-note {
	color: #99bdf5 !important;
	text-align: right !important;
}

@media (min-width: 1840px) {
	.cm-formation-main {
		grid-template-columns: minmax(820px, 55fr) minmax(760px, 45fr) !important;
	}

	#pitch {
		height: 485px !important;
		min-height: 485px !important;
		max-height: 485px !important;
	}

	#pitch .position,
	#pitch .cm-pcard {
		width: 122px !important;
	}
}

@media (max-width: 1500px) {
	.cm-formation-main {
		grid-template-columns: minmax(690px, 1.15fr) minmax(500px, .85fr) !important;
	}

	.cm-formation-right {
		display: block !important;
	}

	.cm-lineup-widgets {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 8px !important;
		margin-top: 10px !important;
	}

	.cm-bench-table,
	.cm-bench-table tbody {
		grid-template-columns: repeat(5, minmax(90px, 1fr)) !important;
	}
}

@media (max-width: 980px) {
	.cm-formation-main {
		display: block !important;
	}

	.cm-formation-topbar,
	.cm-formation-topbar-right {
		display: block !important;
	}

	.cm-bench-table,
	.cm-bench-table tbody {
		grid-template-columns: repeat(3, minmax(90px, 1fr)) !important;
	}
}

/* ============================================================
   Formation 2.0 – lineup25: freier Arbeitsbereich + Spielinfos
   ============================================================ */
.cm-config-tab {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 46px !important;
	padding: 10px 24px !important;
	box-sizing: border-box !important;
	text-align: center !important;
}

.cm-config-pane[data-cm-config-pane="taktik"],
.cm-config-pane[data-cm-config-pane="standards"] {
	width: min(100%, 980px) !important;
	margin: 20px auto 0 !important;
	padding: 22px 28px !important;
	box-sizing: border-box !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] > .form-horizontal,
.cm-config-pane[data-cm-config-pane="standards"] > .form-horizontal {
	width: min(100%, 780px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] > h4,
.cm-config-pane[data-cm-config-pane="taktik"] > p,
.cm-config-pane[data-cm-config-pane="taktik"] > .well,
.cm-config-pane[data-cm-config-pane="standards"] > h4,
.cm-config-pane[data-cm-config-pane="standards"] > p {
	width: min(100%, 900px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

.cm-spielinfos-pane {
	width: min(100%, 1280px) !important;
	margin: 20px auto 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.cm-config-tabs.is-spielinfos > .cm-config-actions,
.cm-config-tabs.is-spielinfos > .cm-config-actions + .muted.small {
	display: none !important;
}

.cm-spielinfos-host .cm-lineup-widgets {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 14px !important;
	width: 100% !important;
	margin: 0 !important;
}

.cm-spielinfos-host .cm-panel,
.cm-spielinfos-host > * {
	min-width: 0 !important;
	max-width: none !important;
	box-sizing: border-box !important;
}

@media (min-width: 981px) {
	.cm-formation-main {
		display: grid !important;
		grid-template-columns: minmax(650px, 1.18fr) minmax(560px, .82fr) !important;
		gap: 14px !important;
		align-items: start !important;
	}

	.cm-formation-left,
	.cm-formation-right {
		min-width: 0 !important;
		width: auto !important;
		max-width: none !important;
	}

	.cm-formation-right {
		display: flex !important;
		flex-direction: column !important;
		gap: 12px !important;
	}

	.cm-squad-panel,
	.cm-panel-subs {
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		grid-column: auto !important;
		grid-row: auto !important;
	}

	#pitch {
		height: 430px !important;
		min-height: 430px !important;
		max-height: 430px !important;
	}
}

@media (min-width: 1501px) {
	.cm-formation-main {
		grid-template-columns: minmax(720px, 1.16fr) minmax(620px, .84fr) !important;
	}
}

@media (min-width: 1840px) {
	.cm-formation-main {
		grid-template-columns: minmax(780px, 1.12fr) minmax(680px, .88fr) !important;
	}

	#pitch {
		height: 445px !important;
		min-height: 445px !important;
		max-height: 445px !important;
	}
}

@media (max-width: 980px) {
	.cm-config-tabbar {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.cm-config-tab {
		width: 100% !important;
		padding: 9px 12px !important;
	}

	.cm-spielinfos-host .cm-lineup-widgets {
		grid-template-columns: 1fr !important;
	}

	.cm-config-pane[data-cm-config-pane="taktik"],
	.cm-config-pane[data-cm-config-pane="standards"] {
		padding: 16px 12px !important;
	}
}

/* ============================================================
   Formation 2.0 – lineup26: mehr Spielfeld, klare Aktionen,
   neun sichere Bankplaetze und zentrierte Konfiguration
   ============================================================ */

/* Der rechte Listenrand bleibt sichtbar und erhaelt genug Platz
   fuer den einzigen kontextbezogenen Aktionsbutton. */
.cm-squad-table th:nth-child(1),
.cm-squad-table td.cm-pos {
	width: 44px !important;
}

.cm-squad-table th:nth-child(3),
.cm-squad-table td.cm-strength {
	width: 52px !important;
}

.cm-squad-table th:nth-child(4),
.cm-squad-table td.cm-np {
	width: 78px !important;
}

.cm-squad-table th:nth-child(5),
.cm-squad-table td.cm-fresh {
	width: 76px !important;
}

.cm-squad-table th:nth-child(6),
.cm-squad-table td.cm-stamina {
	width: 78px !important;
}

.cm-squad-table th:nth-child(7),
.cm-squad-table td.cm-form {
	width: 56px !important;
}

.cm-squad-table th:nth-child(8),
.cm-squad-table td.cm-actions {
	width: 82px !important;
	min-width: 82px !important;
	max-width: 82px !important;
	padding-left: 4px !important;
	padding-right: 4px !important;
	overflow: visible !important;
}

.cm-squad-table .cm-actions-wrap {
	width: 100% !important;
	min-width: 0 !important;
	overflow: visible !important;
}

.cm-squad-table tr[data-section="squad"] .cm-actions-wrap .cm-action-btn[data-action="lineupmenu"],
.cm-squad-table tr[data-section="bench"] .cm-actions-wrap .cm-bench-picker {
	width: 100% !important;
	min-width: 70px !important;
	max-width: none !important;
	min-height: 27px !important;
	padding: 4px 5px !important;
	box-sizing: border-box !important;
	justify-content: center !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	font-size: 10px !important;
	line-height: 1.1 !important;
}

/* Die Tabelle selbst ist nur der Rahmen; ausschliesslich tbody
   bildet das Neuner-Raster. So kann der letzte Platz nicht mehr
   ueber den linken Arbeitsbereich hinausragen. */
table.cm-bench-table {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

table.cm-bench-table > tbody {
	display: grid !important;
	grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
	gap: 5px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

table.cm-bench-table tr.benchposition {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	padding: 5px !important;
	box-sizing: border-box !important;
}

table.cm-bench-table tr.benchposition td {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

table.cm-bench-table .cm-bench-slot-picker,
table.cm-bench-table .benchPlayerSubAdd {
	min-width: 0 !important;
	padding-left: 2px !important;
	padding-right: 2px !important;
	font-size: 9px !important;
}

/* Taktik und Standards nutzen einen wirklich zentrierten,
   Bootstrap-unabhaengigen Formularaufbau. */
.cm-config-pane[data-cm-config-pane="taktik"],
.cm-config-pane[data-cm-config-pane="standards"] {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	float: none !important;
	transform: none !important;
	width: min(960px, calc(100% - 40px)) !important;
	max-width: 960px !important;
	margin: 24px auto !important;
	padding: 24px 30px !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .form-horizontal,
.cm-config-pane[data-cm-config-pane="standards"] .form-horizontal {
	float: none !important;
	width: min(100%, 780px) !important;
	max-width: 780px !important;
	margin: 10px auto !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .control-group,
.cm-config-pane[data-cm-config-pane="standards"] .control-group {
	display: grid !important;
	grid-template-columns: 210px minmax(0, 1fr) !important;
	align-items: center !important;
	gap: 18px !important;
	width: 100% !important;
	margin: 0 0 14px !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .control-label,
.cm-config-pane[data-cm-config-pane="standards"] .control-label {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .controls,
.cm-config-pane[data-cm-config-pane="standards"] .controls {
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .controls select,
.cm-config-pane[data-cm-config-pane="standards"] .controls select {
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] > h4,
.cm-config-pane[data-cm-config-pane="taktik"] > p,
.cm-config-pane[data-cm-config-pane="taktik"] > .well,
.cm-config-pane[data-cm-config-pane="standards"] > h4,
.cm-config-pane[data-cm-config-pane="standards"] > p {
	width: min(100%, 780px) !important;
	max-width: 780px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.cm-config-actions {
	justify-content: center !important;
	width: 100% !important;
	margin: 14px auto 0 !important;
}

/* In allen vier Bereichen gilt wieder die blaue Vereinssprache. */
.cm-formation-strip .btn,
.cm-config-actions .btn,
.cm-config-pane .btn {
	background: linear-gradient(180deg, #2f62ff 0%, #1e4fff 55%, #1639c7 100%) !important;
	border-color: rgba(91, 151, 255, .72) !important;
	color: #fff !important;
	text-shadow: none !important;
}

.cm-formation-strip .btn:hover,
.cm-config-actions .btn:hover,
.cm-config-pane .btn:hover {
	background: linear-gradient(180deg, #4778ff 0%, #285cff 55%, #1d46dc 100%) !important;
	border-color: rgba(116, 178, 255, .92) !important;
	color: #fff !important;
}

.cm-config-pane.cm-spielinfos-pane .cm-spielinfos-host .cm-panel {
	background: linear-gradient(180deg, rgba(9, 28, 57, .98), rgba(5, 19, 41, .98)) !important;
	border-color: rgba(70, 124, 232, .58) !important;
}

.cm-config-pane.cm-spielinfos-pane .cm-spielinfos-host .cm-panel .cm-panel-header {
	background: linear-gradient(180deg, #2f62ff 0%, #1e4fff 55%, #1639c7 100%) !important;
	border-color: rgba(91, 151, 255, .72) !important;
	color: #f5ce65 !important;
}

@media (min-width: 981px) {
	.cm-formation-main {
		grid-template-columns: minmax(700px, 1.16fr) minmax(620px, .84fr) !important;
	}

	#pitch {
		height: 500px !important;
		min-height: 500px !important;
		max-height: 500px !important;
	}

	table.cm-bench-table > tbody {
		grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1501px) {
	.cm-formation-main {
		grid-template-columns: minmax(780px, 1.15fr) minmax(660px, .85fr) !important;
	}

	#pitch {
		height: 510px !important;
		min-height: 510px !important;
		max-height: 510px !important;
	}
}

@media (min-width: 1840px) {
	.cm-formation-main {
		grid-template-columns: minmax(880px, 1.14fr) minmax(700px, .86fr) !important;
	}

	#pitch {
		height: 520px !important;
		min-height: 520px !important;
		max-height: 520px !important;
	}
}

@media (max-width: 980px) {
	table.cm-bench-table > tbody {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.cm-config-pane[data-cm-config-pane="taktik"],
	.cm-config-pane[data-cm-config-pane="standards"] {
		width: 100% !important;
		padding: 16px 12px !important;
	}

	.cm-config-pane[data-cm-config-pane="taktik"] .control-group,
	.cm-config-pane[data-cm-config-pane="standards"] .control-group {
		display: block !important;
	}

	.cm-config-pane[data-cm-config-pane="taktik"] .control-label,
	.cm-config-pane[data-cm-config-pane="standards"] .control-label {
		display: block !important;
		margin-bottom: 6px !important;
		text-align: left !important;
	}
}

/* Formation 2.0 – Layout-Pass 27 (muss nach allen älteren Overrides stehen) */
.cm-config-tabs,
.cm-config-tabbar,
.cm-config-tab {
	position: relative !important;
	z-index: 31 !important;
	pointer-events: auto !important;
}

.cm-formation-main,
.cm-formation-left,
.cm-formation-right,
.cm-pitch-col,
.cm-squad-panel,
.cm-squad-table {
	box-sizing: border-box !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.cm-formation-main,
.cm-formation-left,
.cm-formation-right,
.cm-pitch-col,
.cm-squad-table {
	width: 100% !important;
}

.cm-formation-main,
.cm-formation-right,
.cm-squad-panel {
	overflow: visible !important;
}

.cm-formation-left,
.cm-pitch-col {
	overflow: hidden !important;
}

.cm-squad-table {
	table-layout: fixed !important;
}

.cm-squad-table th:nth-child(1),
.cm-squad-table td:nth-child(1) { width: 42px !important; }
.cm-squad-table th:nth-child(3),
.cm-squad-table td:nth-child(3) { width: 52px !important; }
.cm-squad-table th:nth-child(4),
.cm-squad-table td:nth-child(4) { width: 76px !important; }
.cm-squad-table th:nth-child(5),
.cm-squad-table td:nth-child(5),
.cm-squad-table th:nth-child(6),
.cm-squad-table td:nth-child(6) { width: 74px !important; }
.cm-squad-table th:nth-child(7),
.cm-squad-table td:nth-child(7) { width: 58px !important; }
.cm-squad-table th:nth-child(8),
.cm-squad-table td:nth-child(8) { width: 44px !important; }

.cm-squad-table .cm-name,
.cm-squad-table .cm-np,
.cm-squad-table .cm-form {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.cm-actions,
.cm-actions-wrap {
	position: relative !important;
	overflow: visible !important;
}

.cm-actions-wrap {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.cm-row-action-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 28px !important;
	padding: 0 !important;
	border: 1px solid #4774ff !important;
	border-radius: 5px !important;
	background: linear-gradient(180deg, #315be2, #173ba8) !important;
	color: #fff !important;
	cursor: pointer !important;
}

.cm-row-action-menu {
	position: absolute !important;
	top: 0 !important;
	right: 34px !important;
	z-index: 5000 !important;
	display: none !important;
	width: 172px !important;
	padding: 6px !important;
	border: 1px solid #315eaa !important;
	border-radius: 7px !important;
	background: #07172d !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .48) !important;
}

.cm-actions-wrap.is-open .cm-row-action-menu {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
}

.cm-row-action-menu .cm-action-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	width: 100% !important;
	min-height: 29px !important;
	margin: 0 !important;
	padding: 5px 8px !important;
	border: 1px solid rgba(75, 116, 196, .55) !important;
	border-radius: 4px !important;
	background: #0d2444 !important;
	color: #f4f7ff !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: normal !important;
}

#formationForm .btn,
.cm-formation-strip .btn,
.cm-config-actions .btn,
.cm-config-pane .btn {
	border-color: #4774ff !important;
	background: linear-gradient(180deg, #315be2, #173ba8) !important;
	color: #fff !important;
	text-shadow: none !important;
}

@media (min-width: 1100px) {
	.cm-formation-main {
		display: grid !important;
		grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
		gap: 14px !important;
		align-items: start !important;
	}

	#pitch {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: 1.42 / 1 !important;
		overflow: hidden !important;
		background-size: 100% 100% !important;
	}
}

@media (max-width: 1099px) {
	.cm-formation-main { display: block !important; }
	.cm-formation-right { margin-top: 14px !important; }
	#pitch {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: 1.2 / 1 !important;
		background-size: 100% 100% !important;
	}
}

/* Formation 2.0 – verbindlicher Layout-Pass 28 */
.cm-config-tabs {
	position: relative !important;
	z-index: 100 !important;
	overflow: visible !important;
}

.cm-config-tabbar {
	display: flex !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	position: relative !important;
	z-index: 110 !important;
	pointer-events: auto !important;
}

.cm-config-tab {
	position: relative !important;
	z-index: 111 !important;
	pointer-events: auto !important;
}

.cm-config-pane,
.cm-page-pane {
	display: none !important;
}

.cm-config-pane.is-active,
.cm-page-pane.is-active {
	display: block !important;
}

.cm-config-pane[data-cm-config-pane="taktik"],
.cm-config-pane[data-cm-config-pane="standards"] {
	width: min(1120px, 100%) !important;
	margin: 18px auto 0 !important;
	padding: 22px 26px !important;
	box-sizing: border-box !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] > .form-horizontal,
.cm-config-pane[data-cm-config-pane="standards"] > .form-horizontal {
	width: min(900px, 100%) !important;
	margin: 0 auto !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .control-group,
.cm-config-pane[data-cm-config-pane="standards"] .control-group {
	display: grid !important;
	grid-template-columns: 230px minmax(300px, 1fr) !important;
	gap: 18px !important;
	align-items: center !important;
	width: 100% !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .control-label,
.cm-config-pane[data-cm-config-pane="standards"] .control-label {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	text-align: right !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] .controls,
.cm-config-pane[data-cm-config-pane="standards"] .controls {
	width: 100% !important;
	margin: 0 !important;
}

.cm-config-pane[data-cm-config-pane="taktik"] select,
.cm-config-pane[data-cm-config-pane="standards"] select {
	width: 100% !important;
	max-width: none !important;
}

.cm-formation-main,
.cm-formation-left,
.cm-formation-right,
.cm-pitch-col,
.cm-squad-panel,
.cm-squad-scroll {
	box-sizing: border-box !important;
	min-width: 0 !important;
	transform: none !important;
}

.cm-squad-panel,
.cm-squad-scroll {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

table.cm-squad-table {
	width: 100% !important;
	max-width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse !important;
}

.cm-squad-table th,
.cm-squad-table td {
	box-sizing: border-box !important;
	min-width: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

.cm-squad-table th:nth-child(1),
.cm-squad-table td:nth-child(1) { width: 44px !important; }
.cm-squad-table th:nth-child(2),
.cm-squad-table td:nth-child(2) { width: auto !important; }
.cm-squad-table th:nth-child(3),
.cm-squad-table td:nth-child(3) { width: 58px !important; }
.cm-squad-table th:nth-child(4),
.cm-squad-table td:nth-child(4) { width: 94px !important; }
.cm-squad-table th:nth-child(5),
.cm-squad-table td:nth-child(5) { width: 80px !important; }
.cm-squad-table th:nth-child(6),
.cm-squad-table td:nth-child(6) { width: 84px !important; }
.cm-squad-table th:nth-child(7),
.cm-squad-table td:nth-child(7) { width: 64px !important; }
.cm-squad-table th:nth-child(8),
.cm-squad-table td:nth-child(8) {
	width: 48px !important;
	overflow: visible !important;
}

.cm-actions-wrap {
	position: relative !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 100% !important;
	overflow: visible !important;
}

.cm-row-action-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	padding: 0 !important;
	border: 1px solid #4f7cff !important;
	border-radius: 6px !important;
	background: linear-gradient(180deg, #315ae5, #173bad) !important;
	color: #fff !important;
	font-size: 17px !important;
	line-height: 1 !important;
	cursor: pointer !important;
}

.cm-row-action-menu {
	display: none !important;
	position: absolute !important;
	top: -4px !important;
	right: 36px !important;
	z-index: 600 !important;
	width: 190px !important;
	padding: 7px !important;
	box-sizing: border-box !important;
	border: 1px solid #345da8 !important;
	border-radius: 7px !important;
	background: #07172d !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .5) !important;
	white-space: normal !important;
}

.cm-actions-wrap.is-open .cm-row-action-menu {
	display: grid !important;
	gap: 5px !important;
}

.cm-row-action-menu button,
.cm-row-action-menu a {
	width: 100% !important;
	margin: 0 !important;
	padding: 7px 9px !important;
	box-sizing: border-box !important;
	text-align: left !important;
	white-space: normal !important;
}

.cm-bench-panel,
.cm-bench-panel .cm-panel-body {
	width: 100% !important;
	max-width: 100% !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

table.cm-bench-table {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	table-layout: fixed !important;
	box-sizing: border-box !important;
}

table.cm-bench-table > tbody {
	display: grid !important;
	grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
	gap: 7px !important;
	width: 100% !important;
	padding: 10px !important;
	box-sizing: border-box !important;
}

table.cm-bench-table > tbody > tr {
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

table.cm-bench-table > tbody > tr > td {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 5px !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

.cm-bench-slot-picker,
.cm-bench-picker {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

#formationForm button:not(.cm-config-tab):not(.cm-row-action-toggle),
#formationForm a.btn,
.formationSelectionDropdownBtn,
.formationChooseBtn {
	border-color: #4f7cff !important;
	background: linear-gradient(180deg, #315ae5, #173bad) !important;
	color: #fff !important;
	text-shadow: none !important;
}

@media (min-width: 1280px) {
	.cm-formation-main {
		display: grid !important;
		grid-template-columns: minmax(0, 57%) minmax(0, 43%) !important;
		gap: 18px !important;
		align-items: start !important;
		width: 100% !important;
		max-width: none !important;
		overflow: visible !important;
	}

	.cm-formation-left,
	.cm-pitch-col {
		grid-column: 1 !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		float: none !important;
		left: auto !important;
		right: auto !important;
		position: relative !important;
		z-index: 1 !important;
		overflow: hidden !important;
	}

	.cm-formation-right {
		grid-column: 2 !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		float: none !important;
		left: auto !important;
		right: auto !important;
		position: relative !important;
		z-index: 2 !important;
		overflow: visible !important;
	}

	#pitch {
		width: 100% !important;
		height: clamp(620px, 36vw, 700px) !important;
		min-height: 620px !important;
		max-height: 700px !important;
		aspect-ratio: auto !important;
		background-size: 100% 100% !important;
		overflow: hidden !important;
	}
}

@media (max-width: 1279px) {
	.cm-formation-main {
		display: block !important;
		width: 100% !important;
	}

	.cm-formation-right {
		width: 100% !important;
		margin-top: 16px !important;
	}

	#pitch {
		width: 100% !important;
		height: clamp(520px, 70vw, 660px) !important;
		min-height: 520px !important;
		max-height: 660px !important;
		aspect-ratio: auto !important;
		background-size: 100% 100% !important;
	}
}

@media (max-width: 900px) {
	.cm-config-tabbar {
		flex-wrap: wrap !important;
	}

	.cm-config-pane[data-cm-config-pane="taktik"] .control-group,
	.cm-config-pane[data-cm-config-pane="standards"] .control-group {
		display: block !important;
	}

	.cm-config-pane[data-cm-config-pane="taktik"] .control-label,
	.cm-config-pane[data-cm-config-pane="standards"] .control-label {
		margin-bottom: 7px !important;
		text-align: left !important;
	}

	table.cm-bench-table > tbody {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Formation 2.0 – verbindlicher Layout-Pass 29 */
.cm-config-tabs {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	grid-auto-flow: row !important;
	align-items: stretch !important;
	justify-items: stretch !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.cm-config-tabbar {
	grid-column: 1 !important;
	grid-row: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.cm-config-pane,
.cm-page-pane {
	display: none !important;
}

.cm-config-pane.is-active,
.cm-page-pane.is-active {
	grid-column: 1 !important;
	grid-row: 2 !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	position: relative !important;
	inset: auto !important;
	transform: none !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box !important;
	flex: none !important;
}

.cm-config-actions {
	grid-column: 1 !important;
	grid-row: 3 !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 16px auto 0 !important;
	box-sizing: border-box !important;
}

.cm-config-tabs > p.muted.small {
	grid-column: 1 !important;
	grid-row: 4 !important;
	width: 100% !important;
}

.cm-config-pane[data-cm-config-pane="taktik"].is-active,
.cm-config-pane[data-cm-config-pane="standards"].is-active {
	width: min(1180px, calc(100% - 32px)) !important;
	max-width: 1180px !important;
	margin: 18px auto 0 !important;
	padding: 22px 24px !important;
}

.cm-config-pane[data-cm-config-pane="taktik"].is-active *,
.cm-config-pane[data-cm-config-pane="standards"].is-active * {
	visibility: visible !important;
	opacity: 1 !important;
}

.cm-spielinfos-pane.is-active {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 20px 24px 24px !important;
}

.cm-spielinfos-host {
	display: flex !important;
	justify-content: center !important;
	align-items: flex-start !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.cm-spielinfos-host > .cm-lineup-widgets,
.cm-spielinfos-host .cm-lineup-widgets {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 18px !important;
	width: min(1400px, 100%) !important;
	max-width: 1400px !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	padding: 0 !important;
	position: static !important;
	inset: auto !important;
	transform: none !important;
	float: none !important;
	clear: both !important;
	grid-column: auto !important;
	grid-row: auto !important;
	justify-self: center !important;
	align-self: start !important;
	flex: none !important;
	box-sizing: border-box !important;
}

html body #formationForm .btn,
html body .formationSelectionDropdownBtn,
html body .formationChooseBtn,
html body .btn-danger,
html body .btn-primary,
html body button.btn,
html body a.btn,
html body input[type="submit"].btn,
html body .btn-group > .btn {
	border: 1px solid #4f7cff !important;
	background-color: #173bad !important;
	background-image: linear-gradient(180deg, #315ae5 0%, #173bad 100%) !important;
	color: #fff !important;
	box-shadow: 0 3px 10px rgba(23, 59, 173, .28) !important;
	text-shadow: none !important;
}

html body #formationForm .btn:hover,
html body #formationForm .btn:focus,
html body .formationSelectionDropdownBtn:hover,
html body .formationChooseBtn:hover,
html body button.btn:hover,
html body a.btn:hover {
	border-color: #76a0ff !important;
	background-color: #214dcc !important;
	background-image: linear-gradient(180deg, #416cf0 0%, #214dcc 100%) !important;
	color: #fff !important;
}

@media (max-width: 900px) {
	.cm-config-pane[data-cm-config-pane="taktik"].is-active,
	.cm-config-pane[data-cm-config-pane="standards"].is-active {
		width: 100% !important;
		padding: 18px 14px !important;
	}

	.cm-spielinfos-pane.is-active {
		padding: 16px 12px 20px !important;
	}

	.cm-spielinfos-host > .cm-lineup-widgets,
	.cm-spielinfos-host .cm-lineup-widgets {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
/* Formation 2.0 – verbindlicher Layout-Pass 30 */
html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: 1120px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 26px 30px 34px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active > *,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active > *,
html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .form-horizontal,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .form-horizontal {
  display: block !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .control-group,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .control-group {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 900px !important;
  min-height: 46px !important;
  margin: 0 auto 14px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .control-label,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .control-label {
  position: static !important;
  float: none !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .controls,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .controls {
  position: static !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .controls select,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .controls select,
html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .controls input,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .controls input {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

html body #formationForm .cm-spielinfos-pane.is-active {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 26px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

html body #formationForm .cm-spielinfos-pane.is-active .cm-spielinfos-host {
  display: flex !important;
  justify-content: center !important;
  width: min(1380px, 100%) !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

html body #formationForm .cm-spielinfos-pane.is-active .cm-side-widgets {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
}

html body #formationForm .cm-spielinfos-pane.is-active .cm-side-widget {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

html body #formationForm button:not(.cm-config-tab):not(.cm-row-action-toggle),
html body #formationForm input[type="submit"],
html body #formationForm input[type="button"],
html body #formationForm a.btn,
html body #formationForm .btn,
html body .formationSelectionDropdownBtn,
html body .formationChooseBtn,
html body .formationSelectionBtn,
html body #formationForm button.btn-danger,
html body #formationForm a.btn-danger,
html body #formationForm input.btn-danger,
html body #formationForm button.btn-primary,
html body #formationForm a.btn-primary,
html body #formationForm input.btn-primary {
  color: #fff !important;
  border-color: #4f7cff !important;
  background-color: #244bc4 !important;
  background-image: linear-gradient(180deg, #4168e9 0%, #173aa4 100%) !important;
  box-shadow: 0 8px 20px rgba(18, 61, 180, .24) !important;
  text-shadow: none !important;
}

html body #formationForm button:not(.cm-config-tab):not(.cm-row-action-toggle):hover,
html body #formationForm input[type="submit"]:hover,
html body #formationForm input[type="button"]:hover,
html body #formationForm a.btn:hover,
html body #formationForm .btn:hover,
html body .formationSelectionDropdownBtn:hover,
html body .formationChooseBtn:hover,
html body .formationSelectionBtn:hover {
  border-color: #7d9cff !important;
  background-color: #3159d4 !important;
  background-image: linear-gradient(180deg, #5279f2 0%, #2048bd 100%) !important;
}

@media (max-width: 900px) {
  html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active,
  html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active {
    width: calc(100% - 24px) !important;
    padding: 20px 16px 28px !important;
  }

  html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .control-group,
  html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .control-group {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .control-label,
  html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .control-label {
    text-align: left !important;
  }

  html body #formationForm .cm-spielinfos-pane.is-active .cm-side-widgets {
    grid-template-columns: 1fr !important;
  }
}

/* Formation 2.0 - Tab/colour cleanup 20260725
   Final scoped layer for Profi + Jugend formation pages. */
html body #formationForm,
html body .cm-top-match-form,
html body .cm-formation-strip {
	--cm-bg: rgba(5, 14, 31, 0.78);
	--cm-bg-2: rgba(5, 16, 38, 0.66);
	--cm-border: rgba(79, 124, 255, 0.34);
	--cm-red: #244bc4;
	--cm-text: #f3f7ff;
	--cm-muted: rgba(225, 233, 250, 0.78);
}

html body .cm-top-match-form button.btn,
html body .cm-top-match-form input[type="submit"].btn,
html body .cm-formation-strip button.btn,
html body .cm-formation-strip a.btn,
html body .cm-formation-strip input[type="submit"].btn,
html body .cm-formation-strip .btn-group > .btn,
html body #formationForm button:not(.cm-config-tab):not(.cm-row-action-toggle),
html body #formationForm input[type="submit"],
html body #formationForm input[type="button"],
html body #formationForm a.btn,
html body #formationForm .btn {
	color: #fff !important;
	border-color: #4f7cff !important;
	background-color: #244bc4 !important;
	background-image: linear-gradient(180deg, #4168e9 0%, #173aa4 100%) !important;
	box-shadow: 0 8px 20px rgba(18, 61, 180, .24) !important;
	text-shadow: none !important;
}

html body .cm-top-match-form button.btn:hover,
html body .cm-formation-strip button.btn:hover,
html body .cm-formation-strip a.btn:hover,
html body .cm-formation-strip .btn-group > .btn:hover,
html body #formationForm button:not(.cm-config-tab):not(.cm-row-action-toggle):hover,
html body #formationForm input[type="submit"]:hover,
html body #formationForm input[type="button"]:hover,
html body #formationForm a.btn:hover,
html body #formationForm .btn:hover {
	border-color: #7d9cff !important;
	background-color: #3159d4 !important;
	background-image: linear-gradient(180deg, #5279f2 0%, #2048bd 100%) !important;
}

html body #formationForm .cm-config-tab {
	border-color: rgba(79, 124, 255, 0.28) !important;
	background: rgba(6, 18, 42, 0.72) !important;
	color: #dbe6ff !important;
}

html body #formationForm .cm-config-tab.is-active {
	border-color: #5e84ff !important;
	background-color: #244bc4 !important;
	background-image: linear-gradient(180deg, #4168e9 0%, #173aa4 100%) !important;
	color: #ffffff !important;
	box-shadow: inset 0 -3px 0 #f7d56f, 0 8px 18px rgba(18, 61, 180, .24) !important;
}

html body #formationForm .cm-top-match-form,
html body #formationForm .cm-next-match-grid,
html body #formationForm .cm-formation-strip,
html body .cm-top-match-form,
html body .cm-formation-strip {
	border-color: rgba(79, 124, 255, 0.34) !important;
	background: rgba(5, 16, 38, 0.66) !important;
}

html body #formationForm .cm-lineup-status.is-missing {
	color: #dce7ff !important;
	background: rgba(36, 75, 196, 0.32) !important;
	border-color: rgba(94, 132, 255, 0.52) !important;
}

html body #formationForm .cm-config-pane:not(.is-active),
html body #formationForm .cm-page-pane:not(.is-active) {
	display: none !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .control-group,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .control-group {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	max-width: 430px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 22px !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .control-label,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .control-label {
	width: 100% !important;
	text-align: center !important;
	color: #dbe6ff !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .controls,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .controls {
	text-align: center !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .controls select,
html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .controls select {
	width: 100% !important;
	max-width: 430px !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .controls #offensive {
	width: 110px !important;
	max-width: 110px !important;
}

@media (max-width: 900px) {
	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .control-group,
	html body #formationForm .cm-config-pane[data-cm-config-pane="standards"].is-active .control-group {
		max-width: 100% !important;
	}
}

/* FTG final formation readability pass: show secondary positions directly and keep full pitch names readable. */
.cm-squad-table td.cm-np::before {
	content: "" !important;
	display: none !important;
}

.cm-squad-table td.cm-np {
	color: #9ee8ff !important;
	font-weight: 850 !important;
	text-align: left !important;
}

#pitch .position,
#pitch .cm-pcard {
	width: 146px !important;
}

#pitch .cm-pcard {
	min-height: 76px !important;
	padding: 6px 7px !important;
}

#pitch .cm-pcard-top {
	min-height: 38px !important;
}

#pitch .cm-pcard-top > div:first-child {
	grid-template-columns: 30px minmax(0, 1fr) !important;
	gap: 6px !important;
	width: 100% !important;
	min-width: 0 !important;
	padding-right: 34px !important;
	box-sizing: border-box !important;
}

#pitch .cm-pcard-top > div:first-child > div:last-child {
	min-width: 0 !important;
	max-width: none !important;
}

#pitch .cm-pcard-name {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	max-width: none !important;
	white-space: normal !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	font-size: 11px !important;
	line-height: 1.05 !important;
	word-break: normal !important;
	overflow-wrap: anywhere !important;
}

#pitch .cm-pcard-pos {
	max-width: 100% !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

#pitch .cm-pcard-score {
	top: 5px !important;
	right: 5px !important;
}

/* Keep player names readable in the compact mobile squad table. */
@media (max-width: 768px) {
	#formationForm .cm-squad-table th:nth-child(2),
	#formationForm .cm-squad-table td.cm-name {
		display: table-cell !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: auto !important;
		min-width: 118px !important;
	}

	#formationForm .cm-squad-table td.cm-name strong {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		color: #f4f7ff !important;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#formationForm .cm-squad-table th:nth-child(4),
	#formationForm .cm-squad-table td.cm-np {
		display: none !important;
	}
}

/* Beta feedback: fixed bench cards below the starting XI + compact planned substitutions.
   This block intentionally lives at the end because older formation skins also style these classes. */
#formationForm div.cm-bench-table.cm-bench-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 10px !important;
	width: 100% !important;
	background: transparent !important;
	border: 0 !important;
}

#formationForm div.cm-bench-table.cm-bench-grid > .benchposition.cm-bench-card {
	display: block !important;
	min-height: 132px !important;
	padding: 10px !important;
	border: 1px solid rgba(77, 227, 255, 0.22) !important;
	border-radius: 10px !important;
	background: linear-gradient(180deg, rgba(13, 27, 46, 0.94), rgba(7, 16, 31, 0.96)) !important;
	color: #ffffff !important;
	box-sizing: border-box !important;
}

#formationForm div.cm-bench-table.cm-bench-grid > .benchposition.cm-bench-card.freePosition {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-style: dashed !important;
	background: rgba(8, 18, 34, 0.65) !important;
}

#formationForm .cm-bench-card .benchPlayerInfo {
	position: relative !important;
	min-height: 112px !important;
	background: transparent !important;
	border: 0 !important;
}

#formationForm .cm-bench-card .benchPlayerSubInfo,
#formationForm .cm-bench-card .benchPlayerSubAdd {
	display: none !important;
}

#formationForm .cm-bench-card .cm-bench-slot-picker,
#formationForm .cm-bench-card .benchPlayerRemove {
	position: absolute !important;
	right: 0 !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	padding: 0 !important;
	border-radius: 7px !important;
}

#formationForm .cm-bench-card .cm-bench-slot-picker {
	top: 0 !important;
}

#formationForm .cm-bench-card .benchPlayerRemove {
	top: 32px !important;
	left: auto !important;
}

#formationForm .cm-bench-card .cm-bench-name,
#formationForm .cm-bench-card .cm-bench-card-meta {
	max-width: calc(100% - 34px) !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

#formationForm .cm-bench-card .benchAttrRow {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	margin-top: 8px !important;
	font-size: 11px !important;
}

#formationForm .cm-planned-subs-table {
	width: 100% !important;
	border-collapse: collapse !important;
	table-layout: fixed !important;
}

#formationForm .cm-planned-subs-table th,
#formationForm .cm-planned-subs-table td {
	padding: 7px 8px !important;
	border-bottom: 1px solid rgba(120, 170, 255, 0.16) !important;
	vertical-align: middle !important;
}

#formationForm .cm-planned-subs-table th {
	font-size: 10px !important;
	text-transform: uppercase !important;
	letter-spacing: .05em !important;
	color: #f5ce65 !important;
}

#formationForm .cm-planned-subs-table .cm-sub-minute {
	width: 48px !important;
	text-align: center !important;
	color: #f5ce65 !important;
	font-weight: 800 !important;
}

#formationForm .cm-planned-subs-table .cm-sub-out,
#formationForm .cm-planned-subs-table .cm-sub-in {
	font-weight: 700 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

#formationForm .cm-planned-subs-table .cm-sub-condition {
	font-size: 11px !important;
	color: #d9e3ff !important;
}

#formationForm .cm-planned-subs-table .cm-sub-actions {
	width: 42px !important;
	text-align: right !important;
}

@media (max-width: 900px) {
	#formationForm div.cm-bench-table.cm-bench-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 560px) {
	#formationForm div.cm-bench-table.cm-bench-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Formation 2.0 – Wechsel/Form-Fix 20260814 */
html body #formationForm .cm-squad-table td.cm-form::before {
	content: none !important;
	display: none !important;
}

html body #formationForm .cm-squad-table th:nth-child(7),
html body #formationForm .cm-squad-table td.cm-form {
	display: table-cell !important;
	width: 92px !important;
	text-align: center !important;
	white-space: nowrap !important;
}

html body #formationForm .cm-formtrend {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 68px !important;
	padding: 5px 9px !important;
	border-radius: 999px !important;
	background: rgba(145, 161, 184, .14) !important;
	border: 1px solid rgba(145, 161, 184, .28) !important;
	color: #dbe6f8 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
}

html body #formationForm .cm-formtrend.pos {
	background: rgba(80, 190, 112, .15) !important;
	border-color: rgba(80, 190, 112, .42) !important;
	color: #8ff0a2 !important;
}

html body #formationForm .cm-formtrend.neg {
	background: rgba(226, 96, 96, .15) !important;
	border-color: rgba(226, 96, 96, .42) !important;
	color: #ff9b9b !important;
}

html body #formationForm .cm-row-action-toggle {
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 32px !important;
	padding: 0 !important;
	gap: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

html body #formationForm .cm-row-action-toggle .cm-action-label {
	display: none !important;
}

html body #formationForm .cm-row-action-toggle .cm-action-caret {
	flex: 0 0 auto !important;
}

html body #formationForm .cm-bench-meter-row {
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: end !important;
	gap: 12px !important;
}

html body #formationForm .cm-bench-form-badge {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	justify-content: center !important;
	min-width: 84px !important;
	padding: 4px 8px !important;
	border: 1px solid rgba(145, 161, 184, .25) !important;
	border-radius: 9px !important;
	background: rgba(145, 161, 184, .10) !important;
	color: #dbe6f8 !important;
	font-size: 11px !important;
	font-weight: 800 !important;
}

html body #formationForm .cm-bench-form-badge b {
	color: #98a9c1 !important;
	font-size: 10px !important;
	text-transform: uppercase !important;
}

html body #formationForm .cm-bench-form-badge.pos strong {
	color: #8ff0a2 !important;
}

html body #formationForm .cm-bench-form-badge.neg strong {
	color: #ff9b9b !important;
}

html body #formationForm .cm-sub-slots {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
	gap: 12px !important;
}

html body #formationForm .cm-sub-slot {
	background: rgba(8, 20, 36, .92) !important;
	border: 1px solid rgba(88, 126, 170, .42) !important;
	border-radius: 12px !important;
	padding: 12px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html body #formationForm .cm-sub-slot.is-complete {
	border-color: rgba(126, 232, 147, .55) !important;
	background: linear-gradient(145deg, rgba(17, 48, 38, .92), rgba(8, 20, 36, .92)) !important;
}

html body #formationForm .cm-sub-slot.has-issue {
	border-color: rgba(255, 148, 107, .75) !important;
}

html body #formationForm .cm-sub-slot header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	margin-bottom: 10px !important;
}

html body #formationForm .cm-sub-slot header strong {
	color: #f5ce65 !important;
	text-transform: uppercase !important;
	letter-spacing: .05em !important;
}

html body #formationForm .cm-sub-slot header a {
	color: #ffb0a5 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	text-decoration: none !important;
}

html body #formationForm .cm-sub-slot-grid {
	display: grid !important;
	grid-template-columns: 78px minmax(0, 1fr) !important;
	gap: 9px !important;
}

html body #formationForm .cm-sub-slot-grid label {
	display: flex !important;
	flex-direction: column !important;
	gap: 5px !important;
	margin: 0 !important;
	color: #aebbd0 !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
}

html body #formationForm .cm-sub-slot-grid label:nth-child(2),
html body #formationForm .cm-sub-slot-grid label:nth-child(3) {
	grid-column: 1 / -1 !important;
}

html body #formationForm .cm-sub-field {
	width: 100% !important;
	min-height: 36px !important;
	border: 1px solid rgba(103, 139, 190, .55) !important;
	border-radius: 8px !important;
	background: #08182b !important;
	color: #f3f7ff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	padding: 6px 8px !important;
}

html body #formationForm .cm-sub-issue {
	margin-top: 8px !important;
	color: #ffb0a5 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
}

@media (max-width: 1450px) {
	html body #formationForm .cm-sub-slots {
		grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
	}
}

@media (max-width: 720px) {
	html body #formationForm .cm-sub-slots {
		grid-template-columns: 1fr !important;
	}
}

/* Formation 2.0 – Aktionsmenü und 5 Wechselblöcke final über ältere Regeln legen. */
html body #formationForm .cm-squad-table,
html body #formationForm .cm-squad-table tbody,
html body #formationForm .cm-squad-table tr,
html body #formationForm .cm-squad-table td.cm-actions,
html body #formationForm .cm-actions-wrap {
	overflow: visible !important;
}

html body #formationForm .cm-actions-wrap {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 0 !important;
	z-index: 20 !important;
}

html body #formationForm .cm-actions-wrap:not(.is-open) .cm-row-action-menu {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

html body #formationForm .cm-actions-wrap.is-open {
	z-index: 9998 !important;
}

html body #formationForm .cm-actions-wrap.is-open .cm-row-action-menu {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	flex-direction: column !important;
	gap: 5px !important;
}

html body #formationForm .cm-row-action-menu {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	right: 0 !important;
	left: auto !important;
	bottom: auto !important;
	width: 210px !important;
	min-width: 210px !important;
	max-width: calc(100vw - 24px) !important;
	padding: 7px !important;
	z-index: 9999 !important;
	border-radius: 10px !important;
	background: rgba(5, 16, 30, .98) !important;
	border: 1px solid rgba(88, 126, 170, .72) !important;
	box-shadow: 0 14px 32px rgba(0, 0, 0, .45) !important;
}

html body #formationForm .cm-row-action-menu .cm-action-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 34px !important;
	white-space: normal !important;
	line-height: 1.15 !important;
}

html body #formationForm #cmPlannedSubs {
	overflow: visible !important;
}

html body #formationForm .cm-panel-subs .cm-panel-body {
	overflow: visible !important;
}

html body #formationForm .cm-sub-slots {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 8px !important;
	width: 100% !important;
	min-width: 0 !important;
}

html body #formationForm .cm-sub-slot {
	min-width: 0 !important;
	padding: 9px !important;
	border-radius: 10px !important;
}

html body #formationForm .cm-sub-slot header {
	gap: 6px !important;
	margin-bottom: 8px !important;
}

html body #formationForm .cm-sub-slot header strong {
	font-size: 13px !important;
}

html body #formationForm .cm-sub-slot header a {
	font-size: 11px !important;
	white-space: nowrap !important;
}

html body #formationForm .cm-sub-slot-grid {
	grid-template-columns: 1fr !important;
	gap: 7px !important;
}

html body #formationForm .cm-sub-slot-grid label,
html body #formationForm .cm-sub-slot-grid label:nth-child(2),
html body #formationForm .cm-sub-slot-grid label:nth-child(3) {
	grid-column: auto !important;
	min-width: 0 !important;
}

html body #formationForm .cm-sub-field {
	min-height: 32px !important;
	font-size: 12px !important;
	padding: 5px 7px !important;
}

html body #formationForm .cm-sub-issue {
	margin-top: 6px !important;
	font-size: 11px !important;
}

@media (max-width: 1100px) {
	html body #formationForm .cm-sub-slots {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	html body #formationForm .cm-sub-slots {
		grid-template-columns: 1fr !important;
	}
}

/* Firefox/Android: touch targets must not overlap across the three midfield lanes. */
@media (max-width: 640px), (pointer: coarse) and (max-width: 900px) {
	html body #formationForm #pitch .position,
	html body #formationForm #pitch .cm-pcard {
		width: 92px !important;
	}

	html body #formationForm #pitch .position.LM {
		left: 2% !important;
		right: auto !important;
	}

	html body #formationForm #pitch .position.RM {
		left: auto !important;
		right: 2% !important;
	}

	html body #formationForm #pitch .position:not(.freePosition),
	html body #formationForm #pitch .cm-pcard {
		touch-action: none !important;
	}

	html body #formationForm #pitch .cm-pcard-name {
		font-size: 10px !important;
	}

	html body #formationForm #pitch .cm-pcard-attrs,
	html body #formationForm #pitch .cm-pcard-freshline .cm-fresh-label {
		display: none !important;
	}
}

.cm-touch-drag-helper {
	position: fixed !important;
	z-index: 10050 !important;
	width: 92px !important;
	pointer-events: none !important;
	opacity: .92 !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .5) !important;
}

#pitch .position.cm-touch-drag-source {
	opacity: .48 !important;
}

#pitch .position.cm-touch-drop-target {
	z-index: 100 !important;
	outline: 3px solid #f7d56f !important;
	outline-offset: 3px !important;
}

/* Mobile: the preset select and its actions must remain inside the viewport.
   The desktop strip deliberately keeps them in one row; on phones it becomes
   a clear vertical flow so the template action is always reachable. */
@media (max-width: 640px) {
	html body .cm-formation-strip {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 9px !important;
		width: 100% !important;
		max-width: 100% !important;
		overflow: visible !important;
	}

	html body .cm-formation-strip .cm-formation-select-inline {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 5px !important;
		width: 100% !important;
		margin: 0 !important;
	}

	html body .cm-formation-strip .cm-formation-select-inline .control-label {
		margin: 0 !important;
	}

	html body .cm-formation-strip .cm-formation-select-inline #formationPresetSelect {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	html body .cm-formation-strip .cm-formation-actions {
		display: flex !important;
		width: 100% !important;
		margin: 0 !important;
	}

	html body .cm-formation-strip .cm-formation-actions > .btn:first-child {
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	html body .cm-formation-strip > a.btn {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		min-height: 42px !important;
		margin: 0 !important;
		box-sizing: border-box !important;
		white-space: normal !important;
		text-align: center !important;
	}

	html body #templatesModal {
		position: fixed !important;
		top: 14px !important;
		left: 12px !important;
		right: 12px !important;
		width: auto !important;
		max-width: none !important;
		max-height: calc(100vh - 28px) !important;
		margin: 0 !important;
		transform: none !important;
		overflow: hidden !important;
	}

	html body #templatesModal .modal-body {
		max-height: calc(100vh - 170px) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		padding: 12px !important;
	}

	html body #formation-templates-content .table {
		width: 100% !important;
		table-layout: fixed !important;
	}

	html body #formation-templates-content .table td {
		word-break: break-word !important;
	}

	html body #formation-templates-content .table td:first-child {
		display: none !important;
	}

	html body #formation-templates-content .table td:last-child {
		width: 34px !important;
		padding-left: 4px !important;
		padding-right: 4px !important;
		text-align: center !important;
	}
}

/* Mobile header: later desktop mockup rules intentionally use wide minimum
   columns. Override them at the end so the match selector and its preview
   cannot create a horizontal page canvas on phones. */
@media (max-width: 640px) {
	html body .cm-top-match-form {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
		min-width: 0 !important;
		padding: 9px !important;
		gap: 8px !important;
		box-sizing: border-box !important;
	}

	html body .cm-top-match-form select,
	html body .cm-top-match-form .input-xxlarge,
	html body .cm-top-match-form button.btn,
	html body .cm-top-match-form input[type="submit"].btn {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	html body .cm-top-match-form button.btn,
	html body .cm-top-match-form input[type="submit"].btn {
		min-height: 40px !important;
	}

	html body .cm-next-match-grid {
		display: block !important;
		grid-template-columns: none !important;
		width: 100% !important;
		min-width: 0 !important;
		padding: 8px !important;
		box-sizing: border-box !important;
	}

	html body .cm-next-match-grid > [class*="span"] {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}

	html body .cm-next-match-grid > [class*="span"] + [class*="span"] {
		margin-top: 8px !important;
	}

	html body .cm-nextmatch-card {
		min-width: 0 !important;
		min-height: 0 !important;
		padding: 9px !important;
	}

	html body .cm-nextmatch-top {
		align-items: flex-start !important;
		flex-wrap: wrap !important;
	}

	html body .cm-nextmatch-teams {
		gap: 4px !important;
	}

	html body .cm-nextmatch-team {
		gap: 5px !important;
	}

	html body .cm-nextmatch-team img {
		width: 24px !important;
		height: 24px !important;
		flex: 0 0 24px !important;
	}

	html body .cm-nextmatch-team a {
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
		overflow-wrap: anywhere !important;
		line-height: 1.15 !important;
	}

	html body .cm-nextmatch-vs {
		flex-basis: 24px !important;
		font-size: 13px !important;
	}
}

/* Filter state must prevail over the responsive row layout, which uses display !important. */
#cmSquadTableBody tr.cm-filter-hidden,
#cmSquadTableBody tr.cm-filter-hidden > td {
	display: none !important;
}

/*
 * Taktik-Arbeitsbereich v2
 *
 * This deliberately lives at the very end of the stylesheet. Older formation
 * layout rules use broad, !important selectors for every configuration pane.
 * Without this final, scoped override they turn the tactic workspace back into
 * one centred vertical column and push the analysis beneath the controls.
 */
@media (min-width: 901px) {
	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active {
		width: min(1480px, calc(100% - 28px)) !important;
		max-width: 1480px !important;
		padding: 12px !important;
		box-sizing: border-box !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active > .ftg-tactics-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 0.96fr) minmax(540px, 1.04fr) !important;
		align-items: start !important;
		gap: 14px !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-settings,
	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-analysis {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 18px !important;
		box-sizing: border-box !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-analysis {
		position: sticky !important;
		top: 14px !important;
		align-self: start !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-settings .form-horizontal {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-settings .control-group {
		display: grid !important;
		grid-template-columns: minmax(145px, 0.42fr) minmax(245px, 1fr) !important;
		align-items: center !important;
		gap: 10px !important;
		width: 100% !important;
		max-width: none !important;
		min-height: 0 !important;
		margin: 8px 0 !important;
		padding: 0 !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-settings .control-label {
		display: block !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: left !important;
		line-height: 1.25 !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-settings .controls {
		display: flex !important;
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
		text-align: left !important;
		align-items: center !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-settings .controls select {
		width: 100% !important;
		max-width: none !important;
		box-sizing: border-box !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-settings .ftg-tactics-offensive .controls {
		justify-content: flex-start !important;
	}
}

@media (max-width: 900px) {
	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active > .ftg-tactics-grid {
		display: block !important;
		width: 100% !important;
	}

	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-analysis {
		position: static !important;
		margin-top: 14px !important;
	}
}

/* Mockup-exact tactic dashboard.  This is intentionally a separate component
   rather than another skin for .control-group: legacy formation CSS owns that
   class and previously kept reasserting the old vertical UI. */
html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active > .ftg-tactics-grid {
	grid-template-columns: minmax(540px, .94fr) minmax(560px, 1.06fr) !important;
	gap: 12px !important;
	max-width: 1360px !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-legacy {
	display: none !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-dashboard-left,
html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-analysis {
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 15px !important;
	border: 1px solid rgba(117, 164, 220, .32) !important;
	border-radius: 11px !important;
	background: linear-gradient(135deg, rgba(6, 21, 38, .97), rgba(8, 27, 48, .94)) !important;
	box-shadow: inset 0 1px 0 rgba(180, 219, 255, .05), 0 10px 30px rgba(0, 0, 0, .22) !important;
	box-sizing: border-box !important;
}

html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-analysis {
	position: sticky !important;
	top: 10px !important;
	padding: 13px !important;
}

.ftg-tactics-dashboard-left h3,
.ftg-tactics-analysis > h3 {
	margin: 0 0 8px !important;
	font-size: 16px !important;
	line-height: 1.1 !important;
	font-weight: 800 !important;
	letter-spacing: .02em !important;
	color: #eff7ff !important;
}

.ftg-tactics-analysis > h3::before { content: "\f0c0"; font-family: FontAwesome; color: #37cba1; margin-right: 9px; }
.ftg-tactics-analysis > .muted { display: block; margin: -5px 0 10px !important; font-size: 11px !important; color: #c7d7e8 !important; }
.ftg-dashboard-section { padding: 9px 0 10px; border-bottom: 1px solid rgba(122, 169, 219, .18); }
.ftg-dashboard-section:last-of-type { border-bottom: 0; }
.ftg-dashboard-section > h3 { color: #eaf4ff !important; }
.ftg-dashboard-section:nth-of-type(3) > h3,
.ftg-dashboard-section:nth-of-type(4) > h3 { color: #9edc82 !important; }
.ftg-dashboard-section h3 small { color: #cbd8e5; font-size: 11px; }

.ftg-formation-picker { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.ftg-formation-picker > i { color: #7ed950; font-size: 22px; text-align: center; }
.ftg-formation-picker select,
.ftg-dashboard-row select {
	height: 31px !important;
	min-height: 31px !important;
	margin: 0 !important;
	padding: 4px 9px !important;
	border: 1px solid rgba(143, 177, 207, .52) !important;
	border-radius: 5px !important;
	background: rgba(5, 16, 28, .83) !important;
	color: #f3f7ff !important;
	box-sizing: border-box !important;
}
.ftg-formation-picker .btn { margin: 0 !important; padding: 7px 12px !important; font-size: 12px !important; }
.ftg-dashboard-row { display: grid; grid-template-columns: 23px 155px minmax(160px, 1fr) 20px; align-items: center; gap: 7px; min-height: 34px; margin: 4px 0; }
.ftg-dashboard-row > i { font-size: 17px; text-align: center; }
.ftg-dashboard-row label { margin: 0 !important; color: #f0f4fa !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.1 !important; text-align: left !important; }
.ftg-dashboard-row select { width: 100% !important; max-width: none !important; font-size: 13px !important; }
.ftg-icon-defense { color: #81cf76; }.ftg-icon-midfield { color: #70d7aa; }.ftg-icon-attack { color: #f1695a; }.ftg-icon-gold { color: #f5ce65; }.ftg-icon-silver { color: #d7e1ef; }.ftg-icon-green { color: #78d35d; }
.ftg-info { width: 18px; height: 18px; padding: 0; border: 1px solid #b7c5d8; border-radius: 50%; background: transparent; color: #eef5ff; font-weight: 800; font-size: 11px; line-height: 16px; }
.ftg-offensive-row { grid-template-columns: 23px 155px minmax(160px, 1fr) 42px; }
.ftg-offensive-row input[type="range"] { width: 100%; accent-color: #7594ff; }
.ftg-offensive-row strong { color: #f5f8ff; font-size: 13px; white-space: nowrap; }
.ftg-dashboard-actions { display: flex; gap: 9px; padding-top: 12px; }
.ftg-dashboard-actions .btn { min-width: 126px; margin: 0 !important; padding: 8px 14px !important; font-size: 12px !important; }

.ftg-analysis-profile { margin: 0 !important; padding: 10px !important; border: 1px solid rgba(94, 147, 203, .3); border-radius: 7px; background: rgba(2, 13, 26, .45); }
.ftg-analysis-profile h4,.ftg-analysis-lists h4,.ftg-style-card h4,.ftg-pitch-card h4,.ftg-effects-card h4 { margin: 0 0 7px !important; color: #eaf3ff !important; font-size: 13px !important; font-weight: 800 !important; }
.ftg-profile-row { display: grid !important; grid-template-columns: 82px minmax(80px, 1fr) 36px !important; gap: 7px; align-items: center; margin: 6px 0 !important; font-size: 12px; }
.ftg-profile-row > span,.ftg-profile-row > b { color:#e9f0fa; font-size:12px; }.ftg-profile-row > b{text-align:right;}
.ftg-profile-track { height: 11px; border-radius: 4px; overflow: hidden; background: #1a3455; }.ftg-profile-track i { display:block; height:100%; border-radius:4px; }
#tacticProfileOffense { background:#4bc56a; } #tacticProfileDefense { background:#4384ed; } #tacticProfileControl { background:linear-gradient(115deg,#8d590d 0%,#c78b22 17%,#fff1aa 38%,#f6d46c 51%,#b47b17 75%,#ffe49a 91%,#99620e 100%); } #tacticProfileWings { background:#ed8439; } #tacticProfilePressing { background:#e64a57; } #tacticProfileRisk { background:#8e63dc; }
.ftg-analysis-lists { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 !important; }
.ftg-analysis-lists > div { min-height: 88px; padding: 9px; border: 1px solid rgba(94, 147, 203, .24); border-radius: 6px; background: rgba(3, 14, 27, .35); }
.ftg-analysis-lists ul { margin:0 !important; }.ftg-analysis-lists li { margin:4px 0; font-size:11px; line-height:1.2; color:#e4edf7; }
.ftg-style-card { padding: 9px; border: 1px solid rgba(94, 147, 203, .28); border-radius: 6px; background: rgba(2, 12, 24, .43); }.ftg-tactic-summary { color:#edf3fb; font-size:11px; line-height:1.3; }
.ftg-analysis-bottom { display:grid; grid-template-columns: minmax(190px, .9fr) minmax(220px, 1.1fr); gap:10px; margin-top:10px; }.ftg-pitch-card,.ftg-effects-card { padding:9px; border:1px solid rgba(94,147,203,.28); border-radius:6px; background:rgba(2,12,24,.43); }
.ftg-mini-pitch { position:relative; height:222px; border:2px solid rgba(201,237,154,.65); border-radius:3px; overflow:hidden; background:linear-gradient(90deg,rgba(43,100,27,.94),rgba(66,134,40,.94),rgba(43,100,27,.94)); box-shadow:inset 0 0 0 1px rgba(244,255,226,.3); }.ftg-mini-pitch:before,.ftg-mini-pitch:after{content:"";position:absolute;left:10%;right:10%;height:35px;border:1px solid rgba(239,255,222,.65);}.ftg-mini-pitch:before{top:0;border-top:0;}.ftg-mini-pitch:after{bottom:0;border-bottom:0;}
.ftg-shirt { position:absolute; z-index:1; display:block; width:29px; height:21px; padding-top:8px; border-radius:5px 5px 8px 8px; background:#1e64d8; color:#eef5ff; box-shadow:0 1px 3px rgba(0,0,0,.55); font-size:7px; line-height:8px; text-align:center; }.p1{top:7%;left:44%;}.p2{top:27%;left:19%;}.p3{top:30%;left:44%;}.p4{top:27%;right:19%;}.p5{top:48%;left:34%;}.p6{top:48%;right:34%;}.p7{top:68%;left:10%;}.p8{top:69%;left:34%;}.p9{top:69%;right:34%;}.p10{top:68%;right:10%;}.p11{bottom:5%;left:44%;}.ftg-goalkeeper{background:#61c844;}
.ftg-effects-card ul { margin:0; list-style:none; }.ftg-effects-card li { display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px solid rgba(116,153,190,.18); color:#ecf2fa; font-size:11px; }.ftg-effects-card b{font-size:16px;line-height:11px;}.ftg-effects-card .up{color:#55d16e;}.ftg-effects-card .neutral{color:#f5ce65;}.ftg-effects-card .down{color:#e64a57;}.ftg-effects-card p{margin:8px 0 0;color:#b9c9dc;font-size:10px;line-height:1.25;}
/* These older auxiliary boxes do not belong to the compact mockup dashboard. */
.ftg-tactics-analysis > .well,
.ftg-tactics-analysis > .match-preview-opponent-analysis { display: none !important; }

@media (max-width: 1100px) { .ftg-dashboard-row { grid-template-columns:22px 125px minmax(120px,1fr) 18px; }.ftg-offensive-row { grid-template-columns:22px 125px minmax(120px,1fr) 42px; } .ftg-analysis-bottom { grid-template-columns:1fr; } .ftg-mini-pitch { height:200px; } }
@media (max-width: 900px) { html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active > .ftg-tactics-grid{display:block!important;} html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active .ftg-tactics-analysis{position:static!important;margin-top:12px!important;} }
@media (max-width: 560px) { .ftg-formation-picker{grid-template-columns:26px 1fr;}.ftg-formation-picker .btn{grid-column:1 / -1;}.ftg-dashboard-row,.ftg-offensive-row{grid-template-columns:22px 1fr 18px;}.ftg-dashboard-row label{grid-column:2 / 3;}.ftg-dashboard-row select,.ftg-dashboard-row input[type="range"]{grid-column:2 / 3;}.ftg-dashboard-row > .ftg-info{grid-column:3;grid-row:1 / span 2;}.ftg-offensive-row strong{grid-column:3;grid-row:2;}.ftg-analysis-lists{grid-template-columns:1fr;} }

/* v4: The tactic dashboard belongs to the page canvas, not a narrow centred
   legacy form. Keep a small safe gutter but otherwise use the entire width. */
@media (min-width: 901px) {
	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active {
		width: calc(100% - 24px) !important;
		max-width: none !important;
		margin: 0 12px !important;
		padding: 12px !important;
	}
	html body #formationForm .cm-config-pane[data-cm-config-pane="taktik"].is-active > .ftg-tactics-grid {
		grid-template-columns: minmax(520px, 1fr) minmax(570px, 1fr) !important;
		width: 100% !important;
		max-width: none !important;
	}
}

.ftg-help-popover {
	position: absolute;
	z-index: 99999;
	max-width: 260px;
	padding: 9px 11px;
	border: 1px solid #7697ff;
	border-radius: 7px;
	background: #102a59;
	box-shadow: 0 8px 24px rgba(0,0,0,.45);
	color: #fff;
	font-size: 12px;
	line-height: 1.35;
}
