/* ===== ATLAS AI — settings.css: settings screen, lists, forms ===== */
.set-section { margin-bottom: 20px; }
.set-title {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-dim); margin-bottom: 8px; padding-inline: 4px;
}
.set-group { background: var(--surface2); border-radius: 12px; overflow: hidden; }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.set-group .set-row:last-child { border-bottom: none; }
.set-row .s-label { font-size: 14px; }
.set-row .s-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* Toggle */
.toggle { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.toggle .track {
  position: absolute; inset: 0; background: var(--border); border-radius: 999px;
  transition: background 0.18s;
}
.toggle .track::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  transition: transform 0.18s;
}
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(19px); }
[dir="rtl"] .toggle input:checked + .track::after { transform: translateX(-19px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Radio pills (theme, language) */
.pill-group { display: flex; gap: 6px; padding: 12px 14px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; font-size: 13px; color: var(--text-dim);
}
.pill:hover { color: var(--text); }
.pill.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Select in settings */
.set-select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; font-size: 13.5px; max-width: 150px;
}

/* Text inputs in modals */
.text-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none;
}
.text-input:focus { border-color: var(--accent); }
textarea.text-input { resize: vertical; min-height: 70px; }

/* Memory list */
.mem-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.mem-item:last-child { border-bottom: none; }
.mem-item .mem-del { color: var(--text-dim); padding: 4px; border-radius: 6px; }
.mem-item .mem-del:hover { color: var(--danger); background: var(--surface2); }
.mem-empty { color: var(--text-dim); text-align: center; padding: 18px 0; font-size: 13.5px; }

/* Convo list (archived / project view) */
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 6px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.list-item button.link { color: var(--accent); font-size: 12.5px; padding: 5px 8px; border-radius: 7px; }
.list-item button.link:hover { background: var(--accent-soft); }
.list-item .li-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; text-align: start; }

.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 5px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.about-box { text-align: center; padding: 6px 0 12px; }
.about-box .welcome-logo { width: 42px; height: 42px; margin-bottom: 10px; }
.about-box .ver { color: var(--text-dim); font-size: 12.5px; margin-bottom: 14px; }
.about-links { display: flex; gap: 14px; justify-content: center; font-size: 13px; }
.about-links a { color: var(--accent); text-decoration: none; }
