.dc-auth-dialog {
  border: none;
  border-radius: 24px;
  padding: 0;
  max-width: 400px;
  width: calc(100% - 32px);
  background: var(--surface, #111115);
  color: var(--text, #e8e8ea);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.dc-auth-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
@keyframes dc-dialog-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dc-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.dc-auth-dialog[open] { animation: dc-dialog-in 0.16s ease-out; }
.dc-auth-dialog::backdrop { animation: dc-backdrop-in 0.16s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .dc-auth-dialog[open], .dc-auth-dialog::backdrop { animation: none; }
}
.dc-auth-form { padding: 32px 28px 28px; position: relative; }
.dc-auth-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--muted, #9a978f);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.dc-auth-close:hover, .dc-auth-close:focus-visible { color: var(--text, #e8e8ea); }
.dc-auth-form h2 { margin: 0 0 10px; font-size: 1.5rem; font-weight: 600; text-align: center; letter-spacing: -0.01em; }
.dc-auth-copy { margin: 0 0 24px; color: var(--muted, #9a978f); font-size: 0.9rem; line-height: 1.5; text-align: center; }

.dc-auth-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.dc-auth-step label:not(.dc-auth-sr-only) { display: block; font-size: 0.85rem; color: var(--muted, #9a978f); margin-bottom: 6px; }
.dc-auth-step input {
  width: 100%; box-sizing: border-box; padding: 13px 16px; margin-bottom: 12px;
  border-radius: 999px; border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.03); color: var(--text, #e8e8ea); font-size: 0.95rem;
}
.dc-auth-step input::placeholder { color: var(--muted, #9a978f); }
.dc-auth-step input:focus-visible { outline: 2px solid var(--accent, #c9a84c); outline-offset: 1px; }
.dc-auth-code { letter-spacing: 0.3em; font-size: 1.2rem; text-align: center; }

/* Email row: pill input with the arrow affordance tucked inside it. The input
   keeps its own border so focus-visible still outlines the real control. */
.dc-auth-field { position: relative; }
.dc-auth-field input { padding-right: 48px; }
.dc-auth-field-go {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  margin-top: -6px; /* offsets the input's 12px bottom margin */
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.06); color: var(--text, #e8e8ea);
}
.dc-auth-field-go:hover:not(:disabled) { background: var(--accent, #c9a84c); border-color: var(--accent, #c9a84c); color: #14140f; }
.dc-auth-field-go:disabled { opacity: 0.5; cursor: default; }

.dc-auth-primary {
  width: 100%; margin: 0 0 4px; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--accent, #c9a84c);
  background: var(--accent, #c9a84c); color: #14140f; font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.dc-auth-primary:disabled { opacity: 0.6; cursor: default; }
.dc-auth-primary:hover:not(:disabled) { background: var(--accent-soft, #efd58b); }

/* "OR" centred on a rule, matching the provider-stack layout. */
.dc-auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted, #9a978f); font-size: 0.72rem; letter-spacing: 0.08em; margin: 20px 0;
}
.dc-auth-divider::before, .dc-auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-strong, rgba(255,255,255,0.12));
}

/* Provider buttons stack above the divider, one pill per method. */
/* Mark and label are centred together as one group, so the pill reads the same
   whether the label is short or long and any provider added later matches. */
.dc-auth-provider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12)); color: var(--text, #e8e8ea);
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.dc-auth-provider:hover { border-color: var(--accent, #c9a84c); background: rgba(255,255,255,0.03); }
.dc-auth-provider-glyph { display: inline-flex; align-items: center; flex: none; }
/* The unconditional display:flex above beats the browser's own
   [hidden]{display:none} rule at equal specificity (author stylesheet always
   outranks the user-agent one), so link.hidden = true had no visual effect --
   this restores it explicitly. Same guard on the divider, which now sets its
   own display too. */
.dc-auth-provider[hidden],
.dc-auth-divider[hidden] { display: none; }

.dc-auth-link {
  display: block; margin: 12px auto 0; background: none; border: none; color: var(--muted, #9a978f);
  text-decoration: underline; font-size: 0.85rem; cursor: pointer; padding: 4px;
}
.dc-auth-error {
  margin: 10px 0 0; color: #ff8a8a; font-size: 0.85rem;
}

/* Log in / Sign up segmented control. Sign-in is passwordless, so both tabs
   drive the same fields -- the control exists to tell visitors that creating an
   account is on offer at all, which a single email field never did. */
.dc-auth-modes {
  display: flex; gap: 4px; margin: 0 0 20px; padding: 4px;
  border-radius: 999px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
}
.dc-auth-mode {
  flex: 1; padding: 9px 12px; border: none; border-radius: 999px; cursor: pointer;
  background: none; color: var(--muted, #9a978f); font-size: 0.88rem; font-weight: 600;
  font-family: inherit; transition: background 0.15s ease, color 0.15s ease;
}
.dc-auth-mode:hover:not(.is-active) { color: var(--text, #e8e8ea); }
.dc-auth-mode.is-active { background: var(--accent, #c9a84c); color: #14140f; }
@media (prefers-reduced-motion: reduce) { .dc-auth-mode { transition: none; } }

/* Checkbox rows (newsletter opt-in). The generic `.dc-auth-step input` pill
   styling above would otherwise stretch the box to full width, and
   `.dc-auth-step label` would force it to display:block. */
.dc-auth-check {
  display: flex !important; align-items: flex-start; gap: 10px;
  margin: 4px 0 16px !important; padding: 0; cursor: pointer;
  font-size: 0.82rem; line-height: 1.45; color: var(--muted, #9a978f); text-align: left;
}
.dc-auth-check input[type="checkbox"] {
  width: 16px; flex: none; margin: 2px 0 0; padding: 0;
  border-radius: 4px; accent-color: var(--accent, #c9a84c); cursor: pointer;
}
.dc-auth-check:hover { color: var(--text, #e8e8ea); }
.dc-auth-check[hidden] { display: none !important; }

.dc-auth-legal {
  margin: 10px 0 0; font-size: 0.75rem; line-height: 1.5; text-align: center; color: var(--muted, #9a978f);
}
.dc-auth-legal a { color: inherit; text-decoration: underline; }
.dc-auth-legal a:hover { color: var(--accent, #c9a84c); }
.dc-auth-legal[hidden] { display: none; }

/* Secondary way out of the current mode, for anyone who read past the tabs. */
.dc-auth-switch {
  margin: 18px 0 0; padding-top: 16px; text-align: center; font-size: 0.85rem; color: var(--muted, #9a978f);
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}
.dc-auth-switch-btn {
  background: none; border: none; padding: 2px; cursor: pointer; font-size: inherit; font-family: inherit;
  font-weight: 600; color: var(--accent, #c9a84c); text-decoration: underline;
}

/* Shown when a code verifies against an email that has no account yet: the
   code is still good, so creating one is a single click from here. */
.dc-auth-rescue {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}

.dc-account-prompt {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 480px; margin: 0 auto;
  background: var(--surface, #111115); border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  border-radius: var(--radius-md, 16px); padding: 16px 44px 16px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.dc-account-prompt p { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.5; color: var(--text, #e8e8ea); }
.dc-account-prompt-actions { display: flex; gap: 10px; justify-content: center; }
.dc-account-prompt-primary { min-width: 200px; }
.dc-account-prompt-actions button {
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.dc-account-prompt-primary { background: var(--accent, #c9a84c); border: 1px solid var(--accent, #c9a84c); color: #14140f; }
.dc-account-prompt-secondary { background: none; border: 1px solid var(--border-strong, rgba(255,255,255,0.12)); color: var(--text, #e8e8ea); }
.dc-account-prompt-close {
  position: absolute; top: 10px; right: 10px; background: none; border: none;
  color: var(--muted, #9a978f); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
@media (max-width: 520px) {
  .dc-account-prompt { left: 8px; right: 8px; bottom: 8px; }
}

/* The prompt is position:fixed and appended to <body>, so by default it
   centers over the whole viewport. On the app shell the pushing sidebar
   offsets the content column, which left the prompt visibly off-center. Push
   its left edge past the sidebar (width mirrored onto <body> by site-nav.js)
   so `margin-inline:auto` centers it within the content area instead. */
@media (min-width: 1024px) {
  body.dc-shell-ready .dc-account-prompt {
    left: calc(var(--sidebar-expanded-width, 240px) + 16px);
    transition: left 200ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.dc-shell-ready.dc-sidebar-collapsed .dc-account-prompt {
    left: calc(var(--sidebar-collapsed-width, 68px) + 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.dc-shell-ready .dc-account-prompt { transition: none; }
}

/* Shared "are you sure?" confirm dialog and Account settings dialog --
   used by the site-wide account dropdown (site-nav.js) and My Decks alike. */
.dc-confirm-dialog { border: none; border-radius: var(--radius-md, 16px); padding: 0; max-width: 400px; width: calc(100% - 32px); background: var(--surface, #111115); color: var(--text, #e8e8ea); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.dc-confirm-dialog::backdrop { background: rgba(0,0,0,0.6); }
.dc-confirm-body { padding: 22px; }
.dc-confirm-body h2 { margin: 0 0 8px; font-size: 1.1rem; }
.dc-confirm-body p { margin: 0 0 18px; color: var(--muted, #9a978f); font-size: 0.9rem; line-height: 1.5; }
.dc-confirm-body input[type="text"] { width: 100%; box-sizing: border-box; padding: 9px 10px; margin-bottom: 16px; border-radius: 8px; border: 1px solid var(--border-strong, rgba(255,255,255,0.12)); background: rgba(255,255,255,0.03); color: var(--text); }
.dc-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dc-confirm-actions button { padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border-strong, rgba(255,255,255,0.12)); background: none; color: var(--text); transition: border-color 0.15s ease, background 0.15s ease; }
.dc-confirm-actions button:hover { border-color: var(--accent, #c9a84c); }
/* Self-sufficient (not dependent on a .dc-confirm-actions parent) so these
   two look right anywhere a dialog needs a primary/secondary pair -- e.g.
   next to a standalone field like the username editor in Account settings. */
.dc-confirm-ok, .dc-confirm-cancel {
  padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dc-confirm-cancel { background: none; border: 1px solid var(--border-strong, rgba(255,255,255,0.12)); color: var(--text); }
.dc-confirm-cancel:hover { border-color: var(--accent, #c9a84c); }
.dc-confirm-ok { border: 1px solid var(--accent, #c9a84c); background: var(--accent, #c9a84c); color: #14140f; }
.dc-confirm-ok:hover { background: var(--accent-soft, #efd58b); border-color: var(--accent-soft, #efd58b); }
.dc-confirm-ok.destructive { border-color: #d9534f; background: #d9534f; color: #fff; }
.dc-confirm-ok.destructive:hover { background: #c94540; }
/* Outlined danger style for a button that only opens a destructive
   confirmation (the actual confirm step uses .dc-confirm-ok.destructive
   above) -- kept as a distinct class so the two never fight over specificity. */
.danger-outline { border-color: rgba(217,83,79,0.45) !important; color: #ff8a8a !important; }
.danger-outline:hover { border-color: #d9534f !important; background: rgba(217,83,79,0.1) !important; }

/* Account settings dialog (redesigned) -- a dedicated dialog class (not
   .dc-confirm-dialog) so its larger proportions/scroll layout never affect
   the smaller generic confirm dialogs (delete-account, etc.) reused elsewhere. */
.dc-settings-dialog {
  border: none;
  border-radius: var(--radius-md, 16px);
  padding: 0;
  width: min(500px, calc(100vw - 32px));
  max-width: min(500px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  background: var(--surface, #111115);
  color: var(--text-1, #f0eef8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.dc-settings-dialog[open] { display: flex; flex-direction: column; animation: dc-dialog-in 0.16s ease-out; }
.dc-settings-dialog::backdrop { background: rgba(0, 0, 0, 0.6); animation: dc-backdrop-in 0.16s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .dc-settings-dialog[open], .dc-settings-dialog::backdrop { animation: none; }
}
.dc-settings-inner { display: flex; flex-direction: column; min-height: 0; flex: 1; }

.dc-settings-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3, 12px);
  padding: var(--space-6, 32px) var(--space-6, 32px) var(--space-4, 16px);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  flex: none;
}
.dc-settings-header h2 { margin: 0 0 4px; font-size: 1.125rem; font-weight: 600; color: var(--text-1, #f0eef8); }
.dc-settings-subtitle { margin: 0; font-size: 0.85rem; color: var(--text-2, #8a879e); }
.dc-settings-close {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid transparent; background: none; color: var(--text-2, #8a879e);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dc-settings-close:hover { color: var(--text-1, #f0eef8); border-color: var(--border-strong, rgba(255,255,255,0.12)); background: rgba(255,255,255,0.04); }
.dc-settings-close:focus-visible { outline: 2px solid var(--accent, #c9a84c); outline-offset: 2px; }

.dc-settings-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-6, 32px); }

.dc-settings-section-title { margin: 0 0 var(--space-5, 24px); font-size: 0.9rem; font-weight: 600; color: var(--text-1, #f0eef8); }

.dc-settings-divider { height: 1px; background: var(--border, rgba(255,255,255,0.06)); margin: var(--space-6, 32px) 0; }
.dc-settings-divider-danger { background: rgba(217,83,79,0.18); }

/* Photo row: avatar preview (with a hover tooltip for format/size/ratio
   guidance) plus Upload/Remove controls and a persistent ideal-ratio hint. */
.dc-settings-photo-row { display: flex; align-items: center; gap: var(--space-4, 16px); }
.dc-settings-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--border-strong, rgba(255,255,255,0.12)); }
.dc-settings-avatar-placeholder { background: rgba(255,255,255,0.06); }
[data-avatar-preview] { position: relative; flex: none; line-height: 0; }
[data-avatar-preview][data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(-4px);
  width: 220px; max-width: 60vw; padding: 8px 10px; border-radius: var(--radius-xs, 8px);
  background: var(--surface-3, #1d1d26); color: var(--text-1, #f0eef8); font-size: 0.75rem; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); border: 1px solid var(--border-strong, rgba(255,255,255,0.1));
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; z-index: 5; text-align: left;
}
[data-avatar-preview][data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.dc-settings-photo-actions { display: flex; flex-direction: column; gap: var(--space-1, 4px); }
.dc-settings-photo-buttons { display: flex; align-items: center; gap: var(--space-3, 12px); flex-wrap: wrap; }
.dc-settings-avatar-upload-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 var(--space-4, 16px);
  border-radius: var(--radius-pill, 999px); border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  font-size: 0.85rem; font-weight: 600; color: var(--text-1, #f0eef8); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dc-settings-avatar-upload-btn:hover { border-color: var(--accent, #c9a84c); }
.dc-settings-avatar-upload-btn:focus-within { outline: 2px solid var(--accent, #c9a84c); outline-offset: 2px; }
.dc-settings-text-btn {
  height: 36px; padding: 0 var(--space-3, 12px); border-radius: var(--radius-pill, 999px); border: 1px solid transparent;
  background: none; color: var(--red-text, #e87070); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dc-settings-text-btn:hover { border-color: rgba(217,83,79,0.4); background: rgba(217,83,79,0.08); }
.dc-settings-text-btn:focus-visible { outline: 2px solid var(--accent, #c9a84c); outline-offset: 2px; }
.dc-settings-text-btn[hidden] { display: none; }

/* Fields: label (+ optional char count) above input, hint/error below --
   never a small button crammed beside a full-width input. */
.dc-settings-field { margin-top: var(--space-5, 24px); }
.dc-settings-field:first-of-type { margin-top: var(--space-6, 32px); }
.dc-settings-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2, 8px); margin-bottom: var(--space-2, 8px); }
.dc-settings-field > label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-2, #8a879e); margin-bottom: var(--space-2, 8px); }
.dc-settings-label-row label { margin-bottom: 0; }
.dc-settings-char-count { font-size: 0.75rem; color: var(--text-3, #56536a); flex: none; }
.dc-settings-field input[type="text"],
.dc-settings-field textarea {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 var(--space-3, 12px);
  border-radius: var(--radius-xs, 8px); border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.03); color: var(--text-1, #f0eef8); font: inherit; font-size: 0.9rem;
  transition: border-color 0.15s ease;
}
.dc-settings-field textarea { height: auto; min-height: 104px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.dc-settings-field input[type="text"]:hover,
.dc-settings-field textarea:hover { border-color: rgba(201,168,76,0.35); }
.dc-settings-field input[type="text"]:focus-visible,
.dc-settings-field textarea:focus-visible {
  outline: 2px solid var(--accent, #c9a84c); outline-offset: 1px; border-color: var(--accent, #c9a84c);
}
.dc-settings-field input[type="text"]::placeholder,
.dc-settings-field textarea::placeholder { color: var(--text-3, #56536a); }
.dc-settings-hint { margin: var(--space-1, 4px) 0 0; font-size: 0.78rem; color: var(--text-3, #56536a); line-height: 1.4; }
.dc-settings-error { margin: var(--space-2, 8px) 0 0; font-size: 0.8rem; color: var(--red-text, #e87070); line-height: 1.4; }
.dc-settings-error[hidden] { display: none; }

/* Single primary Save changes action for every editable profile field. */
.dc-settings-save-row { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4, 16px); margin-top: var(--space-6, 32px); }
.dc-settings-save-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600;
  color: var(--text-2, #8a879e); opacity: 0; transform: translateY(2px);
}
.dc-settings-save-status.is-visible {
  color: #7fd99a; opacity: 1; transform: none;
  animation: dc-save-status-in 0.2s ease-out;
}
.dc-settings-save-status svg { flex: none; color: #7fd99a; }
@keyframes dc-save-status-in { from { opacity: 0; transform: translateY(2px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dc-settings-save-status.is-visible { animation: none; }
}
.dc-settings-save-btn {
  flex: none; height: 44px; padding: 0 var(--space-5, 24px); border-radius: var(--radius-pill, 999px);
  border: 1px solid var(--accent, #c9a84c); background: var(--accent, #c9a84c); color: #14140f;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.dc-settings-save-btn:hover:not(:disabled) { background: var(--accent-soft, #efd58b); border-color: var(--accent-soft, #efd58b); }
.dc-settings-save-btn:focus-visible { outline: 2px solid var(--accent, #c9a84c); outline-offset: 2px; }
.dc-settings-save-btn:disabled { opacity: 0.45; cursor: default; }
.dc-settings-save-btn.is-loading { opacity: 0.85; cursor: progress; }

/* Email preferences: a single consent tick that saves on change, so it gets no
   Save button and sits closer to its own status line than a profile field. */
.dc-settings-check {
  display: flex; align-items: flex-start; gap: var(--space-3, 12px); cursor: pointer;
  font-size: 0.85rem; line-height: 1.45; color: var(--text-2, #b3b0c4);
}
.dc-settings-check input[type="checkbox"] {
  width: 16px; height: 16px; flex: none; margin: 2px 0 0;
  accent-color: var(--accent, #c9a84c); cursor: pointer;
}
.dc-settings-check:hover { color: var(--text-1, #f0eef8); }
.dc-settings-check input[type="checkbox"]:disabled { cursor: progress; }

/* Data and security: secondary actions, visually quieter than Save changes. */
.dc-settings-button-row { display: flex; gap: var(--space-4, 16px); flex-wrap: wrap; }
.dc-settings-secondary-btn {
  flex: 1 1 0; min-width: 0; height: 44px; padding: 0 var(--space-4, 16px); border-radius: var(--radius-pill, 999px);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12)); background: none; color: var(--text-1, #f0eef8);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-settings-secondary-btn:hover:not(:disabled) { border-color: var(--accent, #c9a84c); }
.dc-settings-secondary-btn:focus-visible { outline: 2px solid var(--accent, #c9a84c); outline-offset: 2px; }
.dc-settings-secondary-btn:disabled { opacity: 0.6; cursor: default; }

/* Danger zone: a subtle red-tinted divider/title, not a large red container. */
.dc-settings-danger-title { color: var(--red-text, #e87070); }
.dc-settings-danger-copy { margin: 0 0 var(--space-4, 16px); font-size: 0.82rem; color: var(--text-2, #8a879e); line-height: 1.5; }
.dc-settings-danger-btn {
  height: 44px; padding: 0 var(--space-5, 24px); border-radius: var(--radius-pill, 999px);
  border: 1px solid rgba(217,83,79,0.45); background: none; color: #ff8a8a;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.dc-settings-danger-btn:hover:not(:disabled) { border-color: #d9534f; background: rgba(217,83,79,0.1); }
.dc-settings-danger-btn:focus-visible { outline: 2px solid var(--accent, #c9a84c); outline-offset: 2px; }
.dc-settings-danger-btn:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 640px) {
  .dc-settings-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .dc-settings-header { padding: 20px 20px 16px; }
  .dc-settings-scroll { padding: 20px; }
  .dc-settings-save-row { flex-direction: column-reverse; align-items: stretch; gap: var(--space-2, 8px); margin-top: var(--space-5, 24px); }
  .dc-settings-save-status { text-align: center; }
  .dc-settings-save-btn { width: 100%; }
  .dc-settings-button-row { flex-direction: column; }
  .dc-settings-secondary-btn { width: 100%; }
}

/* A light, brief entrance instead of the dialog just snapping into view --
   subtle enough to feel native, not a showy transition. */
@keyframes dc-dialog-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dc-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.dc-confirm-dialog[open] { animation: dc-dialog-in 0.16s ease-out; }
.dc-confirm-dialog::backdrop { animation: dc-backdrop-in 0.16s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .dc-confirm-dialog[open], .dc-confirm-dialog::backdrop { animation: none; }
}

/* Your reports (submitted audit feedback) in Account settings. */
.dc-feedback-reports { margin-top: 6px; }
.dc-feedback-report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dc-feedback-report {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.02);
}
.dc-feedback-report-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dc-feedback-report-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3, #6a6780);
}
.dc-feedback-report-subject {
  font-size: 14px;
  color: var(--text-1, #f0eef8);
  overflow-wrap: anywhere;
}
.dc-feedback-report-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dc-feedback-report-date {
  font-size: 12px;
  color: var(--text-3, #6a6780);
  white-space: nowrap;
}
.dc-feedback-state {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2, #8a879e);
}
.dc-feedback-state-accepted { background: rgba(104, 181, 136, 0.16); color: #8fce9e; }
.dc-feedback-state-triaged { background: rgba(201, 168, 76, 0.16); color: var(--accent-soft, #efd58b); }
.dc-feedback-state-rejected,
.dc-feedback-state-duplicate { background: rgba(255, 255, 255, 0.05); color: var(--text-3, #6a6780); }
