.language-switcher {
    --accent: #5fa8ff;
    --accent-soft: #152334;
    --border-strong: #2a313c;
    --surface-2: #171c23;
    --text: #e6ebf2;
    --font: "IBM Plex Sans", system-ui, sans-serif;
    position: relative;
    display: inline-flex;
    flex: none;
}

.language-switcher .language-switcher-trigger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 44px;
    height: 40px;
    padding: 4px 7px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #8993a3;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
}

.language-switcher-trigger svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.language-switcher-caption {
    color: #5b6573;
    font-family: "IBM Plex Mono", monospace;
    font-size: 8.5px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.language-switcher .language-switcher-trigger:hover,
.language-switcher .language-switcher-trigger[aria-expanded="true"] {
    color: #5fa8ff;
}

.language-switcher-trigger:hover .language-switcher-caption,
.language-switcher-trigger[aria-expanded="true"] .language-switcher-caption {
    color: inherit;
}

.language-switcher .language-switcher-trigger::after {
    display: none;
}

.language-switcher-options {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 2000;
    min-width: 160px;
    padding: 4px;
    border: 1px solid var(--border-strong, #2a313c);
    border-radius: 0;
    background: var(--surface-2, #171c23);
    color: var(--text, #e6ebf2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    box-sizing: border-box;
}

.language-switcher-options[hidden] {
    display: none;
}

.language-switcher-options a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: inherit;
    font-family: var(--font, "IBM Plex Sans", system-ui, sans-serif);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.language-switcher-options a:hover,
.language-switcher-options a:focus-visible {
    background: var(--accent-soft, #152334);
    color: var(--accent, #5fa8ff);
}

.language-switcher-trigger:focus-visible,
.language-switcher-options a:focus-visible {
    outline: 2px solid var(--accent, #5fa8ff);
    outline-offset: -2px;
}
