#theme-switcher.theme-fab {
    position: fixed !important;
    left: 16px !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 2147483646 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.theme-fab__label {
    margin: 0;
    padding: 5px 8px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0a2558;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.theme-fab__btn,
.theme-fab__gallery {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
    flex: 0 0 auto;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        0 10px 24px rgba(15, 23, 42, 0.16);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.theme-fab__btn:hover,
.theme-fab__btn:focus-visible,
.theme-fab__gallery:hover,
.theme-fab__gallery:focus-visible {
    transform: translateY(-1px) scale(1.04);
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.1),
        0 16px 28px rgba(15, 23, 42, 0.2);
}

.theme-fab__orb {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    color: transparent;
    background:
        conic-gradient(var(--swatch-a) 0 42%, var(--swatch-b) 42% 72%, var(--swatch-c) 72% 100%);
}

.theme-fab__btn.is-active {
    box-shadow:
        0 0 0 3px #0a2558,
        0 10px 24px rgba(15, 23, 42, 0.18);
}

.theme-fab__tip {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: #0a2558;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 8px 12px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(10, 37, 88, 0.24);
}

.theme-fab__tip span {
    color: #8be2a3;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-fab__tip::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #0a2558;
    transform: translateY(-50%) rotate(45deg);
}

.theme-fab__btn:hover .theme-fab__tip,
.theme-fab__btn:focus-visible .theme-fab__tip,
.theme-fab__gallery:hover .theme-fab__tip,
.theme-fab__gallery:focus-visible .theme-fab__tip {
    opacity: 1;
}

.theme-fab__gallery {
    color: #0a2558;
    background: #fff;
}

.theme-fab__gallery:hover,
.theme-fab__gallery:focus-visible {
    background: #0a2558;
    color: #fff;
}

html[data-theme="atelier"] .theme-fab__label,
html[data-theme="atelier"] .theme-fab__btn,
html[data-theme="atelier"] .theme-fab__gallery {
    color: #2c241c;
    background: #fffaf3;
}

html[data-theme="atelier"] .theme-fab__btn.is-active {
    box-shadow: 0 0 0 3px #c45c26, 0 10px 24px rgba(44, 36, 28, 0.18);
}

html[data-theme="atelier"] .theme-fab__tip,
html[data-theme="atelier"] .theme-fab__tip::before {
    background: #2c241c;
}

html[data-theme="atelier"] .theme-fab__tip span {
    color: #f0b48c;
}

html[data-theme="atelier"] .theme-fab__gallery:hover,
html[data-theme="atelier"] .theme-fab__gallery:focus-visible {
    background: #2c241c;
    color: #fffaf3;
}

html[data-theme="nocturne"] .theme-fab__label,
html[data-theme="nocturne"] .theme-fab__btn,
html[data-theme="nocturne"] .theme-fab__gallery {
    color: #e8efe9;
    background: #16201c;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="nocturne"] .theme-fab__btn.is-active {
    box-shadow: 0 0 0 3px #3dd68c, 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="nocturne"] .theme-fab__tip,
html[data-theme="nocturne"] .theme-fab__tip::before {
    background: #3dd68c;
    color: #072014;
}

html[data-theme="nocturne"] .theme-fab__tip span {
    color: #072014;
}

html[data-theme="nocturne"] .theme-fab__gallery:hover,
html[data-theme="nocturne"] .theme-fab__gallery:focus-visible {
    background: #3dd68c;
    color: #072014;
}

@media (max-width: 860px) {
    #theme-switcher.theme-fab {
        left: 10px !important;
        top: 50% !important;
        bottom: auto !important;
        gap: 10px;
    }

    .theme-fab__btn,
    .theme-fab__gallery {
        width: 44px;
        height: 44px;
    }
}

@media print {
    #theme-switcher.theme-fab {
        display: none !important;
    }
}
