/**
 * The language switch, sitting beside the notification bell.
 *
 * It carries its own violet ground rather than borrowing the header's. The first
 * version was drawn in translucent white, which reads well on the labelling app's
 * purple bar and disappeared completely on the admin app's white one — the active
 * language was white text on a white chip. Carrying the colour makes the control look
 * the same in both apps, which is what it is.
 */

.syrix-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: #6b5fd6;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    line-height: 1;
}

.syrix-lang-toggle button {
    min-width: 34px;
    padding: 4px 9px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.syrix-lang-toggle button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.syrix-lang-toggle button.is-active {
    color: var(--sx-accent-ink-0);
    background: var(--sx-bg-00);
}

/* The admin stylesheet draws its own tooltip for every `[title]` element, which the
   browser then draws again underneath. One is enough on this control. */
.syrix-lang-toggle button[title]:hover::after {
    content: none;
}
