.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid rgba(27, 95, 115, 0.28);
    background: #fff;
    color: #134a5a;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    border-color: rgba(27, 95, 115, 0.5);
    background: rgba(27, 95, 115, 0.08);
}

.theme-toggle.is-active {
    background: #1b5f73;
    border-color: #1b5f73;
    color: #fff;
}

/* Classic dark header context */
.theme-toggle--classic {
    border-color: rgba(255, 140, 0, 0.45);
    background: rgba(0, 0, 0, 0.45);
    color: #ff8c00;
}

.theme-toggle--classic:hover {
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.75);
}

html[data-ui-theme="classic"] .header-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

@media (max-width: 640px) {
    .theme-toggle {
        padding: 0.35rem 0.65rem;
        font-size: 0.72rem;
    }
}
