.wciom {
	--wciom-accent: #7b4fc6;
	--wciom-min: #eee7f7;
	--wciom-max: #7b4fc6;
	--wciom-empty: #f7f7f8;
	--wciom-dark: #4f2d85;
	--wciom-soft: #f5f1fb;
	--wciom-border: #ded3ee;
	box-sizing: border-box;
	width: 100%;
	padding: clamp(16px, 3vw, 28px);
	border: 1px solid var(--wciom-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(25, 18, 48, 0.07);
	color: #24202f;
	font-family: inherit;
}

.wciom *,
.wciom *::before,
.wciom *::after { box-sizing: border-box; }

.wciom__title {
	margin: 0 0 20px;
	font-size: clamp(20px, 2.3vw, 30px);
	line-height: 1.45;
	text-align: center;
	color: inherit;
}

.wciom__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
	gap: clamp(18px, 3vw, 34px);
	align-items: center;
}

.wciom__layout--map-only { grid-template-columns: minmax(0, 1fr); }
.wciom__map-wrap { position: relative; min-width: 0; }
.wciom__map { width: 100%; max-width: 780px; margin-inline: auto; }
.wciom__map svg { display: block; width: 100%; height: auto; overflow: visible; }

.wciom__map path[data-code] {
	cursor: pointer;
	vector-effect: non-scaling-stroke;
	transition: fill 420ms ease, stroke 220ms ease, filter 220ms ease, opacity 220ms ease;
	outline: none;
}

.wciom__map path[data-code]:hover,
.wciom__map path[data-code]:focus-visible {
	stroke: var(--wciom-dark);
	stroke-width: 2.2;
	filter: drop-shadow(0 3px 3px rgba(43, 26, 77, 0.25));
}

.wciom__map path.is-top { stroke: var(--wciom-dark); stroke-width: 1.8; }

.wciom__label {
	pointer-events: none;
	text-anchor: middle;
	dominant-baseline: middle;
	fill: #30283e;
	direction: rtl;
	unicode-bidi: plaintext;
	paint-order: stroke;
	stroke: rgba(255, 255, 255, 0.92);
	stroke-width: 2.4px;
	stroke-linejoin: round;
}

.wciom__label-name { font-weight: 700; }
.wciom__label-count { font-weight: 800; }
.wciom__label.is-top .wciom__label-name,
.wciom__label.is-top .wciom__label-count { font-weight: 950; fill: var(--wciom-dark); }

.wciom__summary {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 18px;
	border: 1px solid var(--wciom-border);
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, var(--wciom-soft) 100%);
}

.wciom__summary h4 { margin: 0; font-size: 17px; line-height: 1.6; }

.wciom__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--wciom-border);
}

.wciom__total-label { font-size: 14px; line-height: 1.7; }
.wciom__total strong { font-size: 28px; font-weight: 950; color: var(--wciom-dark); }

.wciom__top-list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: wciom-rank;
}

.wciom__top-list li {
	counter-increment: wciom-rank;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	padding: 9px 11px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.78);
	font-weight: 800;
}

.wciom__top-list li::before {
	content: counter(wciom-rank);
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: var(--wciom-accent);
	color: #fff;
	font-size: 12px;
}

.wciom__top-list strong { min-width: 34px; text-align: left; font-size: 17px; color: var(--wciom-dark); }
.wciom__empty-message { margin: 0; font-size: 14px; line-height: 1.9; color: #625c6c; }

.wciom__base-note {
	margin: 0;
	padding: 10px 12px;
	border: 1px dashed var(--wciom-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	line-height: 1.9;
	color: #5d5866;
}

.wciom__tooltip {
	position: absolute;
	z-index: 5;
	inset: auto auto 0 0;
	display: none;
	min-width: 140px;
	max-width: 230px;
	padding: 9px 12px;
	border-radius: 10px;
	background: rgba(31, 24, 43, 0.94);
	color: #fff;
	font-size: 13px;
	line-height: 1.7;
	text-align: right;
	pointer-events: none;
	box-shadow: 0 8px 24px rgba(20, 14, 30, 0.22);
	transform: translate(-50%, -115%);
}

.wciom__tooltip.is-visible { display: block; }

@media (max-width: 820px) {
	.wciom__layout { grid-template-columns: 1fr; }
	.wciom__summary { max-width: 560px; width: 100%; margin-inline: auto; }
}

@media (max-width: 520px) {
	.wciom { padding: 13px; border-radius: 16px; }
	.wciom__label { stroke-width: 1.8px; }
	.wciom__summary { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.wciom__map path[data-code] { transition: none; }
}

.wciom__preview-note {
	margin: -8px auto 18px;
	max-width: 760px;
	padding: 9px 12px;
	border: 1px dashed var(--wciom-border);
	border-radius: 10px;
	background: var(--wciom-soft);
	font-size: 12px;
	line-height: 1.8;
	text-align: center;
	color: #625c6c;
}
