.velu-language-switcher {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    position: relative;
}

.velu-language-label {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.velu-language-switcher select {
    appearance: none;
    -webkit-appearance: none;
    background:
        rgba(255, 255, 255, 0.08)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23dbeafe' d='M1.4.8 6 5.4 10.6.8 12 2.2l-6 6-6-6z'/%3E%3C/svg%3E")
        no-repeat
        right 0.75rem
        center /
        0.65rem auto;
    border:
        1px solid
        rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 13.5rem;
    min-height: 2.55rem;
    outline: none;
    padding:
        0.6rem
        2rem
        0.6rem
        0.85rem;
}

.velu-language-switcher select:hover {
    border-color:
        rgba(96, 165, 250, 0.75);
}

.velu-language-switcher select:focus-visible {
    border-color: #60a5fa;
    box-shadow:
        0 0 0 3px
        rgba(59, 130, 246, 0.2);
}

.velu-language-switcher option {
    background: #101827;
    color: #f8fafc;
}

.velu-i18n-debug-toggle {
    align-items: center;
    appearance: none;
    background:
        rgba(59, 130, 246, 0.12);
    border:
        1px solid
        rgba(96, 165, 250, 0.48);
    border-radius: 999px;
    color: #bfdbfe;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 2.55rem;
    padding: 0.58rem 0.85rem;
    white-space: nowrap;
}

.velu-i18n-debug-toggle:hover,
.velu-i18n-debug-toggle:focus-visible {
    background:
        rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
    outline: none;
}

.velu-i18n-debug-toggle.is-active {
    background:
        rgba(245, 158, 11, 0.18);
    border-color:
        rgba(251, 191, 36, 0.8);
    color: #fde68a;
}

body.velu-i18n-debug-active
[data-velu-i18n-debug] {
    outline:
        2px dashed
        rgba(56, 189, 248, 0.95)
        !important;
    outline-offset: 2px;
    position: relative !important;
}

body.velu-i18n-debug-active
[data-velu-i18n-debug]::after {
    background:
        rgba(2, 132, 199, 0.98);
    border:
        1px solid
        rgba(186, 230, 253, 0.9);
    border-radius: 0.34rem;
    box-shadow:
        0 0.35rem 1rem
        rgba(0, 0, 0, 0.35);
    color: #f0f9ff;
    content:
        attr(data-velu-i18n-debug);
    display: block;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 0.64rem;
    font-weight: 800;
    left: 0;
    line-height: 1.25;
    max-width: min(34rem, 78vw);
    overflow-wrap: anywhere;
    padding: 0.22rem 0.36rem;
    pointer-events: none;
    position: absolute;
    text-align: left;
    text-transform: none;
    top: calc(100% + 0.28rem);
    white-space: normal;
    width: max-content;
    z-index: 2147483000;
}

body.velu-i18n-debug-active
[data-velu-i18n-debug-missing="1"] {
    outline-color:
        rgba(248, 113, 113, 0.98)
        !important;
}

body.velu-i18n-debug-active
[data-velu-i18n-debug-missing="1"]::after {
    background:
        rgba(185, 28, 28, 0.98);
    border-color:
        rgba(254, 202, 202, 0.95);
    color: #fff1f2;
}

body.velu-i18n-debug-active
input[data-velu-i18n-debug],
body.velu-i18n-debug-active
select[data-velu-i18n-debug],
body.velu-i18n-debug-active
textarea[data-velu-i18n-debug] {
    box-shadow:
        0 0 0 2px
        rgba(56, 189, 248, 0.9)
        !important;
}

@media (max-width: 760px) {
    .velu-language-switcher select {
        max-width: 10.5rem;
        min-height: 2.35rem;
        padding-left: 0.7rem;
    }

    .velu-i18n-debug-toggle {
        min-height: 2.35rem;
    }
}

@media (max-width: 520px) {
    .header-actions,
    .topbar-actions {
        align-items: center;
        flex-wrap: wrap;
    }

    .velu-language-switcher select {
        max-width: 9.2rem;
        width: 9.2rem;
    }
}
