/* Server Settings > Audit Log (client/js/auditLog.js), Pause Invites in Server Settings > Invites
   and the paused state of invite previews (client/js/invites.js), and User Settings > Privacy &
   Safety (client/js/privacy.js). Uses the theme tokens from styles.css. */

/* ---- Audit Log ---- */
.audit-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 16px; }
.audit-filter { display: flex; flex-direction: column; gap: 4px; min-width: 180px; flex: 1; max-width: 260px; }
.audit-filter select { font: inherit; color: var(--text); background: var(--bg-rail); border: 0; border-radius: 4px; padding: 8px 10px; outline: none; }
.audit-filter select:focus { box-shadow: 0 0 0 2px var(--accent); }

.audit-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.audit-entry { background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.audit-entry-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; color: var(--text); }
.audit-entry-head:not(:disabled):hover { background: var(--bg-hover); }
.audit-entry-head:disabled { cursor: default; opacity: 1; }
.audit-entry-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.audit-entry-head > .icon { flex: none; color: var(--text-muted); }
.audit-entry-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.audit-entry-line { overflow-wrap: anywhere; line-height: 20px; }
.audit-entry-text { color: var(--text); }
.audit-entry-reason { color: var(--text-muted); }
.audit-entry-text strong { color: var(--text-strong); font-weight: 600; }
.audit-entry-time { font-variant-numeric: tabular-nums; }
.audit-entry-changes { margin: 0; padding: 8px 16px 12px 56px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; color: var(--text-muted); font-size: 13.5px; overflow-wrap: anywhere; }
.audit-entry-changes li::marker { color: var(--text-faint); }
.audit-more { display: block; margin: 16px auto 0; padding: 8px 18px; }
.audit-empty { padding: 40px 16px; text-align: center; }
.audit-empty-title { color: var(--text-strong); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---- Pause Invites ---- */
.invites-pause-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 4px; flex-wrap: wrap; }
.invites-pause-row .muted { flex: 1; min-width: 200px; }
.invites-pause, .invites-resume { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; flex: none; }
.invites-paused-banner { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-input); box-shadow: inset 3px 0 0 var(--warning); }
.invites-paused-banner > .icon { flex: none; color: var(--warning); }
.invites-paused-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.invites-pause-options { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.invites-pause-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-rail); color: var(--text); cursor: pointer; }
.invites-pause-option:hover { background: var(--bg-hover); }
.invites-pause-option.selected { box-shadow: inset 0 0 0 1px var(--accent); }
.invites-pause-option input { accent-color: var(--accent); margin: 0; width: auto; flex: none; box-shadow: none; }
.invites-pause-option span { flex: 1; text-align: left; }
.invite-paused-note { margin: 12px 0 0; }
.invite-splash .invite-accept:disabled { background: var(--bg-active); color: var(--text-muted); cursor: not-allowed; }
.invite-card-join:disabled { background: var(--bg-active); color: var(--text-muted); cursor: not-allowed; }

/* ---- Privacy & Safety ---- */
.privacy-option.locked .settings-toggle { color: var(--text-muted); cursor: default; }
.privacy-option input { accent-color: var(--accent); }
.privacy-option > .muted { margin-left: 26px; }
.privacy-note { margin-top: 16px; }
