/* Moderation user profile assignment: clearer profile workspace. */
body.cs2day-v2 .cs2-user-dialog__body [data-user-dialog-panel="profiles"] {
	min-width: 0;
}

body.cs2day-v2 .cs2-user-profile-links {
	display: grid;
	gap: 18px;
}

body.cs2day-v2 .cs2-user-profile-section {
	background: var(--cs2-card, #111c26);
	border: 1px solid var(--cs2-border, #2a3a48);
	border-radius: 8px;
	display: grid;
	gap: 14px;
	padding: clamp(14px, 2vw, 20px);
}

body.cs2day-v2 .cs2-user-profile-section > header {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	min-width: 0;
}

body.cs2day-v2 .cs2-user-profile-section > header h3,
body.cs2day-v2 .cs2-user-profile-section > header p {
	margin: 0;
}

body.cs2day-v2 .cs2-user-profile-section > header small {
	color: var(--cs2-text-muted, #aab7c4);
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-user-profile-card {
	align-items: center;
	background: var(--cs2-bg-alt, #0c171d);
	border: 1px solid var(--cs2-border, #2a3a48);
	border-radius: 7px;
	display: grid;
	gap: 14px;
	grid-template-columns: 58px minmax(0, 1fr) minmax(260px, auto);
	min-width: 0;
	padding: 12px;
}

body.cs2day-v2 .cs2-user-profile-card:hover {
	background: color-mix(in srgb, var(--cs2-card-elevated, #172633) 88%, var(--cs2-accent, #00fca7) 4%);
	border-color: color-mix(in srgb, var(--cs2-border, #2a3a48) 70%, var(--cs2-accent, #00fca7) 30%);
}

body.cs2day-v2 .cs2-user-profile-card__media,
body.cs2day-v2 .cs2-user-profile-card__media img,
body.cs2day-v2 .cs2-user-profile-card__fallback {
	align-items: center;
	display: flex;
	height: 58px;
	justify-content: center;
	width: 58px;
}

body.cs2day-v2 .cs2-user-profile-card__media {
	background: var(--cs2-card-elevated, #172633);
	border: 1px solid var(--cs2-border, #2a3a48);
	border-radius: 6px;
	overflow: hidden;
}

body.cs2day-v2 .cs2-user-profile-card__media img {
	object-fit: contain;
}

body.cs2day-v2 .cs2-user-profile-card--person .cs2-user-profile-card__media,
body.cs2day-v2 .cs2-user-profile-card--person .cs2-user-profile-card__media img,
body.cs2day-v2 .cs2-user-profile-card--person .cs2-user-profile-card__fallback {
	border-radius: 50%;
	object-fit: cover;
}

body.cs2day-v2 .cs2-user-profile-card__fallback {
	color: var(--cs2-accent, #00fca7);
	font-size: .78rem;
	font-weight: 900;
}

body.cs2day-v2 .cs2-user-profile-card__main {
	display: grid;
	gap: 4px;
	min-width: 0;
}

body.cs2day-v2 .cs2-user-profile-card__main strong,
body.cs2day-v2 .cs2-user-profile-card__main a {
	color: var(--cs2-text, #f4f8fb);
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.cs2day-v2 .cs2-user-profile-card__main small {
	color: var(--cs2-text-muted, #aab7c4);
	font-size: .72rem;
	font-weight: 800;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-user-profile-card__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	min-width: 0;
}

body.cs2day-v2 .cs2-user-profile-card__actions form {
	margin: 0;
}

body.cs2day-v2 .cs2-user-profile-card__actions .cs2-inline-form,
body.cs2day-v2 .cs2-user-profile-card__actions .cs2-manager-remove,
body.cs2day-v2 .cs2-user-entity-role-form {
	align-items: end;
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

body.cs2day-v2 .cs2-user-profile-card__actions label {
	display: grid;
	gap: 5px;
	min-width: 210px;
}

body.cs2day-v2 .cs2-user-profile-card__actions label span,
body.cs2day-v2 .cs2-profile-assignment-tools label span,
body.cs2day-v2 .cs2-profile-grant label span {
	color: var(--cs2-text-muted, #aab7c4);
	font-size: .68rem;
	font-weight: 800;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-user-profile-empty {
	background: color-mix(in srgb, var(--cs2-bg-alt, #0c171d) 84%, var(--cs2-card, #111c26));
	border: 1px dashed var(--cs2-border, #2a3a48);
	border-radius: 7px;
	color: var(--cs2-text-muted, #aab7c4);
	display: grid;
	gap: 5px;
	padding: 14px;
}

body.cs2day-v2 .cs2-user-profile-empty strong {
	color: var(--cs2-text, #f4f8fb);
}

body.cs2day-v2 .cs2-profile-assignment-tools {
	background: transparent;
	border: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 0;
}

body.cs2day-v2 .cs2-profile-assignment-tool,
body.cs2day-v2 .cs2-profile-grant {
	background: var(--cs2-bg-alt, #0c171d);
	border: 1px solid var(--cs2-border, #2a3a48);
	border-radius: 7px;
	display: grid !important;
	gap: 12px;
	padding: 14px;
}

body.cs2day-v2 .cs2-profile-assignment-tool > div,
body.cs2day-v2 .cs2-profile-grant > div {
	display: grid;
	gap: 4px;
}

body.cs2day-v2 .cs2-profile-assignment-tool strong,
body.cs2day-v2 .cs2-profile-grant strong {
	color: var(--cs2-text, #f4f8fb);
}

body.cs2day-v2 .cs2-profile-assignment-tool small,
body.cs2day-v2 .cs2-profile-grant small {
	color: var(--cs2-text-muted, #aab7c4);
}

body.cs2day-v2 .cs2-profile-assignment-tool label,
body.cs2day-v2 .cs2-profile-grant label {
	display: grid;
	gap: 5px;
	min-width: 0;
}

body.cs2day-v2 .cs2-profile-grant {
	grid-template-columns: minmax(180px, .9fr) 150px minmax(260px, 1.4fr) 180px auto;
	margin-top: 2px;
}

body.cs2day-v2 .cs2-profile-grant > div {
	align-self: center;
}

body.cs2day-v2 .cs2-profile-grant input,
body.cs2day-v2 .cs2-profile-grant select,
body.cs2day-v2 .cs2-profile-assignment-tool input,
body.cs2day-v2 .cs2-user-profile-card__actions input,
body.cs2day-v2 .cs2-user-profile-card__actions select {
	min-height: 38px;
}

body.cs2day-v2 .cs2-user-entity-list {
	display: grid;
	gap: 10px;
}

body.cs2day-v2 .cs2-user-entity-list .cs2-check {
	align-items: center;
	display: flex;
	min-width: auto;
}

body.cs2day-v2 .cs2-user-dialog .cs2-button {
	white-space: nowrap;
}

body.cs2day-v2 .cs2-request-note {
	margin: -2px 0 18px;
	max-width: 880px;
	color: var(--cs2-text-muted);
	font-size: .95rem;
	line-height: 1.6;
}

@media (max-width: 920px) {
	body.cs2day-v2 .cs2-user-profile-card,
	body.cs2day-v2 .cs2-profile-grant {
		grid-template-columns: 1fr;
	}

	body.cs2day-v2 .cs2-user-profile-card {
		align-items: start;
	}

	body.cs2day-v2 .cs2-user-profile-card__actions,
	body.cs2day-v2 .cs2-user-profile-card__actions .cs2-inline-form,
	body.cs2day-v2 .cs2-user-profile-card__actions .cs2-manager-remove,
	body.cs2day-v2 .cs2-user-entity-role-form {
		justify-content: flex-start;
	}

	body.cs2day-v2 .cs2-profile-assignment-tools {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	body.cs2day-v2 .cs2-user-profile-section > header {
		align-items: flex-start;
		flex-direction: column;
	}

	body.cs2day-v2 .cs2-user-profile-card {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 10px;
		padding: 10px;
	}

	body.cs2day-v2 .cs2-user-profile-card__media,
	body.cs2day-v2 .cs2-user-profile-card__media img,
	body.cs2day-v2 .cs2-user-profile-card__fallback {
		height: 48px;
		width: 48px;
	}

	body.cs2day-v2 .cs2-user-profile-card__actions {
		grid-column: 1 / -1;
		width: 100%;
	}

	body.cs2day-v2 .cs2-user-profile-card__actions > *,
	body.cs2day-v2 .cs2-user-profile-card__actions form,
	body.cs2day-v2 .cs2-user-profile-card__actions label,
	body.cs2day-v2 .cs2-user-profile-card__actions .cs2-button {
		width: 100%;
	}
}

/* Account-owned listings and profile mentions. */
body.cs2day-v2 .cs2-account-workspace .cs2-account-hub-nav {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.cs2day-v2 .cs2-account-managed-list,
body.cs2day-v2 .cs2-account-mentions {
	display: grid;
	gap: 14px;
}

body.cs2day-v2 .cs2-account-managed-item,
body.cs2day-v2 .cs2-account-mentioned-item {
	display: grid;
	gap: 14px;
}

body.cs2day-v2 .cs2-account-managed-item > header,
body.cs2day-v2 .cs2-account-mentioned-item > header {
	align-items: flex-start;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	min-width: 0;
}

body.cs2day-v2 .cs2-account-managed-item h2,
body.cs2day-v2 .cs2-account-mentioned-item h2 {
	font-size: 19px;
	margin: 2px 0 0;
}

body.cs2day-v2 .cs2-account-managed-item h2 a,
body.cs2day-v2 .cs2-account-mentioned-item h2 a {
	color: inherit;
	text-decoration: none;
}

body.cs2day-v2 .cs2-account-managed-item h2 a:hover,
body.cs2day-v2 .cs2-account-mentioned-item h2 a:hover {
	color: var(--cs2-accent, #00fca7);
}

body.cs2day-v2 .cs2-account-managed-item > p,
body.cs2day-v2 .cs2-account-mentioned-item > p,
body.cs2day-v2 .cs2-account-empty p {
	color: var(--cs2-text-muted, #aab7c4);
	margin: 0;
}

body.cs2day-v2 .cs2-account-managed-item__badges,
body.cs2day-v2 .cs2-account-managed-item__meta,
body.cs2day-v2 .cs2-account-mentioned-item__subjects,
body.cs2day-v2 .cs2-account-mentioned-item__cases {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.cs2day-v2 .cs2-account-managed-item__badges span,
body.cs2day-v2 .cs2-account-mentioned-item__subjects span,
body.cs2day-v2 .cs2-account-mentioned-item__cases span {
	background: color-mix(in srgb, var(--cs2-card, #111c26) 86%, var(--cs2-bg-alt, #0c171d));
	border: 1px solid var(--cs2-border, #2a3a48);
	border-radius: 999px;
	color: var(--cs2-text-muted, #aab7c4);
	font-size: 11px;
	font-weight: 800;
	padding: 5px 9px;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-account-managed-item__badges span:first-child,
body.cs2day-v2 .cs2-account-mentioned-item__subjects span {
	color: var(--cs2-accent, #00fca7);
}

body.cs2day-v2 .cs2-account-managed-item__meta {
	color: var(--cs2-text-muted, #aab7c4);
	font-size: 12px;
}

body.cs2day-v2 .cs2-account-managed-item > footer,
body.cs2day-v2 .cs2-account-mention-request footer {
	align-items: center;
	border-top: 1px solid var(--cs2-border, #2a3a48);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	padding-top: 12px;
}

body.cs2day-v2 .cs2-account-managed-item > footer form {
	margin: 0;
}

body.cs2day-v2 .cs2-account-inline-edit,
body.cs2day-v2 .cs2-account-mention-request {
	display: grid;
	gap: 12px;
}

body.cs2day-v2 .cs2-account-inline-edit summary,
body.cs2day-v2 .cs2-account-mention-request summary {
	cursor: pointer;
	list-style: none;
}

body.cs2day-v2 .cs2-account-inline-edit summary::-webkit-details-marker,
body.cs2day-v2 .cs2-account-mention-request summary::-webkit-details-marker {
	display: none;
}

body.cs2day-v2 .cs2-account-inline-edit[open],
body.cs2day-v2 .cs2-account-mention-request[open] {
	background: color-mix(in srgb, var(--cs2-card, #111c26) 88%, var(--cs2-bg-alt, #0c171d));
	border: 1px solid var(--cs2-border, #2a3a48);
	border-radius: 7px;
	padding: 12px;
}

body.cs2day-v2 .cs2-account-mention-subjects__list {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.cs2day-v2 .cs2-account-mention-subjects__list a {
	background: color-mix(in srgb, var(--cs2-card, #111c26) 88%, var(--cs2-bg-alt, #0c171d));
	border: 1px solid var(--cs2-border, #2a3a48);
	border-radius: 7px;
	color: inherit;
	display: grid;
	gap: 4px;
	padding: 12px;
	text-decoration: none;
}

body.cs2day-v2 .cs2-account-mention-subjects__list a:hover {
	border-color: color-mix(in srgb, var(--cs2-accent, #00fca7) 45%, var(--cs2-border, #2a3a48));
}

body.cs2day-v2 .cs2-account-mention-subjects__list span {
	color: var(--cs2-text-muted, #aab7c4);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-account-mention-subjects__list strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 760px) {
	body.cs2day-v2 .cs2-account-workspace .cs2-account-hub-nav {
		grid-template-columns: 1fr;
	}

	body.cs2day-v2 .cs2-account-managed-item > header,
	body.cs2day-v2 .cs2-account-mentioned-item > header {
		align-items: flex-start;
		flex-direction: column;
	}

	body.cs2day-v2 .cs2-account-managed-item > footer,
	body.cs2day-v2 .cs2-account-mention-request footer {
		align-items: stretch;
		flex-direction: column;
	}

	body.cs2day-v2 .cs2-account-managed-item > footer .cs2-button,
	body.cs2day-v2 .cs2-account-managed-item > footer form,
	body.cs2day-v2 .cs2-account-managed-item > footer form button,
	body.cs2day-v2 .cs2-account-mention-request footer button {
		width: 100%;
	}
}

/* Organization/team management workspace refinement. */
body.cs2day-v2 .cs2day-entity-shell--manage {
	display: grid;
	gap: 20px;
	max-width: 1440px;
	padding-block: clamp(28px, 4vw, 52px);
	width: min(100% - 32px, 1440px);
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-entity-heading,
body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-entity-section,
body.cs2day-v2 .cs2day-entity-management-stats {
	margin: 0;
	max-width: none;
}

body.cs2day-v2 .cs2day-entity-management-hero,
body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-entity-section {
	background: color-mix(in srgb, var(--cs2-v2-panel, #131d26) 94%, var(--cs2-bg, #071016));
	border: 1px solid var(--cs2-v2-border, #263544);
	border-radius: 8px;
	box-shadow: var(--cs2-v2-shadow, 0 16px 36px rgba(0, 0, 0, .24));
	padding: clamp(18px, 2.2vw, 28px);
}

body.cs2day-v2 .cs2day-entity-management-hero {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	overflow: hidden;
}

body.cs2day-v2 .cs2day-entity-management-hero__logo {
	align-items: center;
	aspect-ratio: 1;
	background: color-mix(in srgb, var(--cs2-card, #101821) 86%, #000);
	border: 1px solid var(--cs2-v2-border, #263544);
	border-radius: 8px;
	display: flex;
	justify-content: center;
	overflow: hidden;
	width: clamp(72px, 8vw, 104px);
}

body.cs2day-v2 .cs2day-entity-management-hero__logo img {
	height: 72%;
	object-fit: contain;
	width: 72%;
}

body.cs2day-v2 .cs2day-entity-management-hero__logo span {
	color: var(--cs2-text, #f4f8fb);
	font-size: 1.45rem;
	font-weight: 900;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2day-entity-management-hero__copy {
	display: grid;
	gap: 8px;
	min-width: 0;
}

body.cs2day-v2 .cs2day-entity-management-hero__copy h1 {
	font-size: clamp(2rem, 4vw, 4rem);
	line-height: .95;
	margin: 0;
	overflow-wrap: anywhere;
}

body.cs2day-v2 .cs2day-entity-management-hero__copy p {
	color: var(--cs2-text-muted, #aab7c4);
	margin: 0;
	max-width: 760px;
}

body.cs2day-v2 .cs2day-entity-management-hero__actions {
	align-self: stretch;
	display: flex;
	justify-content: flex-end;
}

body.cs2day-v2 .cs2day-management-pill {
	align-items: center;
	background: color-mix(in srgb, var(--cs2-accent, #00fca7) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--cs2-accent, #00fca7) 35%, var(--cs2-v2-border, #263544));
	border-radius: 999px;
	color: var(--cs2-text, #f4f8fb);
	display: inline-flex;
	font-size: .78rem;
	font-weight: 800;
	justify-self: start;
	padding: 6px 10px;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2day-entity-management-stats {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cs2day-v2 .cs2day-entity-management-stats article {
	background: color-mix(in srgb, var(--cs2-card, #101821) 88%, var(--cs2-bg, #071016));
	border: 1px solid var(--cs2-v2-border, #263544);
	border-radius: 8px;
	display: grid;
	gap: 6px;
	min-height: 92px;
	padding: 18px;
}

body.cs2day-v2 .cs2day-entity-management-stats span,
body.cs2day-v2 .cs2day-management-hint {
	color: var(--cs2-text-muted, #aab7c4);
	font-size: .86rem;
}

body.cs2day-v2 .cs2day-entity-management-stats strong {
	font-size: 1.85rem;
	line-height: 1;
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-entity-form {
	gap: 18px;
	max-width: none;
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-form-grid {
	gap: 16px;
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-field {
	gap: 7px;
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-field input,
body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-field textarea,
body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-field select {
	background: color-mix(in srgb, var(--cs2-card, #101821) 88%, #000);
	border-color: var(--cs2-v2-border, #263544);
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-banner-field img {
	max-height: 260px;
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-membership-list {
	gap: 10px;
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-membership-row {
	background: color-mix(in srgb, var(--cs2-card, #101821) 86%, #000);
	border: 1px solid var(--cs2-v2-border, #263544);
	border-radius: 7px;
	padding: 14px;
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-membership-row:nth-child(even) {
	background: color-mix(in srgb, var(--cs2-card, #101821) 78%, #000);
}

body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-inline-form,
body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-membership-request-grid {
	background: color-mix(in srgb, var(--cs2-card, #101821) 78%, #000);
	border: 1px solid var(--cs2-v2-border, #263544);
	border-radius: 8px;
	padding: 16px;
}

body.cs2day-v2 .cs2day-management-hint {
	margin: 12px 0 0;
}

body.cs2day-v2 .cs2day-invite-auth {
	display: grid;
	gap: 14px;
}

@media (max-width: 900px) {
	body.cs2day-v2 .cs2day-entity-management-hero {
		grid-template-columns: auto minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2day-entity-management-hero__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}

	body.cs2day-v2 .cs2day-entity-management-stats {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	body.cs2day-v2 .cs2day-entity-shell--manage {
		width: min(100% - 20px, 1440px);
	}

	body.cs2day-v2 .cs2day-entity-management-hero {
		align-items: flex-start;
		grid-template-columns: 1fr;
	}

	body.cs2day-v2 .cs2day-entity-management-hero__logo {
		width: 82px;
	}

	body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-form-grid,
	body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-inline-form,
	body.cs2day-v2 .cs2day-entity-shell--manage .cs2day-membership-request-grid {
		grid-template-columns: 1fr;
	}
}
