/*
 * The font-size preference scales the root. For that to reach every px-sized
 * element, body text sizes are declared in rem (1rem = default). Headings and
 * clamp() values stay in px because they are already large.
 */
html { font-size: 100%; }
html[data-font-size="large"] { font-size: 118%; }
.preference-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.preference-group { display: flex; align-items: center; gap: 6px; }
.preference-group > span { color: var(--muted); font-size: 12px; }
.segmented-control { display: flex; padding: 3px; border: 1px solid var(--cyan-line); border-radius: 6px; background: rgba(3, 12, 24, .55); }
.segmented-control button { min-width: 42px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.segmented-control button.selected { background: var(--cyan-wash); color: var(--cyan-strong); }
.logout-button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(255, 123, 134, .42); border-radius: 6px; background: var(--red-soft, rgba(255, 123, 134, .1)); color: var(--red, #ff7b86); }
.logout-button:disabled { color: var(--disabled); }
.profile-preferences { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-preferences .logout-button { margin-left: auto; }
html[data-theme="light"] .segmented-control { background: rgba(255, 255, 255, .72); }
@media (max-width: 640px) {
  .preference-controls { align-items: stretch; }
  .preference-group { width: 100%; justify-content: space-between; }
  .preferences-panel .logout-button { width: 100%; }
  .profile-preferences .logout-button { width: 100%; margin-left: 0; }
}