/* ESW: generator celownika CS2. Ladowane tylko na stronie generatora. */
.esw-xh {
	--x-card: #20212b;
	--x-raised: #2a2b37;
	--x-line: rgba(255, 255, 255, 0.1);
	--x-muted: #a3a6b4;
	padding: 22px 0 10px;
	background: #14151b;
	border-bottom: 1px solid var(--x-line);
	color: #e8e9ee;
}
.esw-xh__wrap {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}
.esw-xh button {
	font-family: inherit;
	cursor: pointer;
}
.esw-xh button:focus-visible,
.esw-xh input:focus-visible,
.esw-xh select:focus-visible,
.esw-xh summary:focus-visible,
.esw-xh label:focus-within {
	outline: 2px solid var(--esw-accent-soft, #a594ff);
	outline-offset: 2px;
}
.esw-xh .google-auto-placed,
.esw-xh ins.adsbygoogle {
	display: none !important;
}

/* zawodowcy */
.esw-xh__pros {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}
.esw-xh__pros-label {
	flex: none;
	font-size: 13px;
	font-weight: 700;
	color: var(--x-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.esw-xh__pros-list {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: 4px;
}
.esw-xh__pros-list button {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--x-card);
	border: 1px solid var(--x-line);
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.1;
}
.esw-xh__pros-list button i {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.esw-xh__pros-list button small {
	font-size: 11px;
	font-weight: 500;
	color: var(--x-muted);
}
.esw-xh__pros-list button:hover,
.esw-xh__pros-list button.is-on {
	border-color: var(--esw-accent, #5c39f2);
	background: #2b2552;
}

/* uklad */
.esw-xh__app {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 20px;
	align-items: start;
}
.esw-xh__stage {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--x-line);
	border-top: 2px solid var(--esw-accent, #5c39f2);
	background: #0d0f18;
}
.esw-xh__stage canvas {
	display: block;
	width: 100%;
	image-rendering: pixelated;
}
.esw-xh__tools {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	gap: 8px;
}
.esw-xh__seg {
	display: inline-flex;
	background: rgba(13, 15, 24, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	overflow: hidden;
}
.esw-xh__seg button {
	padding: 6px 10px;
	background: none;
	border: 0;
	color: #e8e9ee;
	font-size: 13px;
	font-weight: 600;
}
.esw-xh__seg button.is-on {
	background: var(--esw-accent, #5c39f2);
	color: #fff;
}
.esw-xh__seg--full {
	display: flex;
	width: 100%;
	background: var(--x-raised);
	border-color: var(--x-line);
}
.esw-xh__seg--full button {
	flex: 1;
	padding: 9px 8px;
}
.esw-xh__spread {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background: rgba(13, 15, 24, 0.82);
	border-radius: 6px;
	font-size: 12px;
}
.esw-xh__note {
	position: absolute;
	left: 10px;
	bottom: 10px;
	margin: 0;
	max-width: 46%;
	padding: 6px 10px;
	background: rgba(13, 15, 24, 0.82);
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.35;
	color: #e8e9ee;
}
.esw-xh__bgs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
}
.esw-xh__bgs button,
.esw-xh__upload {
	padding: 7px 11px;
	background: var(--x-card);
	border: 1px solid var(--x-line);
	border-radius: 6px;
	color: #e8e9ee;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.esw-xh__bgs button.is-on {
	border-color: var(--esw-accent, #5c39f2);
	background: #2b2552;
}
.esw-xh__upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* wynik */
.esw-xh__out {
	margin-top: 14px;
	padding: 16px;
	background: var(--x-card);
	border: 1px solid var(--x-line);
	border-radius: 8px;
}
.esw-xh__out > label,
.esw-xh__import label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--x-muted);
}
.esw-xh__codebox {
	display: flex;
	gap: 8px;
}
.esw-xh__codebox input {
	flex: 1;
	min-width: 0;
	padding: 11px 12px;
	background: #14151b;
	border: 1px solid var(--x-line);
	border-radius: 6px;
	color: #fff;
	font: 600 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.esw-xh__btn {
	padding: 10px 14px;
	background: var(--x-raised);
	border: 1px solid var(--x-line);
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}
.esw-xh__btn:hover {
	border-color: var(--esw-accent-soft, #a594ff);
}
.esw-xh__btn--main {
	background: var(--esw-accent, #5c39f2);
	border-color: var(--esw-accent, #5c39f2);
}
.esw-xh__btn.is-done {
	background: #1f7a4d;
	border-color: #1f7a4d;
}
.esw-xh__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.esw-xh__import {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--x-line);
}
.esw-xh__msg {
	min-height: 1.3em;
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--x-muted);
}
.esw-xh__msg.is-ok {
	color: #6fdc9d;
}
.esw-xh__msg.is-warn {
	color: #ffc66b;
}

/* panel ustawien */
.esw-xh__panel {
	padding: 16px 18px;
	background: var(--x-card);
	border: 1px solid var(--x-line);
	border-radius: 8px;
}
.esw-xh .esw-xh__h {
	margin: 18px 0 10px;
	font-size: 17px;
	line-height: 1.2;
	color: #fff;
}
.esw-xh .esw-xh__h:first-child {
	margin-top: 0;
}
.esw-xh__row {
	margin-bottom: 12px;
}
.esw-xh__row > label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}
.esw-xh__row > label small {
	font-weight: 500;
	color: var(--x-muted);
}
.esw-xh__row--inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.esw-xh__row--inline > label {
	margin: 0;
}
.esw-xh__slide {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 30px 64px;
	align-items: center;
	gap: 6px;
}
.esw-xh__slide input[type=range] {
	width: 100%;
	accent-color: var(--esw-accent, #5c39f2);
}
.esw-xh__step {
	height: 30px;
	padding: 0;
	background: var(--x-raised);
	border: 1px solid var(--x-line);
	border-radius: 5px;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}
.esw-xh__num,
.esw-xh select {
	width: 100%;
	padding: 6px 8px;
	background: #14151b;
	border: 1px solid var(--x-line);
	border-radius: 5px;
	color: #fff;
	font-size: 14px;
}
.esw-xh input[type=color] {
	width: 44px;
	height: 30px;
	padding: 0;
	background: none;
	border: 1px solid var(--x-line);
	border-radius: 5px;
	cursor: pointer;
}
.esw-xh__checks {
	display: grid;
	gap: 6px;
	margin-top: 4px;
}
.esw-xh__check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}
.esw-xh__check input {
	width: 17px;
	height: 17px;
	accent-color: var(--esw-accent, #5c39f2);
}
.esw-xh__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.esw-xh__swatches button {
	width: 30px;
	height: 30px;
	padding: 0;
	background: var(--c);
	border: 2px solid rgba(0, 0, 0, 0.45);
	border-radius: 6px;
}
.esw-xh__swatches button.is-on {
	box-shadow: 0 0 0 2px #fff;
}
.esw-xh__picker input {
	width: 30px;
	height: 30px;
}
.esw-xh__adv {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--x-line);
}
.esw-xh__adv summary {
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.esw-xh__reset {
	margin-top: 8px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--esw-accent-soft, #a594ff);
	font-size: 13px;
	text-decoration: underline;
}

@media only screen and (max-width: 999px) {
	.esw-xh__app {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media only screen and (max-width: 640px) {
	.esw-xh__wrap {
		padding: 0 16px;
	}
	.esw-xh__pros {
		display: block;
	}
	.esw-xh__pros-label {
		display: block;
		margin-bottom: 8px;
	}
	.esw-xh__codebox {
		flex-direction: column;
	}
	.esw-xh__codebox input {
		font-size: 12px;
	}
	.esw-xh__note {
		display: none;
	}
	.esw-xh__actions .esw-xh__btn {
		flex: 1 1 100%;
	}
}

/* tresc pod generatorem: tabela kodow zawodowcow */
.esw-xhair-page .esw-table-scroll {
	overflow-x: auto;
	margin: 0 0 1.4em;
}
.esw-xhair-page .esw-table-scroll table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 14px;
}
.esw-xhair-page .esw-table-scroll th,
.esw-xhair-page .esw-table-scroll td {
	padding: 8px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	text-align: left;
	vertical-align: top;
}
.esw-xhair-page .esw-table-scroll code {
	font-size: 12px;
	word-break: break-all;
}

/* ukrywanie atrybutem hidden ma pierwszenstwo przed display z klas */
.esw-xh [hidden] {
	display: none !important;
}
.esw-xh input,
.esw-xh select {
	box-sizing: border-box;
}
.esw-xh__slide {
	grid-template-columns: 30px minmax(0, 1fr) 30px 58px;
}

/* lista zawodowcow: kilka rzedow zamiast przewijania w poziomie */
.esw-xh__pros-list {
	flex-wrap: wrap;
	overflow: visible;
	padding-bottom: 0;
}
.esw-xh__credit {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--x-muted);
}
@media only screen and (max-width: 640px) {
	.esw-xh__pros-list button {
		padding: 7px 10px;
		font-size: 13px;
	}
	.esw-xh__pros-list button small {
		display: none;
	}
}

/* nizszy naglowek strony narzedzia, zeby generator byl widoczny od razu */
body.esw-xhair-page #progression-studios-post-page-title {
	padding-top: 34px;
	padding-bottom: 26px;
}
body.esw-xhair-page h1.progression-post-single-title {
	font-size: clamp(26px, 3.2vw, 44px);
	line-height: 1.12;
}
body.esw-xhair-page #progression-studios-post-page-title .esw-lead {
	margin-top: 8px;
}
body.esw-xhair-page #progression-studios-post-page-title .esw-breadcrumbs {
	margin-bottom: 10px;
}
@media only screen and (max-width: 899px) {
	body.esw-xhair-page #progression-studios-post-page-title {
		padding-top: 20px;
		padding-bottom: 16px;
	}
	body.esw-xhair-page #progression-studios-post-page-title .esw-lead {
		font-size: 14px;
		line-height: 1.45;
	}
}
