/* Theme and language picker — a segmented control, shown in two places:
   two rows at the foot of the profile menu, and the sign-in page footer
   (which has no profile menu to put them in). Markup in prefs.js.

   Loaded before profile-menu.css so `.pref-row` can lean on the menu-item
   look and only undo what it needs. */

.pref-seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg-subtle);
}

.pref-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.pref-btn-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.pref-btn:hover { color: var(--text); }
.pref-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus-ring); }

.pref-btn[aria-checked="true"] {
    background: var(--bg-elevated);
    color: var(--text);
    box-shadow: 0 0 0 1px var(--border-strong), 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* In the profile menu: a row per setting, in the rhythm of the menu items —
   icon and label left, control right. The row itself is not clickable (only
   the segments are), so it drops the item hover and the pointer. */
.pref-row { cursor: default; }
.pref-row:hover { background: transparent; }
.pref-row:hover svg { color: var(--text-muted); }
.pref-row .pref-seg { margin-left: auto; }

/* In the sign-in footer: copyright left, the two controls right. */
.footpage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.footpage-prefs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
