/* Match content: readable card surfaces and concise submission metadata. */
body.cs2day-v2 .cs2-match-content-additional,
body.cs2day-v2 .cs2-match-content-card,
body.cs2day-v2 .cs2-match-media,
body.cs2day-v2 .cs2-match-content-hub__grid > .cs2-match-content-additional__item {
	background: var(--cs2-card-elevated, #16212c);
}
body.cs2day-v2 .cs2-match-content-additional__item {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	min-height: 56px;
	background: transparent;
}
body.cs2day-v2 .cs2-match-content-additional__item:nth-child(even) {
	background: color-mix(in srgb, var(--cs2-bg, #111b24) 42%, transparent);
}
body.cs2day-v2 .cs2-match-content-additional__item time {
	white-space: nowrap;
	text-align: right;
}
body.cs2day-v2 [data-match-stream-picker] .cs2-match-existing-picker__list { max-height:276px; overflow-y:auto; }
body.cs2day-v2 [data-match-stream-picker] [data-match-stream-item][hidden] { display:none !important; }
body.cs2day-v2 .cs2-sidebar-match--upcoming.is-starting-soon {
	border-left: 3px solid var(--cs2-accent, #00fca7);
	background: color-mix(in srgb, var(--cs2-accent, #00fca7) 8%, var(--cs2-card-elevated, #16212c));
}
body.cs2day-v2 .cs2-sidebar-match--upcoming.is-starting-soon .cs2-sidebar-upcoming__meta time strong { color:var(--cs2-accent, #00fca7); }
/* In activity logs, the affected item is the primary information, not the action. */
body.cs2day-v2 .cs2-user-audit article { grid-template-columns:130px 96px minmax(0,1fr) minmax(150px,.7fr); }
body.cs2day-v2 .cs2-user-audit article > time { grid-column:1; grid-row:1; }
body.cs2day-v2 .cs2-user-audit article > .cs2-audit-source { grid-column:2; grid-row:1; }
body.cs2day-v2 .cs2-user-audit article > strong { grid-column:4; grid-row:1; color:var(--cs2-text-muted, #aab6c3); font-size:12px; font-weight:700; }
body.cs2day-v2 .cs2-user-audit article > span:not(.cs2-audit-source) { grid-column:4; grid-row:2; color:var(--cs2-text-muted, #aab6c3); font-size:12px; }
body.cs2day-v2 .cs2-user-audit article > small:first-of-type { grid-column:3 / -1; grid-row:1; color:var(--cs2-text, #f3f6f8); font-size:15px; font-weight:800; line-height:1.35; }
body.cs2day-v2 .cs2-user-audit article > small:nth-of-type(2) { grid-column:3 / -1; grid-row:2; }
body.cs2day-v2 [data-cs2-log-scope="all"] .cs2-admin-operation-list article > span { color:var(--cs2-text, #f3f6f8); font-size:14px; font-weight:800; }
@media (max-width: 782px) {
	body.cs2day-v2 .cs2-user-audit article > :is(time, .cs2-audit-source, strong, span:not(.cs2-audit-source), small:first-of-type, small:nth-of-type(2)) { grid-column:auto; grid-row:auto; }
}
@media (max-width: 640px) {
	body.cs2day-v2 .cs2-match-content-additional__item { grid-template-columns: minmax(0, 1fr) auto; }
}
/* Keep the DACH CS privacy consent in the profile header, without constraining it to the avatar column. */
body.cs2day-v2 .cs2-detail-hero--person > .cs2-dachcs-consent-notice {
	grid-column: 1 / -1;
	max-width: none;
	margin: -8px 0 0;
}

body.cs2day-v2 .cs2-detail-hero--person > .cs2-dachcs-consent-notice p {
	max-width: 76ch;
}

@media (max-width: 720px) {
	body.cs2day-v2 .cs2-detail-hero--person > .cs2-dachcs-consent-notice {
		grid-column: 1 / -1;
		margin-top: 0;
	}
}

/* News submission: confirm automatically detected profile cards before posting. */
body.cs2day-v2 .cs2-news-profile-scan-note {
	margin-top: 8px;
}
body.cs2day-v2 .cs2-news-profile-review {
	width: min(680px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 32px));
	padding: 0;
	border: 1px solid var(--cs2-border, #2a3948);
	border-radius: 8px;
	background: var(--cs2-card, #18232e);
	color: var(--cs2-text, #f3f6f8);
}
body.cs2day-v2 .cs2-news-profile-review::backdrop {
	background: rgb(5 11 17 / 72%);
}
body.cs2day-v2 .cs2-news-profile-review__shell {
	display: grid;
	gap: 18px;
	padding: 24px;
}
body.cs2day-v2 .cs2-news-profile-review__shell > header,
body.cs2day-v2 .cs2-news-profile-review__shell > footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
body.cs2day-v2 .cs2-news-profile-review__shell > header h2,
body.cs2day-v2 .cs2-news-profile-review__shell > header p,
body.cs2day-v2 .cs2-news-profile-review__shell > p {
	margin: 0;
}
body.cs2day-v2 .cs2-news-profile-review__selected {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-height: 248px;
	overflow-y: auto;
	padding-right: 4px;
}
body.cs2day-v2 .cs2-news-profile-review__card {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px;
	border: 1px solid var(--cs2-border, #2a3948);
	border-left: 3px solid var(--cs2-rank-bronze, #a97538);
	border-radius: 6px;
	background: var(--cs2-card-elevated, #16212c);
}
body.cs2day-v2 .cs2-news-profile-review__card--silver { border-left-color: var(--cs2-rank-silver, #aab7c4); }
body.cs2day-v2 .cs2-news-profile-review__card--gold { border-left-color: var(--cs2-rank-gold, #e0b24d); }
body.cs2day-v2 .cs2-news-profile-review__card--legend { border-left-color: var(--cs2-accent, #00fca7); }
body.cs2day-v2 .cs2-news-profile-review__avatar {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--cs2-bg, #111b24);
	color: var(--cs2-text-muted, #aab6c3);
	font-size: 11px;
	font-weight: 800;
}
body.cs2day-v2 .cs2-news-profile-review__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.cs2day-v2 .cs2-news-profile-review__card strong,
body.cs2day-v2 .cs2-news-profile-review__card small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.cs2day-v2 .cs2-news-profile-review__card small { color: var(--cs2-text-muted, #aab6c3); }
body.cs2day-v2 .cs2-news-profile-review__results {
	position: static;
	width: 100%;
	max-height: 180px;
	overflow-y: auto;
}
@media (max-width: 600px) {
	body.cs2day-v2 .cs2-news-profile-review { width: min(100vw - 18px, 680px); }
	body.cs2day-v2 .cs2-news-profile-review__shell { padding: 18px; }
	body.cs2day-v2 .cs2-news-profile-review__selected { grid-template-columns: 1fr; }
	body.cs2day-v2 .cs2-news-profile-review__shell > footer { align-items: stretch; flex-direction: column-reverse; }
	body.cs2day-v2 .cs2-news-profile-review__shell > footer .cs2-button { width: 100%; }
}

/* Import operations dashboard. */
body.cs2day-v2 .cs2-import-health {
	display: grid;
	gap: 18px;
	padding: 22px;
	border: 1px solid var(--cs2-border, #263841);
	border-radius: 8px;
	background: var(--cs2-card, #101c23);
}
body.cs2day-v2 .cs2-import-health > header,
body.cs2day-v2 .cs2-import-health__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
body.cs2day-v2 .cs2-import-health :is(h3, h4, p) { margin: 0; }
body.cs2day-v2 .cs2-import-health__metrics {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--cs2-border, #263841);
	border-radius: 6px;
	background: var(--cs2-border, #263841);
}
body.cs2day-v2 .cs2-import-health__metrics > span {
	display: grid;
	gap: 4px;
	min-width: 0;
	padding: 14px;
	background: var(--cs2-card-elevated, #15242c);
}
body.cs2day-v2 .cs2-import-health__metrics small,
body.cs2day-v2 .cs2-import-health__columns small,
body.cs2day-v2 .cs2-import-health__profile-list small { color: var(--cs2-text-muted, #aab7c4); }
body.cs2day-v2 .cs2-import-health__metrics strong { font-size: 1.3rem; }
body.cs2day-v2 .cs2-import-health__actions { justify-content: flex-start; }
body.cs2day-v2 .cs2-import-health__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
body.cs2day-v2 .cs2-import-health__columns > div {
	display: grid;
	align-content: start;
	gap: 9px;
	padding: 16px;
	border: 1px solid var(--cs2-border, #263841);
	border-radius: 6px;
}
body.cs2day-v2 .cs2-import-health__columns p {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
}
body.cs2day-v2 .cs2-import-health__columns p small { grid-column: 1 / -1; }
body.cs2day-v2 .cs2-import-health__columns label { display: grid; gap: 6px; }
body.cs2day-v2 .cs2-import-health__columns input { width: 100%; }
body.cs2day-v2 .cs2-import-health details {
	padding: 14px;
	border: 1px solid var(--cs2-border, #263841);
	border-radius: 6px;
}
body.cs2day-v2 .cs2-import-health summary { cursor: pointer; font-weight: 800; }
body.cs2day-v2 .cs2-import-health__profile-list,
body.cs2day-v2 .cs2-import-health__map > div { display: grid; gap: 1px; margin-top: 12px; background: var(--cs2-border, #263841); }
body.cs2day-v2 .cs2-import-health__profile-list article,
body.cs2day-v2 .cs2-import-health__map article {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) minmax(120px, .6fr) minmax(180px, 1.4fr) auto;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	background: var(--cs2-card-elevated, #15242c);
}
@media (max-width: 900px) {
	body.cs2day-v2 .cs2-import-health__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.cs2day-v2 .cs2-import-health__columns { grid-template-columns: 1fr; }
	body.cs2day-v2 .cs2-import-health__profile-list article,
	body.cs2day-v2 .cs2-import-health__map article { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	body.cs2day-v2 .cs2-import-health { padding: 15px; }
	body.cs2day-v2 .cs2-import-health__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.cs2day-v2 .cs2-import-health__actions form,
	body.cs2day-v2 .cs2-import-health__actions .cs2-button { width: 100%; }
}

/* Editorial quick edit from a public news lightbox. */
body.cs2day-v2 .cs2-news-edit-dialog {
	width: min(840px, calc(100vw - 32px));
	max-height: min(900px, calc(100vh - 32px));
	padding: 0;
	border: 1px solid var(--cs2-border, #2a3948);
	border-radius: 8px;
	background: var(--cs2-card, #18232e);
	color: var(--cs2-text, #f3f6f8);
}
body.cs2day-v2 .cs2-news-edit-dialog__shell {
	display: grid;
	gap: 16px;
	max-height: min(900px, calc(100vh - 32px));
	overflow-y: auto;
	padding: 24px;
}
body.cs2day-v2 .cs2-news-edit-dialog__shell > header,
body.cs2day-v2 .cs2-news-edit-dialog__shell > footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
body.cs2day-v2 .cs2-news-edit-dialog__shell :is(h2, p) { margin: 0; }
body.cs2day-v2 .cs2-news-edit-dialog__shell .cs2-choice-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	padding: 14px;
	border: 1px solid var(--cs2-border, #2a3948);
	border-radius: 6px;
}
body.cs2day-v2 .cs2-news-edit-dialog__image {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--cs2-border, #2a3948);
	border-radius: 6px;
}
body.cs2day-v2 .cs2-news-edit-dialog__image > div {
	display: flex;
	align-items: center;
	gap: 12px;
}
body.cs2day-v2 .cs2-news-edit-dialog__image img { width: 82px; height: 54px; object-fit: cover; }
@media (max-width: 600px) {
	body.cs2day-v2 .cs2-news-edit-dialog { width: calc(100vw - 18px); }
	body.cs2day-v2 .cs2-news-edit-dialog__shell { padding: 18px; }
	body.cs2day-v2 .cs2-news-edit-dialog__shell .cs2-choice-list { grid-template-columns: 1fr; }
	body.cs2day-v2 .cs2-news-edit-dialog__shell > footer { flex-direction: column-reverse; align-items: stretch; }
}
