/* STAGIAIRE Frontend Styles */
:root {
	--stag-primary: #0b0b0b;
	--stag-accent: #3b82f6;
	--stag-brand: #ffc400;
	--stag-brand-light: #ffd633;
	--stag-brand-bright: #ffe066;
	--stag-brand-text: #0b0b0b;
	--stag-success: #22c55e;
	--stag-danger: #ef4444;
	--stag-card: #171717;
	--stag-text: #ffffff;
	--stag-muted: #9ca3af;
	--stag-radius: 12px;
	--stag-gap: 1rem;
	--stag-app-max: 1200px;
	--stag-tabbar-height: 72px;
}

body.stagiaire-app-page {
	padding-bottom: var(--stag-tabbar-height);
}

.stagiaire-app {
	font-family: Montserrat, system-ui, -apple-system, sans-serif;
	background: var(--stag-primary);
	color: var(--stag-text);
	min-height: 60vh;
	border-radius: 0;
	overflow: visible;
}

.stagiaire-header {
	background: #020617;
	border-bottom: 1px solid #334155;
}

.stagiaire-header-inner {
	max-width: var(--stag-app-max);
	margin: 0 auto;
	padding: 1rem;
}

.stagiaire-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stagiaire-nav-link {
	display: block;
	padding: 0.5rem 0.75rem;
	color: var(--stag-muted);
	text-decoration: none;
	border-radius: 8px;
	font-size: 0.9rem;
}

.stagiaire-nav-link:hover,
.stagiaire-nav-link.is-active {
	background: var(--stag-card);
	color: var(--stag-text);
}

.stagiaire-main {
	max-width: var(--stag-app-max);
	margin: 0 auto;
	padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.stagiaire-card {
	background: var(--stag-card);
	border-radius: var(--stag-radius);
	padding: 1.25rem;
	margin-bottom: var(--stag-gap);
}

@media (max-width: 600px) {
	.stagiaire-app .stagiaire-card > h3,
	.stagiaire-app .stagiaire-season-dossier__header h3 {
		font-size: 1.25rem;
		font-weight: 700;
		line-height: 1.25;
	}
}

.stagiaire-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--stag-gap);
}

.stagiaire-section-header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2.25rem 0 1.25rem;
	padding: 1.1rem 1.35rem;
	border-radius: 16px;
	border: 1px solid transparent;
	overflow: hidden;
	isolation: isolate;
}

.stagiaire-section:first-child .stagiaire-section-header {
	margin-top: 0.25rem;
}

.stagiaire-section-header::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 1;
}

.stagiaire-section-header::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 45%;
	background: repeating-linear-gradient(
		-55deg,
		transparent,
		transparent 10px,
		rgba(255, 255, 255, 0.035) 10px,
		rgba(255, 255, 255, 0.035) 20px
	);
	mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
	z-index: 0;
	pointer-events: none;
}

.stagiaire-section-header__jersey {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem;
}

.stagiaire-section-header__jersey .stagiaire-level-jersey--xl {
	width: 72px;
	height: 90px;
}

.stagiaire-section-header__title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: clamp(1.45rem, 4.5vw, 2.1rem);
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	line-height: 1.05;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.stagiaire-section-header__accent {
	position: relative;
	z-index: 1;
	flex: 1;
	height: 4px;
	border-radius: 999px;
	margin-left: 0.25rem;
	min-width: 2.5rem;
	opacity: 0.75;
}

.stagiaire-section-header--continental::before {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(30, 64, 175, 0.12) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-section-header--continental {
	border-color: rgba(96, 165, 250, 0.45);
	box-shadow: 0 4px 28px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(147, 197, 253, 0.15);
}

.stagiaire-section-header--continental .stagiaire-section-header__title {
	color: #bfdbfe;
}

.stagiaire-section-header--continental .stagiaire-section-header__accent {
	background: linear-gradient(90deg, #60a5fa, transparent);
}

.stagiaire-section-header--pro::before {
	background: linear-gradient(135deg, rgba(220, 38, 38, 0.35) 0%, rgba(153, 27, 27, 0.12) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-section-header--pro {
	border-color: rgba(248, 113, 113, 0.45);
	box-shadow: 0 4px 28px rgba(220, 38, 38, 0.22), inset 0 1px 0 rgba(252, 165, 165, 0.15);
}

.stagiaire-section-header--pro .stagiaire-section-header__title {
	color: #fecaca;
}

.stagiaire-section-header--pro .stagiaire-section-header__accent {
	background: linear-gradient(90deg, #f87171, transparent);
}

.stagiaire-section-header--wt::before,
.stagiaire-section-header--wt_a::before {
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.38) 0%, rgba(180, 83, 9, 0.14) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-section-header--wt,
.stagiaire-section-header--wt_a {
	border-color: rgba(251, 191, 36, 0.5);
	box-shadow: 0 4px 32px rgba(251, 191, 36, 0.2), inset 0 1px 0 rgba(253, 224, 71, 0.18);
}

.stagiaire-section-header--wt .stagiaire-section-header__title,
.stagiaire-section-header--wt_a .stagiaire-section-header__title {
	color: #fde68a;
}

.stagiaire-section-header--wt .stagiaire-section-header__accent,
.stagiaire-section-header--wt_a .stagiaire-section-header__accent {
	background: linear-gradient(90deg, #fbbf24, transparent);
}

.stagiaire-section-header--wt_b::before {
	background: linear-gradient(135deg, rgba(234, 179, 8, 0.34) 0%, rgba(161, 98, 7, 0.12) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-section-header--wt_b {
	border-color: rgba(234, 179, 8, 0.48);
	box-shadow: 0 4px 30px rgba(234, 179, 8, 0.18), inset 0 1px 0 rgba(250, 204, 21, 0.16);
}

.stagiaire-section-header--wt_b .stagiaire-section-header__title {
	color: #fef08a;
}

.stagiaire-section-header--wt_b .stagiaire-section-header__accent {
	background: linear-gradient(90deg, #eab308, transparent);
}

.stagiaire-section-header--wt_c::before {
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.32) 0%, rgba(120, 90, 20, 0.12) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-section-header--wt_c {
	border-color: rgba(212, 175, 55, 0.45);
	box-shadow: 0 4px 28px rgba(212, 175, 55, 0.16), inset 0 1px 0 rgba(234, 201, 120, 0.14);
}

.stagiaire-section-header--wt_c .stagiaire-section-header__title {
	color: #f5e6b8;
}

.stagiaire-section-header--wt_c .stagiaire-section-header__accent {
	background: linear-gradient(90deg, #d4af37, transparent);
}

.stagiaire-btn {
	display: inline-block;
	padding: 0.6rem 1rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	text-decoration: none;
	text-align: center;
}

.stagiaire-btn-primary {
	background: linear-gradient(180deg, var(--stag-brand-light) 0%, var(--stag-brand) 100%);
	color: var(--stag-brand-text);
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
	transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.stagiaire-btn-primary:hover,
.stagiaire-btn-primary:focus-visible {
	background: linear-gradient(180deg, var(--stag-brand-bright) 0%, var(--stag-brand-light) 100%);
	color: var(--stag-brand-text);
	box-shadow: 0 6px 18px rgba(251, 191, 36, 0.45);
}

.stagiaire-btn-primary:disabled {
	background: linear-gradient(180deg, rgba(100, 116, 139, 0.35) 0%, rgba(71, 85, 105, 0.45) 100%);
	color: rgba(241, 245, 249, 0.55);
	box-shadow: none;
	cursor: not-allowed;
}

a.stagiaire-btn-primary,
a.stagiaire-btn-primary:hover,
a.stagiaire-btn-primary:focus,
a.stagiaire-btn-primary:focus-visible,
a.stagiaire-btn-primary:visited {
	color: var(--stag-brand-text);
	text-decoration: none;
}

.stagiaire-btn-secondary {
	background: #475569;
	color: #fff;
}

.stagiaire-btn-danger {
	background: var(--stag-danger);
	color: #fff;
}

.stagiaire-btn-strava {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #fc4c02;
	color: #fff;
	transition: background-color 0.15s ease;
}

.stagiaire-btn-strava:hover,
.stagiaire-btn-strava:focus {
	background: #e34402;
	color: #fff;
}

.stagiaire-strava-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.1em;
	height: 1.1em;
}

.stagiaire-strava-icon svg {
	width: 100%;
	height: 100%;
}

.stagiaire-btn-sm {
	padding: 0.35rem 0.6rem;
	font-size: 0.8rem;
}

.stagiaire-stats-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.stagiaire-stat {
	display: flex;
	flex-direction: column;
}

.stagiaire-stat-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.stagiaire-stat-label {
	font-size: 0.8rem;
	color: var(--stag-muted);
}

/* Currency icons (monedas & tickets) */
.stagiaire-currency-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	vertical-align: middle;
	line-height: 0;
}

.stagiaire-currency-icon-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.stagiaire-currency-icon--xs { width: 16px; height: 16px; }
.stagiaire-currency-icon--sm { width: 24px; height: 24px; }
.stagiaire-currency-icon--md { width: 40px; height: 40px; }
.stagiaire-currency-icon--lg { width: 56px; height: 56px; }
.stagiaire-currency-icon--xl { width: 72px; height: 72px; }

.stagiaire-currency-icon--coin {
	filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.45));
}

.stagiaire-currency-icon--ticket {
	filter: drop-shadow(0 3px 8px rgba(139, 92, 246, 0.45));
}

.stagiaire-currency-icon--animate {
	animation: stag-currency-float 3.5s ease-in-out infinite;
}

.stagiaire-currency-icon--coin.stagiaire-currency-icon--animate {
	animation-name: stag-coin-shimmer;
}

@keyframes stag-currency-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

@keyframes stag-coin-shimmer {
	0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.45)); }
	50% { transform: translateY(-2px) rotate(3deg); filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.65)); }
}

.stagiaire-stat--currency,
.stagiaire-stat--ficha {
	align-items: center;
	text-align: center;
	min-width: 5.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.12);
}

.stagiaire-stat--currency .stagiaire-currency-icon,
.stagiaire-stat--ficha .stagiaire-stat-icon {
	margin-bottom: 0.35rem;
}

.stagiaire-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	line-height: 0;
}

.stagiaire-stat-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.stagiaire-stat-icon--km {
	filter: drop-shadow(0 3px 8px rgba(14, 165, 233, 0.45));
}

.stagiaire-stat-icon--elevation {
	filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.45));
}

.stagiaire-stat-icon--points {
	filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.45));
}

.stagiaire-stat--km {
	border-color: rgba(14, 165, 233, 0.2);
	background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-stat--elevation {
	border-color: rgba(16, 185, 129, 0.2);
	background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-stat--points {
	border-color: rgba(245, 158, 11, 0.2);
	background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-stat--currency .stagiaire-stat-value,
.stagiaire-stat--ficha .stagiaire-stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.stagiaire-stat--currency .stagiaire-stat-label,
.stagiaire-stat--ficha .stagiaire-stat-label {
	margin-top: 0.15rem;
}

.stagiaire-stat--coin {
	border-color: rgba(245, 158, 11, 0.2);
	background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-stat--ticket {
	border-color: rgba(139, 92, 246, 0.2);
	background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(15, 23, 42, 0.35) 100%);
}

/* Home ranking stat */
a.stagiaire-stat--rank {
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.stagiaire-stat--rank:hover,
a.stagiaire-stat--rank:focus-visible {
	transform: translateY(-2px);
	outline: none;
}

.stagiaire-stat--rank {
	border-color: rgba(251, 191, 36, 0.28);
	background: linear-gradient(165deg, rgba(251, 191, 36, 0.14) 0%, rgba(15, 23, 42, 0.42) 55%, rgba(15, 23, 42, 0.35) 100%);
	box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.12);
}

.stagiaire-rank-stat__medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 0.35rem;
	border-radius: 999px;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.stagiaire-stat--rank .stagiaire-stat-label {
	margin-top: 0.1rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.25;
	color: #fde68a;
}

.stagiaire-rank-stat__points {
	margin-top: 0.2rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--stag-muted);
}

.stagiaire-rank-stat__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	margin-top: 0.35rem;
	width: 100%;
}

.stagiaire-rank-stat__total {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--stag-muted);
	line-height: 1.2;
}

.stagiaire-rank-stat__trend {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	padding: 0.12rem 0.4rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.stagiaire-rank-stat__trend-arrow {
	font-size: 0.72rem;
	line-height: 1;
}

.stagiaire-rank-stat__trend--up {
	color: #bbf7d0;
	background: rgba(34, 197, 94, 0.18);
	border: 1px solid rgba(34, 197, 94, 0.45);
	box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.stagiaire-rank-stat__trend--down {
	color: #fecaca;
	background: rgba(239, 68, 68, 0.18);
	border: 1px solid rgba(239, 68, 68, 0.45);
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.stagiaire-stat--rank-1 .stagiaire-rank-stat__medal {
	background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
	color: #78350f;
	box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
}

.stagiaire-stat--rank-1 {
	border-color: rgba(251, 191, 36, 0.5);
	box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.18), 0 6px 22px rgba(251, 191, 36, 0.12);
}

a.stagiaire-stat--rank-1:hover,
a.stagiaire-stat--rank-1:focus-visible {
	border-color: rgba(253, 224, 71, 0.65);
	box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.22), 0 8px 26px rgba(251, 191, 36, 0.22);
}

.stagiaire-stat--rank-2 .stagiaire-rank-stat__medal {
	background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
	color: #334155;
	box-shadow: 0 4px 14px rgba(148, 163, 184, 0.35);
}

.stagiaire-stat--rank-2 {
	border-color: rgba(148, 163, 184, 0.35);
	background: linear-gradient(165deg, rgba(148, 163, 184, 0.12) 0%, rgba(15, 23, 42, 0.42) 55%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-stat--rank-2 .stagiaire-stat-label {
	color: #e2e8f0;
}

.stagiaire-stat--rank-3 .stagiaire-rank-stat__medal {
	background: linear-gradient(180deg, #fdba74 0%, #ea580c 100%);
	color: #431407;
	box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.stagiaire-stat--rank-3 {
	border-color: rgba(251, 146, 60, 0.35);
	background: linear-gradient(165deg, rgba(251, 146, 60, 0.1) 0%, rgba(15, 23, 42, 0.42) 55%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-stat--rank-3 .stagiaire-stat-label {
	color: #fed7aa;
}

.stagiaire-stat--rank-default .stagiaire-rank-stat__medal {
	background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
	color: #1e3a8a;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.stagiaire-stat--rank-default {
	border-color: rgba(59, 130, 246, 0.3);
	background: linear-gradient(165deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.42) 55%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-stat--rank-default .stagiaire-stat-label {
	color: #bfdbfe;
}

.stagiaire-profile-level {
	margin: 0;
}

.stagiaire-profile-level .stagiaire-level-badge {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.stagiaire-profile-level .stagiaire-level-badge__label {
	font-size: 1.25rem;
}

.stagiaire-profile-level .stagiaire-level-jersey--lg {
	width: 64px;
	height: 80px;
}

.stagiaire-profile-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
	gap: 1rem;
}

.stagiaire-profile-stats .stagiaire-stat--currency,
.stagiaire-profile-stats .stagiaire-stat--ficha {
	min-width: 0;
	width: 100%;
}

.stagiaire-currency-amount {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	vertical-align: middle;
}

.stagiaire-currency-amount__value {
	font-weight: 600;
}

.stagiaire-currency-amount__suffix {
	color: var(--stag-muted);
	font-size: 0.9em;
}

.stagiaire-wallet-card .stagiaire-wallet-balance {
	display: flex;
	justify-content: center;
	margin: 0.5rem 0 1.25rem;
}

.stagiaire-draws-wallet {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.stagiaire-draws-wallet__balances {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.stagiaire-draws-wallet__balance .stagiaire-stat--currency {
	width: 100%;
	min-width: 0;
	padding: 1rem 0.85rem;
	border-radius: 14px;
}

.stagiaire-draws-wallet__balance .stagiaire-stat--currency .stagiaire-stat-value {
	font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.stagiaire-draws-wallet__balance .stagiaire-stat--currency .stagiaire-stat-label {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.stagiaire-draws-wallet__balance--tickets .stagiaire-stat--ticket {
	border-color: rgba(139, 92, 246, 0.35);
	background: linear-gradient(165deg, rgba(139, 92, 246, 0.16) 0%, rgba(15, 23, 42, 0.42) 100%);
	box-shadow: inset 0 1px 0 rgba(196, 181, 253, 0.12);
}

.stagiaire-draws-wallet__balance--coins .stagiaire-stat--coin {
	border-color: rgba(251, 191, 36, 0.35);
	background: linear-gradient(165deg, rgba(251, 191, 36, 0.14) 0%, rgba(15, 23, 42, 0.42) 100%);
	box-shadow: inset 0 1px 0 rgba(253, 230, 138, 0.12);
}

.stagiaire-draws-wallet__action {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
}

.stagiaire-buy-ticket {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	border: 1px solid rgba(180, 83, 9, 0.35);
	background: linear-gradient(135deg, var(--stag-brand-bright) 0%, var(--stag-brand-light) 45%, var(--stag-brand) 100%);
	color: var(--stag-brand-text);
	font-weight: 700;
	box-shadow:
		0 8px 24px rgba(245, 158, 11, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.stagiaire-buy-ticket:hover:not(:disabled),
.stagiaire-buy-ticket:focus-visible:not(:disabled) {
	transform: translateY(-2px);
	background: linear-gradient(135deg, #fef3c7 0%, var(--stag-brand-bright) 40%, var(--stag-brand-light) 100%);
	color: var(--stag-brand-text);
	box-shadow:
		0 12px 28px rgba(251, 191, 36, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.stagiaire-buy-ticket:active:not(:disabled) {
	transform: translateY(0);
}

.stagiaire-buy-ticket:disabled {
	opacity: 1;
	border-color: rgba(100, 116, 139, 0.35);
}

.stagiaire-buy-ticket__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stagiaire-buy-ticket__icon .stagiaire-currency-icon {
	filter: drop-shadow(0 3px 8px rgba(139, 92, 246, 0.35));
}

.stagiaire-buy-ticket__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
	text-align: left;
}

.stagiaire-buy-ticket__title {
	font-size: clamp(1rem, 3vw, 1.15rem);
	line-height: 1.2;
	letter-spacing: 0.01em;
}

.stagiaire-buy-ticket__cost {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.92rem;
	font-weight: 700;
	opacity: 0.92;
}

.stagiaire-buy-ticket__cost .stagiaire-currency-amount__value {
	font-weight: 800;
}

.stagiaire-draws-wallet__hint {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--stag-muted);
	text-align: center;
}

.stagiaire-draws-wallet__hint--ready {
	color: #86efac;
}

.stagiaire-wallet-card .stagiaire-stat--currency {
	min-width: 8rem;
	padding: 1rem 1.5rem;
}

.stagiaire-wallet-card .stagiaire-stat--currency .stagiaire-stat-value {
	font-size: 2.25rem;
}

.stagiaire-draw-cost,
.stagiaire-race-reward,
.stagiaire-salary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.stagiaire-draws-grid {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	align-items: stretch;
}

.stagiaire-draw-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
	padding: 1rem;
}

.stagiaire-draw-card__header {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.stagiaire-draw-card__media {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.75rem;
	height: 4.75rem;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.16);
	overflow: hidden;
}

.stagiaire-draw-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stagiaire-draw-card__intro {
	min-width: 0;
	flex: 1;
}

.stagiaire-draw-card__title {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
	line-height: 1.25;
}

.stagiaire-draw-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.stagiaire-draw-card__tag {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	color: #cbd5e1;
	background: rgba(51, 65, 85, 0.65);
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.stagiaire-draw-card__tag--prize {
	color: #fde68a;
	background: rgba(245, 158, 11, 0.14);
	border-color: rgba(251, 191, 36, 0.28);
}

.stagiaire-draw-card__desc {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--stag-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.stagiaire-draw-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.stagiaire-draw-card__badge {
	display: inline-flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.45rem 0.7rem;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.16);
}

.stagiaire-draw-card__badge-label {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--stag-muted);
}

.stagiaire-draw-card__badge-value {
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--stag-text);
}

.stagiaire-draw-card__badge--date {
	border-color: rgba(59, 130, 246, 0.25);
	background: linear-gradient(165deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.42) 100%);
}

.stagiaire-draw-card__action {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: auto;
}

.stagiaire-enter-draw {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.85rem 1rem;
	border-radius: 12px;
}

.stagiaire-enter-draw__label {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.stagiaire-enter-draw__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	margin-left: 0.4rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.22);
	border: 1px solid rgba(15, 23, 42, 0.14);
	font-size: 0.85rem;
	font-weight: 800;
	line-height: 1.2;
	vertical-align: middle;
}

.stagiaire-enter-draw__tickets {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.18);
	border: 1px solid rgba(15, 23, 42, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.stagiaire-enter-draw__tickets-value {
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1;
	min-width: 1.1rem;
	text-align: center;
}

.stagiaire-draw-card__hint {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #fca5a5;
	text-align: center;
}

.stagiaire-draw-card--entered {
	border-color: rgba(34, 197, 94, 0.28);
	box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.1);
}

.stagiaire-draw-card__entered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: linear-gradient(165deg, rgba(34, 197, 94, 0.16) 0%, rgba(15, 23, 42, 0.42) 100%);
	border: 1px solid rgba(34, 197, 94, 0.35);
	text-align: center;
}

.stagiaire-draw-card__entered-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #bbf7d0;
	background: rgba(34, 197, 94, 0.22);
	border: 1px solid rgba(34, 197, 94, 0.4);
}

.stagiaire-draw-card__entered-meta {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--stag-muted);
	line-height: 1.35;
}

.stagiaire-draw-history__list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stagiaire-draw-history__item {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr) auto;
	grid-template-areas: "thumb body result";
	align-items: center;
	gap: 0.75rem 0.85rem;
	padding: 0.85rem 1.55rem 0.85rem 1.5rem;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.35);
	border: 1px solid rgba(148, 163, 184, 0.14);
	overflow: hidden;
}

.stagiaire-draw-history__item--winner {
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(15, 23, 42, 0.42) 55%);
	border-color: rgba(251, 191, 36, 0.35);
	box-shadow: inset 3px 0 0 #fbbf24;
}

.stagiaire-draw-history__item--lost {
	box-shadow: inset 3px 0 0 rgba(100, 116, 139, 0.65);
}

.stagiaire-draw-history__item--pending {
	box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.45);
}

.stagiaire-draw-history__thumb {
	grid-area: thumb;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-left: 0.55rem;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.16);
	overflow: hidden;
}

.stagiaire-draw-history__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stagiaire-draw-history__thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0.35rem;
	opacity: 0.85;
}

.stagiaire-draw-history__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
	align-self: center;
}

.stagiaire-draw-history__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	color: #f8fafc;
	flex: 1;
	min-width: 0;
}

.stagiaire-draw-history__meta {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--stag-muted);
}

.stagiaire-draw-history__result {
	grid-area: result;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
	align-self: center;
	max-width: 9.5rem;
	margin-right: 0.55rem;
	padding: 0.35rem 0.6rem 0.35rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.1;
	text-align: left;
	letter-spacing: 0.01em;
}

.stagiaire-draw-history__result-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.stagiaire-draw-history__result-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.stagiaire-draw-history__result-label {
	min-width: 0;
}

.stagiaire-draw-history__result--winner {
	background: linear-gradient(180deg, #fef3c7 0%, #fbbf24 55%, #f59e0b 100%);
	color: #451a03;
	box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.stagiaire-draw-history__result--lost {
	background: rgba(51, 65, 85, 0.72);
	color: rgba(226, 232, 240, 0.92);
	border: 1px solid rgba(148, 163, 184, 0.22);
}

.stagiaire-draw-history__result--pending {
	background: rgba(30, 41, 59, 0.82);
	color: #fde68a;
	border: 1px solid rgba(251, 191, 36, 0.28);
	box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08);
}

.stagiaire-salary-period {
	color: var(--stag-muted);
	font-size: 0.9em;
}

.stagiaire-jersey {
	display: inline-block;
	width: 32px;
	height: 40px;
	border-radius: 4px;
	vertical-align: middle;
}

.stagiaire-team-jersey {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	vertical-align: middle;
}

.stagiaire-team-jersey-img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.28));
}

.stagiaire-team-jersey--sm {
	width: 32px;
}

.stagiaire-team-jersey--md {
	width: 56px;
}

.stagiaire-team-jersey--lg {
	width: 80px;
}

.stagiaire-team-jersey--xl {
	width: 120px;
}

.stagiaire-team-jersey--hero {
	width: 176px;
}

.stagiaire-profile-team,
.stagiaire-profile-team-history {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.stagiaire-profile-team {
	flex-wrap: nowrap;
}

.stagiaire-profile-team-history {
	flex-wrap: wrap;
}

.stagiaire-profile-team__name {
	min-width: 0;
	overflow-wrap: anywhere;
	line-height: 1.25;
}

.stagiaire-team-header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.stagiaire-team-header .stagiaire-team-jersey {
	width: clamp(96px, 18vw, 140px);
}

.stagiaire-team-card .stagiaire-team-jersey {
	margin: 0 auto 1rem;
	width: clamp(72px, 20vw, 104px);
}

.stagiaire-jersey-sm {
	width: 20px;
	height: 26px;
}

.stagiaire-jersey-lg {
	width: 48px;
	height: 60px;
}

.stagiaire-hero-user {
	margin-bottom: 0.5rem;
}

.stagiaire-hero-user__name {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.stagiaire-hero-level {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 1.5rem 1.25rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.45) 100%);
	border: 1px solid rgba(59, 130, 246, 0.25);
}

.stagiaire-hero-level .stagiaire-level-badge {
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
}

.stagiaire-hero-level .stagiaire-level-badge__label {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.stagiaire-hero-level__team {
	color: var(--stag-muted);
	font-size: 0.9rem;
}

.stagiaire-hero-stats {
	gap: 1rem;
}

.stagiaire-hero-stats .stagiaire-stat--currency {
	min-width: 5rem;
	padding: 0.4rem 0.6rem;
}

.stagiaire-hero-stats .stagiaire-stat--currency .stagiaire-stat-value {
	font-size: 1.25rem;
}

.stagiaire-hero-stats .stagiaire-stat--currency .stagiaire-stat-label {
	font-size: 0.75rem;
}

.stagiaire-hero-stats .stagiaire-stat--rank {
	min-width: 5rem;
	padding: 0.4rem 0.6rem;
}

.stagiaire-hero-stats .stagiaire-rank-stat__medal {
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.2rem;
}

.stagiaire-hero-stats .stagiaire-stat--rank .stagiaire-stat-label {
	font-size: 0.68rem;
}

.stagiaire-hero-stats .stagiaire-rank-stat__points {
	font-size: 0.72rem;
}

.stagiaire-hero-stats .stagiaire-rank-stat__total {
	font-size: 0.64rem;
}

.stagiaire-hero-stats .stagiaire-rank-stat__trend {
	font-size: 0.62rem;
	padding: 0.1rem 0.35rem;
}

.stagiaire-progress-bar {
	height: 10px;
	background: #334155;
	border-radius: 5px;
	overflow: hidden;
	margin: 0.5rem 0;
}

.stagiaire-progress-fill {
	height: 100%;
	background: var(--stag-accent);
	transition: width 0.3s;
}

.stagiaire-progress-level {
	background: var(--stag-success);
}

.stagiaire-progress-text {
	font-size: 0.85rem;
	color: var(--stag-muted);
}

.stagiaire-race-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0.5rem 0;
	font-size: 0.85rem;
	color: var(--stag-muted);
}

.stagiaire-race-profile-wrap {
	margin: 0.75rem 0;
}

.stagiaire-race-profile {
	--stagiaire-profile-height: 72px;
	position: relative;
	width: 100%;
	height: var(--stagiaire-profile-height);
	border-radius: 10px;
	overflow: hidden;
	box-shadow:
		inset 0 0 0 1px rgba(148, 163, 184, 0.18),
		0 10px 24px rgba(2, 6, 23, 0.35);
}

.stagiaire-race-profile__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.stagiaire-race-profile__grid {
	stroke: rgba(148, 163, 184, 0.14);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.stagiaire-race-profile__area {
	opacity: 0.95;
}

.stagiaire-race-profile__line {
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.stagiaire-race-profile__line--animate {
	stroke-dasharray: 1200;
	stroke-dashoffset: 1200;
	animation: stagiaire-profile-draw 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagiaire-race-profile__progress-line {
	stroke: rgba(255, 255, 255, 0.55);
	stroke-width: 1.5;
	stroke-dasharray: 4 4;
	vector-effect: non-scaling-stroke;
}

.stagiaire-race-profile__marker {
	stroke: rgba(15, 23, 42, 0.85);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.stagiaire-race-profile__marker-halo {
	vector-effect: non-scaling-stroke;
}

.stagiaire-race-profile--sm {
	--stagiaire-profile-height: 56px;
}

.stagiaire-race-profile--md {
	--stagiaire-profile-height: 72px;
}

.stagiaire-race-profile--lg {
	--stagiaire-profile-height: 96px;
}

.stagiaire-race-profile--xl {
	--stagiaire-profile-height: 120px;
}

.stagiaire-race-profile--monument {
	box-shadow:
		inset 0 0 0 1px rgba(251, 191, 36, 0.35),
		0 12px 28px rgba(120, 53, 15, 0.35);
}

.stagiaire-race-profile--has-progress {
	box-shadow:
		inset 0 0 0 1px rgba(59, 130, 246, 0.35),
		0 12px 28px rgba(15, 23, 42, 0.45);
}

@keyframes stagiaire-profile-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.stagiaire-race-card__header {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin-bottom: 0.75rem;
}

.stagiaire-race-card__heading {
	min-width: 0;
	flex: 1;
}

.stagiaire-race-card__heading h3 {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.25;
}

.stagiaire-race-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--stagiaire-race-logo-size, 56px);
	height: var(--stagiaire-race-logo-size, 56px);
	filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.35));
}

.stagiaire-race-logo--sm { --stagiaire-race-logo-size: 40px; }
.stagiaire-race-logo--md { --stagiaire-race-logo-size: 56px; }
.stagiaire-race-logo--lg { --stagiaire-race-logo-size: 72px; }
.stagiaire-race-logo--xl { --stagiaire-race-logo-size: 96px; }

.stagiaire-race-logo--monument {
	filter: drop-shadow(0 10px 22px rgba(120, 53, 15, 0.45));
}

.stagiaire-race-logo__img,
.stagiaire-race-logo__svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.stagiaire-active-race {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
}

.stagiaire-active-race__body {
	min-width: 0;
}

.stagiaire-active-race__body .stagiaire-race-profile + .stagiaire-btn {
	margin-top: 1.25rem;
}

.stagiaire-race-history__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.stagiaire-race-history__name {
	flex: 1;
	min-width: 0;
}

@media (max-width: 640px) {
	.stagiaire-active-race {
		grid-template-columns: 1fr;
	}

	.stagiaire-race-card__header {
		align-items: center;
	}

	.stagiaire-race-active__pct {
		font-size: 1rem;
	}

	.stagiaire-race-active__link {
		align-self: stretch;
		text-align: center;
	}

	.stagiaire-race-card .stagiaire-join-race {
		display: block;
		width: fit-content;
		max-width: 100%;
		margin-inline: auto;
	}

	.stagiaire-races__grid--collapsible:not(.stagiaire-races__grid--expanded) > .stagiaire-race-card:nth-child(n+4),
	.stagiaire-teams__grid--collapsible:not(.stagiaire-teams__grid--expanded) > .stagiaire-team-card:nth-child(n+4) {
		display: none;
	}
}

@media (min-width: 641px) {
	.stagiaire-races__more,
	.stagiaire-teams__more {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stagiaire-race-profile__line--animate {
		animation: none;
		stroke-dashoffset: 0;
	}

	.stagiaire-races__more::before,
	.stagiaire-teams__more::before {
		display: none;
	}

	.stagiaire-races__more,
	.stagiaire-races__more-icon,
	.stagiaire-teams__more,
	.stagiaire-teams__more-icon {
		transition: none;
	}
}

.stagiaire-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	background: #f59e0b;
	color: #000;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
}

.stagiaire-badge-monument {
	background: #a855f7;
	color: #fff;
}

.stagiaire-status {
	font-size: 0.85rem;
	color: var(--stag-muted);
}

.stagiaire-status-active { color: var(--stag-accent); }
.stagiaire-status-completed { color: var(--stag-success); }

.stagiaire-race-card--active {
	box-shadow:
		inset 0 0 0 1px rgba(59, 130, 246, 0.35),
		0 16px 36px rgba(59, 130, 246, 0.14);
}

.stagiaire-races__more,
.stagiaire-teams__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	margin-top: 1rem;
	padding: 0.82rem 1.2rem;
	border-radius: 12px;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid rgba(255, 196, 0, 0.4);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.25),
		0 8px 24px rgba(245, 158, 11, 0.32);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease,
		background 0.22s ease;
}

.stagiaire-races__more::before,
.stagiaire-teams__more::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		120deg,
		transparent 0%,
		rgba(255, 255, 255, 0.2) 45%,
		transparent 70%
	);
	transform: translateX(-120%);
	transition: transform 0.55s ease;
	pointer-events: none;
}

.stagiaire-races__more:hover::before,
.stagiaire-races__more:focus-visible::before,
.stagiaire-teams__more:hover::before,
.stagiaire-teams__more:focus-visible::before {
	transform: translateX(120%);
}

.stagiaire-races__more:hover,
.stagiaire-races__more:focus-visible,
.stagiaire-teams__more:hover,
.stagiaire-teams__more:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(255, 224, 102, 0.65);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.3),
		0 12px 28px rgba(251, 191, 36, 0.42);
}

.stagiaire-races__more:active,
.stagiaire-teams__more:active {
	transform: translateY(0);
}

.stagiaire-races__more-label,
.stagiaire-races__more-icon,
.stagiaire-teams__more-label,
.stagiaire-teams__more-icon {
	position: relative;
	z-index: 1;
}

.stagiaire-races__more-icon,
.stagiaire-teams__more-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: rgba(11, 11, 11, 0.14);
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.stagiaire-races__more-icon svg,
.stagiaire-teams__more-icon svg {
	width: 1.1rem;
	height: 1.1rem;
}

.stagiaire-races__more[aria-expanded="true"],
.stagiaire-teams__more[aria-expanded="true"] {
	background: linear-gradient(180deg, var(--stag-brand-bright) 0%, var(--stag-brand-light) 55%, var(--stag-brand) 100%);
}

.stagiaire-races__more[aria-expanded="true"] .stagiaire-races__more-icon,
.stagiaire-teams__more[aria-expanded="true"] .stagiaire-teams__more-icon {
	transform: rotate(180deg);
	background: rgba(11, 11, 11, 0.18);
}

.stagiaire-race-active {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 0.9rem 1rem;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.06));
	border: 1px solid rgba(59, 130, 246, 0.38);
	border-radius: 10px;
}

.stagiaire-race-active--compact {
	flex-direction: row;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.85rem;
	width: fit-content;
}

.stagiaire-race-active__header {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.stagiaire-race-active__pulse {
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #60a5fa;
	box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.65);
	animation: stagiaire-active-pulse 1.8s ease-out infinite;
}

.stagiaire-race-active__label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #93c5fd;
}

.stagiaire-race-active__pct {
	margin-left: auto;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	color: var(--stag-text);
}

.stagiaire-race-active__bar {
	margin: 0;
	height: 8px;
	background: rgba(15, 23, 42, 0.55);
}

.stagiaire-progress-race {
	background: linear-gradient(90deg, #2563eb, #60a5fa);
	box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.stagiaire-race-active__stats {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--stag-muted);
}

.stagiaire-race-active__link {
	font-size: 0.85rem;
	font-weight: 600;
	color: #93c5fd;
	text-decoration: none;
	align-self: flex-start;
}

.stagiaire-race-active__link:hover,
.stagiaire-race-active__link:focus {
	color: #bfdbfe;
	text-decoration: underline;
}

@keyframes stagiaire-active-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.65);
	}
	70% {
		box-shadow: 0 0 0 9px rgba(96, 165, 250, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.stagiaire-race-active__pulse {
		animation: none;
	}
}

.stagiaire-table-wrap {
	overflow-x: auto;
}

.stagiaire-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.stagiaire-table th,
.stagiaire-table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #334155;
}

.stagiaire-table a {
	color: var(--stag-accent);
}

.stagiaire-rankings__table.stagiaire-table th,
.stagiaire-rankings__table.stagiaire-table td {
	border: 0;
	border-bottom: 0;
}

.stagiaire-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}

.stagiaire-filters select {
	padding: 0.5rem;
	border-radius: 8px;
	border: 1px solid #334155;
	background: var(--stag-card);
	color: var(--stag-text);
}

/* Rankings */
.stagiaire-rankings__hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin-bottom: 1.25rem;
	padding: 0;
	border-radius: 16px;
	border: 1px solid transparent;
	overflow: hidden;
	isolation: isolate;
}

.stagiaire-rankings__hero-trigger {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	width: 100%;
	margin: 0;
	padding: 1.35rem 1.5rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: default;
	pointer-events: none;
}

.stagiaire-rankings__hero-chevron {
	display: none;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-left: auto;
	color: var(--stag-muted);
	transition: transform 0.2s ease;
}

.stagiaire-rankings__hero-chevron svg {
	display: block;
	width: 100%;
	height: 100%;
}

.stagiaire-rankings__hero.is-open .stagiaire-rankings__hero-chevron {
	transform: rotate(180deg);
}

.stagiaire-rankings__type-menu {
	display: none;
}

.stagiaire-rankings__hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
}

.stagiaire-rankings__hero::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 42%;
	background: repeating-linear-gradient(
		-55deg,
		transparent,
		transparent 10px,
		rgba(255, 255, 255, 0.035) 10px,
		rgba(255, 255, 255, 0.035) 20px
	);
	mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
	z-index: 0;
	pointer-events: none;
}

.stagiaire-rankings__hero-jersey,
.stagiaire-rankings__hero-copy {
	position: relative;
	z-index: 1;
}

.stagiaire-rankings__hero-jersey {
	flex-shrink: 0;
	width: 56px;
	height: 68px;
	border-radius: 10px 10px 14px 14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stagiaire-rankings__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 4vw, 1.85rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.1;
}

.stagiaire-rankings__subtitle {
	margin: 0;
	font-size: 0.92rem;
	color: var(--stag-muted);
}

.stagiaire-rankings--general .stagiaire-rankings__hero {
	border-color: rgba(251, 191, 36, 0.5);
	box-shadow: 0 4px 32px rgba(251, 191, 36, 0.18), inset 0 1px 0 rgba(253, 224, 71, 0.16);
}

.stagiaire-rankings--general .stagiaire-rankings__hero::before {
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.38) 0%, rgba(180, 83, 9, 0.14) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-rankings--general .stagiaire-rankings__hero-jersey {
	background: linear-gradient(180deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
}

.stagiaire-rankings--general .stagiaire-rankings__title {
	color: #fde68a;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.stagiaire-rankings--road .stagiaire-rankings__hero {
	border-color: rgba(34, 197, 94, 0.45);
	box-shadow: 0 4px 28px rgba(34, 197, 94, 0.18), inset 0 1px 0 rgba(134, 239, 172, 0.14);
}

.stagiaire-rankings--road .stagiaire-rankings__hero::before {
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.32) 0%, rgba(21, 128, 61, 0.12) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-rankings--road .stagiaire-rankings__hero-jersey {
	background: linear-gradient(180deg, #86efac 0%, #22c55e 55%, #15803d 100%);
}

.stagiaire-rankings--road .stagiaire-rankings__title {
	color: #bbf7d0;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.stagiaire-rankings--mountain .stagiaire-rankings__hero {
	border-color: rgba(248, 113, 113, 0.42);
	box-shadow: 0 4px 28px rgba(239, 68, 68, 0.16), inset 0 1px 0 rgba(254, 202, 202, 0.14);
}

.stagiaire-rankings--mountain .stagiaire-rankings__hero::before {
	background: linear-gradient(135deg, rgba(248, 250, 252, 0.22) 0%, rgba(239, 68, 68, 0.14) 45%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-rankings--mountain .stagiaire-rankings__hero-jersey {
	background-color: #f8fafc;
	background-image: radial-gradient(circle at 30% 35%, #ef4444 3px, transparent 3.5px),
		radial-gradient(circle at 65% 55%, #ef4444 3px, transparent 3.5px),
		radial-gradient(circle at 45% 75%, #ef4444 3px, transparent 3.5px),
		radial-gradient(circle at 75% 25%, #ef4444 3px, transparent 3.5px);
	background-size: 18px 18px;
}

.stagiaire-rankings--mountain .stagiaire-rankings__title {
	color: #fecaca;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.stagiaire-rankings__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.25rem;
	padding: 1rem 1.15rem;
	border-radius: var(--stag-radius);
	background: var(--stag-card);
	border: 1px solid rgba(148, 163, 184, 0.16);
}

.stagiaire-rankings__filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: min(100%, 12rem);
	flex: 1 1 12rem;
}

.stagiaire-rankings__filter-label {
	padding: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--stag-muted);
}

.stagiaire-rankings__filter {
	position: relative;
	display: block;
}

.stagiaire-rankings__filter select {
	width: 100%;
	padding: 0.78rem 3.15rem 0.78rem 1rem;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background:
		linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.9) 100%);
	color: var(--stag-text);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 6px 18px rgba(2, 6, 23, 0.28);
	transition:
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		transform 0.22s ease,
		background 0.22s ease;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.stagiaire-rankings__filter::before {
	content: '';
	position: absolute;
	right: 0.42rem;
	top: 50%;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 10px;
	transform: translateY(-50%);
	background:
		linear-gradient(145deg, rgba(252, 211, 77, 0.34) 0%, rgba(245, 158, 11, 0.2) 52%, rgba(245, 158, 11, 0.1) 100%);
	border: 1px solid rgba(251, 191, 36, 0.38);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 4px 12px rgba(245, 158, 11, 0.18);
	pointer-events: none;
	transition:
		background 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		transform 0.22s ease;
}

.stagiaire-rankings__filter::after {
	content: '';
	position: absolute;
	right: 1.02rem;
	top: 50%;
	width: 0.95rem;
	height: 0.95rem;
	border: none;
	transform: translateY(-50%);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 10.2 12 14.7l4.5-4.5' stroke='%23fcd34d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	filter: drop-shadow(0 1px 3px rgba(245, 158, 11, 0.45));
	pointer-events: none;
	transition: transform 0.22s ease, filter 0.22s ease;
}

.stagiaire-rankings__filter select:hover {
	border-color: rgba(251, 191, 36, 0.42);
	background:
		linear-gradient(180deg, rgba(37, 48, 68, 0.98) 0%, rgba(17, 28, 46, 0.94) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.07),
		0 10px 24px rgba(245, 158, 11, 0.12),
		0 6px 18px rgba(2, 6, 23, 0.32);
	transform: translateY(-1px);
}

.stagiaire-rankings__filter select:focus-visible {
	border-color: rgba(252, 211, 77, 0.62);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 0 0 3px rgba(251, 191, 36, 0.18),
		0 12px 28px rgba(245, 158, 11, 0.16);
	outline: none;
}

.stagiaire-rankings__filter:has(select:hover)::before,
.stagiaire-rankings__filter:has(select:focus-visible)::before {
	background:
		linear-gradient(145deg, rgba(252, 211, 77, 0.52) 0%, rgba(251, 191, 36, 0.34) 55%, rgba(245, 158, 11, 0.2) 100%);
	border-color: rgba(252, 211, 77, 0.58);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		0 6px 16px rgba(245, 158, 11, 0.28);
	transform: translateY(calc(-50% - 1px));
}

.stagiaire-rankings__filter:has(select:focus-visible)::after {
	transform: translateY(-50%) scale(1.08);
	filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.55));
}

.stagiaire-rankings__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
}

.stagiaire-rankings__search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	flex: 1 1 16rem;
}

.stagiaire-rankings__search-field {
	--stag-rankings-search-border: rgba(148, 163, 184, 0.28);
	display: block;
	flex: 1 1 12rem;
	min-width: min(100%, 12rem);
	border: 1px solid var(--stag-rankings-search-border);
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.55);
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.stagiaire-rankings__search-field:focus-within {
	--stag-rankings-search-border: rgba(255, 196, 0, 0.42);
	background: rgba(15, 23, 42, 0.72);
	box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.1);
}

.stagiaire-rankings__search-input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: var(--stag-text);
	font-size: 0.9rem;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	caret-color: var(--stag-brand);
	box-shadow: none;
}

.stagiaire-rankings__search-input::placeholder {
	color: rgba(156, 163, 175, 0.72);
}

.stagiaire-rankings__search-input:focus,
.stagiaire-rankings__search-input:focus-visible {
	outline: none;
	border: 0;
	box-shadow: none;
}

.stagiaire-app .stagiaire-rankings__search-field,
.stagiaire-app .stagiaire-rankings__search-field:focus-within {
	outline: 0;
}

.stagiaire-app .stagiaire-rankings__search-input,
.stagiaire-app .stagiaire-rankings__search-input:focus,
.stagiaire-app .stagiaire-rankings__search-input:focus-visible,
.stagiaire-app input.stagiaire-rankings__search-input:focus {
	outline: 0 !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
	border: 0 !important;
	background: transparent !important;
}

.stagiaire-rankings__search-btn {
	font-weight: 600;
	color: var(--stag-brand-text);
}

.stagiaire-rankings__search-btn:hover,
.stagiaire-rankings__search-btn:focus-visible {
	color: var(--stag-brand-text);
}

.stagiaire-rankings__search-clear {
	background: rgba(148, 163, 184, 0.1);
	color: var(--stag-muted);
	border: 1px solid rgba(148, 163, 184, 0.24);
}

.stagiaire-rankings__search-clear:hover,
.stagiaire-rankings__search-clear:focus-visible {
	background: rgba(148, 163, 184, 0.16);
	color: var(--stag-text);
}

.stagiaire-rankings__my-position {
	flex: 0 0 auto;
	white-space: nowrap;
}

.stagiaire-rankings__podium {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: end;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
}

.stagiaire-rankings__podium-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.55rem;
	padding: 1rem 0.75rem 1.15rem;
	border-radius: 16px;
	background: linear-gradient(165deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.45) 100%);
	border: 1px solid rgba(148, 163, 184, 0.18);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.stagiaire-rankings__podium-item:hover {
	transform: translateY(-2px);
	border-color: rgba(148, 163, 184, 0.32);
}

.stagiaire-rankings__podium-item--1 {
	order: 2;
	padding-top: 1.35rem;
	padding-bottom: 1.35rem;
	border-color: rgba(251, 191, 36, 0.45);
	box-shadow: 0 8px 28px rgba(251, 191, 36, 0.15);
}

.stagiaire-rankings__podium-item--2 {
	order: 1;
}

.stagiaire-rankings__podium-item--3 {
	order: 3;
}

.stagiaire-rankings__podium-item--self {
	outline: 2px solid rgba(251, 191, 36, 0.55);
	outline-offset: 2px;
}

.stagiaire-rankings__podium-medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
}

.stagiaire-rankings__podium-item--1 .stagiaire-rankings__podium-medal {
	background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
	color: #78350f;
	box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
}

.stagiaire-rankings__podium-item--2 .stagiaire-rankings__podium-medal {
	background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
	color: #334155;
}

.stagiaire-rankings__podium-item--3 .stagiaire-rankings__podium-medal {
	background: linear-gradient(180deg, #fdba74 0%, #ea580c 100%);
	color: #431407;
}

.stagiaire-rankings__podium-jersey {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5.5rem;
}

.stagiaire-rankings__podium-name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.stagiaire-rankings__podium-name a {
	color: var(--stag-text);
	text-decoration: none;
}

.stagiaire-rankings__podium-name a:hover,
.stagiaire-rankings__podium-name a:focus-visible {
	color: var(--stag-brand-light);
}

.stagiaire-rankings__podium-team {
	margin: 0;
	font-size: 0.78rem;
	color: var(--stag-muted);
}

.stagiaire-rankings__podium-points {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.3rem;
	margin: 0;
	font-size: 0.85rem;
	color: var(--stag-muted);
}

.stagiaire-rankings__podium-points strong {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--stag-text);
}

.stagiaire-rankings__podium-action {
	width: 100%;
	margin-top: 0.15rem;
}

.stagiaire-rankings__board {
	position: relative;
	padding: 0;
	margin-bottom: 0;
	overflow: hidden;
	background: linear-gradient(165deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
	border: none;
	outline: none;
	border-radius: 18px;
	box-shadow:
		0 14px 42px rgba(245, 158, 11, 0.14),
		0 28px 56px rgba(15, 23, 42, 0.48);
}

.stagiaire-rankings__board::after {
	content: '';
	position: absolute;
	top: -40%;
	right: -15%;
	width: 55%;
	height: 80%;
	background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 68%);
	pointer-events: none;
}

.stagiaire-rankings__board-title {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fde68a;
}

.stagiaire-rankings__board-header {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding: 1.1rem 1.25rem 0.85rem;
}

.stagiaire-rankings__board-heading {
	flex: 1 1 auto;
	min-width: 0;
}

.stagiaire-rankings__board-actions {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.35rem;
}

.stagiaire-rankings__followed-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(15, 23, 42, 0.55);
	color: rgba(226, 232, 240, 0.72);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.stagiaire-rankings__followed-toggle svg {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.stagiaire-rankings__followed-toggle-label {
	display: none;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	line-height: 1;
}

.stagiaire-rankings__followed-toggle:hover,
.stagiaire-rankings__followed-toggle:focus-visible {
	border-color: rgba(255, 196, 0, 0.45);
	color: #fde68a;
	background: rgba(15, 23, 42, 0.72);
}

.stagiaire-rankings__followed-toggle:focus-visible {
	outline: 2px solid rgba(255, 196, 0, 0.55);
	outline-offset: 2px;
}

.stagiaire-rankings__followed-toggle.is-active {
	border-color: rgba(255, 196, 0, 0.55);
	color: #fbbf24;
	background: rgba(255, 196, 0, 0.12);
	box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.12);
}

.stagiaire-rankings__toolbar .stagiaire-rankings__followed-toggle {
	flex: 0 0 auto;
}

.stagiaire-rankings__controls-open {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.24);
	background: rgba(15, 23, 42, 0.55);
	color: var(--stag-text);
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.stagiaire-rankings__controls-open svg {
	width: 1.15rem;
	height: 1.15rem;
}

.stagiaire-rankings__controls-open:hover,
.stagiaire-rankings__controls-open:focus-visible {
	border-color: rgba(251, 191, 36, 0.42);
	background: rgba(15, 23, 42, 0.72);
	box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.1);
	outline: none;
}

.stagiaire-rankings__controls-open--active::after {
	content: '';
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #fcd34d;
	box-shadow: 0 0 0 2px var(--stag-card);
}

.stagiaire-rankings__controls-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.stagiaire-rankings__controls-dialog-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--stag-text);
}

.stagiaire-rankings__controls-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	flex-shrink: 0;
}

.stagiaire-rankings__controls-close svg {
	width: 1.1rem;
	height: 1.1rem;
}

.stagiaire-rankings__controls-body .stagiaire-rankings__toolbar {
	margin-bottom: 0;
}

@media (min-width: 601px) {
	.stagiaire-rankings__controls-modal {
		display: none !important;
	}

	.stagiaire-rankings__controls-open {
		display: none !important;
	}

	.stagiaire-rankings__board-actions {
		display: none;
	}

	.stagiaire-rankings__board-header--controls {
		display: none;
	}

	.stagiaire-rankings__board-header {
		align-items: baseline;
	}

	.stagiaire-rankings__board-heading {
		display: contents;
	}

	.stagiaire-rankings__followed-toggle {
		width: auto;
		min-width: 2.5rem;
		padding: 0 0.75rem;
	}

	.stagiaire-rankings__followed-toggle-label {
		display: inline;
	}
}

@keyframes stagiaire-rankings-controls-in {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.stagiaire-rankings__board-meta {
	margin: 0;
	font-size: 0.82rem;
	color: var(--stag-muted);
}

.stagiaire-rankings__pagination {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.85rem 1.25rem 1.15rem;
	border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.stagiaire-rankings__pagination-status {
	font-size: 0.88rem;
	color: var(--stag-muted);
}

.stagiaire-rankings__pagination-btn--disabled {
	opacity: 0.45;
	pointer-events: none;
}

.stagiaire-rankings__infinite {
	position: relative;
	z-index: 1;
	padding: 0.35rem 1.25rem 1.15rem;
	border-top: 1px solid rgba(148, 163, 184, 0.14);
	text-align: center;
}

.stagiaire-rankings__infinite-status {
	margin: 0;
	min-height: 1.25rem;
	font-size: 0.88rem;
	color: var(--stag-muted);
}

.stagiaire-rankings__infinite-status[hidden] {
	display: none;
}

.stagiaire-rankings__infinite-sentinel {
	height: 1px;
	width: 100%;
	pointer-events: none;
}

.stagiaire-rankings__table-wrap {
	position: relative;
	z-index: 1;
	overflow-x: auto;
	padding: 0 0.35rem 0.35rem;
}

.stagiaire-rankings__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0 0.45rem;
	font-size: 0.9rem;
	background: transparent;
}

.stagiaire-rankings__table thead th {
	padding: 0 1rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--stag-muted);
	border: 0;
	background: transparent;
}

.stagiaire-rankings__col-pos {
	width: 4.5rem;
}

.stagiaire-rankings__col-points,
.stagiaire-rankings__col-actions {
	text-align: right;
}

.stagiaire-rankings__table tbody tr {
	background: rgba(2, 6, 23, 0.38);
	box-shadow: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.stagiaire-rankings__table tbody tr:hover {
	background: rgba(251, 191, 36, 0.07);
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.1);
}

.stagiaire-rankings__table tbody td {
	vertical-align: middle;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
}

.stagiaire-rankings__table tbody td:first-child {
	border-radius: 12px 0 0 12px;
}

.stagiaire-rankings__table tbody td:last-child {
	border-radius: 0 12px 12px 0;
}

.stagiaire-rankings__row--self {
	background: rgba(251, 191, 36, 0.11);
	box-shadow: 0 0 28px rgba(245, 158, 11, 0.1);
}

.stagiaire-rankings--has-self-bar {
	--stag-rankings-self-bar-height: 4.75rem;
	padding-bottom: var(--stag-rankings-self-bar-height);
}

.stagiaire-rankings__self-bar {
	position: fixed;
	right: 0;
	bottom: var(--stag-tabbar-height);
	left: 0;
	z-index: 45;
	margin: 0;
	padding: 0.35rem 0.75rem 0.45rem;
	background: #050505;
	border-top: 1px solid rgba(251, 191, 36, 0.18);
	box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.55);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.stagiaire-rankings__self-bar--hidden {
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.35rem);
}

.stagiaire-rankings__self-bar-inner {
	max-width: var(--stag-app-max);
	margin: 0 auto;
	pointer-events: auto;
}

.stagiaire-rankings__table--self-bar {
	border-spacing: 0;
}

.stagiaire-rankings__table--self-bar tbody tr {
	background: rgba(251, 191, 36, 0.24);
	box-shadow: 0 -4px 24px rgba(245, 158, 11, 0.14), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stagiaire-rankings__table--self-bar tbody tr:hover {
	background: rgba(251, 191, 36, 0.24);
	box-shadow: 0 -4px 24px rgba(245, 158, 11, 0.14), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stagiaire-rankings__row--focused {
	outline: 2px solid rgba(251, 191, 36, 0.75);
	outline-offset: 2px;
	animation: stagiaire-rankings-focus 1.2s ease;
}

@keyframes stagiaire-rankings-focus {
	0% {
		box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
	}
	100% {
		box-shadow: 0 0 28px rgba(245, 158, 11, 0.1);
	}
}

.stagiaire-rankings__row--top .stagiaire-rankings__pos {
	font-weight: 800;
}

.stagiaire-rankings__row--top-1 {
	box-shadow: 0 8px 26px rgba(245, 158, 11, 0.14);
}

.stagiaire-rankings__row--top-1 .stagiaire-rankings__pos {
	background: linear-gradient(180deg, rgba(253, 230, 138, 0.45) 0%, rgba(251, 191, 36, 0.32) 100%);
	color: #78350f;
	box-shadow: 0 2px 10px rgba(251, 191, 36, 0.25);
}

.stagiaire-rankings__row--top-2 .stagiaire-rankings__pos {
	background: linear-gradient(180deg, rgba(226, 232, 240, 0.35) 0%, rgba(148, 163, 184, 0.28) 100%);
	color: #334155;
}

.stagiaire-rankings__row--top-3 .stagiaire-rankings__pos {
	background: linear-gradient(180deg, rgba(253, 186, 116, 0.35) 0%, rgba(234, 88, 12, 0.25) 100%);
	color: #7c2d12;
}

.stagiaire-rankings__pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.15rem;
	height: 2.15rem;
	padding: 0 0.45rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
	background: rgba(148, 163, 184, 0.14);
	color: var(--stag-text);
}

.stagiaire-rankings__rider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.stagiaire-rankings__avatar {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.65);
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.stagiaire-rankings__avatar img,
.stagiaire-rankings__avatar .stagiaire-profile-photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
}

.stagiaire-rankings__rider-link {
	display: block;
	flex: 1;
	min-width: 0;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--stag-text);
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: normal;
}

.stagiaire-rankings__rider-link:hover,
.stagiaire-rankings__rider-link:focus-visible {
	color: var(--stag-brand-light);
}

.stagiaire-rankings__team {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.stagiaire-rankings__team-jersey {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0.2rem;
	border-radius: 50%;
	background:
		radial-gradient(
			circle at 50% 42%,
			rgba(255, 255, 255, 0.72) 0%,
			rgba(255, 255, 255, 0.4) 52%,
			rgba(255, 255, 255, 0.18) 100%
		);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.35),
		0 2px 8px rgba(0, 0, 0, 0.18);
}

.stagiaire-rankings__team-jersey .stagiaire-team-jersey--sm {
	width: 30px;
}

.stagiaire-rankings__team-jersey .stagiaire-team-jersey-img {
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.stagiaire-rankings__team-name {
	flex: 1;
	min-width: 0;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--stag-text);
	overflow-wrap: break-word;
	word-break: normal;
	line-height: 1.3;
}

.stagiaire-rankings__team-empty {
	font-size: 0.82rem;
	font-style: italic;
	color: rgba(148, 163, 184, 0.75);
}

.stagiaire-rankings__points-wrap {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0.25rem;
	white-space: nowrap;
}

.stagiaire-rankings__points {
	font-size: 1.15rem;
	font-weight: 800;
	color: #fde68a;
	text-shadow: 0 1px 8px rgba(245, 158, 11, 0.2);
}

.stagiaire-rankings__pts-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--stag-muted);
}

.stagiaire-rankings__actions {
	text-align: right;
	white-space: nowrap;
}

.stagiaire-rankings__follow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 6.5rem;
	font-weight: 600;
}

.stagiaire-rankings__follow-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	line-height: 0;
}

.stagiaire-rankings__follow-icon svg {
	width: 100%;
	height: 100%;
}

.stagiaire-rankings__follow-btn--following {
	background: transparent;
	color: var(--stag-muted);
	border: 1px solid rgba(148, 163, 184, 0.35);
	box-shadow: none;
}

.stagiaire-rankings__follow-btn--following:hover,
.stagiaire-rankings__follow-btn--following:focus-visible {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(239, 68, 68, 0.45);
	color: #fecaca;
}

.stagiaire-rankings__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
	padding: 2rem 1.25rem;
}

.stagiaire-rankings__empty-icon {
	display: inline-flex;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--stag-muted);
	opacity: 0.75;
}

.stagiaire-rankings__empty-icon svg {
	width: 100%;
	height: 100%;
}

.stagiaire-rankings__empty p {
	margin: 0;
}

.stagiaire-rankings__empty-hint {
	max-width: 28rem;
	font-size: 0.88rem;
	color: var(--stag-muted);
}

.stagiaire-notice {
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.stagiaire-notice-success {
	background: rgba(34, 197, 94, 0.2);
	border: 1px solid var(--stag-success);
}

.stagiaire-notice-error {
	background: rgba(239, 68, 68, 0.2);
	border: 1px solid var(--stag-danger);
}

.stagiaire-list,
.stagiaire-achievements,
.stagiaire-riders-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.stagiaire-list li,
.stagiaire-riders-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #334155;
}

.stagiaire-achievements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
	gap: 1.1rem;
}

.stagiaire-achievement-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	padding: 1rem 0.75rem;
	border-radius: 14px;
	background: linear-gradient(165deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.35) 100%);
	border: 1px solid rgba(148, 163, 184, 0.16);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.stagiaire-achievement-card:hover {
	transform: translateY(-2px);
	border-color: rgba(148, 163, 184, 0.28);
}

.stagiaire-achievement-card__name {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--stag-text, #e2e8f0);
}

.stagiaire-achievement-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.stagiaire-achievement-icon-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.stagiaire-achievement-icon--sm { width: 40px; height: 40px; }
.stagiaire-achievement-icon--md { width: 56px; height: 56px; }
.stagiaire-achievement-icon--lg { width: 72px; height: 72px; }
.stagiaire-achievement-icon--xl { width: 88px; height: 88px; }

.stagiaire-achievement-icon--km_100 {
	filter: drop-shadow(0 3px 10px rgba(234, 88, 12, 0.55));
}

.stagiaire-achievement-icon--km_500 {
	filter: drop-shadow(0 3px 10px rgba(148, 163, 184, 0.6));
}

.stagiaire-achievement-icon--km_1000 {
	filter: drop-shadow(0 4px 12px rgba(234, 179, 8, 0.6));
}

.stagiaire-achievement-icon--elev_1000 {
	filter: drop-shadow(0 3px 10px rgba(16, 185, 129, 0.55));
}

.stagiaire-achievement-icon--elev_5000 {
	filter: drop-shadow(0 3px 10px rgba(20, 184, 166, 0.55));
}

.stagiaire-achievement-icon--elev_10000 {
	filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.6));
}

.stagiaire-achievement-icon--first_race {
	filter: drop-shadow(0 3px 10px rgba(239, 68, 68, 0.5));
}

.stagiaire-achievement-icon--first_monument {
	filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.6));
}

.stagiaire-achievement-card .stagiaire-achievement-icon--lg {
	animation: stag-achievement-float 4s ease-in-out infinite;
}

@keyframes stag-achievement-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

.stagiaire-profile-top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 1rem 1.25rem;
	align-items: stretch;
	margin-bottom: var(--stag-gap, 1.25rem);
}

.stagiaire-profile-top > .stagiaire-user-card {
	grid-column: 1;
	grid-row: 1;
}

.stagiaire-profile-top > .stagiaire-profile-actions {
	grid-column: 1;
	grid-row: 2;
	align-self: start;
}

.stagiaire-profile-top > .stagiaire-profile-top__stats {
	grid-column: 2;
	grid-row: 1 / -1;
}

.stagiaire-profile-top__stats {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	min-height: 100%;
}

.stagiaire-profile-top__stats h3 {
	margin-top: 0;
}

@media (max-width: 800px) {
	.stagiaire-profile-top {
		grid-template-columns: 1fr;
	}

	.stagiaire-profile-top > .stagiaire-user-card,
	.stagiaire-profile-top > .stagiaire-profile-actions,
	.stagiaire-profile-top > .stagiaire-profile-top__stats {
		grid-column: 1;
		grid-row: auto;
	}
}

.stagiaire-agent-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.65rem;
	padding: 0.65rem 0.85rem 0.65rem 0.7rem;
	max-width: 100%;
	border-radius: 14px;
	border: 1px solid rgba(255, 196, 0, 0.34);
	background:
		linear-gradient(135deg, rgba(255, 196, 0, 0.16) 0%, rgba(245, 158, 11, 0.08) 38%, rgba(15, 23, 42, 0.88) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 10px 24px rgba(245, 158, 11, 0.14);
	overflow: hidden;
}

.stagiaire-agent-badge::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, #ffe066 0%, #ffc400 45%, #f59e0b 100%);
	box-shadow: 0 0 14px rgba(255, 196, 0, 0.45);
}

.stagiaire-agent-badge__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 12px;
	background: linear-gradient(145deg, rgba(255, 224, 102, 0.22) 0%, rgba(255, 196, 0, 0.08) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		0 6px 16px rgba(245, 158, 11, 0.22);
}

.stagiaire-agent-badge__svg {
	display: block;
	width: 2.1rem;
	height: 2.1rem;
}

.stagiaire-agent-badge__content {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.stagiaire-agent-badge__eyebrow {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fcd34d;
}

.stagiaire-agent-badge__title {
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff7d6;
	text-shadow: 0 1px 10px rgba(255, 196, 0, 0.25);
}

.stagiaire-agent-badge__spark {
	position: absolute;
	top: -30%;
	right: -10%;
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 224, 102, 0.28) 0%, rgba(255, 196, 0, 0) 72%);
	pointer-events: none;
	animation: stag-agent-spark 4.5s ease-in-out infinite;
}

@keyframes stag-agent-spark {
	0%, 100% {
		opacity: 0.45;
		transform: scale(0.92);
	}
	50% {
		opacity: 0.85;
		transform: scale(1.05);
	}
}

@media (prefers-reduced-motion: reduce) {
	.stagiaire-agent-badge__spark {
		animation: none;
	}
}

@media (max-width: 600px) {
	.stagiaire-user-card__agent .stagiaire-agent-badge {
		width: 100%;
		padding: 0.55rem 0.75rem 0.55rem 0.65rem;
		gap: 0.65rem;
		border-radius: 12px;
	}

	.stagiaire-user-card__agent .stagiaire-agent-badge__icon {
		width: 2.35rem;
		height: 2.35rem;
		border-radius: 10px;
	}

	.stagiaire-user-card__agent .stagiaire-agent-badge__svg {
		width: 1.8rem;
		height: 1.8rem;
	}

	.stagiaire-user-card__agent .stagiaire-agent-badge__eyebrow {
		font-size: 0.62rem;
		letter-spacing: 0.1em;
	}

	.stagiaire-user-card__agent .stagiaire-agent-badge__title {
		font-size: 0.9rem;
	}

	.stagiaire-user-card__agent .stagiaire-agent-badge__spark {
		display: none;
	}
}

@media (max-width: 480px) {
	.stagiaire-user-card__agent .stagiaire-agent-badge__content {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		column-gap: 0.35rem;
		row-gap: 0;
	}

	.stagiaire-user-card__agent .stagiaire-agent-badge__eyebrow::after {
		content: '·';
		margin-left: 0.35rem;
		font-weight: 700;
	}

	.stagiaire-user-card__agent .stagiaire-agent-badge__title {
		font-size: 0.88rem;
	}
}

.stagiaire-profile-account {
	margin: -0.35rem 0 var(--stag-gap);
}

.stagiaire-profile-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
}

.stagiaire-profile-follow,
.stagiaire-profile-message {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.35rem;
	padding: 0.55rem 0.9rem;
	font-weight: 600;
}

.stagiaire-profile-follow__icon,
.stagiaire-profile-message__icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
}

.stagiaire-profile-follow__icon svg,
.stagiaire-profile-message__icon svg {
	width: 100%;
	height: 100%;
}

.stagiaire-profile-follow--following {
	background: rgba(148, 163, 184, 0.16);
	border: 1px solid rgba(226, 232, 240, 0.42);
	color: #e2e8f0;
	box-shadow: none;
}

.stagiaire-profile-follow--following:hover,
.stagiaire-profile-follow--following:focus-visible {
	background: rgba(239, 68, 68, 0.16);
	border-color: rgba(248, 113, 113, 0.55);
	color: #fecaca;
}

.stagiaire-profile-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.8rem 1rem;
	border-radius: var(--stag-radius);
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: var(--stag-card);
	color: var(--stag-muted);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.stagiaire-profile-logout:hover,
.stagiaire-profile-logout:focus-visible {
	color: #fca5a5;
	border-color: rgba(248, 113, 113, 0.35);
	background: rgba(239, 68, 68, 0.08);
}

.stagiaire-profile-logout-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.05rem;
	height: 1.05rem;
	opacity: 0.85;
}

.stagiaire-profile-logout-icon svg {
	width: 100%;
	height: 100%;
}

a.stagiaire-profile-logout,
a.stagiaire-profile-logout:visited {
	color: var(--stag-muted);
	text-decoration: none;
}

a.stagiaire-profile-logout:hover,
a.stagiaire-profile-logout:focus-visible {
	color: #fca5a5;
}

.stagiaire-profile-level-wrap {
	grid-area: level;
	justify-self: end;
	align-self: center;
	flex: none;
	margin: 0;
}

.stagiaire-profile-avatar img,
.stagiaire-profile-photo-img {
	border-radius: 50%;
	display: block;
}

.stagiaire-profile-avatar-editable {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.stagiaire-profile-avatar-inner {
	position: relative;
	width: 96px;
	height: 96px;
	flex-shrink: 0;
}

.stagiaire-profile-avatar-inner .stagiaire-profile-photo-img {
	width: 96px;
	height: 96px;
	object-fit: cover;
}

.stagiaire-profile-photo-change {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 2px solid var(--stag-card, #1e293b);
	border-radius: 50%;
	background: var(--stag-primary, #3b82f6);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s ease, transform 0.15s ease;
}

.stagiaire-profile-photo-change:hover,
.stagiaire-profile-photo-change:focus-visible {
	background: #2563eb;
	transform: scale(1.05);
}

.stagiaire-profile-photo-change:disabled {
	opacity: 0.6;
	cursor: wait;
}

.stagiaire-profile-photo-change-icon {
	font-size: 1.25rem;
	font-weight: 700;
}

.stagiaire-profile-photo-remove {
	font-size: 0.875rem;
	padding: 0;
}

.stagiaire-btn-link {
	background: none;
	border: none;
	color: var(--stag-muted, #94a3b8);
	text-decoration: underline;
	cursor: pointer;
}

.stagiaire-btn-link:hover,
.stagiaire-btn-link:focus-visible {
	color: #e2e8f0;
}

.stagiaire-profile-avatar.is-uploading {
	opacity: 0.7;
	pointer-events: none;
}

.stagiaire-login-required {
	padding: 2rem;
	text-align: center;
	background: var(--stag-card);
	border-radius: var(--stag-radius);
}

.stagiaire-empty {
	text-align: center;
	color: var(--stag-muted);
}

.stagiaire-team-card {
	text-align: center;
}

.stagiaire-team-card h3 {
	margin: 0.5rem 0 0.35rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.25;
}

.stagiaire-team-card .stagiaire-salary {
	justify-content: center;
	width: 100%;
}

/* Team detail (ficha) */
.stagiaire-team-detail {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.stagiaire-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 1.1rem;
	color: var(--stag-muted);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.4);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.stagiaire-back-link:hover,
.stagiaire-back-link:focus-visible {
	color: #e2e8f0;
	border-color: rgba(148, 163, 184, 0.4);
	background: rgba(30, 41, 59, 0.65);
	transform: translateX(-2px);
}

.stagiaire-back-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	font-size: 1rem;
	line-height: 1;
	border-radius: 50%;
	background: rgba(148, 163, 184, 0.15);
}

.stagiaire-team-detail__hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.25rem;
	margin-bottom: 2rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 14px;
	background: linear-gradient(165deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.25) 55%, rgba(15, 23, 42, 0.4) 100%);
	border: 1px solid rgba(148, 163, 184, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stagiaire-team-detail__jersey {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stagiaire-team-detail__jersey .stagiaire-team-jersey {
	width: clamp(104px, 22vw, 148px);
}

.stagiaire-team-detail__identity {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.stagiaire-team-detail__title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.stagiaire-badge-team {
	background: rgba(148, 163, 184, 0.2);
	color: #e2e8f0;
	border: 1px solid rgba(148, 163, 184, 0.25);
}

.stagiaire-badge-team--continental {
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(2, 132, 199, 0.2));
	border-color: rgba(14, 165, 233, 0.45);
	color: #e0f2fe;
}

.stagiaire-badge-team--pro {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.2));
	border-color: rgba(16, 185, 129, 0.45);
	color: #d1fae5;
}

.stagiaire-badge-team--wt-a {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(217, 119, 6, 0.25));
	border-color: rgba(245, 158, 11, 0.55);
	color: #fffbeb;
}

.stagiaire-badge-team--wt-b {
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(124, 58, 237, 0.25));
	border-color: rgba(168, 85, 247, 0.5);
	color: #f3e8ff;
}

.stagiaire-badge-team--wt-c {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.25));
	border-color: rgba(59, 130, 246, 0.5);
	color: #dbeafe;
}

.stagiaire-team-detail__section-title {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stag-muted);
}

.stagiaire-team-detail__requirements {
	margin-bottom: 2rem;
}

.stagiaire-team-detail__training {
	margin-bottom: 2rem;
}

.stagiaire-team-detail__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 1rem;
}

.stagiaire-team-detail__stats .stagiaire-stat--currency,
.stagiaire-team-detail__stats .stagiaire-stat--ficha {
	min-width: 0;
	width: 100%;
	padding: 1rem 0.85rem;
}

.stagiaire-team-detail__stats .stagiaire-stat-icon,
.stagiaire-team-detail__stats .stagiaire-currency-icon {
	width: 48px;
	height: 48px;
}

.stagiaire-team-detail__stats .stagiaire-stat-value {
	font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.stagiaire-team-detail__roster {
	margin-bottom: 1rem;
}

.stagiaire-team-detail__roster-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.85rem;
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.stagiaire-team-detail__roster-heading .stagiaire-team-detail__section-title {
	margin: 0;
}

.stagiaire-team-detail__intro {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 0 1.35rem;
}

.stagiaire-team-detail__intro--split {
	align-items: stretch;
}

.stagiaire-team-detail__mural {
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: rgba(15, 23, 42, 0.45);
	width: min(100%, 20rem);
	max-width: 100%;
	aspect-ratio: 1 / 1;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.stagiaire-team-detail__mural::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 22%;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
	z-index: 1;
}

.stagiaire-team-detail__mural-glow {
	position: absolute;
	inset: 0 0 auto;
	height: 40%;
	pointer-events: none;
	opacity: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(255, 196, 0, 0.22), transparent);
	transition: opacity 0.35s ease;
}

.stagiaire-team-detail__mural--continental {
	border-color: rgba(14, 165, 233, 0.45);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(14, 165, 233, 0.12);
}

.stagiaire-team-detail__mural--pro {
	border-color: rgba(16, 185, 129, 0.45);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.stagiaire-team-detail__mural--wt-a {
	border-color: rgba(245, 158, 11, 0.5);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.14);
}

.stagiaire-team-detail__mural--wt-b {
	border-color: rgba(168, 85, 247, 0.45);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(168, 85, 247, 0.12);
}

.stagiaire-team-detail__mural--wt-c {
	border-color: rgba(59, 130, 246, 0.45);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.stagiaire-team-detail__mural img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform: scale(1);
	transition: transform 0.45s ease;
}

.stagiaire-team-detail__mural:hover .stagiaire-team-detail__mural-glow,
.stagiaire-team-detail__mural:focus-within .stagiaire-team-detail__mural-glow {
	opacity: 1;
}

.stagiaire-team-detail__mural:hover img,
.stagiaire-team-detail__mural:focus-within img {
	transform: scale(1.03);
}

.stagiaire-team-detail__description {
	min-width: 0;
	align-self: center;
}

html.stagiaire-anim .stagiaire-team-detail__description[data-stagiaire-reveal] {
	opacity: 0;
	transform: translateY(0.6rem);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

html.stagiaire-anim .stagiaire-team-detail__description.is-visible {
	opacity: 1;
	transform: none;
}

.stagiaire-team-detail__description p {
	margin: 0 0 0.85rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--stag-muted);
	text-align: justify;
	hyphens: auto;
}

.stagiaire-team-detail__description p:last-child {
	margin-bottom: 0;
}

.stagiaire-team-detail__description p:first-child {
	font-size: 1.05rem;
	line-height: 1.6;
	font-weight: 500;
	color: #e2e8f0;
}

@media (min-width: 641px) {
	.stagiaire-team-detail__intro--split {
		display: grid;
		grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
		align-items: center;
		gap: 1.25rem;
	}

	.stagiaire-team-detail__intro--split .stagiaire-team-detail__mural {
		width: 100%;
		max-width: 20rem;
		justify-self: start;
	}

	.stagiaire-team-detail__intro--split .stagiaire-team-detail__description {
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 640px) {
	.stagiaire-team-detail__mural {
		width: min(100%, 18rem);
		margin-inline: auto;
	}
}

.stagiaire-team-detail__riders {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10.75rem, 1fr));
	gap: 0.85rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.stagiaire-team-detail__rider {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	padding: 1.1rem 0.85rem 1rem;
	text-align: center;
	overflow: hidden;
	background: linear-gradient(165deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%);
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

html.stagiaire-anim .stagiaire-team-detail__rider[data-stagiaire-reveal] {
	opacity: 0;
	transform: translateY(0.85rem);
	transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html.stagiaire-anim .stagiaire-team-detail__rider.is-visible {
	opacity: 1;
	transform: none;
}

.stagiaire-team-detail__rider.is-visible:hover,
.stagiaire-team-detail__rider.is-visible:focus-within {
	border-color: rgba(255, 196, 0, 0.55);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 196, 0, 0.18);
	transform: translateY(-3px);
}

.stagiaire-team-detail__rider:hover,
.stagiaire-team-detail__rider:focus-within {
	border-color: rgba(255, 196, 0, 0.55);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 196, 0, 0.18);
}

.stagiaire-team-detail__rider-dorsal {
	position: absolute;
	top: 0.35rem;
	right: 0.45rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: rgba(255, 255, 255, 0.07);
	pointer-events: none;
}

.stagiaire-team-detail__rider-avatar {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.65);
	border: 2px solid rgba(255, 196, 0, 0.35);
	box-shadow: 0 6px 18px rgba(245, 158, 11, 0.22);
}

.stagiaire-team-detail__rider-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.stagiaire-team-detail__rider-avatar-fallback {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--stag-muted);
	line-height: 1;
}

.stagiaire-team-detail__rider-meta {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	width: 100%;
}

.stagiaire-team-detail__rider-name {
	font-weight: 700;
	font-size: 0.92rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stagiaire-team-detail__rider-nation {
	display: inline-flex;
	justify-content: center;
	width: 100%;
}

.stagiaire-nation-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	max-width: 100%;
}

.stagiaire-nation-flag__img {
	display: block;
	width: 1.25rem;
	height: 0.875rem;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.stagiaire-nation-flag__label {
	font-size: 0.78rem;
	color: var(--stag-muted);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.stagiaire-team-detail__mural img,
	.stagiaire-team-detail__mural-glow,
	html.stagiaire-anim .stagiaire-team-detail__description[data-stagiaire-reveal],
	html.stagiaire-anim .stagiaire-team-detail__rider[data-stagiaire-reveal] {
		transition: none !important;
	}

	.stagiaire-team-detail__mural:hover img,
	.stagiaire-team-detail__mural:focus-within img {
		transform: none;
	}

	.stagiaire-team-detail__rider.is-visible:hover,
	.stagiaire-team-detail__rider.is-visible:focus-within,
	.stagiaire-team-detail__rider:hover,
	.stagiaire-team-detail__rider:focus-within {
		transform: none;
	}

	html.stagiaire-anim .stagiaire-team-detail__description[data-stagiaire-reveal],
	html.stagiaire-anim .stagiaire-team-detail__rider[data-stagiaire-reveal],
	.stagiaire-team-detail__description,
	.stagiaire-team-detail__rider {
		opacity: 1;
		transform: none;
	}
}

.stagiaire-team-detail__actions {
	display: flex;
	justify-content: center;
	margin-top: 2.75rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.stagiaire-team-detail__actions .stagiaire-btn {
	min-width: 12rem;
	padding: 0.9rem 2.25rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.stagiaire-team-detail__actions .stagiaire-btn-primary[data-team-status="current"] {
	background: linear-gradient(180deg, rgba(251, 191, 36, 0.55) 0%, rgba(245, 158, 11, 0.45) 100%);
	color: rgba(15, 23, 42, 0.8);
	box-shadow: none;
}

.stagiaire-team-detail__status {
	margin: 0 0 1.25rem;
}

.stagiaire-team-membership {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.25rem 1.15rem 1.4rem;
	border-radius: 14px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.85) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 10px 28px rgba(2, 6, 23, 0.22);
	overflow: hidden;
}

.stagiaire-team-membership::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.85rem;
	bottom: 0.85rem;
	width: 4px;
	border-radius: 0 4px 4px 0;
}

.stagiaire-team-membership--current {
	border-color: rgba(34, 197, 94, 0.35);
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(15, 23, 42, 0.82) 58%, rgba(15, 23, 42, 0.92) 100%);
}

.stagiaire-team-membership--current::before {
	background: linear-gradient(180deg, #86efac, #22c55e);
	box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

.stagiaire-team-membership--other {
	border-color: rgba(251, 191, 36, 0.32);
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(15, 23, 42, 0.92) 100%);
}

.stagiaire-team-membership--other::before {
	background: linear-gradient(180deg, #fcd34d, #f59e0b);
	box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.stagiaire-team-membership--blocked {
	border-color: rgba(239, 68, 68, 0.35);
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-team-membership--blocked::before {
	background: linear-gradient(180deg, #fca5a5, #ef4444);
}

.stagiaire-team-membership__jersey {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stagiaire-team-membership__jersey .stagiaire-team-jersey {
	width: 3.25rem;
}

.stagiaire-team-membership__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(239, 68, 68, 0.15);
	color: #fca5a5;
}

.stagiaire-team-membership__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.stagiaire-team-membership__content {
	min-width: 0;
	flex: 1;
}

.stagiaire-team-membership__label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--stag-muted);
}

.stagiaire-team-membership__lead {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #cbd5e1;
}

.stagiaire-team-membership__team {
	display: block;
	margin-top: 0.25rem;
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fbbf24;
	text-shadow: 0 1px 10px rgba(251, 191, 36, 0.25);
}

.stagiaire-team-membership--current .stagiaire-team-membership__team {
	color: #86efac;
	text-shadow: 0 1px 10px rgba(34, 197, 94, 0.25);
}

.stagiaire-team-membership--empty {
	border-color: rgba(148, 163, 184, 0.22);
	background: linear-gradient(135deg, rgba(148, 163, 184, 0.08) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.stagiaire-team-membership--empty::before {
	background: linear-gradient(180deg, #94a3b8, #64748b);
}

.stagiaire-team-membership__icon--empty {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.14);
	color: #94a3b8;
}

.stagiaire-team-membership__icon--empty svg {
	width: 2rem;
	height: 2rem;
}

.stagiaire-home-squad__title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 600;
}

.stagiaire-home-squad__card {
	margin-bottom: 0;
}

.stagiaire-home-squad__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.75rem;
}

.stagiaire-home-squad__salary {
	display: inline-flex;
	align-items: center;
	font-size: 0.85rem;
	color: var(--stag-muted);
}

.stagiaire-home-squad__salary .stagiaire-currency-amount__value {
	color: #fbbf24;
	font-weight: 600;
}

.stagiaire-home-squad__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.stagiaire-home-squad__actions .stagiaire-btn {
	min-width: 10.5rem;
}

.stagiaire-home-following__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.85rem;
}

.stagiaire-home-following__empty p {
	margin: 0;
	color: var(--stag-muted);
}

.stagiaire-home-following__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.stagiaire-home-following__item {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	background: rgba(2, 6, 23, 0.38);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.stagiaire-home-following__item:hover {
	background: rgba(251, 191, 36, 0.07);
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.1);
}

.stagiaire-home-following__rider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.stagiaire-home-following__avatar {
	flex-shrink: 0;
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.65);
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.stagiaire-home-following__avatar img,
.stagiaire-home-following__avatar .stagiaire-profile-photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
}

.stagiaire-home-following__name {
	flex: 1;
	min-width: 0;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--stag-text);
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: normal;
}

.stagiaire-home-following__name:hover,
.stagiaire-home-following__name:focus-visible {
	color: var(--stag-brand-light);
}

.stagiaire-home-following__team {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.stagiaire-home-following__team-jersey {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.stagiaire-home-following__team-name {
	flex: 1;
	min-width: 0;
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--stag-muted);
	overflow-wrap: break-word;
	word-break: normal;
	line-height: 1.3;
}

.stagiaire-home-following__team-empty {
	font-size: 0.82rem;
	font-style: italic;
	color: rgba(148, 163, 184, 0.75);
}

.stagiaire-home-following__unfollow {
	justify-self: end;
}

@media (min-width: 640px) {
	.stagiaire-team-membership {
		gap: 1.25rem;
		padding: 1.25rem 1.5rem 1.25rem 1.6rem;
	}

	.stagiaire-team-membership__jersey {
		width: 5rem;
		height: 5rem;
	}

	.stagiaire-team-membership__jersey .stagiaire-team-jersey {
		width: 3.75rem;
	}
}

@media (min-width: 640px) {
	.stagiaire-team-detail__hero {
		flex-direction: row;
		align-items: center;
		text-align: left;
		gap: 2rem;
	}

	.stagiaire-team-detail__identity {
		align-items: flex-start;
	}
}

.stagiaire-salary {
	color: var(--stag-success);
	font-weight: 600;
}

.stagiaire-salary .stagiaire-currency-amount__suffix {
	color: var(--stag-muted);
	font-weight: 400;
}


body.stagiaire-modal-open {
	overflow: hidden;
}

.stagiaire-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.stagiaire-modal[hidden] {
	display: none;
}

.stagiaire-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.8);
	backdrop-filter: blur(4px);
}

.stagiaire-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: var(--stag-card);
	border: 1px solid #334155;
	border-radius: var(--stag-radius);
	padding: 1.5rem;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
	animation: stagiaire-modal-in 0.22s ease-out;
	outline: none;
}

.stagiaire-modal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: rgba(148, 163, 184, 0.12);
	color: var(--stag-accent);
}

.stagiaire-modal-icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.stagiaire-modal-variant-strava .stagiaire-modal-icon {
	background: rgba(252, 76, 2, 0.15);
	color: #fc4c02;
}

.stagiaire-modal-dialog--alert .stagiaire-modal-actions {
	justify-content: center;
}

.stagiaire-modal-dialog--alert [data-stagiaire-modal-cancel][hidden] {
	display: none;
}

.stagiaire-modal-dialog--alert .stagiaire-modal-actions .stagiaire-btn {
	flex: 0 1 220px;
}

.stagiaire-modal-variant-stagiaire .stagiaire-modal-dialog {
	border-color: rgba(245, 158, 11, 0.35);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(245, 158, 11, 0.12);
}

.stagiaire-modal-variant-stagiaire .stagiaire-modal-icon {
	width: auto;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.stagiaire-modal-logo {
	display: block;
	width: min(240px, 72vw);
	height: auto;
	max-height: 56px;
	object-fit: contain;
}

.stagiaire-modal-title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	text-align: center;
	line-height: 1.3;
}

.stagiaire-modal-message {
	margin: 0 0 1.5rem;
	color: var(--stag-muted);
	text-align: center;
	line-height: 1.5;
	font-size: 0.95rem;
}

.stagiaire-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.stagiaire-modal-actions .stagiaire-btn {
	flex: 1 1 140px;
	min-width: 0;
}

.stagiaire-modal-variant-strava .stagiaire-btn-danger {
	background: #fc4c02;
}

.stagiaire-modal-variant-strava .stagiaire-btn-danger:hover,
.stagiaire-modal-variant-strava .stagiaire-btn-danger:focus {
	background: #e34402;
}

@keyframes stagiaire-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.stagiaire-level-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	vertical-align: middle;
}

.stagiaire-level-badge__label {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--stag-text);
	letter-spacing: 0.02em;
}

.stagiaire-level-badge--sm .stagiaire-level-badge__label {
	font-size: 0.85rem;
}

.stagiaire-level-badge--lg .stagiaire-level-badge__label {
	font-size: 1.1rem;
}

.stagiaire-level-badge--xl .stagiaire-level-badge__label {
	font-size: 1.5rem;
}

.stagiaire-level-jersey {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	vertical-align: middle;
}

.stagiaire-level-jersey--amateur {
	filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.35));
}

.stagiaire-level-jersey--continental {
	filter: drop-shadow(0 3px 8px rgba(37, 99, 235, 0.35));
}

.stagiaire-level-jersey--pro {
	filter: drop-shadow(0 3px 8px rgba(220, 38, 38, 0.35));
}

.stagiaire-level-jersey--wt_c {
	filter: drop-shadow(0 3px 10px rgba(212, 175, 55, 0.4));
}

.stagiaire-level-jersey--wt_b {
	filter: drop-shadow(0 3px 10px rgba(212, 175, 55, 0.42));
}

.stagiaire-level-jersey--wt_a {
	filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.45));
}

.stagiaire-level-jersey--sm {
	width: 24px;
	height: 30px;
}

.stagiaire-level-jersey--md {
	width: 40px;
	height: 50px;
}

.stagiaire-level-jersey--lg {
	width: 56px;
	height: 70px;
}

.stagiaire-level-jersey--xl {
	width: 88px;
	height: 110px;
}

.stagiaire-level-jersey-svg,
.stagiaire-level-jersey-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	image-rendering: auto;
	background: transparent;
}

.stagiaire-level-jersey--dimmed {
	opacity: 0.55;
}

.stagiaire-hero-level .stagiaire-level-jersey--xl {
	width: 96px;
	height: 120px;
}

.stagiaire-level {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	margin: 0.25rem 0 0;
}

.stagiaire-level-team {
	color: var(--stag-muted);
	font-size: 0.9rem;
}

.stagiaire-level-progress-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-bottom: 0.5rem;
}

.stagiaire-level-progress-header p {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.9rem;
}

@media (max-width: 600px) {
	.stagiaire-section-header {
		padding: 0.9rem 1rem;
		gap: 0.75rem;
	}
	.stagiaire-section-header__jersey .stagiaire-level-jersey--xl {
		width: 56px;
		height: 70px;
	}
	.stagiaire-section-header__title {
		letter-spacing: 0.05em;
	}
	.stagiaire-section-header__accent {
		display: none;
	}
	.stagiaire-hero-level {
		padding: 1.25rem 1rem;
	}
	.stagiaire-hero-level .stagiaire-level-jersey--xl {
		width: 80px;
		height: 100px;
	}
	.stagiaire-hero-level .stagiaire-level-badge__label {
		font-size: 1.3rem;
	}
	.stagiaire-stats-row {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.75rem;
	}
	.stagiaire-stat--currency,
	.stagiaire-stat--ficha,
	.stagiaire-stat--rank {
		flex: 1 1 calc(50% - 0.5rem);
		min-width: 7rem;
	}
	.stagiaire-profile-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.stagiaire-profile-level .stagiaire-level-jersey--lg {
		width: 56px;
		height: 70px;
	}
	.stagiaire-profile-level .stagiaire-level-badge__label {
		font-size: 1.1rem;
	}
	.stagiaire-achievements-grid {
		grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
		gap: 0.85rem;
	}
	.stagiaire-achievement-card {
		padding: 0.85rem 0.5rem;
	}
	.stagiaire-achievement-card .stagiaire-achievement-icon--lg {
		width: 64px;
		height: 64px;
	}
	.stagiaire-wallet-card .stagiaire-stat--currency {
		flex: 1 1 100%;
	}
	.stagiaire-draws-wallet__balances {
		grid-template-columns: 1fr;
	}
	.stagiaire-buy-ticket {
		padding: 0.95rem 1rem;
		gap: 0.85rem;
	}
	.stagiaire-buy-ticket__icon {
		width: 2.85rem;
		height: 2.85rem;
	}
	.stagiaire-draws-grid {
		grid-template-columns: 1fr;
	}
	.stagiaire-draw-card__header {
		align-items: center;
	}
	.stagiaire-draw-card__media {
		width: 4.25rem;
		height: 4.25rem;
	}
	.stagiaire-draw-history__item {
		grid-template-columns: 2.85rem minmax(0, 1fr);
		grid-template-areas:
			"thumb body"
			"result result";
		align-items: start;
		gap: 0.65rem 0.75rem;
		padding: 0.85rem 1.35rem 0.85rem 1.35rem;
	}
	.stagiaire-draw-history__thumb {
		width: 2.85rem;
		height: 2.85rem;
		margin-left: 0.45rem;
		align-self: center;
	}
	.stagiaire-draw-history__body {
		align-self: center;
	}
	.stagiaire-draw-history__result {
		justify-self: start;
		margin-left: calc(2.85rem + 0.75rem + 0.45rem);
		margin-right: 0.45rem;
		max-width: none;
	}
	.stagiaire-modal-actions {
		flex-direction: column-reverse;
	}
	.stagiaire-modal-actions .stagiaire-btn {
		width: 100%;
		flex-basis: auto;
	}
	.stagiaire-rankings__hero {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0;
		margin-bottom: 1rem;
	}
	.stagiaire-rankings__hero-trigger {
		gap: 0.85rem;
		padding: 0.85rem 1rem;
		cursor: pointer;
		pointer-events: auto;
		-webkit-tap-highlight-color: transparent;
	}
	.stagiaire-rankings__hero-jersey {
		width: 44px;
		height: 54px;
		border-radius: 8px 8px 11px 11px;
	}
	.stagiaire-rankings__hero-copy {
		flex: 1;
		min-width: 0;
	}
	.stagiaire-rankings__hero-chevron {
		display: inline-flex;
	}
	.stagiaire-rankings__type-menu {
		position: relative;
		z-index: 1;
		flex-direction: column;
		gap: 0.35rem;
		padding: 0 0.75rem 0.85rem;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}
	.stagiaire-rankings__type-menu:not([hidden]) {
		display: flex;
	}
	.stagiaire-rankings__type-option {
		display: block;
		padding: 0.7rem 0.85rem;
		border-radius: 10px;
		color: var(--stag-text);
		text-decoration: none;
		font-size: 0.92rem;
		font-weight: 600;
		background: rgba(15, 23, 42, 0.28);
	}
	.stagiaire-rankings__type-option.is-active {
		background: rgba(255, 255, 255, 0.12);
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
	}
	.stagiaire-rankings__filter-group--type {
		display: none;
	}
	.stagiaire-card.stagiaire-rankings__comparison {
		display: none !important;
	}
	.stagiaire-rankings__title {
		margin: 0 0 0.2rem;
		font-size: 0.95rem;
		letter-spacing: 0.03em;
		line-height: 1.15;
	}
	.stagiaire-rankings__subtitle {
		font-size: 0.78rem;
		line-height: 1.3;
	}
	.stagiaire-rankings__podium {
		display: none;
	}
	.stagiaire-rankings__actions {
		text-align: left;
	}
	.stagiaire-rankings__controls-anchor {
		display: none;
	}
	.stagiaire-rankings__toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
		margin-bottom: 0;
	}
	.stagiaire-rankings__controls-open {
		display: inline-flex;
	}
	.stagiaire-rankings__controls-modal {
		align-items: flex-end;
		padding: 0;
	}
	.stagiaire-rankings__controls-dialog {
		max-width: none;
		width: 100%;
		max-height: min(92vh, 720px);
		margin: 0;
		border-radius: var(--stag-radius) var(--stag-radius) 0 0;
		overflow-y: auto;
		animation: stagiaire-rankings-controls-in 0.25s ease-out;
	}
	.stagiaire-rankings__controls-dialog-header {
		margin-bottom: 0.75rem;
	}
	.stagiaire-rankings__controls-body .stagiaire-rankings__filters {
		flex-direction: column;
		gap: 0.75rem;
		margin-bottom: 0.75rem;
		padding: 0.75rem 0.85rem;
	}
	.stagiaire-rankings__controls-body .stagiaire-rankings__filter-group {
		min-width: 100%;
		flex-basis: 100%;
		gap: 0.35rem;
	}
	.stagiaire-rankings__controls-body .stagiaire-rankings__toolbar {
		gap: 0.65rem;
		margin-bottom: 0;
	}
	.stagiaire-rankings__controls-body .stagiaire-rankings__search {
		flex: 0 0 auto;
		width: 100%;
		gap: 0.5rem;
	}
	.stagiaire-rankings__search {
		width: 100%;
		flex: 0 0 auto;
	}
	.stagiaire-rankings__search-btn,
	.stagiaire-rankings__search-clear,
	.stagiaire-rankings__my-position {
		flex: 1 1 auto;
	}
	.stagiaire-rankings__board-header {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
	}
	.stagiaire-rankings__empty .stagiaire-rankings__board-header--controls {
		align-self: stretch;
		width: 100%;
		margin: -0.75rem 0 0.35rem;
		padding: 0 0 0.85rem;
		border-bottom: 1px solid rgba(148, 163, 184, 0.14);
	}
	.stagiaire-rankings__pagination {
		flex-direction: column;
	}
	.stagiaire-rankings__pagination-btn {
		width: 100%;
	}
	.stagiaire-rankings__follow-btn {
		width: 100%;
	}
	.stagiaire-rankings__board {
		overflow-x: clip;
		background: var(--stag-card);
		box-shadow: none;
	}
	.stagiaire-rankings__board::after {
		display: none;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table-wrap {
		padding: 0 0.65rem 0.65rem;
		overflow: visible;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) {
		display: block;
		width: 100%;
		max-width: 100%;
		border-spacing: 0;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) thead {
		display: none;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody {
		display: block;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody tr {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		grid-template-areas:
			"pos rider points"
			"team team team";
		gap: 0.55rem 0.45rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 1.05rem 1rem;
		margin-bottom: 0.75rem;
		border-radius: 14px;
		overflow: hidden;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody tr:last-child {
		margin-bottom: 0;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody td {
		display: block;
		width: auto;
		min-width: 0;
		padding: 0;
		border-radius: 0;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody td:first-child,
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody td:last-child {
		border-radius: 0;
	}
	.stagiaire-rankings__board .stagiaire-rankings__cell-pos {
		grid-area: pos;
		align-self: center;
		justify-self: start;
		width: max-content;
	}
	.stagiaire-rankings__board .stagiaire-rankings__cell-rider {
		grid-area: rider;
		min-width: 0;
		align-self: center;
		justify-self: start;
		text-align: left;
	}
	.stagiaire-rankings__board .stagiaire-rankings__cell-points {
		grid-area: points;
		justify-self: end;
		text-align: right;
		align-self: center;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody td.stagiaire-rankings__cell-races {
		display: none;
	}
	.stagiaire-rankings__board .stagiaire-rankings__cell-team {
		grid-area: team;
		display: flex;
		justify-content: center;
		align-items: center;
		text-align: center;
		min-width: 0;
	}
	.stagiaire-rankings__board .stagiaire-rankings__actions {
		grid-column: 1 / -1;
		grid-row: 3;
		text-align: right;
	}
	.stagiaire-rankings__board .stagiaire-rankings__actions:empty,
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody td:empty {
		display: none;
	}
	.stagiaire-rankings__board .stagiaire-rankings__rider {
		width: auto;
		max-width: 100%;
		min-width: 0;
		gap: 0.55rem;
		justify-content: flex-start;
	}
	.stagiaire-rankings__board .stagiaire-rankings__team {
		width: auto;
		max-width: 100%;
		min-width: 0;
		flex: 0 1 auto;
		align-items: center;
		justify-content: center;
		gap: 0.55rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__team-name {
		flex: 0 1 auto;
		text-align: center;
		font-size: 0.82rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__avatar {
		width: 2.5rem;
		height: 2.5rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__rider-link {
		flex: 0 1 auto;
		font-size: 0.92rem;
		text-align: left;
	}
	.stagiaire-rankings__board .stagiaire-rankings__team-empty {
		display: block;
		width: 100%;
		text-align: center;
		font-size: 0.82rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__points {
		font-size: 0.92rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__pts-label {
		font-size: 0.72rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__points-wrap {
		justify-content: flex-end;
		gap: 0.2rem;
	}
	.stagiaire-home-following__item {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
	}
	.stagiaire-home-following__rider,
	.stagiaire-home-following__team {
		width: 100%;
		min-width: 0;
	}
	.stagiaire-home-following__avatar {
		width: 2.35rem;
		height: 2.35rem;
	}
	.stagiaire-home-following__name {
		font-size: 0.88rem;
	}
	.stagiaire-home-following__team-name {
		font-size: 0.82rem;
	}
	.stagiaire-home-following__unfollow {
		align-self: stretch;
		width: 100%;
	}
	.stagiaire-rankings--has-self-bar {
		--stag-rankings-self-bar-height: 7.5rem;
		padding-bottom: var(--stag-rankings-self-bar-height);
	}
	.stagiaire-rankings__self-bar {
		padding: 0.25rem 0.65rem 0.35rem;
	}
	.stagiaire-rankings__table--self-bar {
		display: block;
		width: 100%;
		max-width: 100%;
	}
	.stagiaire-rankings__table--self-bar tbody {
		display: block;
	}
	.stagiaire-rankings__table--self-bar tbody tr {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		grid-template-areas:
			"pos rider points"
			"team team team";
		gap: 0.55rem 0.45rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 1.05rem 1rem;
		margin-bottom: 0;
		border-radius: 14px;
		overflow: hidden;
	}
	.stagiaire-rankings__table--self-bar tbody td {
		display: block;
		width: auto;
		min-width: 0;
		padding: 0;
		border-radius: 0;
	}
	.stagiaire-rankings__table--self-bar tbody td:first-child,
	.stagiaire-rankings__table--self-bar tbody td:last-child {
		border-radius: 0;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__cell-pos {
		grid-area: pos;
		align-self: center;
		justify-self: start;
		width: max-content;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__cell-rider {
		grid-area: rider;
		min-width: 0;
		align-self: center;
		justify-self: start;
		text-align: left;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__cell-points {
		grid-area: points;
		justify-self: end;
		text-align: right;
		align-self: center;
	}
	.stagiaire-rankings__table--self-bar tbody td.stagiaire-rankings__cell-races {
		display: none;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__cell-team {
		grid-area: team;
		display: flex;
		justify-content: center;
		align-items: center;
		text-align: center;
		min-width: 0;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__actions,
	.stagiaire-rankings__table--self-bar tbody td:empty {
		display: none;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__rider {
		width: 100%;
		min-width: 0;
		gap: 0.55rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__team {
		width: auto;
		max-width: 100%;
		min-width: 0;
		flex: 0 1 auto;
		align-items: center;
		justify-content: center;
		gap: 0.55rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__team-name {
		flex: 0 1 auto;
		text-align: center;
		font-size: 0.82rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__avatar {
		width: 2.5rem;
		height: 2.5rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__rider-link {
		font-size: 0.92rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__team-empty {
		display: block;
		width: 100%;
		text-align: center;
		font-size: 0.82rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__points {
		font-size: 0.92rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__pts-label {
		font-size: 0.72rem;
	}
	.stagiaire-rankings__table--self-bar .stagiaire-rankings__points-wrap {
		justify-content: flex-end;
		gap: 0.2rem;
	}
}

@media (max-width: 400px) {
	.stagiaire-rankings__hero {
		gap: 0;
		padding: 0;
	}
	.stagiaire-rankings__hero-trigger {
		gap: 0.7rem;
		padding: 0.75rem 0.85rem;
	}
	.stagiaire-rankings__hero-jersey {
		width: 40px;
		height: 49px;
	}
	.stagiaire-rankings__title {
		font-size: 0.88rem;
	}
	.stagiaire-rankings__subtitle {
		font-size: 0.72rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__table:not(.stagiaire-season-dossier__table) tbody tr {
		gap: 0.5rem 0.35rem;
		padding: 0.95rem 0.85rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__rider-link {
		font-size: 0.86rem;
	}
	.stagiaire-home-following__name {
		font-size: 0.82rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__team-name {
		font-size: 0.78rem;
	}
	.stagiaire-home-following__team-name {
		font-size: 0.78rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__avatar {
		width: 2.25rem;
		height: 2.25rem;
	}
	.stagiaire-home-following__avatar {
		width: 2.15rem;
		height: 2.15rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__team-jersey {
		width: 2.15rem;
		height: 2.15rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__team-jersey .stagiaire-team-jersey--sm {
		width: 28px;
	}
	.stagiaire-rankings__board .stagiaire-rankings__rider,
	.stagiaire-home-following__rider {
		gap: 0.5rem;
	}
	.stagiaire-rankings__board .stagiaire-rankings__points {
		font-size: 0.86rem;
	}
}

/* Celebration breakdown */
.stagiaire-celebration {
	background: linear-gradient(180deg, var(--stag-brand-bright) 0%, var(--stag-brand-light) 55%, var(--stag-brand) 100%);
	border: 1px solid var(--stag-brand);
	color: var(--stag-brand-text);
}

.stagiaire-celebration__title {
	margin: 0 0 0.75rem;
	font-weight: 700;
	color: var(--stag-brand-text);
}

.stagiaire-celebration__rewards {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stagiaire-celebration__reward {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 4.5rem;
	padding: 0.55rem 0.75rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.stagiaire-celebration__reward-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--stag-brand-text);
	opacity: 0.75;
}

.stagiaire-celebration__reward--general strong { color: #b45309; }
.stagiaire-celebration__reward--road strong { color: #15803d; }
.stagiaire-celebration__reward--mountain strong { color: #be123c; }
.stagiaire-celebration__reward--tickets strong { color: #1d4ed8; }

/* Classification points row */
.stagiaire-classification-points__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.stagiaire-classification-points__grid .stagiaire-classification-points__card {
	min-width: 0;
	width: 100%;
}

.stagiaire-classification-points__jersey {
	width: 40px;
	height: 40px;
	border-radius: 6px;
}

.stagiaire-classification-points__card--general {
	border-color: rgba(245, 158, 11, 0.2);
	background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-classification-points__card--general .stagiaire-classification-points__jersey {
	background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
	box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
}

.stagiaire-classification-points__card--road {
	border-color: rgba(16, 185, 129, 0.2);
	background: linear-gradient(180deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-classification-points__card--road .stagiaire-classification-points__jersey {
	background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
	box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35);
}

.stagiaire-classification-points__card--mountain {
	border-color: rgba(244, 63, 94, 0.2);
	background: linear-gradient(180deg, rgba(244, 63, 94, 0.08) 0%, rgba(15, 23, 42, 0.35) 100%);
}

.stagiaire-classification-points__card--mountain .stagiaire-classification-points__jersey {
	background: #fff radial-gradient(circle, #ef4444 18%, transparent 20%) 0 0 / 10px 10px;
	box-shadow: 0 3px 8px rgba(244, 63, 94, 0.25);
}

/* Season dossier */
.stagiaire-season-dossier__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
}

.stagiaire-season-dossier__header h3 {
	margin: 0;
}

.stagiaire-season-dossier__summary {
	margin: 0;
	font-size: 0.9rem;
	color: var(--stag-muted);
}

.stagiaire-season-dossier__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.stagiaire-season-dossier__category {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.12);
	font-size: 0.82rem;
}

.stagiaire-season-dossier__board {
	position: relative;
	padding: 0;
	overflow: hidden;
	background: linear-gradient(165deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.92) 100%);
	border: none;
	border-radius: 18px;
	box-shadow:
		0 14px 42px rgba(245, 158, 11, 0.14),
		0 28px 56px rgba(15, 23, 42, 0.48);
}

.stagiaire-season-dossier__table-wrap {
	padding: 0 0.35rem 0.35rem;
}

.stagiaire-season-dossier__table tbody tr:hover {
	background: rgba(251, 191, 36, 0.07);
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.1);
}

.stagiaire-season-dossier__race-info {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.stagiaire-season-dossier__race-info span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Rankings comparison & races column */
.stagiaire-rankings__comparison-text {
	margin: 0;
	font-size: 0.95rem;
}

.stagiaire-rankings__comparison-hint {
	margin: 0.45rem 0 0;
	font-size: 0.85rem;
	opacity: 0.85;
}

.stagiaire-rankings__comparison--leader .stagiaire-rankings__comparison-text {
	font-weight: 600;
}

.stagiaire-rankings__col-races,
.stagiaire-rankings__cell-races {
	text-align: center;
}

.stagiaire-rankings__col-races {
	font-weight: 400;
}

.stagiaire-rankings__races-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.06);
	font-weight: 400;
	font-size: 0.85rem;
}

@media (max-width: 640px) {
	.stagiaire-classification-points__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.stagiaire-classification-points__grid .stagiaire-classification-points__card {
		min-width: 0;
		padding: 0.45rem 0.35rem;
	}

	.stagiaire-classification-points__jersey {
		width: 28px;
		height: 28px;
		border-radius: 5px;
	}

	.stagiaire-classification-points__grid .stagiaire-stat-value {
		font-size: 1.05rem;
		line-height: 1.2;
	}

	.stagiaire-classification-points__grid .stagiaire-stat-label {
		font-size: 0.68rem;
		line-height: 1.2;
	}

	.stagiaire-season-dossier__table-wrap {
		padding: 0 0.65rem 0.65rem;
	}

	.stagiaire-season-dossier__table {
		border-spacing: 0 0.65rem;
	}

	.stagiaire-season-dossier__table thead {
		display: none;
	}

	.stagiaire-season-dossier__table tbody tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			'race race'
			'date date'
			'general road'
			'mountain tickets';
		gap: 0.55rem 0.75rem;
		padding: 0.95rem 1rem;
		border-radius: 14px;
		background: rgba(2, 6, 23, 0.38);
	}

	.stagiaire-season-dossier__table tbody td {
		display: block;
		padding: 0;
		border-radius: 0;
	}

	.stagiaire-season-dossier__table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--stag-muted);
		margin-bottom: 0.2rem;
	}

	.stagiaire-season-dossier__race {
		grid-area: race;
	}

	.stagiaire-season-dossier__table tbody td:nth-child(2) { grid-area: date; }
	.stagiaire-season-dossier__table tbody td:nth-child(3) { grid-area: general; }
	.stagiaire-season-dossier__table tbody td:nth-child(4) { grid-area: road; }
	.stagiaire-season-dossier__table tbody td:nth-child(5) { grid-area: mountain; }
	.stagiaire-season-dossier__table tbody td:nth-child(6) { grid-area: tickets; }

	.stagiaire-season-dossier__race-info span {
		white-space: normal;
	}

	.stagiaire-celebration__rewards {
		justify-content: center;
	}
}

/* App header */
.stagiaire-app-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--stag-primary);
	border-bottom: 1px solid #222;
}

.stagiaire-app-header__inner {
	display: grid;
	grid-template-columns: 44px 1fr 56px;
	align-items: center;
	gap: 0.75rem;
	max-width: var(--stag-app-max);
	min-height: 72px;
	margin: 0 auto;
	padding: 0.75rem 1rem;
}

.stagiaire-app-header__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--stag-text);
	cursor: pointer;
	transition: color 180ms ease, background-color 180ms ease;
}

.stagiaire-app-header__action svg {
	width: 22px;
	height: 22px;
}

.stagiaire-app-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.stagiaire-app-header__icon svg {
	width: 24px;
	height: 24px;
}

.stagiaire-app-header__action:hover,
.stagiaire-app-header__action:focus-visible {
	background: #171717;
	outline: none;
}

.stagiaire-app-header__tooltip {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 50%;
	z-index: 30;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	background: #111;
	border: 1px solid #333;
	color: var(--stag-text);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(-4px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.stagiaire-app-header__tooltip::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #111;
	border-left: 1px solid #333;
	border-top: 1px solid #333;
	transform: translate(-50%, 50%) rotate(45deg);
}

.stagiaire-app-header__action--messages .stagiaire-app-header__tooltip {
	left: auto;
	right: 0;
	transform: translateY(-4px);
}

.stagiaire-app-header__action--messages:hover .stagiaire-app-header__tooltip,
.stagiaire-app-header__action--messages:focus-visible .stagiaire-app-header__tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.stagiaire-app-header__action--messages .stagiaire-app-header__tooltip::before {
	left: auto;
	right: 10px;
	transform: translateY(50%) rotate(45deg);
}

.stagiaire-app-header__action--notifications .stagiaire-app-header__tooltip {
	left: 0;
	right: auto;
	transform: translateY(-4px);
}

.stagiaire-app-header__action--notifications:hover .stagiaire-app-header__tooltip,
.stagiaire-app-header__action--notifications:focus-visible .stagiaire-app-header__tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.stagiaire-app-header__action--notifications .stagiaire-app-header__tooltip::before {
	left: 10px;
	right: auto;
	transform: translateY(50%) rotate(45deg);
}

.stagiaire-app-header__action--notifications {
	position: relative;
	width: 46px;
	height: 46px;
}

.stagiaire-app-header__action--messages {
	position: relative;
	width: 56px;
	height: 56px;
}

.stagiaire-app-header__action--messages .stagiaire-app-header__icon,
.stagiaire-app-header__action--messages .stagiaire-app-header__icon svg {
	width: 50px;
	height: 50px;
}

.stagiaire-app-header__action--messages .stagiaire-app-header__badge--count {
	top: 2px;
	right: 0;
}

.stagiaire-messages-link {
	display: inline-flex;
}

.stagiaire-app-header__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--stag-brand);
}

.stagiaire-app-header__badge--count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--stag-primary);
	box-shadow: 0 0 0 2px var(--stag-primary);
}

.stagiaire-app-header__brand {
	text-align: center;
}

.stagiaire-app-header__logo {
	display: block;
	max-width: 160px;
	max-height: 36px;
	margin: 0 auto;
	object-fit: contain;
}

.stagiaire-app-header__title {
	display: block;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.stagiaire-app-header__tagline {
	margin: 0.15rem 0 0;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--stag-muted);
}

.stagiaire-app-header__tagline strong {
	color: var(--stag-brand);
	font-weight: 700;
}

/* Messages */
.stagiaire-messages {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 50vh;
}

.stagiaire-messages__hero {
	padding: 0.25rem 0 0.5rem;
}

.stagiaire-messages__title {
	margin: 0;
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 700;
	line-height: 1.2;
}

.stagiaire-messages__subtitle {
	margin: 0.35rem 0 0;
	color: var(--stag-muted);
	font-size: 0.9375rem;
}

.stagiaire-messages-search {
	position: relative;
	margin-bottom: 0.25rem;
}

.stagiaire-messages-search__field {
	--stag-search-border: #2a2a2a;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 54px;
	padding: 0.45rem 1rem 0.45rem 0.55rem;
	border: 1px solid var(--stag-search-border);
	border-left: 3px solid var(--stag-brand);
	border-radius: 12px;
	background: #121212;
	color: var(--stag-text);
	cursor: text;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stagiaire-messages-search__field:hover {
	--stag-search-border: rgba(255, 196, 0, 0.28);
	background: #151515;
}

.stagiaire-messages-search__field:focus-within {
	--stag-search-border: rgba(255, 196, 0, 0.55);
	background: #161616;
}

.stagiaire-messages-search__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(255, 196, 0, 0.12);
	color: var(--stag-brand);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stagiaire-messages-search__icon svg {
	display: block;
	width: 1.1rem;
	height: 1.1rem;
}

.stagiaire-messages-search__field:focus-within .stagiaire-messages-search__icon {
	background: rgba(255, 196, 0, 0.2);
	color: var(--stag-brand-bright);
	transform: scale(1.04);
}

.stagiaire-messages-search__input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--stag-text);
	font: inherit;
	line-height: 1.4;
	caret-color: var(--stag-brand);
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	-webkit-appearance: none;
}

.stagiaire-messages-search__input::placeholder {
	color: rgba(156, 163, 175, 0.72);
}

.stagiaire-messages-search__input:focus,
.stagiaire-messages-search__input:focus-visible,
.stagiaire-messages-search__input:active {
	outline: 0;
	outline-offset: 0;
	border: 0;
	box-shadow: none;
}

.stagiaire-app .stagiaire-messages-search__field,
.stagiaire-app .stagiaire-messages-search__field:focus,
.stagiaire-app .stagiaire-messages-search__field:focus-within {
	outline: 0;
	box-shadow: none;
}

.stagiaire-app .stagiaire-messages-search__input,
.stagiaire-app .stagiaire-messages-search__input:focus,
.stagiaire-app .stagiaire-messages-search__input:focus-visible,
.stagiaire-app input.stagiaire-messages-search__input:focus {
	outline: 0 !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
	border: 0 !important;
	background: transparent !important;
}

.stagiaire-messages-search__panel {
	position: absolute;
	top: calc(100% + 0.45rem);
	left: 0;
	right: 0;
	z-index: 25;
	padding: 0.45rem;
	border: 1px solid #2a2a2a;
	border-left: 3px solid rgba(255, 196, 0, 0.65);
	border-radius: 12px;
	background: #121212;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.stagiaire-messages-search__status {
	margin: 0.35rem 0.5rem 0.5rem;
	color: var(--stag-muted);
	font-size: 0.8125rem;
}

.stagiaire-messages-search__results {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: min(50vh, 320px);
	overflow-y: auto;
}

.stagiaire-messages-search__result {
	margin: 0;
}

.stagiaire-messages-search__link {
	display: grid;
	grid-template-columns: 44px 1fr;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0.5rem;
	border-radius: 12px;
	color: var(--stag-text);
	text-decoration: none;
	transition: background-color 180ms ease;
}

.stagiaire-messages-search__link:hover,
.stagiaire-messages-search__link:focus-visible {
	background: rgba(255, 196, 0, 0.08);
	outline: none;
}

.stagiaire-messages-search__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: #222;
}

.stagiaire-messages-search__avatar img {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 50%;
}

.stagiaire-messages-search__name {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
}

.stagiaire-messages-search__team {
	display: block;
	margin-top: 0.15rem;
	color: var(--stag-muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

.stagiaire-messages-empty__hint {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
}

.stagiaire-messages-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stagiaire-messages-list__item {
	margin: 0;
}

.stagiaire-messages-list__link {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	align-items: center;
	gap: 0.875rem;
	padding: 1rem;
	background: var(--stag-card);
	border-radius: 20px;
	color: var(--stag-text);
	text-decoration: none;
	transition: background-color 180ms ease, transform 180ms ease;
}

.stagiaire-messages-list__link:hover,
.stagiaire-messages-list__link:focus-visible {
	background: #1f1f1f;
	outline: none;
}

.stagiaire-messages-list__link.is-unread {
	box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.25);
}

.stagiaire-messages-list__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
}

.stagiaire-messages-list__avatar .avatar,
.stagiaire-messages-list__avatar img {
	border-radius: 50%;
}

.stagiaire-agent-messenger-avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #1a2744;
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	width: 100%;
	aspect-ratio: 1;
	min-width: 2.5rem;
	min-height: 2.5rem;
}

.stagiaire-messages-thread__avatar .stagiaire-agent-messenger-avatar-fallback {
	width: 56px;
	height: 56px;
	min-width: 56px;
	min-height: 56px;
}

.stagiaire-messages-list__avatar .stagiaire-agent-messenger-avatar-fallback {
	width: 52px;
	height: 52px;
	min-width: 52px;
	min-height: 52px;
}

.stagiaire-messages-list__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.stagiaire-messages-list__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.stagiaire-messages-list__name {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.stagiaire-messages-list__link.is-unread .stagiaire-messages-list__name {
	color: var(--stag-brand);
}

.stagiaire-messages-list__time {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--stag-muted);
}

.stagiaire-messages-list__preview {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
	color: var(--stag-muted);
}

.stagiaire-messages-list__you {
	color: var(--stag-text);
	font-weight: 500;
}

.stagiaire-messages-list__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--stag-brand);
	color: var(--stag-primary);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.stagiaire-messages-thread {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: calc(100dvh - var(--stag-tabbar-height) - 8rem);
}

.stagiaire-messages-thread__nav {
	margin: 0;
}

.stagiaire-messages-thread__header {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1rem;
	background: var(--stag-card);
	border-radius: 20px;
}

.stagiaire-messages-thread__avatar .avatar,
.stagiaire-messages-thread__avatar img {
	border-radius: 50%;
}

.stagiaire-messages-thread__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
}

.stagiaire-messages-thread__title a {
	color: inherit;
	text-decoration: none;
}

.stagiaire-messages-thread__title a:hover,
.stagiaire-messages-thread__title a:focus-visible {
	color: var(--stag-brand);
}

.stagiaire-messages-thread__scroll {
	flex: 1;
	overflow-y: auto;
	padding: 0.25rem 0.25rem 0.5rem;
}

.stagiaire-messages-thread__empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--stag-muted);
}

.stagiaire-messages-thread__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stagiaire-messages-bubble {
	max-width: min(85%, 28rem);
	padding: 0.75rem 0.95rem;
	border-radius: 18px;
}

.stagiaire-messages-bubble--other {
	align-self: flex-start;
	background: var(--stag-card);
	border-bottom-left-radius: 6px;
}

.stagiaire-messages-bubble--own {
	align-self: flex-end;
	background: linear-gradient(180deg, var(--stag-brand-light) 0%, var(--stag-brand) 100%);
	color: var(--stag-brand-text);
	border-bottom-right-radius: 6px;
}

.stagiaire-messages-bubble__body {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.stagiaire-messages-bubble__time {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.6875rem;
	opacity: 0.75;
}

.stagiaire-messages-thread__archived-notice {
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: rgba(255, 196, 0, 0.08);
	border: 1px solid rgba(255, 196, 0, 0.18);
	color: var(--stag-muted);
	font-size: 0.875rem;
	line-height: 1.45;
	text-align: center;
}

.stagiaire-messages-compose {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	align-items: end;
	position: sticky;
	bottom: calc(var(--stag-tabbar-height) + 0.5rem);
	padding: 0.75rem;
	background: var(--stag-card);
	border-radius: 20px;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.stagiaire-messages-compose__input {
	width: 100%;
	min-height: 44px;
	max-height: 120px;
	padding: 0.75rem 0.875rem;
	border: 1px solid #2a2a2a;
	border-radius: 14px;
	background: var(--stag-primary);
	color: var(--stag-text);
	font: inherit;
	resize: vertical;
}

.stagiaire-messages-compose__input:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 1px;
}

.stagiaire-messages-compose__submit {
	min-height: 44px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.stagiaire-messages-compose {
		grid-template-columns: 1fr;
	}

	.stagiaire-messages-compose__submit {
		width: 100%;
	}
}

/* Notificaciones */
.stagiaire-blocksy-notifications {
	display: inline-flex;
	align-items: center;
}

.stagiaire-notifications-link {
	display: inline-flex;
}

.stagiaire-app-header__action--notifications svg {
	width: 40px;
	height: 40px;
}

.stagiaire-app-header__action--notifications .stagiaire-app-header__badge--count {
	top: 2px;
	right: 0;
}

.stagiaire-notifications {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.stagiaire-notifications__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.stagiaire-notifications__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.stagiaire-notifications-empty__hint {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
}

.stagiaire-notifications-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stagiaire-notifications-list__item {
	margin: 0;
}

.stagiaire-notifications-list__link {
	display: grid;
	grid-template-columns: 40px 1fr;
	align-items: start;
	gap: 0.875rem;
	padding: 1rem;
	background: var(--stag-card);
	border-radius: 20px;
	color: var(--stag-text);
	text-decoration: none;
	transition: background-color 180ms ease;
}

button.stagiaire-notifications-list__link {
	width: 100%;
	border: none;
	margin: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

button.stagiaire-notifications-list__link:disabled {
	cursor: wait;
	opacity: 0.85;
}

.stagiaire-notifications-list__link.is-read {
	cursor: default;
}

.stagiaire-notifications-list__link:hover,
.stagiaire-notifications-list__link:focus-visible {
	background: #1f1f1f;
	outline: none;
}

.stagiaire-notifications-list__link.is-unread {
	box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.25);
}

.stagiaire-notifications-list__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 196, 0, 0.12);
	color: var(--stag-brand);
}

.stagiaire-notifications-list__icon svg {
	width: 20px;
	height: 20px;
}

.stagiaire-notifications-list__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.stagiaire-notifications-list__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.stagiaire-notifications-list__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.stagiaire-notifications-list__link.is-unread .stagiaire-notifications-list__title {
	color: var(--stag-brand);
}

.stagiaire-notifications-list__time {
	flex-shrink: 0;
	color: var(--stag-muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

.stagiaire-notifications-list__body {
	color: var(--stag-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.stagiaire-notifications-pagination {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.stagiaire-push-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.stagiaire-push-banner__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.stagiaire-push-banner__status {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.stagiaire-push-banner__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.stagiaire-push-banner [hidden] {
	display: none !important;
}

/* Tabbar */
body.stagiaire-app-page .is-layout-flow > nav.stagiaire-tabbar,
body.stagiaire-app-page nav.stagiaire-tabbar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	margin: 0;
	margin-block-start: 0;
	margin-block-end: 0;
	background: #050505;
	border-top: 1px solid #222;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.stagiaire-app-page .ct-widget:has(> .stagiaire-tabbar) > p {
	display: none;
	margin: 0;
}

.stagiaire-tabbar__inner {
	max-width: var(--stag-app-max);
	margin: 0 auto;
	padding: 0.35rem 0.25rem;
}

.stagiaire-tabbar__list {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stagiaire-tabbar__item {
	flex: 1 1 0;
	min-width: 0;
}

.stagiaire-tabbar__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-height: 56px;
	padding: 0.35rem 0.15rem;
	border-radius: 10px;
	color: var(--stag-muted);
	text-decoration: none;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: color 180ms ease, background-color 180ms ease;
}

.stagiaire-tabbar__link:hover,
.stagiaire-tabbar__link:focus-visible {
	color: var(--stag-text);
	background: #171717;
	outline: none;
}

.stagiaire-tabbar__link.is-active {
	color: var(--stag-brand);
}

.stagiaire-tabbar__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.stagiaire-tabbar__label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.stagiaire-tabbar__link {
		min-height: 64px;
		font-size: 0.68rem;
	}

	.stagiaire-tabbar__icon svg {
		width: 24px;
		height: 24px;
	}
}

/* Home screen */
.stagiaire-home {
	display: grid;
	gap: 1.75rem;
}

.stagiaire-home-user {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	grid-template-areas: "left comms";
	gap: 1rem 1.25rem;
	align-items: stretch;
	min-height: 0;
}

.stagiaire-home-user > .stagiaire-home-user__left {
	grid-area: left;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
	min-height: 0;
	height: 100%;
}

.stagiaire-home-user__left .stagiaire-user-card--teaser {
	flex-shrink: 0;
}

.stagiaire-home-user__left .stagiaire-home-following--panel {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	padding: 1rem 1rem 0.85rem;
}

.stagiaire-home-following--panel .stagiaire-home-section-title {
	flex-shrink: 0;
	margin: 0 0 0.75rem;
}

.stagiaire-home-following--panel .stagiaire-home-following__slider {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: stretch;
	gap: 0.35rem;
}

.stagiaire-home-following--panel .stagiaire-home-following__list {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0.65rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 0.15rem 0.1rem 0.35rem;
}

.stagiaire-home-following--panel .stagiaire-home-following__item {
	flex: 0 0 clamp(9.5rem, 42%, 11.5rem);
	width: clamp(9.5rem, 42%, 11.5rem);
	max-width: 11.5rem;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: 0.55rem;
	padding: 0.75rem 0.7rem;
	box-sizing: border-box;
}

.stagiaire-home-following--panel .stagiaire-home-following__rider {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.45rem;
	width: 100%;
}

.stagiaire-home-following--panel .stagiaire-home-following__team,
.stagiaire-home-following--panel .stagiaire-home-following__team-empty {
	justify-content: center;
	text-align: center;
	width: 100%;
}

.stagiaire-home-following--panel .stagiaire-home-following__unfollow {
	width: 100%;
	align-self: stretch;
}

.stagiaire-home-following--panel .stagiaire-home-following__avatar {
	width: 3rem;
	height: 3rem;
}

.stagiaire-home-following--panel .stagiaire-home-following__name {
	font-size: 0.82rem;
	text-align: center;
}

.stagiaire-home-following--panel .stagiaire-home-following__team-name,
.stagiaire-home-following--panel .stagiaire-home-following__team-empty {
	font-size: 0.72rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.stagiaire-home-following--panel .stagiaire-home-following__team-jersey .stagiaire-team-jersey {
	width: 2rem;
}

.stagiaire-home-following__nav {
	flex-shrink: 0;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	color: var(--stag-text);
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.stagiaire-home-following__nav svg {
	width: 1rem;
	height: 1rem;
}

.stagiaire-home-following__nav:hover,
.stagiaire-home-following__nav:focus-visible {
	background: rgba(255, 196, 0, 0.16);
	border-color: rgba(255, 196, 0, 0.35);
	color: var(--stag-brand);
}

.stagiaire-home-following__nav:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 2px;
}

.stagiaire-home-following__nav:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.stagiaire-home-following__more {
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	margin: 0.75rem 0 0;
	text-align: center;
}

.stagiaire-home-following__more .stagiaire-user-card__profile-link,
.stagiaire-home-following__empty .stagiaire-user-card__profile-link {
	align-self: center;
	margin-top: 0;
}

.stagiaire-user-card {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	gap: 1.25rem;
	min-width: 0;
	padding: 1.25rem 1.2rem;
	border-radius: 16px;
	background: linear-gradient(165deg, rgba(32, 32, 36, 0.72), rgba(16, 16, 18, 0.88));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.stagiaire-user-card--teaser {
	justify-content: flex-start;
	gap: 1rem;
	height: auto;
	align-self: stretch;
}

.stagiaire-user-card--full {
	justify-content: flex-start;
	height: auto;
}

.stagiaire-user-card__agent {
	min-width: 0;
}

.stagiaire-user-card__agent .stagiaire-agent-badge {
	margin-top: 0;
	width: 100%;
}

.stagiaire-home-user__comms {
	grid-area: comms;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
	min-height: 0;
	height: 100%;
}

.stagiaire-user-card__identity {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem 1rem;
	align-items: center;
}

.stagiaire-user-card__avatar-wrap {
	--stag-user-card-avatar: 88px;
	position: relative;
	width: var(--stag-user-card-avatar);
	height: var(--stag-user-card-avatar);
}

.stagiaire-user-card__avatar-wrap.stagiaire-profile-avatar-editable {
	width: auto;
	height: auto;
	align-items: flex-start;
	gap: 0.35rem;
}

.stagiaire-user-card__avatar-wrap .stagiaire-profile-avatar-inner {
	width: var(--stag-user-card-avatar);
	height: var(--stag-user-card-avatar);
}

.stagiaire-user-card__avatar-wrap .stagiaire-profile-photo-img,
.stagiaire-user-card__avatar-wrap .avatar {
	width: var(--stag-user-card-avatar);
	height: var(--stag-user-card-avatar);
	border-radius: 50%;
	object-fit: cover;
}

.stagiaire-user-card__level-wrap {
	position: absolute;
	right: -2px;
	bottom: -2px;
	z-index: 2;
}

.stagiaire-user-card__avatar-wrap.stagiaire-profile-avatar-editable .stagiaire-profile-photo-change {
	/* Evita solaparse con el badge de nivel (esquina inferior derecha). */
	top: 0;
	right: 0;
	bottom: auto;
	left: auto;
	z-index: 3;
}

.stagiaire-user-card__level {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 26px;
	padding: 0 0.35rem;
	background: var(--stag-brand);
	color: var(--stag-brand-text);
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
	cursor: help;
}

.stagiaire-user-card__level-tip {
	position: absolute;
	bottom: calc(100% + 0.45rem);
	left: 50%;
	z-index: 20;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	background: #111;
	border: 1px solid #333;
	color: var(--stag-text);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(4px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.stagiaire-user-card__level-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #111;
	border-right: 1px solid #333;
	border-bottom: 1px solid #333;
	transform: translate(-50%, -50%) rotate(45deg);
}

.stagiaire-user-card__level-wrap:hover .stagiaire-user-card__level-tip,
.stagiaire-user-card__level-wrap:focus-within .stagiaire-user-card__level-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.stagiaire-user-card__level:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 2px;
}

.stagiaire-user-card__identity-text {
	min-width: 0;
}

.stagiaire-user-card__nickname {
	margin: 0 0 0.35rem;
	color: var(--stag-text);
	font-size: clamp(1.2rem, 3vw, 1.55rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.1;
	text-transform: uppercase;
}

.stagiaire-user-card__level-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
	margin: 0;
	line-height: 1.2;
}

.stagiaire-user-card__level-label-kicker {
	color: var(--stag-muted);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.stagiaire-user-card__level-label-value {
	color: var(--stag-brand);
	font-size: 0.92rem;
	font-weight: 700;
}

.stagiaire-user-card__team {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 0.75rem 1rem;
	align-items: center;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.06);
	text-decoration: none;
	color: inherit;
	transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.stagiaire-user-card__team:hover,
.stagiaire-user-card__team:focus-visible {
	background: rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 196, 0, 0.28);
	transform: translateY(-1px);
}

.stagiaire-user-card__team:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 2px;
}

.stagiaire-user-card__team--empty {
	display: block;
	pointer-events: none;
}

.stagiaire-user-card__team-jersey {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.stagiaire-user-card__team-jersey .stagiaire-team-jersey {
	width: 80px;
}

.stagiaire-user-card__team-jersey .stagiaire-team-jersey-img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.stagiaire-user-card__team-meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.stagiaire-user-card__team-label {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.stagiaire-user-card__team-name {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--stag-text);
	font-size: clamp(0.95rem, 2.4vw, 1.15rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	overflow-wrap: break-word;
}

.stagiaire-user-card__team-name svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--stag-brand);
}

.stagiaire-user-card__team-empty {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.95rem;
	font-weight: 600;
}

.stagiaire-user-card__sponsor {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 0.75rem 1rem;
	align-items: center;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.06);
	text-decoration: none;
	color: inherit;
	transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.stagiaire-user-card__sponsor:hover,
.stagiaire-user-card__sponsor:focus-visible {
	background: rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 196, 0, 0.28);
	transform: translateY(-1px);
}

.stagiaire-user-card__sponsor:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 2px;
}

.stagiaire-user-card__sponsor-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	line-height: 0;
}

.stagiaire-user-card__sponsor-logo .stagiaire-profile-photo-img,
.stagiaire-user-card__sponsor-logo img,
.stagiaire-user-card__sponsor-logo .avatar {
	display: block;
	width: 52px;
	height: 52px;
	max-width: 52px;
	max-height: 52px;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	object-fit: cover;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.stagiaire-user-card__sponsor-meta {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.stagiaire-user-card__sponsor-label {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.stagiaire-user-card__sponsor-name {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--stag-text);
	font-size: clamp(0.95rem, 2.4vw, 1.15rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
	overflow-wrap: break-word;
}

.stagiaire-user-card__sponsor-name svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--stag-brand);
}

.stagiaire-user-card__sponsor--empty {
	display: block;
	pointer-events: none;
	background:
		radial-gradient(120% 140% at 12% 0%, rgba(255, 196, 0, 0.08), transparent 55%),
		rgba(0, 0, 0, 0.22);
	border-style: dashed;
	border-color: rgba(255, 255, 255, 0.1);
}

.stagiaire-user-card__sponsor-empty-text {
	margin: 0;
	color: rgba(241, 245, 249, 0.72);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	animation: stagiaire-sponsor-empty-in 560ms ease-out both;
}

.stagiaire-user-card__sponsor-cta {
	width: 100%;
	margin: 0;
}

@keyframes stagiaire-sponsor-empty-in {
	from {
		opacity: 0;
		transform: translateY(4px);
		letter-spacing: 0.16em;
	}
	to {
		opacity: 1;
		transform: translateY(0);
		letter-spacing: 0.06em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stagiaire-user-card__sponsor-empty-text {
		animation: none;
	}
}

.stagiaire-user-card__progress {
	display: grid;
	gap: 0.4rem;
	padding: 0.15rem 0.1rem 0;
}

.stagiaire-user-card__progress-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.stagiaire-user-card__progress-label {
	min-width: 0;
	color: var(--stag-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.25;
}

.stagiaire-user-card__progress-pct {
	flex-shrink: 0;
	color: var(--stag-brand);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
}

.stagiaire-user-card__progress-track {
	position: relative;
	width: 100%;
	height: 0.45rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.stagiaire-user-card__progress-fill {
	display: block;
	height: 100%;
	width: var(--stag-user-card-progress, 0%);
	border-radius: inherit;
	background: linear-gradient(90deg, var(--stag-brand) 0%, var(--stag-brand-bright) 100%);
	box-shadow: 0 0 12px rgba(255, 196, 0, 0.35);
	transition: width 320ms ease;
}

.stagiaire-user-card__progress-meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
}

.stagiaire-user-card__profile-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	align-self: flex-start;
	margin-top: 0.15rem;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--stag-brand-light) 0%, var(--stag-brand) 100%);
	color: var(--stag-brand-text);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	box-shadow: 0 8px 18px rgba(255, 196, 0, 0.22);
	transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.stagiaire-user-card__profile-link svg {
	width: 16px;
	height: 16px;
}

.stagiaire-user-card__profile-link:hover,
.stagiaire-user-card__profile-link:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 10px 22px rgba(255, 196, 0, 0.3);
}

.stagiaire-user-card__profile-link:focus-visible {
	outline: 2px solid var(--stag-brand-bright);
	outline-offset: 3px;
}

.stagiaire-home-radio {
	grid-area: unset;
	position: relative;
	flex: 3.2 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 0;
	min-height: 0;
	padding: 0.65rem 0.7rem 0.75rem;
	border-radius: 16px;
	background: linear-gradient(165deg, rgba(32, 32, 36, 0.95), rgba(16, 16, 18, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
	text-decoration: none;
	color: inherit;
	outline: none;
	overflow: hidden;
}

.stagiaire-home-radio:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 3px;
}

.stagiaire-home-radio__img {
	display: block;
	width: auto;
	max-width: min(100%, 200px);
	max-height: 100%;
	height: auto;
	flex: 1 1 auto;
	object-fit: contain;
	filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
	transition: transform 220ms ease, filter 220ms ease;
}

.stagiaire-home-radio--unread .stagiaire-home-radio__img {
	animation: stagiaire-home-radio-pulse 1.8s ease-in-out infinite;
}

.stagiaire-home-radio:hover .stagiaire-home-radio__img {
	transform: scale(1.03);
}

.stagiaire-home-radio__preview {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
	max-width: 16rem;
	padding: 0.45rem 0.6rem;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.stagiaire-home-radio--unread .stagiaire-home-radio__preview {
	animation: stagiaire-home-radio-preview-in 280ms ease both;
}

.stagiaire-home-radio__preview-label {
	color: var(--stag-brand);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stagiaire-home-radio__preview-body {
	color: var(--stag-text);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.stagiaire-home-radio__empty {
	flex-shrink: 0;
	display: block;
	width: 100%;
	max-width: 15rem;
	margin-top: 0.1rem;
	text-align: center;
}

.stagiaire-home-radio__empty-text {
	display: inline-block;
	color: var(--stag-muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.35;
	background: linear-gradient(
		110deg,
		rgba(160, 160, 168, 0.55) 0%,
		rgba(255, 255, 255, 0.95) 42%,
		rgba(255, 196, 0, 0.85) 58%,
		rgba(160, 160, 168, 0.55) 100%
	);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: stagiaire-home-radio-empty-shimmer 4.5s ease-in-out infinite;
}

.stagiaire-home-agent {
	position: relative;
	flex: 0.7 1 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.45rem 0.5rem;
	min-width: 0;
	min-height: 0;
	padding: 0.4rem 0.55rem;
	border-radius: 16px;
	background:
		radial-gradient(ellipse 90% 80% at 0% 0%, rgba(37, 211, 102, 0.16), transparent 55%),
		linear-gradient(165deg, rgba(18, 32, 24, 0.96), rgba(10, 14, 12, 0.98));
	border: 1px solid rgba(37, 211, 102, 0.28);
	box-shadow:
		0 10px 24px rgba(0, 0, 0, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	text-decoration: none;
	color: inherit;
	outline: none;
	overflow: hidden;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.stagiaire-home-agent::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 10px 10px;
	opacity: 0.4;
	pointer-events: none;
}

.stagiaire-home-agent > * {
	position: relative;
	z-index: 1;
}

.stagiaire-home-agent:focus-visible {
	outline: 2px solid #25d366;
	outline-offset: 3px;
}

.stagiaire-home-agent:hover {
	border-color: rgba(37, 211, 102, 0.55);
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.38),
		0 0 0 1px rgba(37, 211, 102, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stagiaire-home-agent--unread {
	border-color: rgba(37, 211, 102, 0.5);
	box-shadow:
		0 10px 26px rgba(0, 0, 0, 0.35),
		0 0 20px rgba(37, 211, 102, 0.12);
}

.stagiaire-home-agent__wa-icon {
	display: inline-flex;
	flex-shrink: 0;
	filter: drop-shadow(0 4px 10px rgba(37, 211, 102, 0.45));
	line-height: 0;
	align-self: center;
}

.stagiaire-home-agent__wa-icon svg {
	display: block;
	width: 26px;
	height: 26px;
}

.stagiaire-home-agent__bubble {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
	padding: 0.35rem 0.5rem 0.28rem;
	border-radius: 12px 12px 4px 12px;
	background: #3a4a40;
	color: #e8efe9;
	box-shadow:
		0 3px 10px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stagiaire-home-agent__bubble-body {
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.stagiaire-home-agent__bubble-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.2rem;
	align-self: flex-end;
}

.stagiaire-home-agent__bubble-time {
	font-size: 0.52rem;
	font-weight: 700;
	color: rgba(232, 239, 233, 0.5);
	line-height: 1;
}

.stagiaire-home-agent__bubble-checks {
	display: inline-flex;
	color: #7ec8e3;
	line-height: 1;
}

.stagiaire-home-agent__sender {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.stagiaire-home-agent__avatar-wrap {
	display: inline-flex;
	border-radius: 50%;
	line-height: 0;
}

.stagiaire-home-agent__avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	background: #0f172a;
	display: block;
}

.stagiaire-home-agent__empty-text {
	min-width: 0;
	color: rgba(200, 230, 210, 0.82);
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.02em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

@keyframes stagiaire-home-radio-empty-shimmer {
	0%,
	100% {
		background-position: 100% 50%;
		opacity: 0.72;
	}

	50% {
		background-position: 0% 50%;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stagiaire-home-radio__empty-text,
	.stagiaire-home-radio--unread .stagiaire-home-radio__img,
	.stagiaire-home-radio--unread .stagiaire-home-radio__preview {
		animation: none;
	}

	.stagiaire-home-radio__empty-text {
		color: var(--stag-muted);
		background: none;
		-webkit-background-clip: unset;
		background-clip: unset;
		opacity: 0.9;
	}
}

@keyframes stagiaire-home-radio-pulse {
	0%,
	100% {
		filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
		transform: scale(1);
	}

	50% {
		filter: drop-shadow(0 12px 26px rgba(255, 196, 0, 0.28));
		transform: scale(1.03);
	}
}

@keyframes stagiaire-home-radio-preview-in {
	from {
		opacity: 0;
		transform: translateY(6px) scale(0.96);
	}

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

.stagiaire-home-section-title {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stagiaire-home-section-title__bar {
	display: inline-block;
	width: 4px;
	height: 1.1em;
	border-radius: 999px;
	background: var(--stag-brand);
}

.stagiaire-home-section-title__sep {
	color: var(--stag-muted);
	font-weight: 600;
}

.stagiaire-home-section-title__accent {
	color: var(--stag-muted);
	font-weight: 600;
}

.stagiaire-home-training {
	margin-top: 1.5rem;
}

.stagiaire-home-training__team {
	margin: 0 0 1rem;
	color: var(--stag-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.stagiaire-home-training__progress--single {
	grid-template-columns: 1fr;
}

.stagiaire-home-race-card {
	display: grid;
	gap: 1.25rem;
	padding: 1.25rem;
	border-radius: 20px;
	background: var(--stag-card);
}

.stagiaire-home-race-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.stagiaire-home-race-card__header {
	display: grid;
	gap: 0.65rem;
}

.stagiaire-home-race-card__category {
	display: inline-flex;
	align-self: start;
	padding: 0.25rem 0.55rem;
	border: 1px solid #38bdf8;
	border-radius: 6px;
	color: #7dd3fc;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.stagiaire-home-race-card__category--pro {
	border-color: #f97316;
	color: #fdba74;
}

.stagiaire-home-race-card__category--wt {
	border-color: #38bdf8;
	color: #7dd3fc;
}

.stagiaire-home-race-card__name {
	margin: 0;
	font-size: clamp(1.05rem, 2.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.03em;
}

.stagiaire-home-race-card__dates {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	color: var(--stag-muted);
	font-size: 0.78rem;
	font-weight: 500;
}

.stagiaire-home-race-card__deadline {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.stagiaire-home-race-card__deadline strong {
	color: var(--stag-brand);
	font-weight: 700;
}

.stagiaire-home-race-card__profile {
	margin-top: 0.35rem;
}

.stagiaire-home-race-card__profile .stagiaire-race-profile {
	width: 100%;
}

.stagiaire-home-race-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stagiaire-home-race-stats__item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"icon label"
		"icon value";
	column-gap: 0.55rem;
	align-items: center;
}

.stagiaire-home-race-stats__item .stagiaire-stat-icon,
.stagiaire-home-race-stats__item .stagiaire-currency-icon {
	grid-area: icon;
	width: 34px;
	height: 34px;
}

.stagiaire-home-race-stats__label {
	grid-area: label;
	color: var(--stag-muted);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.stagiaire-home-race-stats__value {
	grid-area: value;
	font-size: 1rem;
	font-weight: 700;
}

.stagiaire-home-race-progress {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.stagiaire-home-race-progress__col {
	padding: 1rem;
	border-radius: 14px;
	background: #111;
}

.stagiaire-home-race-progress__head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.35rem;
}

.stagiaire-progress-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--stag-muted);
}

.stagiaire-progress-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.stagiaire-home-race-progress__label {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.stagiaire-home-race-progress__value {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem;
	margin: 0 0 0.75rem;
	line-height: 1.15;
}

.stagiaire-home-race-progress__value-current {
	color: var(--stag-brand);
	font-size: clamp(1.45rem, 4.5vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.stagiaire-home-race-progress__value-rest {
	color: rgba(255, 255, 255, 0.72);
	font-size: clamp(0.95rem, 2.8vw, 1.15rem);
	font-weight: 500;
}

.stagiaire-home-race-progress__bar {
	display: block;
	width: 100%;
	height: 10px;
	border: 0;
	border-radius: 999px;
	overflow: hidden;
	background: #2a2a2a;
	appearance: none;
}

.stagiaire-home-race-progress__bar::-webkit-progress-bar {
	background: #2a2a2a;
	border-radius: 999px;
}

.stagiaire-home-race-progress__bar::-webkit-progress-value {
	border-radius: 999px;
	background: var(--stag-brand);
}

.stagiaire-home-race-progress__bar::-moz-progress-bar {
	border-radius: 999px;
	background: var(--stag-brand);
}

.stagiaire-home-race-progress__meta {
	margin: 0.5rem 0 0;
	color: var(--stag-muted);
	font-size: clamp(0.88rem, 2.6vw, 1rem);
	font-weight: 600;
	line-height: 1.35;
}

.stagiaire-home-race-card__info {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.65rem;
	align-items: start;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	background: #111;
	color: var(--stag-muted);
	font-size: 0.78rem;
	line-height: 1.45;
}

.stagiaire-home-race-card__info svg {
	width: 18px;
	height: 18px;
	margin-top: 0.1rem;
	color: var(--stag-brand);
}

.stagiaire-home-race-card__info p {
	margin: 0;
}

.stagiaire-home-race-card__abandon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--stag-danger);
	border-radius: 12px;
	background: transparent;
	color: var(--stag-danger);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}

.stagiaire-home-race-card__abandon svg {
	width: 18px;
	height: 18px;
}

.stagiaire-home-race-card__abandon:hover,
.stagiaire-home-race-card__abandon:focus-visible {
	background: rgba(239, 68, 68, 0.12);
	outline: none;
}

.stagiaire-home-race-card--empty {
	text-align: center;
}

.stagiaire-home-race-card__empty-text {
	margin: 0;
	color: var(--stag-muted);
	line-height: 1.5;
}

.stagiaire-home-race-card__choose {
	width: 100%;
	margin-top: 0.5rem;
}

@media (min-width: 640px) {
	.stagiaire-home-race-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.stagiaire-home-race-progress {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (max-width: 600px) {
	.stagiaire-home-user {
		grid-template-columns: 1fr;
		grid-template-areas: "comms";
		gap: 1rem;
		align-items: stretch;
	}

	.stagiaire-home-user > .stagiaire-home-user__left {
		display: none;
	}

	.stagiaire-user-card {
		padding: 0.85rem 0.9rem;
		gap: 0.9rem;
		height: auto;
	}

	.stagiaire-user-card__identity {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0.55rem 0.75rem;
	}

	.stagiaire-user-card__avatar-wrap {
		--stag-user-card-avatar: 72px;
		width: var(--stag-user-card-avatar);
		height: var(--stag-user-card-avatar);
	}

	.stagiaire-user-card__avatar-wrap.stagiaire-profile-avatar-editable {
		width: auto;
		height: auto;
	}

	.stagiaire-user-card__nickname {
		margin: 0 0 0.25rem;
		font-size: 1.05rem;
		line-height: 1.15;
		overflow-wrap: break-word;
	}

	.stagiaire-user-card__team {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 0.55rem 0.75rem;
		padding: 0.55rem 0.65rem;
	}

	.stagiaire-user-card__team-jersey .stagiaire-team-jersey {
		width: 68px;
	}

	.stagiaire-user-card__team-name {
		font-size: 0.95rem;
	}

	.stagiaire-user-card__sponsor {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 0.55rem 0.75rem;
		padding: 0.55rem 0.65rem;
	}

	.stagiaire-user-card__sponsor-logo {
		width: 68px;
	}

	.stagiaire-user-card__sponsor-logo .stagiaire-profile-photo-img,
	.stagiaire-user-card__sponsor-logo img,
	.stagiaire-user-card__sponsor-logo .avatar {
		width: 44px;
		height: 44px;
		max-width: 44px;
		max-height: 44px;
	}

	.stagiaire-user-card__sponsor-name {
		font-size: 0.95rem;
	}

	.stagiaire-user-card__sponsor-empty-text {
		letter-spacing: 0.04em;
		font-size: 0.88rem;
	}

	.stagiaire-home-user__comms {
		height: auto;
		min-height: 22rem;
	}

	.stagiaire-home-radio {
		padding: 0.65rem 0.75rem 0.75rem;
	}

	.stagiaire-home-radio__img {
		max-width: min(100%, 180px);
	}

	.stagiaire-home-radio__preview {
		max-width: none;
	}

	.stagiaire-home-agent {
		padding: 0.55rem 0.7rem 0.65rem;
	}
}

@media (min-width: 900px) {
	.stagiaire-home-user {
		gap: 1.25rem 1.75rem;
		min-height: 23rem;
	}

	.stagiaire-user-card {
		padding: 1.35rem 1.3rem;
		gap: 1.35rem;
	}

	.stagiaire-user-card--full .stagiaire-user-card__identity {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0.85rem 1.05rem;
	}

	.stagiaire-user-card--full .stagiaire-user-card__avatar-wrap {
		--stag-user-card-avatar: 96px;
		width: var(--stag-user-card-avatar);
		height: var(--stag-user-card-avatar);
	}

	.stagiaire-user-card--full .stagiaire-user-card__avatar-wrap.stagiaire-profile-avatar-editable {
		width: auto;
		height: auto;
	}

	.stagiaire-user-card--full .stagiaire-user-card__team-jersey .stagiaire-team-jersey {
		width: 100px;
	}

	.stagiaire-user-card--full .stagiaire-user-card__sponsor-logo {
		width: 100px;
	}

	.stagiaire-user-card--full .stagiaire-user-card__sponsor-logo .stagiaire-profile-photo-img,
	.stagiaire-user-card--full .stagiaire-user-card__sponsor-logo img,
	.stagiaire-user-card--full .stagiaire-user-card__sponsor-logo .avatar {
		width: 64px;
		height: 64px;
		max-width: 64px;
		max-height: 64px;
	}

	.stagiaire-home-radio {
		padding: 0.75rem 0.85rem 0.85rem;
	}

	.stagiaire-home-radio__img {
		max-width: min(100%, 220px);
	}

	.stagiaire-home-agent__avatar {
		width: 36px;
		height: 36px;
	}
}

.stagiaire-weeks {
	display: grid;
	gap: 1rem;
}

.stagiaire-weeks__switch {
	display: grid;
	gap: 0.65rem;
}

.stagiaire-weeks__tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.stagiaire-app .stagiaire-weeks__select-wrap {
	display: none;
	position: relative;
}

.stagiaire-app button.stagiaire-weeks__select-btn {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	width: 100%;
	min-height: 3.4rem;
	padding: 0.85rem 2.85rem 0.85rem 0.95rem;
	border: 1px solid rgba(255, 196, 0, 0.35);
	border-radius: 12px;
	appearance: none;
	-webkit-appearance: none;
	--theme-button-background-initial-color: transparent;
	--theme-button-background-hover-color: transparent;
	--theme-button-text-initial-color: var(--stag-text);
	--theme-button-text-hover-color: var(--stag-text);
	--theme-button-shadow: none;
	--theme-button-min-height: 0;
	--theme-button-padding: 0;
	background-color: #1a1810 !important;
	background-image: linear-gradient(165deg, rgba(40, 36, 20, 0.95), rgba(20, 20, 24, 0.98)) !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: auto !important;
	color: var(--stag-text) !important;
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.stagiaire-app button.stagiaire-weeks__select-btn::before {
	display: none !important;
	content: none !important;
}

.stagiaire-app .stagiaire-weeks__select-chevron {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	background: rgba(255, 196, 0, 0.14);
	border: 1px solid rgba(255, 196, 0, 0.35);
	color: var(--stag-brand);
	transform: translateY(-50%);
	transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
	pointer-events: none;
}

.stagiaire-app .stagiaire-weeks__select-chevron svg {
	display: block;
	width: 0.95rem;
	height: 0.95rem;
}

.stagiaire-app .stagiaire-weeks__select-wrap.is-open .stagiaire-weeks__select-chevron {
	transform: translateY(-50%) rotate(180deg);
	background: rgba(255, 196, 0, 0.22);
	border-color: rgba(255, 196, 0, 0.55);
}

.stagiaire-app .stagiaire-weeks__select-wrap.is-open button.stagiaire-weeks__select-btn {
	border-color: rgba(255, 196, 0, 0.55);
	box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.18);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.stagiaire-app button.stagiaire-weeks__select-btn:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 2px;
}

.stagiaire-app .stagiaire-weeks__select-btn-label {
	display: block;
	width: 100%;
	color: var(--stag-brand);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
}

.stagiaire-app .stagiaire-weeks__select-btn-range {
	display: block;
	width: 100%;
	color: var(--stag-muted);
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.35;
}

.stagiaire-app .stagiaire-weeks__select-btn-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	min-width: 0;
	flex: 1;
}

.stagiaire-weeks__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.55rem;
	height: 1.55rem;
	color: var(--stag-brand);
}

.stagiaire-weeks__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.stagiaire-weeks__tab:not(.is-active) .stagiaire-weeks__icon,
.stagiaire-app button.stagiaire-weeks__select-option:not(.is-active) .stagiaire-weeks__icon {
	color: var(--stag-muted);
}

.stagiaire-app .stagiaire-weeks__select-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	border: 1px solid rgba(255, 196, 0, 0.35);
	border-top: none;
	border-radius: 0 0 12px 12px;
	background: #121214;
	background-color: #121214;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.stagiaire-app .stagiaire-weeks__select-menu[hidden] {
	display: none !important;
}

.stagiaire-app button.stagiaire-weeks__select-option {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 0.7rem;
	width: 100%;
	min-height: 0;
	padding: 0.75rem 0.8rem;
	border: 1px solid transparent;
	border-radius: 8px;
	appearance: none;
	-webkit-appearance: none;
	--theme-button-background-initial-color: #141416;
	--theme-button-background-hover-color: #1c1c20;
	--theme-button-text-initial-color: var(--stag-text);
	--theme-button-text-hover-color: var(--stag-text);
	--theme-button-shadow: none;
	--theme-button-min-height: 0;
	--theme-button-padding: 0.75rem 0.8rem;
	background: #141416 !important;
	background-color: #141416 !important;
	background-image: none !important;
	color: var(--stag-text) !important;
	text-align: left;
	cursor: pointer;
	box-shadow: none !important;
	transform: none !important;
}

.stagiaire-app button.stagiaire-weeks__select-option::before {
	display: none !important;
	content: none !important;
}

.stagiaire-app button.stagiaire-weeks__select-option:hover,
.stagiaire-app button.stagiaire-weeks__select-option:focus-visible {
	background: #1c1c20 !important;
	background-color: #1c1c20 !important;
	border-color: rgba(255, 196, 0, 0.22);
	outline: none;
	color: var(--stag-text) !important;
}

.stagiaire-app button.stagiaire-weeks__select-option:active {
	background: #1a1a1e !important;
	background-color: #1a1a1e !important;
}

.stagiaire-app button.stagiaire-weeks__select-option.is-active {
	background: #1a1810 !important;
	background-color: #1a1810 !important;
	border-color: rgba(255, 196, 0, 0.4);
	box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.12) !important;
}

.stagiaire-app .stagiaire-weeks__select-option-label {
	color: var(--stag-text);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
}

.stagiaire-app button.stagiaire-weeks__select-option.is-active .stagiaire-weeks__select-option-label {
	color: var(--stag-brand);
}

.stagiaire-app .stagiaire-weeks__select-option-range {
	color: var(--stag-muted);
	font-size: 0.76rem;
	font-weight: 500;
	line-height: 1.35;
}

.stagiaire-app .stagiaire-weeks__select-option-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.12rem;
	min-width: 0;
}

.stagiaire-weeks__tab {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(20, 20, 24, 0.9);
	color: var(--stag-muted);
	cursor: pointer;
	text-align: left;
	transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.stagiaire-weeks__tab-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
}

.stagiaire-weeks__tab:hover,
.stagiaire-weeks__tab:focus-visible {
	border-color: rgba(255, 196, 0, 0.35);
	color: var(--stag-text);
}

.stagiaire-weeks__tab:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 2px;
}

.stagiaire-weeks__tab.is-active {
	border-color: rgba(255, 196, 0, 0.45);
	background: linear-gradient(165deg, rgba(40, 36, 20, 0.95), rgba(20, 20, 24, 0.98));
	color: var(--stag-text);
	box-shadow: inset 0 0 0 1px rgba(255, 196, 0, 0.12);
}

.stagiaire-weeks__tab-label {
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.stagiaire-weeks__tab.is-active .stagiaire-weeks__tab-label {
	color: var(--stag-brand);
}

.stagiaire-weeks__tab-range {
	font-size: 0.72rem;
	font-weight: 500;
	opacity: 0.85;
}

.stagiaire-weeks__panel {
	display: none;
	gap: 0.9rem;
	padding: 1rem;
	border-radius: 16px;
	background: linear-gradient(165deg, rgba(32, 32, 36, 0.85), rgba(16, 16, 18, 0.95));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.stagiaire-weeks__panel.is-active {
	display: grid;
}

.stagiaire-weeks__summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.55rem;
}

.stagiaire-weeks__stat {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.6rem 0.7rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.stagiaire-weeks__stat-label {
	color: var(--stag-muted);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stagiaire-weeks__stat-value {
	color: var(--stag-text);
	font-size: clamp(0.92rem, 2.5vw, 1.05rem);
	font-weight: 800;
	line-height: 1.2;
}

.stagiaire-weeks__stat-unit {
	font-size: 0.72em;
	font-weight: 700;
	color: var(--stag-muted);
}

.stagiaire-weeks__empty {
	margin: 0;
	padding: 1rem 0.5rem;
	color: var(--stag-muted);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
}

.stagiaire-weeks__grid {
	display: grid;
	gap: 0;
}

.stagiaire-weeks__grid-head,
.stagiaire-weeks__row {
	display: grid;
	grid-template-columns: 6.75rem minmax(0, 1.4fr) minmax(11.5rem, 1fr);
	gap: 0.75rem 1rem;
	align-items: center;
	padding: 0.85rem 0.15rem;
}

.stagiaire-weeks__grid-head {
	padding-top: 0;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid rgba(255, 196, 0, 0.28);
}

.stagiaire-weeks__row {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stagiaire-weeks__row:last-child {
	border-bottom: none;
}

.stagiaire-weeks__grid-head .stagiaire-weeks__cell {
	color: var(--stag-muted);
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stagiaire-weeks__metrics--head .stagiaire-weeks__metric-label {
	display: block;
	text-align: right;
}

.stagiaire-weeks__metric-label.is-visible {
	display: block;
}

.stagiaire-weeks__date {
	display: block;
	color: var(--stag-text);
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}

.stagiaire-weeks__time {
	display: block;
	margin-top: 0.15rem;
	color: var(--stag-muted);
	font-size: 0.72rem;
	font-weight: 500;
}

.stagiaire-weeks__name {
	display: block;
	color: var(--stag-text);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.stagiaire-weeks__metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.35rem 0.5rem;
}

.stagiaire-weeks__metric {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.stagiaire-weeks__metric-label {
	display: none;
	color: var(--stag-muted);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.stagiaire-weeks__metric-value {
	color: var(--stag-text);
	font-size: 0.9rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	text-align: right;
	white-space: nowrap;
}

.stagiaire-weeks__row--total {
	margin-top: 0.25rem;
	padding-top: 0.95rem;
	border-bottom: none;
	border-top: 1px solid rgba(255, 196, 0, 0.28);
}

.stagiaire-weeks__total-label {
	color: var(--stag-brand);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stagiaire-weeks__row--total .stagiaire-weeks__metric-value {
	color: var(--stag-brand);
}

@media (max-width: 700px) {
	.stagiaire-weeks__tabs {
		display: none;
	}

	.stagiaire-app .stagiaire-weeks__select-wrap {
		display: block;
	}

	.stagiaire-weeks__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stagiaire-weeks__panel {
		padding: 0.85rem;
	}

	.stagiaire-weeks__grid-head {
		display: none;
	}

	.stagiaire-weeks__grid {
		gap: 0.7rem;
	}

	.stagiaire-weeks__row {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-areas:
			"when"
			"name"
			"metrics";
		gap: 0.55rem;
		padding: 0.85rem 0.85rem 0.9rem;
		border: 1px solid rgba(255, 255, 255, 0.07);
		border-left: 3px solid rgba(255, 196, 0, 0.55);
		border-radius: 14px;
		background: rgba(0, 0, 0, 0.28);
		box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
	}

	.stagiaire-weeks__row:last-child {
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}

	.stagiaire-weeks__cell--when {
		grid-area: when;
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 0.35rem 0.55rem;
		padding-bottom: 0.35rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.stagiaire-weeks__cell--name {
		grid-area: name;
	}

	.stagiaire-weeks__date {
		color: var(--stag-brand);
		font-size: 0.8rem;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.stagiaire-weeks__time {
		margin-top: 0;
		color: var(--stag-muted);
		font-size: 0.74rem;
	}

	.stagiaire-weeks__name {
		font-size: 1rem;
		line-height: 1.3;
	}

	.stagiaire-weeks__metrics {
		grid-area: metrics;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.45rem;
		padding: 0.65rem;
		border-radius: 10px;
		background: rgba(255, 255, 255, 0.03);
		border: 1px solid rgba(255, 255, 255, 0.05);
	}

	.stagiaire-weeks__metric-label {
		display: block;
	}

	.stagiaire-weeks__metric-value {
		text-align: left;
		font-size: 0.95rem;
	}

	.stagiaire-weeks__row--total {
		margin-top: 0.35rem;
		padding-top: 0.85rem;
		border-left-color: var(--stag-brand);
		background: linear-gradient(135deg, rgba(255, 196, 0, 0.1), rgba(0, 0, 0, 0.28));
	}

	.stagiaire-weeks__row--total .stagiaire-weeks__cell--when {
		border-bottom: none;
		padding-bottom: 0;
	}

	.stagiaire-weeks__row--total .stagiaire-weeks__metrics {
		background: rgba(255, 196, 0, 0.08);
		border-color: rgba(255, 196, 0, 0.18);
	}
}

@media (min-width: 901px) {
	.stagiaire-weeks__grid-head,
	.stagiaire-weeks__row {
		grid-template-columns: 7.25rem minmax(0, 1.6fr) minmax(14rem, 1fr);
	}
}

/* Perfil público de sponsor */

.stagiaire-sponsor-profile {
	display: flex;
	flex-direction: column;
	gap: var(--stag-gap);
}

.stagiaire-sponsor-identity__top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.stagiaire-sponsor-identity__logo-wrap {
	flex-shrink: 0;
}

.stagiaire-sponsor-identity__logo-wrap img,
.stagiaire-sponsor-identity__logo-wrap .stagiaire-profile-photo-img {
	border-radius: 999px;
	object-fit: cover;
}

.stagiaire-sponsor-identity__heading {
	min-width: 0;
}

.stagiaire-sponsor-identity__name {
	margin: 0 0 0.35rem;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.25;
	word-break: break-word;
}

.stagiaire-sponsor-identity__slogan {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.98rem;
	font-style: italic;
}

.stagiaire-sponsor-identity__description {
	margin: 1rem 0 0;
	color: var(--stag-text);
	font-size: 0.95rem;
	line-height: 1.55;
	white-space: pre-line;
}

.stagiaire-sponsor-identity__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.stagiaire-sponsor-identity__link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 196, 0, 0.1);
	color: var(--stag-brand-light);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.stagiaire-sponsor-identity__link:hover,
.stagiaire-sponsor-identity__link:focus-visible {
	background: rgba(255, 196, 0, 0.2);
	color: var(--stag-brand-bright);
}

.stagiaire-sponsor-identity__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #2a2a2a;
}

.stagiaire-sponsor-form__row {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.stagiaire-sponsor-form__row--link {
	flex-direction: row;
	flex-wrap: wrap;
}

.stagiaire-sponsor-form__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--stag-muted);
}

.stagiaire-sponsor-form__hint {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--stag-muted);
}

.stagiaire-sponsor-form__input--disabled,
.stagiaire-sponsor-form__input:disabled {
	opacity: 0.55;
	color: var(--stag-muted);
	cursor: not-allowed;
	background: rgba(255, 255, 255, 0.03);
}

.stagiaire-sponsor-form__input,
.stagiaire-sponsor-form__textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	background: var(--stag-primary);
	color: var(--stag-text);
	font: inherit;
}

.stagiaire-sponsor-form__textarea {
	resize: vertical;
	min-height: 4.5rem;
}

.stagiaire-sponsor-form__input:focus-visible,
.stagiaire-sponsor-form__textarea:focus-visible {
	outline: 2px solid var(--stag-brand);
	outline-offset: 1px;
}

.stagiaire-sponsor-form__fieldset {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	border: none;
}

.stagiaire-sponsor-form__legend {
	padding: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--stag-muted);
}

.stagiaire-sponsor-form__input--link-label,
.stagiaire-sponsor-form__input--link-url {
	flex: 1 1 12rem;
	min-width: 0;
}

.stagiaire-sponsored-riders__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.stagiaire-sponsored-riders__header h3 {
	margin: 0;
}

.stagiaire-sponsored-riders__empty {
	margin: 0;
	color: var(--stag-muted);
	font-size: 0.92rem;
}

.stagiaire-sponsored-riders__list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stagiaire-rider-list-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0.9rem;
	border-radius: 12px;
	background: rgba(2, 6, 23, 0.38);
}

.stagiaire-rider-list-item__rider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.stagiaire-rider-list-item__avatar {
	flex-shrink: 0;
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.65);
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.stagiaire-rider-list-item__avatar img,
.stagiaire-rider-list-item__avatar .stagiaire-profile-photo-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
}

.stagiaire-rider-list-item__name {
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--stag-text);
	text-decoration: none;
	overflow-wrap: break-word;
}

.stagiaire-rider-list-item__name:hover,
.stagiaire-rider-list-item__name:focus-visible {
	color: var(--stag-brand-light);
}

.stagiaire-rider-list-item__team {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.stagiaire-rider-list-item__team-jersey .stagiaire-team-jersey {
	width: 1.9rem;
}

.stagiaire-rider-list-item__team-name {
	font-size: 0.85rem;
	color: var(--stag-muted);
}

.stagiaire-rider-list-item__team-empty {
	flex-shrink: 0;
	font-size: 0.85rem;
	color: var(--stag-muted);
}

@media (min-width: 641px) {
	.stagiaire-sponsor-identity__top {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
	}

	.stagiaire-sponsor-form__row--link {
		flex-wrap: nowrap;
	}
}

@media (max-width: 480px) {
	.stagiaire-rider-list-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.stagiaire-sponsored-riders__header {
		flex-direction: column;
		align-items: stretch;
	}

	.stagiaire-sponsored-riders__header .stagiaire-sponsor-rider-cta {
		width: 100%;
	}
}




