/* Profile redesign loaded after final-overrides.css. */
@media (min-width: 1101px) {
	html body.chessora-shell.view-profile .shell-header-row {
		grid-template-columns: auto minmax(0, 1fr) auto !important;
	}

	html body.chessora-shell.view-profile .shell-nav {
		grid-column: 2 !important;
		grid-row: 1 !important;
		justify-content: flex-end !important;
	}

	html body.chessora-shell.view-profile .shell-actions {
		grid-column: 3 !important;
		grid-row: 1 !important;
		justify-content: flex-end !important;
		justify-self: end !important;
	}
}

html body.chessora-shell.view-profile .shell-site-header {
	background: radial-gradient(circle at 76% 0%, rgba(70, 104, 69, .16), transparent 24rem), #07110f !important;
	border-bottom: 1px solid rgba(239, 185, 63, .32) !important;
	box-shadow: none !important;
	padding: 16px clamp(18px, 2.6vw, 42px) 0 !important;
}

html body.chessora-shell.view-profile .shell-page {
	background: linear-gradient(90deg, #050d0b 0, #07120f 12%, #0d1b22 50%, #07120f 88%, #050d0b 100%) !important;
	padding: 18px clamp(18px, 2.6vw, 42px) 48px !important;
}

html body.chessora-shell.view-profile .shell-component-card {
	background: #07120f !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 auto !important;
	max-width: 1460px !important;
	padding: 24px 28px 40px !important;
	width: 100% !important;
}

html body.chessora-shell.view-profile .shell-live-event-strip {
	background: linear-gradient(90deg, rgba(12, 31, 24, .96), rgba(18, 34, 24, .96)) !important;
	border: 1px solid rgba(239, 198, 87, .44) !important;
	border-radius: 8px !important;
	column-gap: 12px !important;
	grid-template-columns: minmax(260px, 1fr) auto auto minmax(300px, auto) !important;
	margin: 10px 0 0 !important;
	padding: 9px 12px !important;
}

html body.chessora-shell.view-profile .shell-live-event-main {
	gap: 10px !important;
}

html body.chessora-shell.view-profile .shell-live-event-main span,
html body.chessora-shell.view-profile .shell-quick-challenge-label {
	height: 24px !important;
	padding-inline: 10px !important;
}

html body.chessora-shell.view-profile .shell-quick-challenge {
	background: rgba(5, 12, 10, .78) !important;
	border-color: rgba(239, 198, 87, .42) !important;
	gap: 4px !important;
	padding: 3px !important;
}

html body.chessora-shell.view-profile .shell-quick-challenge-button,
html body.chessora-shell.view-profile .shell-quick-challenge > a {
	height: 24px !important;
	min-width: 44px !important;
	padding-inline: 10px !important;
}

html body.chessora-shell.view-profile .shell-live-event-calendar-link {
	height: 30px !important;
	padding-inline: 14px !important;
}

html body.chessora-shell.view-profile .shell-live-event-action {
	gap: 10px !important;
	min-height: 36px !important;
}

html body.chessora-shell.view-profile .shell-live-event-action em {
	border-radius: 7px !important;
	height: 36px !important;
	padding-inline: 16px !important;
}

html body.chessora-shell.view-profile .shell-nav > .shell-nav-home > .shell-nav-icon {
	display: none !important;
}

html body.chessora-shell.view-profile .shell-nav .shell-nav-home,
html body.chessora-shell.view-profile .shell-nav .shell-mega-trigger,
html body.chessora-shell.view-profile .shell-login-link {
	border-color: rgba(239, 185, 63, .46) !important;
	border-radius: 8px !important;
	color: #fff8df !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 18px !important;
}

html body.chessora-shell.view-profile .shell-nav .shell-nav-home.is-active,
html body.chessora-shell.view-profile .shell-nav .shell-mega-trigger.is-active {
	background: linear-gradient(180deg, #f7c94b 0%, #dfa32c 100%) !important;
	border-color: #f7c94b !important;
	color: #090b08 !important;
}

html body.chessora-shell.view-profile .shell-nav .shell-mega-panel a {
	align-items: center !important;
	display: grid !important;
	gap: 10px !important;
	grid-template-columns: 26px minmax(0, 1fr) auto !important;
}

html body.chessora-shell.view-profile .shell-nav .shell-mega-panel a .shell-nav-icon {
	align-items: center !important;
	background: rgba(255, 255, 255, .08) !important;
	border: 1px solid rgba(255, 255, 255, .18) !important;
	border-radius: 7px !important;
	color: #fff !important;
	display: inline-flex !important;
	font-size: 15px !important;
	height: 26px !important;
	justify-content: center !important;
	line-height: 1 !important;
	width: 26px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page {
	background: transparent !important;
	color: #fff7df !important;
	display: grid !important;
	gap: 18px !important;
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-hero {
	background:
		linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .006)),
		radial-gradient(circle at 10% 35%, rgba(242, 189, 62, .08), transparent 28rem),
		#0a1914 !important;
	border: 1px solid rgba(242, 189, 62, .38) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	display: grid !important;
	gap: 24px !important;
	min-height: 0 !important;
	overflow: visible !important;
	padding: 24px !important;
	position: relative !important;
}

@media (min-width: 1101px) {
	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-hero {
		align-items: center !important;
		grid-template-columns: 1fr !important;
	}

	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-cb-profile-bar {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip {
		align-self: start !important;
		grid-column: 1 !important;
		grid-row: 2 !important;
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		padding-top: 0 !important;
	}
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-cb-profile-cover {
	display: none !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-cb-profile-bar {
	align-items: center !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	display: grid !important;
	gap: 20px !important;
	grid-template-columns: 112px minmax(0, 1fr) auto !important;
	min-height: 132px !important;
	padding: 0 !important;
	position: static !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-avatar {
	background: #040807 !important;
	border: 3px solid #f2bd3e !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	height: 112px !important;
	margin: 0 !important;
	width: 112px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-avatar img {
	height: 100% !important;
	object-fit: cover !important;
	padding: 0 !important;
	width: 100% !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-cb-profile-title h1 {
	align-items: center !important;
	color: #fff7df !important;
	display: flex !important;
	flex-wrap: wrap !important;
	font-size: clamp(2.45rem, 3.65vw, 4rem) !important;
	letter-spacing: 0 !important;
	line-height: .96 !important;
	margin: 0 0 10px !important;
	max-width: 100% !important;
	overflow-wrap: anywhere !important;
	text-shadow: none !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-country-flag-img {
	flex: 0 0 auto !important;
	height: 20px !important;
	margin-right: 10px !important;
	object-fit: cover !important;
	width: 30px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-country-flag.is-empty {
	align-self: center !important;
	border: 1px solid rgba(242, 189, 62, .38) !important;
	border-radius: 999px !important;
	color: #fff7df !important;
	font-size: 13px !important;
	line-height: 1 !important;
	margin-right: 8px !important;
	padding: 6px 10px !important;
	white-space: nowrap !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-honorary-badge,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-beta-title img {
	flex: 0 0 auto !important;
	height: .72em !important;
	margin-left: 10px !important;
	max-height: 54px !important;
	width: auto !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-meta-line {
	color: rgba(255, 247, 223, .84) !important;
	display: flex !important;
	flex-wrap: wrap !important;
	font-size: 15px !important;
	gap: 10px 18px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-meta-line b {
	color: #fff7df !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-hero-actions {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
	justify-content: flex-end !important;
	max-width: none !important;
	position: absolute !important;
	right: 24px !important;
	top: 24px !important;
	z-index: 2 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-hero-actions form {
	display: contents !important;
	margin: 0 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-social-action,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon {
	align-items: center !important;
	appearance: none !important;
	background: rgba(255, 255, 255, .075) !important;
	border: 1px solid rgba(242, 189, 62, .36) !important;
	border-radius: 8px !important;
	color: #fff !important;
	display: inline-flex !important;
	flex: 0 0 42px !important;
	height: 42px !important;
	justify-content: center !important;
	line-height: 1 !important;
	margin: 0 !important;
	max-height: 42px !important;
	max-width: 42px !important;
	min-height: 42px !important;
	min-width: 42px !important;
	overflow: hidden !important;
	padding: 0 !important;
	text-indent: 0 !important;
	width: 42px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-social-action:hover,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-social-action:focus-visible {
	background: rgba(255, 255, 255, .14) !important;
	border-color: rgba(255, 247, 223, .72) !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon {
	background: linear-gradient(180deg, #f7ca4b, #dfa32c) !important;
	color: #080b08 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-social-action strong {
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	overflow: hidden !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-social-action span,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon > * {
	align-items: center !important;
	display: inline-flex !important;
	height: 24px !important;
	justify-content: center !important;
	width: 24px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-social-action span img,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon img,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon svg {
	display: block !important;
	filter: brightness(0) invert(1) !important;
	height: 24px !important;
	object-fit: contain !important;
	width: 24px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-social-action svg,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon svg {
	fill: none !important;
	stroke: currentColor !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	stroke-width: 2 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon img,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit-icon svg {
	filter: brightness(0) saturate(100%) !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	display: grid !important;
	gap: 10px !important;
	padding: 0 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip span {
	align-content: start !important;
	background: linear-gradient(180deg, rgba(20, 44, 35, .92), rgba(8, 22, 17, .96)) !important;
	border: 1px solid rgba(242, 189, 62, .34) !important;
	border-radius: 8px !important;
	color: #fff7df !important;
	display: grid !important;
	gap: 4px !important;
	grid-template-columns: 1fr !important;
	min-height: 82px !important;
	padding: 12px 14px !important;
	position: static !important;
	text-align: left !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip span:nth-child(5) {
	grid-column: auto !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip span::before {
	color: #f2bd3e !important;
	content: attr(title) !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip span img {
	display: none !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip strong {
	color: #fff7df !important;
	display: block !important;
	font-size: 28px !important;
	line-height: 1 !important;
	margin: 0 !important;
	position: static !important;
	text-align: left !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip small {
	color: rgba(255, 247, 223, .88) !important;
	display: block !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	position: static !important;
	text-align: left !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-section-tabs {
	align-items: center !important;
	background: rgba(10, 27, 22, .78) !important;
	border: 1px solid rgba(242, 189, 62, .38) !important;
	border-radius: 8px !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 8px !important;
	order: 20 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-hero {
	order: 1 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-return {
	order: 12 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit {
	order: 30 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-summary-cards {
	order: 31 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-command {
	order: 32 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-section-tabs button {
	align-items: center !important;
	background: rgba(255, 255, 255, .04) !important;
	border: 1px solid rgba(242, 189, 62, .34) !important;
	border-radius: 8px !important;
	color: #fff7df !important;
	display: inline-flex !important;
	gap: 9px !important;
	min-height: 42px !important;
	padding: 10px 18px !important;
	width: auto !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-section-tabs button.is-active {
	background: linear-gradient(180deg, #f7ca4b, #dfa32c) !important;
	border-color: #f7ca4b !important;
	color: #080b08 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-summary-cards {
	display: grid !important;
	gap: 10px !important;
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
	margin: 0 !important;
	max-width: none !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-command {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	display: grid !important;
	gap: 18px !important;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr) !important;
	margin: 0 !important;
	padding: 0 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-main,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rail {
	display: grid !important;
	gap: 18px !important;
	min-width: 0 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page :where(.chessora-panel, .chessora-card, .chessora-profile-edit, .chessora-profile-summary-cards article) {
	background: linear-gradient(180deg, rgba(17, 38, 29, .96), rgba(7, 20, 15, .98)) !important;
	border: 1px solid rgba(242, 189, 62, .34) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	color: #fff7df !important;
	padding: 20px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page :where(
	.chessora-profile-rating-card,
	.chessora-profile-stat-card,
	.chessora-profile-achievement-list a,
	.chessora-profile-tags span,
	.chessora-profile-opening-spotlights article,
	.chessora-profile-daily-stats span,
	.chessora-profile-daily-match-card,
	.chessora-history-row,
	.chessora-profile-rating-grid article,
	.chessora-profile-rating-detail,
	.chessora-profile-achievement-progress
) {
	background: linear-gradient(180deg, rgba(18, 42, 32, .96), rgba(7, 20, 15, .98)) !important;
	border-color: rgba(242, 189, 62, .34) !important;
	color: #fff7df !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-summary-cards article {
	min-height: 118px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-summary-cards strong {
	display: block !important;
	font-size: 22px !important;
	line-height: 1.1 !important;
	margin: 10px 0 8px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-panel-head,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-return header {
	align-items: center !important;
	border-bottom: 1px solid rgba(242, 189, 62, .22) !important;
	display: flex !important;
	gap: 16px !important;
	justify-content: space-between !important;
	margin: 0 0 18px !important;
	padding-bottom: 14px !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-panel h2 {
	font-size: clamp(1.45rem, 2vw, 2.15rem) !important;
	line-height: 1.05 !important;
	margin: 0 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page :where(.chessora-panel h2, .chessora-panel h3, .chessora-card h2, .chessora-card h3, .chessora-profile-summary-cards strong) {
	color: #fff7df !important;
	letter-spacing: 0 !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page :where(.chessora-kicker, .chessora-panel-head span, .chessora-profile-summary-cards span) {
	color: #f2bd3e !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page :where(.chessora-panel p, .chessora-panel small, .chessora-card p, .chessora-card small, .chessora-profile-summary-cards small) {
	color: rgba(255, 247, 223, .86) !important;
}

@media (max-width: 1320px) {
	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-cb-profile-bar,
	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-command {
		grid-template-columns: 1fr !important;
	}

	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip,
	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-summary-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 720px) {
	html body.chessora-shell.view-profile .shell-component-card {
		padding: 14px !important;
	}

	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-hero {
		padding: 18px !important;
	}

	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-cb-profile-title h1 {
		font-size: clamp(2.55rem, 14vw, 4rem) !important;
	}

	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip,
	html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-summary-cards {
		grid-template-columns: 1fr !important;
	}
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page [data-profile-section-panel]:not(.is-profile-tab-visible) {
	display: none !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-summary-cards > article,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-rating-strip > span,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-panel,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-card,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-edit,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-stat-card,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-achievement-list > a,
html body.chessora-shell.view-profile .chessora.chessora-profile-page .chessora-profile-achievement-progress {
	background:
		linear-gradient(180deg, rgba(17, 39, 30, .98), rgba(7, 20, 15, .99)) !important;
	border-color: rgba(242, 189, 62, .36) !important;
	color: #fff7df !important;
}

html body.chessora-shell.view-profile .chessora.chessora-profile-page [data-profile-section-panel]:not(.is-profile-tab-visible) {
	display: none !important;
}
