.dcr {
	--dcr-bg: var(--dc-bg, #0c0e12);
	--dcr-surface: var(--dc-surface, #121418);
	--dcr-raise: var(--dc-raise, #1a1d23);
	--dcr-line: var(--dc-line, rgba(255, 255, 255, .07));
	--dcr-gold: var(--dc-gold, #d4af37);
	--dcr-gold-soft: var(--dc-gold-soft, #e8c94a);
	--dcr-text: var(--dc-text, #ececed);
	--dcr-muted: var(--dc-muted, #8f94a1);
	--dcr-tank: #7fa7d8;
	--dcr-healer: #7bd389;
	--dcr-dps: #e0685e;

	position: relative;
	background: var(--dcr-bg);
	color: var(--dcr-text);
	font: 400 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	border: 1px solid rgba(212, 175, 55, .16);
	border-radius: 6px;
	padding: clamp(20px, 4vw, 44px);
	-webkit-font-smoothing: antialiased;
}
.dcr *, .dcr *::before, .dcr *::after { box-sizing: border-box; }
.dcr .dcr-ico { flex: none; display: block; }
.dcr .screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* Summary --------------------------------------------------------------- */

.dcr-summary { margin-bottom: 32px; }

.dcr-counts {
	display: grid;
	grid-template-columns: 1.3fr repeat(3, 1fr);
	border-top: 1px solid var(--dcr-line);
	border-bottom: 1px solid var(--dcr-line);
}
.dcr-count {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 22px;
}
.dcr-count + .dcr-count { border-left: 1px solid var(--dcr-line); }
.dcr-count__num {
	font: 700 34px/1 Cinzel, Georgia, serif;
	color: var(--dcr-text);
	font-variant-numeric: lining-nums tabular-nums;
}
.dcr-count--total .dcr-count__num { color: var(--dcr-gold); font-size: 44px; }
.dcr-count__label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dcr-muted);
}
.dcr-count--tank .dcr-ico { color: var(--dcr-tank); }
.dcr-count--healer .dcr-ico { color: var(--dcr-healer); }
.dcr-count--dps .dcr-ico { color: var(--dcr-dps); }
.dcr-count--total .dcr-ico { color: var(--dcr-gold); }

.dcr-comp { margin-top: 14px; }
.dcr-comp__bar {
	display: flex;
	gap: 2px;
	height: 5px;
	border-radius: 3px;
	overflow: hidden;
}
.dcr-comp__bar span { min-width: 4px; opacity: .9; }

/* Toolbar --------------------------------------------------------------- */

.dcr-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.dcr .dcr-search {
	position: relative;
	flex: 1 1 260px;
	max-width: 340px;
	margin: 0;
	color: var(--dcr-muted);
}
.dcr .dcr-search .dcr-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.dcr .dcr-search input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 14px 0 38px;
	background: var(--dcr-surface);
	border: 1px solid var(--dcr-line);
	border-radius: 4px;
	color: var(--dcr-text);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
	transition: border-color .15s;
}
.dcr .dcr-search input::placeholder { color: #6b707c; }
.dcr .dcr-search input:focus { outline: none; border-color: rgba(212, 175, 55, .6); }

.dcr .dcr-roles {
	display: inline-flex;
	padding: 3px;
	background: var(--dcr-surface);
	border: 1px solid var(--dcr-line);
	border-radius: 5px;
}
.dcr .dcr-roles button,
.dcr .dcr-classes button,
.dcr .dcr-noresults button {
	appearance: none;
	margin: 0;
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.dcr .dcr-roles button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 14px;
	background: transparent;
	border: 0;
	border-radius: 3px;
	color: var(--dcr-muted);
	font-size: 13px;
	font-weight: 500;
}
.dcr .dcr-roles button:hover { color: var(--dcr-text); background: transparent; }
.dcr .dcr-roles button.is-active { background: var(--dcr-raise); color: var(--dcr-text); }
.dcr .dcr-roles button[data-dcr-role="tank"] .dcr-ico { color: var(--dcr-tank); }
.dcr .dcr-roles button[data-dcr-role="healer"] .dcr-ico { color: var(--dcr-healer); }
.dcr .dcr-roles button[data-dcr-role="dps"] .dcr-ico { color: var(--dcr-dps); }

.dcr .dcr-classes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 36px;
}
.dcr .dcr-classes button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 10px 0 6px;
	background: transparent;
	border: 1px solid var(--dcr-line);
	border-radius: 4px;
	color: var(--dcr-muted);
	font-size: 13px;
	font-weight: 500;
}
.dcr .dcr-classes img { width: 20px; height: 20px; border-radius: 3px; display: block; }
.dcr .dcr-classes em { font-style: normal; font-size: 12px; color: #6b707c; font-variant-numeric: tabular-nums; }
.dcr .dcr-classes button:hover { border-color: rgba(255, 255, 255, .18); color: var(--dcr-text); background: transparent; }
.dcr .dcr-classes button[aria-pressed="true"] {
	border-color: var(--c);
	color: var(--c);
	background: color-mix(in srgb, var(--c) 10%, transparent);
}
.dcr .dcr-classes button[aria-pressed="true"] em { color: inherit; opacity: .75; }

.dcr button:focus-visible,
.dcr a:focus-visible { outline: 2px solid var(--dcr-gold); outline-offset: 2px; }

/* Groups ---------------------------------------------------------------- */

.dcr-group + .dcr-group { margin-top: 36px; }
.dcr-group[hidden] { display: none; }

.dcr .dcr-group__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 6px;
	padding: 0;
	font: 700 14px/1 Cinzel, Georgia, serif;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dcr-gold);
}
.dcr .dcr-group__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(212, 175, 55, .35), rgba(212, 175, 55, 0));
}
.dcr .dcr-group__title em {
	order: 1;
	font: 500 12px/1 Inter, system-ui, sans-serif;
	letter-spacing: 0;
	color: var(--dcr-muted);
	font-style: normal;
	font-variant-numeric: tabular-nums;
}
.dcr .dcr-group__title::after { order: 2; }

.dcr .dcr-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcr .dcr-row {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 96px 28px;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid var(--dcr-line);
	transition: background-color .15s;
}
.dcr .dcr-row[hidden] { display: none; }
.dcr .dcr-row::before {
	content: "";
	position: absolute;
	left: 0; top: 10px; bottom: 10px;
	width: 2px;
	background: var(--c);
	opacity: 0;
	transition: opacity .15s;
}
.dcr .dcr-row:hover { background: var(--dcr-surface); }
.dcr .dcr-row:hover::before { opacity: 1; }

.dcr .dcr-row__icon {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent);
}
.dcr-row__id { display: flex; flex-direction: column; min-width: 0; }
.dcr-row__name {
	color: var(--c);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dcr-row__spec { color: var(--dcr-muted); font-size: 12.5px; line-height: 1.35; }

.dcr-row__role {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--dcr-muted);
}
.dcr-role--tank .dcr-ico { color: var(--dcr-tank); }
.dcr-role--healer .dcr-ico { color: var(--dcr-healer); }
.dcr-role--dps .dcr-ico { color: var(--dcr-dps); }

.dcr .dcr-row__link {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	color: #6b707c;
	text-decoration: none;
	transition: color .15s, background-color .15s;
}
.dcr a.dcr-row__link:hover { color: var(--dcr-gold-soft); background: var(--dcr-raise); }

/* Empty states ---------------------------------------------------------- */

.dcr-noresults { padding: 40px 0 12px; text-align: center; color: var(--dcr-muted); }
.dcr-noresults[hidden] { display: none; }
.dcr-noresults p { margin: 0 0 14px; }
.dcr .dcr-noresults button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	background: transparent;
	border: 1px solid rgba(212, 175, 55, .5);
	border-radius: 4px;
	color: var(--dcr-gold-soft);
	font-size: 13px;
	font-weight: 500;
}
.dcr .dcr-noresults button:hover { background: rgba(212, 175, 55, .1); color: var(--dcr-gold-soft); }
.dcr-empty-all { margin: 0; text-align: center; color: var(--dcr-muted); padding: 24px 0; }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 960px) {
	.dcr .dcr-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.dcr-counts { grid-template-columns: repeat(2, 1fr); }
	.dcr-count { padding: 14px 16px; }
	.dcr-count:nth-child(3) { border-left: 0; }
	.dcr-count:nth-child(n+3) { border-top: 1px solid var(--dcr-line); }
	.dcr-count__num { font-size: 28px; }
	.dcr-count--total .dcr-count__num { font-size: 34px; }
	.dcr .dcr-search { max-width: none; flex-basis: 100%; }
	.dcr .dcr-roles { width: 100%; }
	.dcr .dcr-roles button { flex: 1; justify-content: center; padding: 0 8px; }
}

@media (max-width: 480px) {
	.dcr .dcr-row { grid-template-columns: 36px minmax(0, 1fr) auto 24px; gap: 12px; padding: 10px 6px; }
	.dcr .dcr-row__icon { width: 36px; height: 36px; }
	.dcr-row__role { font-size: 0; gap: 0; }
	.dcr .dcr-classes button span { display: none; }
	.dcr .dcr-classes button { padding: 0 8px 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
	.dcr * { transition: none !important; }
}

/* Recruitment, application form, leadership ------------------------------ */

.dcg-needs,
.dcg-leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dcg-needs { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }

.dcg-need {
	display: grid;
	grid-template-columns: 36px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	margin: 0;
	padding: 10px 12px;
	background: var(--dc-surface, #121418);
	border: 1px solid var(--dc-line, rgba(255, 255, 255, .07));
	border-radius: 4px;
}
.dcg-need img { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); }
.dcg-need__name { color: var(--c); font-weight: 600; font-size: 14px; line-height: 1.2; }
.dcg-need__level { font-size: 12px; color: var(--dc-muted, #8f94a1); line-height: 1.3; }
.dcg-need--high { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.dcg-need--high .dcg-need__level { color: var(--dc-text, #ececed); font-weight: 600; }
.dcg-need--high .dcg-need__level::before {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin: 0 6px 1px 0;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 8px var(--c);
}
.dcg-need--closed { opacity: .45; }
.dcg-need--closed img { filter: grayscale(1); }

.dcg-form { margin: 0; }
.dcg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dcg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.dcg-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.dcg-field--wide { grid-column: 1 / -1; }
.dcg-field > span,
.dcg-choices legend {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--dc-soft, #c4c8d0);
}
.dcg-field b { color: var(--dc-gold, #d4af37); font-weight: 600; }
.dcg-form input[type="text"],
.dcg-form input[type="url"],
.dcg-form select,
.dcg-form textarea {
	width: 100%;
	margin: 0;
	padding: 11px 14px;
	background: var(--dc-bg, #0c0e12);
	border: 1px solid var(--dc-line-strong, rgba(255, 255, 255, .12));
	border-radius: 4px;
	color: var(--dc-text, #ececed);
	font: 400 15px/1.4 Inter, system-ui, sans-serif;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.dcg-form input,
.dcg-form select { height: 46px; }
.dcg-form select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.dcg-form select:disabled { opacity: .5; }
.dcg-form textarea { resize: vertical; min-height: 96px; }
.dcg-form ::placeholder { color: #5f6571; }
.dcg-form input:focus,
.dcg-form select:focus,
.dcg-form textarea:focus {
	outline: none;
	border-color: var(--dc-blue, #6f8dff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc-blue, #6f8dff) 22%, transparent);
}
.dcg-submit {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	margin-top: 22px;
	padding: 0 28px;
	background: var(--dc-blue, #6f8dff);
	border: 0;
	border-radius: 4px;
	color: #fff;
	font: 600 15px/1 Inter, system-ui, sans-serif;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s;
}
.dcg-submit:hover { background: var(--dc-blue-hover, #859eff); box-shadow: 0 8px 28px -8px var(--dc-blue, #6f8dff); }
.dcg-submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.dcg-notice {
	margin: 0 0 20px;
	padding: 13px 16px;
	border-radius: 4px;
	border: 1px solid;
	font-size: 14px;
}
.dcg-notice--ok { border-color: rgba(123, 211, 137, .4); background: rgba(123, 211, 137, .08); color: #b6ecbf; }
.dcg-notice--err { border-color: rgba(224, 104, 94, .45); background: rgba(224, 104, 94, .08); color: #f3b5ae; }
.dcg-closed { margin: 0; color: var(--dc-muted, #8f94a1); }

.dcg-choices { border: 0; padding: 0; min-width: 0; }
.dcg-choices legend { padding: 0; margin-bottom: 9px; }
.dcg-choices legend i { font-style: normal; font-size: 13px; color: #6b717d; margin-left: 6px; }
.dcg-choices__list { display: flex; flex-wrap: wrap; gap: 8px; }
.dcg-choice { position: relative; cursor: pointer; }
.dcg-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dcg-choice span {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	background: var(--dc-bg, #0c0e12);
	border: 1px solid var(--dc-line-strong, rgba(255, 255, 255, .12));
	border-radius: 4px;
	color: var(--dc-soft, #c4c8d0);
	font-size: 14px;
	transition: border-color .15s, background-color .15s, color .15s;
}
.dcg-choice:hover span { border-color: rgba(255, 255, 255, .28); }
.dcg-choice input:checked + span { border-color: var(--dc-blue, #6f8dff); background: color-mix(in srgb, var(--dc-blue, #6f8dff) 16%, transparent); color: #fff; }
.dcg-choice input:focus-visible + span { outline: 2px solid var(--dc-blue, #6f8dff); outline-offset: 2px; }
.dcg-choice input:disabled + span { opacity: .4; cursor: not-allowed; }

.dcg-leaders { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dcg-leader {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 18px;
	background: var(--dc-surface, #121418);
	border: 1px solid var(--dc-line, rgba(255, 255, 255, .07));
	border-radius: 4px;
	overflow: hidden;
}
.dcg-leader::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 2px;
	background: var(--c);
}
.dcg-leader img { width: 52px; height: 52px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.dcg-leader div { display: flex; flex-direction: column; min-width: 0; }
.dcg-leader__rank { font: 700 11px/1.4 Cinzel, Georgia, serif; letter-spacing: .16em; text-transform: uppercase; color: var(--dc-gold, #d4af37); }
.dcg-leader__name { color: var(--c); font-weight: 600; font-size: 17px; line-height: 1.3; }
.dcg-leader__spec { color: var(--dc-muted, #8f94a1); font-size: 13px; }

@media (max-width: 640px) {
	.dcg-grid { grid-template-columns: 1fr; }
	.dcg-submit { width: 100%; }
}
