/* shared/elevation.css — admin-elevation toggle in the tool header. Renders only for users with admin scope (handled by elevation.js; the placeholder is `.hidden` by default). When visible, sits left of the theme button — sudo-style affordance for opting into admin powers. */ .elevation-toggle { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--text-muted); user-select: none; cursor: pointer; padding: 0.15rem 0.45rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); transition: background 0.12s, border-color 0.12s, color 0.12s; } .elevation-toggle:hover { background: var(--bg-hover); border-color: var(--border-dark); } .elevation-toggle input[type="checkbox"] { margin: 0; cursor: pointer; accent-color: var(--danger); } .elevation-toggle__label { cursor: pointer; letter-spacing: 0.02em; } /* Active state — when elevation is ON, the toggle reads as "armed" so the user can't miss that admin powers are currently live. :has(:checked) lets us style the wrapper based on the inner checkbox without JS. */ .elevation-toggle:has(input:checked) { background: rgba(220, 53, 69, 0.12); border-color: var(--danger); color: var(--danger); font-weight: 600; }