/* Shared appearance control; all dimensions and colors use Hyperion's UI. */
:root.theme-changing *, :root.theme-changing *::before, :root.theme-changing *::after { transition: none !important; }
.theme-picker { --theme-muted: color-mix(in srgb, var(--muted) 90%, var(--text)); border: 0; margin: 0; padding: 0; min-width: 0; }
.theme-picker legend { padding: 0; margin-bottom: 12px; color: var(--text); font-size: 1rem; font-weight: 600; }
.theme-options { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.theme-picker .theme-option { position: relative; flex: 1; min-width: 0; margin: 0; font-weight: 500; cursor: pointer; }
.theme-picker .theme-option input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; clip-path: inset(50%); }
.theme-option-face { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; color: var(--theme-muted); font-size: 0.875rem; line-height: 1.25; white-space: nowrap; }
.theme-option-face svg { flex: none; width: 18px; height: 18px; }
.theme-option input:checked + .theme-option-face { background: var(--surface); border-color: var(--border); color: var(--text); }
.theme-option input:focus-visible + .theme-option-face { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-option input:disabled + .theme-option-face { cursor: not-allowed; opacity: 0.65; }
.theme-picker .theme-hint { margin: 10px 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--theme-muted); }
.theme-hint[hidden] { display: none; }
.account-menu .theme-picker { padding: 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.account-menu .theme-picker legend { float: left; width: 100%; margin-bottom: 10px; font-size: 0.875rem; }
.account-menu .theme-options { clear: both; }
.account-menu .theme-option-face { gap: 4px; padding: 0 4px; font-size: 0.8125rem; }
.account-menu:has(.theme-picker) { min-width: 300px; }
.profile-theme .theme-picker { max-width: 460px; }
.login-card .theme-picker { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 360px) {
    .profile-theme .theme-option-face, .login-card .theme-option-face { flex-direction: column; gap: 5px; min-height: 64px; padding: 8px 4px; }
}
@media (hover: hover) and (pointer: fine) {
    .theme-option:hover .theme-option-face { color: var(--text); background: var(--surface); }
}
