.theme-switcher {
    padding: .4rem .65rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.theme-switcher-label {
    margin-bottom: .25rem;
    font-size: .7rem;
    line-height: 1;
    color: var(--text-muted);
}

.theme-switcher-options {
    display: inline-flex;
    align-items: center;
    gap: .12rem;
    width: auto;
    max-width: max-content;
    padding: .12rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
}

.theme-switcher .theme-switcher-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.45rem;

    padding: 0;
    margin: 0;
    border: 0;
    border-radius: calc(var(--radius-md) - 2px);

    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;

    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.theme-switcher .theme-switcher-button:hover,
.theme-switcher .theme-switcher-button:focus {
    color: var(--primary);
}

.theme-switcher .theme-switcher-button.is-active {
    background: var(--primary);
    color: var(--text-inverted);
}

/* Account menu integration */
.account-nav .theme-switcher {
    padding: var(--space-xs);
    color: var(--navigation-text);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.account-nav .theme-switcher-label {
    color: var(--navigation-text);
    opacity: .75;
}

.account-nav .theme-switcher-options {
    background: transparent;
    border-color: var(--border);
}

.account-nav .theme-switcher .theme-switcher-button {
    color: var(--navigation-text);
    background: transparent;
}

.account-nav .theme-switcher .theme-switcher-button:hover,
.account-nav .theme-switcher .theme-switcher-button:focus {
    color: var(--navigation-hover-text);
    background: var(--navigation-hover-bg);
}

.account-nav .theme-switcher .theme-switcher-button.is-active {
    color: var(--navigation-hover-text);
    background: var(--navigation-hover-bg);
}
