.theme-style-switcher {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #111;
}

.theme-style-switcher__toggle {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    box-shadow: 0 0.65rem 1.6rem rgba(17, 17, 17, 0.15);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-style-switcher__toggle:hover,
.theme-style-switcher__toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0.85rem 2rem rgba(17, 17, 17, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    outline: none;
}

.theme-style-switcher__toggle:active {
    transform: translateY(1px);
}

.theme-style-switcher__toggle-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-style-switcher__panel {
    width: min(18rem, 90vw);
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(17, 17, 17, 0.15);
    backdrop-filter: blur(8px);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.theme-style-switcher.is-open .theme-style-switcher__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.theme-style-switcher__label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.theme-style-switcher__select {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(17, 17, 17, 0.25);
    background-color: rgba(255, 255, 255, 0.95);
    color: inherit;
    font-size: 1rem;
    line-height: 1.2;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-style-switcher__select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.theme-style-switcher__notice {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    opacity: 0.8;
}

.theme-style-switcher__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[data-style="dark"] .theme-style-switcher {
    color: #f5f5f5;
}

[data-style="dark"] .theme-style-switcher__toggle {
    background: rgba(30, 32, 40, 0.92);
    border-color: rgba(250, 250, 255, 0.08);
    color: #f5f5f5;
    box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.45);
}

[data-style="dark"] .theme-style-switcher__toggle:hover,
[data-style="dark"] .theme-style-switcher__toggle:focus-visible {
    border-color: rgba(125, 211, 252, 0.55);
}

[data-style="dark"] .theme-style-switcher__panel {
    background: rgba(22, 22, 27, 0.88);
    border-color: rgba(250, 250, 255, 0.1);
    color: inherit;
    box-shadow: 0 0.75rem 2.1rem rgba(0, 0, 0, 0.5);
}

[data-style="dark"] .theme-style-switcher__select {
    border-color: rgba(250, 250, 255, 0.25);
    background-color: rgba(34, 34, 42, 0.95);
}

.theme-style-switcher.is-open .theme-style-switcher__toggle {
    border-color: rgba(37, 99, 235, 0.5);
    display: none;
}

@media (max-width: 680px) {
    .theme-style-switcher {
        right: 1rem;
        bottom: 1rem;
    }

    .theme-style-switcher__panel {
        width: min(20rem, 96vw);
    }
}
