/* PROSPER Settings page (design/10). Layout-only: every color comes from the
   shared theme variables in styles.css, so all presets (and custom themes)
   restyle this page automatically. */

.settings-page { max-width: 880px; margin: 0 auto; }
.settings-section { margin-top: 1.4rem; }
.settings-section h3 { margin-top: 0; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}
.theme-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-card:hover { border-color: var(--ice); }
.theme-card[aria-checked="true"] {
  border-color: var(--ice);
  box-shadow: var(--glow-soft);
}
.theme-card .muted { font-size: 0.82rem; line-height: 1.35; }
.theme-dots { display: inline-flex; gap: 0.3rem; }
.theme-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-block;
}

.theme-custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.9rem;
  margin: 0.4rem 0 0.8rem;
}
.theme-custom-row label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; }
.theme-custom-row input[type="color"] {
  width: 64px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.theme-custom-row input[type="text"] {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
}

.settings-field { display: block; margin-top: 1rem; font-weight: 600; }
.settings-field select,
.settings-field input[type="search"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.settings-note { margin: 0.3rem 0 0; font-size: 0.88rem; }

.settings-block-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line-soft);
}
.settings-block-row .settings-block-name { flex: 1; min-width: 0; }
.settings-block-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  overflow: hidden;
  flex: none;
}
.settings-block-avatar img { width: 100%; height: 100%; object-fit: cover; }
