/* ===== Settings screen — ported from S3 (phase2/s3-app.css) ===== */
/* Overlay container: slides in over the Profile page, opened by openSettingsPage() */
.settings-page {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  visibility: hidden;
}
.settings-page.open {
  transform: translateX(0);
  visibility: visible;
}

/* Back button (from .scr-back in S3) */
.scr-back {
  flex: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 252, 252, 0.8);
  box-shadow: 0 0 16px rgba(102, 102, 102, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  color: var(--color-content-main);
}
.scr-back:active { background: #ececec; }
.scr-back svg { width: 20px; height: 20px; }
.scr-back-sp { flex: none; width: 40px; height: 40px; }

.set-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 54px 16px 12px;
  flex: none;
}
.set-head h1 {
  flex: 1;
  text-align: center;
  font-family: var(--font-family);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-content-main);
}
.set-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 30px;
  scrollbar-width: none;
}
.set-scroll::-webkit-scrollbar { display: none; }

.set-profile {
  background: #fff;
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(113, 113, 113, 0.08);
  margin-bottom: 16px;
}
.set-ava {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 12px;
  background: #eadff5;
}
.set-ava img { width: 100%; height: 100%; object-fit: cover; }
.set-name { font-size: 20px; font-weight: 700; color: var(--color-content-main); }
.set-contact { font-size: 13px; color: #8a8a92; margin-top: 3px; }
.set-edit {
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-content-main);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.set-edit svg { width: 16px; height: 16px; }

.set-group {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(113, 113, 113, 0.08);
  margin-bottom: 16px;
}
.set-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  text-align: left;
}
.set-row:active { background: #f7f4fa; }
.set-row + .set-row { border-top: 1px solid rgba(100, 100, 108, 0.09); }
.set-row-ic {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--color-content-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.set-row-ic svg { width: 22px; height: 22px; }
.set-row-label { flex: 1; font-size: 15px; font-weight: 600; color: var(--color-content-main); }
.set-row-arw { flex: none; color: #c6c6cd; display: flex; }
.set-row-arw svg { width: 18px; height: 18px; }
.set-row.danger .set-row-ic,
.set-row.danger .set-row-label { color: #e2444f; }
