/* Curls & Chaos theme switcher. Requires tokens.css. Positioned top-right of its nearest positioned ancestor; override as needed. */
.cc-theme-switcher {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border, var(--muted-text));
}

.cc-theme-switcher button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    background: transparent;
    color: var(--muted-text);
    transition: background 0.15s ease, color 0.15s ease;
}

.cc-theme-switcher button[aria-pressed="true"] {
    background: var(--violet);
    color: var(--on-violet, var(--surface));
}

.cc-theme-switcher button:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
}

.cc-theme-switcher svg {
    width: 16px;
    height: 16px;
}
