/* ═══════════════════════════════════════════════════════════
   SETTINGS SHEET  (css/settings.css)  —  built by js/settings.js
   Uses the existing sheet, chip, q-input, mode-main and link-btn classes, so every accent colour / style follows by itself.
   ═══════════════════════════════════════════════════════════ */
#settings-title { flex: 1; text-align: start; }   /* CHANGE: was 'left'. 'start' follows the reading direction (right for Persian) */
.st-back {
  flex: none; width: 32px; height: 32px; margin-inline-end: 6px;   /* CHANGE: was margin-right */ border-radius: 50%;
  border: 1.5px solid var(--input-border); background: var(--input-bg); color: var(--text-primary);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.st-back:hover { border-color: var(--input-focus); }
.st-back[hidden] { display: none; }

/* the body scrolls, the header stays */
.st-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px 2px 6px; }
.st-body .q-input, .st-body .q-select { text-align: start; }   /* CHANGE: was 'left' */
.st-body textarea.q-input { resize: vertical; min-height: 110px; font-family: inherit; }

.st-list { display: flex; flex-direction: column; gap: 4px; }
.st-list .pm-row { min-height: 56px; border: 1.5px solid var(--input-border); background: var(--input-bg); border-radius: 14px; }
.st-list .pm-row .st-val { color: var(--text-muted); font-size: 13px; }
.st-list .pm-row .st-chev { margin-inline-start: auto; color: var(--text-muted); }   /* CHANGE: was margin-left */

.st-sec { display: flex; flex-direction: column; gap: 8px; }
.st-sec + .st-sec { padding-top: 14px; border-top: 1px solid var(--icon-border); }
.st-sec h3 { font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-help { font-size: 12px; letter-spacing: 0.03em; color: var(--text-muted); line-height: 1.5; }
.st-msg { min-height: 16px; font-size: 12px; letter-spacing: 0.04em; text-align: center; color: var(--text-muted); }
.st-msg.err { color: oklch(62% 0.20 25); }
.st-readonly { opacity: 0.7; }

.st-lang { min-height: 52px; justify-content: space-between; }
.st-lang .st-check { opacity: 0; color: var(--input-focus); }
.st-lang.selected .st-check { opacity: 1; }
.st-lang.selected { border-color: var(--input-focus); }

/* delete account: red warning card + red button */
.st-warn { padding: 14px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, oklch(62% 0.20 25) 55%, transparent);
           background: color-mix(in srgb, oklch(62% 0.20 25) 10%, transparent); font-size: 13px; line-height: 1.55; letter-spacing: 0.02em; }
.st-warn ul { margin: 8px 0 0; margin-inline-start: 18px; padding: 0; }   /* CHANGE: the 18px indent was on the left; now on the reading-start side */
.st-danger-btn { display: block; width: 100%; padding: 15px 20px; border-radius: 16px; border: 1.5px solid oklch(62% 0.20 25);
                 background: oklch(55% 0.21 25); color: #fff; font: inherit; font-size: 15px; letter-spacing: 0.06em; cursor: pointer; }
.st-danger-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.st-body button:disabled { opacity: 0.6; cursor: default; }
.st-sec-h { font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }   /* "Topic" label on the Write us page */
