.state-group-heading .visual-state-selector-open {
    margin: 0 auto 0 14px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--accent-strong);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.visual-state-selector {
    box-sizing: border-box;
    width: min(1180px, 94vw);
    max-width: 94vw;
    max-height: 94vh;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8faf9;
    color: #233e32;
    box-shadow: 0 24px 90px #142c3540;
    overflow: auto;
}

.visual-state-selector::backdrop {
    background: #12252bc4;
}

.visual-selector-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.visual-selector-heading h2 {
    margin: 0 0 6px;
    color: #233e32;
}

.visual-selector-heading p {
    margin: 0;
    color: #63766c;
}

.visual-selector-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: .9rem;
}

.visual-selector-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.visual-selector-legend i {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #71847c;
    border-radius: 4px;
}

.map-key-selected { background: #36a267; }
.map-key-unselected { background: #87958d40; }

.region-map {
    display: block;
    width: 100%;
    max-height: 68vh;
    margin: 8px auto 0;
    font-family: inherit;
}

.region-map [data-map-region] { cursor: pointer; outline: none; }
.region-map .map-shape {
    fill: #87958d40;
    stroke: #74877e;
    stroke-width: .9;
    stroke-linejoin: round;
}
.region-map [aria-checked="true"] .map-shape,
.region-map [aria-checked="true"] .map-label-target { fill: #36a267; }
.region-map .map-label-target { fill: #f8faf9b3; stroke: none; }
.region-map .map-label {
    fill: #233e32;
    font-size: 13px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
}
.region-map .map-leader { fill: none; stroke: #74877e; stroke-width: .8; pointer-events: none; }
.region-map [data-map-region]:hover .map-shape,
.region-map [data-map-region]:focus-visible .map-shape {
    stroke: #123e2c;
    stroke-width: 2;
}
.region-map [data-map-region]:hover .map-label-target,
.region-map [data-map-region]:focus-visible .map-label-target { stroke: #123e2c; stroke-width: 2; }
.region-map [aria-disabled="true"] { opacity: .35; cursor: default; }
.region-map .map-insets rect { fill: none; stroke: #cdd7d2; stroke-dasharray: 4 4; }
.region-map .map-insets text { fill: #63766c; font-size: 12px; }
#visual-state-selector-status { min-height: 1.4em; margin: 4px 0 0; color: #63766c; }

@media (max-width: 959px), (hover: none), (pointer: coarse) {
    .visual-state-selector-open { display: none !important; }
}
