/* Release 1.7.7: unified profile request workspace. */
.cs2-request-tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin-top: 24px;
	padding: 8px;
	border: 1px solid var(--cs2-border);
	border-radius: 8px;
	background: color-mix(in srgb, var(--cs2-card) 82%, #000 18%);
}

.cs2-request-tabs button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	color: var(--cs2-text-muted);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cs2-request-tabs button:hover,
.cs2-request-tabs button:focus-visible {
	border-color: var(--cs2-border);
	color: var(--cs2-text);
}

.cs2-request-tabs button[aria-selected="true"] {
	border-color: color-mix(in srgb, var(--cs2-accent) 42%, var(--cs2-border));
	background: var(--cs2-card);
	color: var(--cs2-text);
}

.cs2-request-tabs button > span {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding-inline: 5px;
	border-radius: 50%;
	background: var(--cs2-accent);
	color: #07110e;
	font-size: .75rem;
}

.cs2-request-panels {
	margin-block: 16px 28px;
}

.cs2-request-panel {
	margin: 0;
}

.cs2-request-panel[hidden] {
	display: none;
}

.cs2-request-panel > p,
.cs2-request-panel .cs2-account-card__heading p {
	max-width: 760px;
	color: var(--cs2-text-muted);
}

.cs2-request-panel .cs2-form {
	max-width: 860px;
}

.cs2-owned-profile-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.cs2-owned-profile-list article {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--cs2-border);
	border-radius: 6px;
	background: color-mix(in srgb, var(--cs2-card) 90%, #000 10%);
}

.cs2-owned-profile-list article > div {
	display: grid;
	min-width: 0;
}

.cs2-owned-profile__image {
	display: grid;
	place-items: center;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	overflow: hidden;
	border: 1px solid var(--cs2-border);
	border-radius: 6px;
	background: var(--cs2-bg);
	color: var(--cs2-text-muted);
	font-size: .78rem;
	font-weight: 800;
}

.cs2-owned-profile__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cs2-owned-profile-list span,
.cs2-owned-profile-list small {
	color: var(--cs2-text-muted);
	font-size: .75rem;
}

.cs2-owned-profile-list strong,
.cs2-owned-profile-list a {
	overflow: hidden;
	color: var(--cs2-text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cs2-request-next {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--cs2-border);
}

.cs2-request-next p,
.cs2-request-empty {
	margin: 5px 0 0;
	color: var(--cs2-text-muted);
}

.cs2-profile-assignment-section {
	padding-block: 22px;
	border-top: 1px solid var(--cs2-border);
}

.cs2-profile-assignment-section:first-of-type {
	padding-top: 4px;
	border-top: 0;
}

.cs2-profile-assignment-section__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 12px;
}

.cs2-profile-assignment-section__heading span {
	color: var(--cs2-text-muted);
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
}

.cs2-profile-assignment-section__heading h3 {
	margin: 3px 0 0;
	font-size: 1.15rem;
}

.cs2-assignment-dialog {
	width: min(680px, calc(100vw - 32px));
	max-height: min(820px, calc(100vh - 32px));
	padding: 0;
	overflow: hidden;
}

.cs2-assignment-dialog > form {
	display: grid;
	gap: 16px;
	max-height: min(820px, calc(100vh - 32px));
	padding: 24px;
	overflow: auto;
}

.cs2-assignment-dialog header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.cs2-assignment-dialog header h2 {
	margin: 2px 0 0;
}

.cs2-assignment-results {
	display: grid;
	max-height: 310px;
	overflow-y: auto;
	border: 1px solid var(--cs2-border);
	border-radius: 6px;
	background: color-mix(in srgb, var(--cs2-card) 86%, #000 14%);
}

.cs2-assignment-results[hidden],
.cs2-assignment-selection[hidden],
.cs2-assignment-details[hidden],
.cs2-assignment-details [hidden] {
	display: none;
}

.cs2-assignment-results > p {
	margin: 0;
	padding: 16px;
	color: var(--cs2-text-muted);
}

.cs2-assignment-result {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 11px 12px;
	border: 0;
	border-bottom: 1px solid var(--cs2-border);
	background: transparent;
	color: var(--cs2-text);
	text-align: left;
	cursor: pointer;
}

.cs2-assignment-result:last-child {
	border-bottom: 0;
}

.cs2-assignment-result:hover,
.cs2-assignment-result:focus-visible {
	background: color-mix(in srgb, var(--cs2-accent) 7%, var(--cs2-card));
}

.cs2-assignment-result__image {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--cs2-bg);
	color: var(--cs2-text-muted);
	font-size: .72rem;
	font-weight: 800;
}

.cs2-assignment-result__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cs2-assignment-result > span:nth-child(2) {
	display: grid;
	min-width: 0;
}

.cs2-assignment-result strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cs2-assignment-result small,
.cs2-assignment-result__action {
	color: var(--cs2-text-muted);
	font-size: .78rem;
}

.cs2-assignment-selection {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	border-left: 3px solid var(--cs2-accent);
	background: color-mix(in srgb, var(--cs2-accent) 7%, var(--cs2-card));
}

.cs2-assignment-selection span {
	color: var(--cs2-text-muted);
	font-size: .82rem;
}

.cs2-assignment-details {
	display: grid;
	gap: 14px;
}

.cs2-profile-editor-dialog {
	width: min(1180px, calc(100vw - 32px));
	height: min(900px, calc(100vh - 32px));
	max-width: none;
	max-height: none;
	padding: 0;
	overflow: hidden;
}

.cs2-profile-editor-dialog[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
}

.cs2-profile-editor-dialog > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--cs2-border);
	background: var(--cs2-card);
}

.cs2-profile-editor-dialog > header h2 {
	margin: 2px 0 0;
	font-size: 1.25rem;
}

.cs2-profile-editor-dialog iframe {
	width: 100%;
	height: 100%;
	border: 0;
	background: var(--cs2-bg);
}

html:has(body.cs2day-embedded-editor) {
	margin-top: 0 !important;
}

body.cs2day-embedded-editor {
	min-height: 100vh;
	padding: 0 !important;
}

body.cs2day-embedded-editor #wpadminbar,
body.cs2day-embedded-editor .site-header,
body.cs2day-embedded-editor .site-footer,
body.cs2day-embedded-editor > .cs2-dialog,
body.cs2day-embedded-editor .cs2-profile-editor-dialog {
	display: none !important;
}

body.cs2day-embedded-editor .site-main {
	padding-top: 0;
}

body.cs2day-embedded-editor .cs2day-entity-shell {
	width: min(100% - 32px, 1080px);
	margin-block: 0;
	padding-block: 24px 40px;
}

.cs2-account-hub-nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 0 0 24px;
	padding: 6px;
	border: 1px solid var(--cs2-border);
	border-radius: 8px;
	background: color-mix(in srgb, var(--cs2-card) 90%, #000);
}

.cs2-account-hub-nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 14px;
	border-radius: 5px;
	color: var(--cs2-text-muted);
	font-weight: 700;
	text-align: center;
}

.cs2-account-hub-nav a:hover,
.cs2-account-hub-nav a:focus-visible {
	color: var(--cs2-text);
	background: var(--cs2-card-elevated);
}

.cs2-account-hub-nav a[aria-current="page"] {
	color: var(--cs2-text);
	background: var(--cs2-card-elevated);
	box-shadow: inset 0 -2px 0 var(--cs2-accent);
}

.cs2-account-security-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cs2-account-security-dialog {
	width: min(560px, calc(100vw - 32px));
}

.cs2-account-security-dialog > form {
	display: grid;
	gap: 18px;
	padding: 22px;
}

.cs2-account-security-dialog header,
.cs2-account-security-dialog footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.cs2-account-security-dialog footer { justify-content: flex-end; }

.cs2-verification-intro {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(240px, .75fr);
	gap: 20px;
	margin-bottom: 24px;
}

.cs2-verification-state {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 18px;
	border: 1px solid var(--cs2-border);
	border-left: 3px solid var(--cs2-text-muted);
	border-radius: 6px;
	background: var(--cs2-card-elevated);
}

.cs2-verification-state--verified { border-left-color: var(--cs2-accent); }
.cs2-verification-state--pending { border-left-color: #e4b34b; }
.cs2-verification-state--rejected { border-left-color: #e05868; }
.cs2-verification-state strong { font-size: 1.15rem; }
.cs2-verification-state p { margin: 4px 0 0; color: var(--cs2-text-muted); }

.cs2-inline-request-history {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--cs2-border);
}

.cs2-inline-request-history h3 { margin: 0 0 12px; }

@media (max-width: 1024px) {
	.cs2-request-tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cs2-owned-profile-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.cs2-account-hub-nav { grid-template-columns: 1fr; }
	.cs2-account-hub-nav a { justify-content: flex-start; }
	.cs2-verification-intro { grid-template-columns: 1fr; }
	.cs2-account-security-actions { display: grid; grid-template-columns: 1fr; }
	.cs2-account-security-actions .cs2-button { width: 100%; }

	.cs2-request-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.cs2-request-tabs button {
		min-width: 0;
		padding-inline: 8px;
		font-size: .85rem;
	}

	.cs2-owned-profile-list article,
	.cs2-request-next,
	.cs2-profile-assignment-section__heading {
		align-items: stretch;
		flex-direction: column;
	}

	.cs2-owned-profile-list article .cs2-button {
		width: 100%;
	}

	.cs2-request-next .cs2-form__actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.cs2-profile-assignment-section__heading .cs2-button {
		width: 100%;
	}

	.cs2-assignment-dialog > form {
		padding: 18px;
	}

	.cs2-profile-editor-dialog {
		width: 100vw;
		height: 100dvh;
		max-width: 100vw;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	body.cs2day-embedded-editor .cs2day-entity-shell {
		width: min(100% - 20px, 1080px);
		padding-top: 14px;
	}

	.cs2-assignment-result {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.cs2-assignment-result__action {
		grid-column: 2;
	}
}
.cs2-external-auth {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.cs2-external-auth .cs2-button,
.cs2-external-auth .cs2-provider-login {
	justify-content: center;
	width: 100%;
	min-height: 46px;
}

.cs2-account-connection .cs2-provider-login {
	flex: 0 0 180px;
	justify-content: center;
	min-height: 42px;
}

.cs2-account-connection-list {
	grid-template-columns: minmax(0, 1fr);
}

.cs2-account-connection {
	height: auto;
}

@media (max-width: 640px) {
	.cs2-external-auth { grid-template-columns: 1fr; }
	.cs2-account-connection .cs2-provider-login { flex-basis: auto; width: 100%; }
}

/* Compact guest login in the global account menu. */
.cs2-account-menu__panel:has(.cs2-account-menu__login-form) {
	width: min(380px, calc(100vw - 24px));
	min-width: min(380px, calc(100vw - 24px));
}

.cs2-account-menu__login-form {
	display: grid;
	gap: 10px;
	padding: 14px;
}

.cs2-account-menu__login-form > label {
	display: grid;
	gap: 6px;
	color: var(--cs2-text-muted);
	font-size: .78rem;
	font-weight: 700;
}

.cs2-account-menu__login-form input[type="text"],
.cs2-account-menu__login-form input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid var(--cs2-border);
	border-radius: 6px;
	background: var(--cs2-surface-strong);
	color: var(--cs2-text);
}

.cs2-account-menu__login-form input:focus-visible {
	border-color: var(--cs2-accent);
	outline: 2px solid color-mix(in srgb, var(--cs2-accent) 24%, transparent);
	outline-offset: 1px;
}

.cs2-account-menu__login-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.cs2-account-menu__login-actions .cs2-button {
	width: 100%;
	min-height: 42px;
	justify-content: center;
}

.cs2-account-menu__login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: .75rem;
}

.cs2-account-menu__login-options .cs2-check {
	margin: 0;
}

.cs2-account-menu__login-options a {
	color: var(--cs2-text-muted);
	white-space: nowrap;
}

.cs2-account-menu__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	color: var(--cs2-text-muted);
	font-size: .72rem;
	text-transform: uppercase;
}

.cs2-account-menu__divider::before,
.cs2-account-menu__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--cs2-border);
}

.cs2-account-menu__providers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 12px 14px 14px;
}

.cs2-provider-login {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-width: 0;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-radius: 6px;
	color: #fff;
	font-size: .76rem;
	font-weight: 800;
	line-height: 1.15;
	text-decoration: none;
	transition: filter .18s ease, transform .18s ease;
}

.cs2-provider-login:hover,
.cs2-provider-login:focus-visible {
	color: #fff;
	filter: brightness(1.12);
	transform: translateY(-1px);
}

.cs2-provider-login__icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

.cs2-provider-login--steam { background: #171a21; border-color: #66c0f4; }
.cs2-provider-login--faceit { background: #ff5500; }
.cs2-provider-login--discord { background: #5865f2; }
.cs2-provider-login--twitch { background: #9146ff; }

@media (max-width: 430px) {
	.cs2-account-menu__panel:has(.cs2-account-menu__login-form) {
		width: calc(100vw - 32px);
		min-width: 0;
	}

	.cs2-account-menu__providers {
		grid-template-columns: 1fr;
	}

	.cs2-account-menu__login-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.cs2-account-menu__login-actions {
		grid-template-columns: 1fr;
	}
}

/* Release 1.9.2: homepage clarity and stable compact modules. */
body.cs2day-v2 .cs2-home-quick__heading {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px 14px;
	min-width: 0;
}

body.cs2day-v2 .cs2-home-quick__heading > .section-kicker {
	flex: 0 0 100%;
	margin-bottom: -2px;
}

body.cs2day-v2 .cs2-home-quick__heading > h2,
body.cs2day-v2 .cs2-home-quick__heading > .cs2-quick-tabs {
	margin: 0;
}

body.cs2day-v2 .cs2-home-quick .cs2-quick-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

body.cs2day-v2 .cs2-home-quick .cs2-quick-tabs button {
	min-height: 28px;
	padding: 4px 9px;
}

body.cs2day-v2 .cs2-home-quick .cs2-quick-row[hidden],
body.cs2day-v2 .cs2-home-quick .cs2-quick-empty[hidden] {
	display: none !important;
}

body.cs2day-v2 .cs2-home-lfg__grid {
	align-items: stretch;
}

body.cs2day-v2 .cs2-home-lfg-card,
body.cs2day-v2 .cs2-home-lfg-card.is-featured {
	align-items: center;
	background: transparent !important;
	border-color: var(--cs2-border);
	display: flex;
	grid-column: auto;
	justify-content: flex-start;
	min-height: 68px;
	padding: 13px 14px;
}

body.cs2day-v2 .cs2-home-lfg-card > strong {
	display: -webkit-box;
	font-size: .76rem;
	line-height: 1.35;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.cs2day-v2 .cs2-sidebar-transfer {
	align-items: center;
	box-sizing: border-box;
	min-height: 78px;
	padding-block: 12px;
}

body.cs2day-v2 .cs2-sidebar-transfer__copy {
	align-content: center;
	display: grid;
	min-height: 52px;
}

body.cs2day-v2 .cs2-sidebar-transfer__copy strong {
	display: -webkit-box;
	line-height: 1.35;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.cs2day-v2 .cs2-sidebar-transfer__route {
	align-self: center;
}

@media (max-width: 760px) {
	body.cs2day-v2 .cs2-home-quick__heading {
		align-items: flex-start;
	}

	body.cs2day-v2 .cs2-home-quick__heading > h2 {
		flex: 0 0 100%;
	}

	body.cs2day-v2 .cs2-home-quick .cs2-quick-tabs {
		width: 100%;
	}

	body.cs2day-v2 .cs2-home-lfg__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 460px) {
	body.cs2day-v2 .cs2-home-lfg__grid {
		grid-template-columns: 1fr;
	}
}
