.style-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: color-mix(in srgb, var(--panel), transparent 8%);
    color: var(--muted);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.style-toggle::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0.18rem color-mix(in srgb, currentColor, transparent 82%);
}

.style-toggle strong {
    color: var(--text);
    font: inherit;
    font-weight: 600;
}

.style-toggle:hover,
.style-toggle:focus-visible {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}

.style-toggle:hover strong,
.style-toggle:focus-visible strong {
    color: inherit;
}

html[data-site-style="classic"] .style-toggle {
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.7);
}

html[data-site-style="classic"] .style-toggle:hover,
html[data-site-style="classic"] .style-toggle:focus-visible {
    background: var(--accent);
    color: var(--bg);
}

@media (max-width: 760px) {
    .style-toggle {
        order: 3;
        width: 100%;
        justify-content: space-between;
        min-height: 2.4rem;
    }
}
