/* --- Keybinds: editable Toggle Mute / Deafen and system-wide keybinds (client/js/voiceControls.js, globalKeybinds.js) --- */
.keybind-row.toggle-keybind { flex-wrap: wrap; }
.keybind-buttons { display: inline-flex; align-items: center; gap: 8px; }
.keybind-edit { min-width: 120px; }
.keybind-edit.recording { box-shadow: 0 0 0 2px var(--danger); color: var(--danger); }
.keybind-status { flex-basis: 100%; margin: 0; font-size: 13px; }
.keybind-status.ok { color: var(--online); }
.keybind-status.error { color: var(--danger); }
.settings-field.system-keybinds { margin: 8px 0 20px; max-width: 640px; }
.settings-field.system-keybinds > .settings-toggle + .muted { margin: -2px 0 8px 26px; }

/* --- Desktop App → Windows Settings (client/js/desktopApp.js) and Notifications (notificationPrefs.js) --- */
.settings-field.system-settings { margin: 24px 0 0; gap: 12px; }
.system-setting, .notification-toggle { gap: 2px; }
.system-setting > .muted, .notification-toggle > .muted { margin-left: 26px; }
.system-setting:has(input:disabled) { opacity: 0.6; }
.notification-toggle { margin-bottom: 16px; }
.notification-permission { margin-left: 26px; font-size: 13px; color: var(--text-muted); }
.notification-permission.ok { color: var(--online); }
.notification-permission.error { color: var(--danger); }
.sounds-muted-note { margin-bottom: 12px; }

/* --- Push Notifications on This Device (notificationPrefs.js, pushClient.js) --- */
.settings-field.push-settings { margin: 0 0 20px; max-width: 640px; }
.push-settings .push-status { margin-left: 0; }
.push-settings .settings-row { flex-wrap: wrap; margin-top: 4px; }
.push-settings .notification-toggle { margin: 8px 0 0; }
.push-ios-hint { margin-top: -8px; }

/* --- Notice bars above the app, after Discord's: the notification permission (pushClient.js) and
   iOS's Add to Home Screen hint (installHint.js). The body is a flex column, so the app shrinks. --- */
.notice-bar { flex: none; position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; min-height: 36px; padding: 6px 44px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center; }
.notice-bar strong { font-weight: 700; }
.notice-bar-action { flex: none; border: 1px solid #fff; border-radius: 3px; background: transparent; color: #fff; font-size: 13px; font-weight: 600; padding: 3px 12px; }
.notice-bar-action:hover, .notice-bar-action:focus-visible { background: #fff; color: var(--accent); }
.notice-bar-close { position: absolute; right: 6px; bottom: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #fff; opacity: 0.8; padding: 0; }
.notice-bar-close:hover, .notice-bar-close:focus-visible { opacity: 1; background: rgba(255, 255, 255, 0.15); }

/* Manual updates stay beside the installed version; all published platforms remain below. */
.manual-app-update { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel); }
.manual-app-update p { margin: 0; }
.manual-app-update .download-list { margin: 0; }
.download-list .download-button { flex-wrap: wrap; }
