/* ============ Geosha — профиль и настройки ============ */

/* карточка аккаунта в сайдбаре */
.account-card {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 18px; text-align: left;
  transition: background .15s ease;
}
.account-card:hover { background: var(--hover); }
.account-card .profile-text { flex: 1; min-width: 0; }
.account-card .profile-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card .gear { width: 20px; height: 20px; color: var(--ink-soft); transition: transform .4s ease; }
.account-card:hover .gear { transform: rotate(60deg); color: var(--ink); }

.avatar { overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* слой и панель */
.settings-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.settings-layer[hidden] { display: none; }
.settings-scrim { position: absolute; inset: 0; background: rgba(15, 10, 50, .28); opacity: 0; transition: opacity .2s ease; }
.settings {
  position: relative; width: min(560px, 100%); max-height: min(820px, calc(100dvh - 48px));
  display: flex; flex-direction: column; border-radius: 30px; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.settings-layer.visible .settings-scrim { opacity: 1; }
.settings-layer.visible .settings { opacity: 1; transform: none; }
body.settings-open { overflow: hidden; }

.settings-head { display: flex; align-items: center; gap: 8px; padding: 18px 16px 10px 22px; }
.settings-back { margin-left: -10px; }
.settings-back[hidden] { display: none; }
.settings-title {
  flex: 1; min-width: 0; margin: 0; font: 600 18px/1.3 var(--font-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* «Настройки» — в стиле логотипа */
.settings-title.is-root {
  display: flex; align-items: center; gap: 12px;
  font: 700 24px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink);
}
.settings-title.is-root::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff 0 12%, #7FA0FF 30%, var(--violet) 62%, var(--pink) 100%);
  box-shadow: 0 4px 14px -2px var(--glow-soft), inset 0 -2px 4px rgba(0,0,0,.12);
}
.settings-head .icon-btn:hover { background: var(--hover); }

.settings-body { overflow-y: auto; padding: 6px 18px 22px; overscroll-behavior: contain; }
.settings-view.in-forward { animation: s-in-f .22s ease; }
.settings-view.in-back { animation: s-in-b .22s ease; }
@keyframes s-in-f { from { opacity: 0; transform: translateX(18px); } }
@keyframes s-in-b { from { opacity: 0; transform: translateX(-18px); } }

/* аккаунт сверху */
.s-account {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px; border-radius: 22px; background: var(--inset-fill); border: 1px solid var(--glass-edge);
  transition: background .15s ease;
}
.s-account:hover { background: var(--hover); }
.s-account-name { font: 700 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 104px; height: 104px; font-size: 38px; box-shadow: 0 16px 40px -16px var(--glow-soft); }

/* группы и строки */
.s-group { margin-top: 20px; }
.s-heading { margin: 0 0 8px 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-faint); }
.s-card { border-radius: 20px; background: var(--inset-fill); border: 1px solid var(--glass-edge); overflow: hidden; }
.s-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px;
  text-align: left; border-top: 1px solid rgba(140,137,174,.16);
}
.s-card > :first-child { border-top: 0; }
button.s-row:hover, a.s-row:hover { background: var(--hover); }
a.s-row { color: inherit; text-decoration: none; }
.auth-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.s-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--blue); background: var(--tint); }
.s-icon svg { width: 18px; height: 18px; }
.s-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.s-label { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s-sub { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.s-value { font-size: 14px; color: var(--ink-soft); }
.s-chevron { color: var(--ink-faint); display: grid; }
.s-chevron svg { width: 18px; height: 18px; }
.s-row.danger, .s-row.danger .s-label { color: var(--danger); }
.s-row.danger .s-icon { color: var(--danger); background: rgba(229,56,91,.1); }
.soon {
  font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--violet); background: var(--tint);
}
.s-row-static { flex-wrap: wrap; }
.s-row.is-disabled .s-label { color: var(--ink-soft); }

.s-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--inset-fill); border: 1px solid var(--glass-edge); gap: 2px; }
.s-seg button { padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.s-seg button[aria-checked="true"] { background: var(--active); color: var(--ink); box-shadow: 0 2px 8px -4px var(--shadow-ink); }

.s-switch { width: 44px; height: 26px; border-radius: 999px; background: rgba(140,137,174,.3); position: relative; flex: none; }
.s-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

.s-foot { text-align: center; color: var(--ink-faint); font-size: 12.5px; margin: 22px 0 0; }
.s-lead { color: var(--ink-soft); font-size: 14.5px; margin: 6px 4px 0; }
.s-empty { text-align: center; color: var(--ink-faint); padding: 34px 20px 10px; font-size: 14.5px; }
.s-empty svg { width: 34px; height: 34px; color: var(--violet); opacity: .7; }
.s-empty p { max-width: 380px; margin: 10px auto 0; }

/* аккаунт: фото и поля */
.s-avatar-block { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0 4px; }
.s-avatar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.s-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 13px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--on-brand); background: var(--brand); white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 18px -10px var(--glow);
}
.s-btn svg { width: 17px; height: 17px; }
.s-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.s-btn-danger { background: var(--danger); box-shadow: 0 8px 18px -10px rgba(229,56,91,.8); }
.s-btn-quiet { padding: 9px 14px; border-radius: 13px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.s-btn-quiet:hover { background: var(--hover); color: var(--ink); }
.s-field { padding: 14px; }
.s-field-label { display: block; font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.s-field-row { display: flex; gap: 8px; }
.s-field-row input, .survey-text, .survey-confirm {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 13px; outline: none; font-size: 15px;
  border: 1px solid var(--glass-edge); background: var(--active);
}
.s-field-row input:focus, .survey-text:focus, .survey-confirm:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus-ring); }

/* опрос перед удалением */
.survey-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.survey-progress span { height: 5px; border-radius: 999px; background: rgba(140,137,174,.25); }
.survey-progress span.on { background: var(--danger); }
.survey-step { font-size: 13px; color: var(--ink-faint); margin: 10px 2px 0; }
.survey-q { font: 700 19px/1.3 var(--font-display); letter-spacing: -.01em; margin: 6px 2px 14px; }
.survey-options { display: flex; flex-direction: column; gap: 8px; }
.survey-option, .survey-check {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  background: var(--inset-fill); border: 1px solid var(--glass-edge); font-size: 15px;
}
.survey-option:has(input:checked) { border-color: var(--danger); background: rgba(229,56,91,.07); }
.survey-option input, .survey-check input { width: 18px; height: 18px; accent-color: var(--danger); flex: none; }
.survey-text { display: block; width: 100%; min-height: 96px; margin-top: 10px; resize: vertical; font-family: inherit; }
.survey-text[hidden] { display: none; }
.survey-list { margin: 0 0 6px; padding: 14px 14px 14px 34px; border-radius: 16px; background: var(--inset-fill); border: 1px solid var(--glass-edge); }
.survey-list li { margin: 4px 0; }
.survey-check { margin-top: 14px; }
.survey-alt { display: flex; flex-direction: column; gap: 8px; }
.survey-alt-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; text-align: left;
  background: var(--inset-fill); border: 1px solid var(--glass-edge);
}
.survey-alt-btn:hover { background: var(--hover); }
.survey-alt-btn svg { color: var(--blue); }
.survey-alt-btn b { display: block; font-weight: 600; }
.survey-alt-btn small { color: var(--ink-faint); font-size: 13px; }
.survey-confirm { display: block; width: 100%; margin-top: 12px; font-weight: 600; letter-spacing: .04em; }
.survey-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.survey-cancel { display: block; margin: 16px auto 0; font-size: 14px; color: var(--blue); font-weight: 500; }

@media (max-width: 600px) {
  .settings-layer { padding: 0; place-items: stretch; }
  .settings { width: 100%; max-height: none; height: 100dvh; border-radius: 0; border: 0; }
  .settings-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .settings-body { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .s-row-static .s-seg { width: 100%; margin-left: 46px; }
  .s-seg button { flex: 1; padding: 7px 4px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .settings-scrim { background: rgba(0,0,0,.45); }
  :root:not([data-theme="light"]) .s-icon { color: #9AAEFF; background: rgba(123,145,255,.14); }
  :root:not([data-theme="light"]) .survey-cancel { color: #9AAEFF; }
}
:root[data-theme="dark"] .settings-scrim { background: rgba(0,0,0,.45); }
:root[data-theme="dark"] .s-icon { color: #9AAEFF; background: rgba(123,145,255,.14); }
:root[data-theme="dark"] .survey-cancel { color: #9AAEFF; }

/* своя тема: ползунок цвета */
.accent-row[hidden] { display: none; }
.accent-row { flex-direction: column; align-items: stretch; gap: 12px; }
.accent-head { display: flex; align-items: center; gap: 12px; }
.accent-swatch { width: 34px; height: 34px; border-radius: 11px; flex: none; background: var(--brand); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.hue-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, hsl(0 92% 60%), hsl(60 92% 55%), hsl(120 80% 50%), hsl(180 85% 50%), hsl(240 92% 64%), hsl(300 92% 62%), hsl(360 92% 60%));
}
.hue-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff;
  background: hsl(var(--accent-h, 265) 92% 60%); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hue-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff;
  background: hsl(var(--accent-h, 265) 92% 60%); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hue-range:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.accent-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.accent-presets button {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent;
  background: hsl(var(--h) 92% 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.accent-presets button[aria-pressed="true"] { border-color: var(--ink); }
:root[data-theme="custom"] .s-icon { color: hsl(var(--accent-h) 95% 75%); background: hsl(var(--accent-h) 90% 60% / .15); }
:root[data-theme="custom"] .soon { color: hsl(var(--accent-h) 95% 78%); background: hsl(var(--accent-h) 90% 60% / .16); }
:root[data-theme="custom"] .settings-scrim { background: rgba(0,0,0,.45); }
:root[data-theme="custom"] .survey-cancel { color: hsl(var(--accent-h) 95% 75%); }

/* переключатель */
button.s-switch { border: 0; cursor: pointer; transition: background .2s ease; }
button.s-switch::after { transition: transform .2s ease; }
.s-switch[aria-checked="true"] { background: var(--brand); }
.s-switch[aria-checked="true"]::after { transform: translateX(18px); }

/* сохранённые воспоминания */
.mem-add { display: flex; gap: 8px; margin-top: 16px; }
.mem-add input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 13px; outline: none; font-size: 15px;
  border: 1px solid var(--glass-edge); background: var(--active);
}
.mem-add input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus-ring); }
.mem-list { margin-top: 14px; }
.mem-item { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-top: 1px solid rgba(140,137,174,.16); min-height: 48px; }
.s-card > .mem-item:first-child { border-top: 0; }
.mem-text { flex: 1; min-width: 0; text-align: left; font-size: 14.5px; line-height: 1.4; padding: 4px 0; border-radius: 8px; }
.mem-text:hover { color: var(--blue); }
.mem-edit { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--blue); background: var(--active); font-size: 14.5px; outline: none; }
.mem-date { font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.mem-del { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-faint); flex: none; }
.mem-del:hover { background: rgba(229,56,91,.12); color: var(--danger); }
.mem-del svg { width: 17px; height: 17px; }
.s-note { font-size: 12.5px; color: var(--ink-faint); margin: 10px 4px 0; line-height: 1.45; }
.mem-danger { margin-top: 16px; text-align: center; }
.danger-text { color: var(--danger); }
.danger-text.armed { background: rgba(229,56,91,.12); font-weight: 600; }
@media (max-width: 600px) { .mem-date { display: none; } }

/* ---------- карточка аккаунта в сайдбаре: аккаунт и шестерёнка — две кнопки ---------- */
.account-card { padding: 4px; gap: 2px; }
.account-card:hover { background: var(--inset-fill); }
.account-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 14px; text-align: left;
}
.account-main:hover { background: var(--hover); }
.account-main .profile-text { flex: 1; min-width: 0; }
.account-main .profile-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.account-main.is-guest .profile-sub { color: var(--blue); font-weight: 500; }
.account-gear { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.account-gear:hover { background: var(--hover); }
.account-gear:hover .gear { transform: rotate(60deg); color: var(--ink); }
:root[data-theme="custom"] .account-main.is-guest .profile-sub { color: hsl(var(--accent-h) 95% 74%); }

/* ---------- окно входа и регистрации ---------- */
.auth-layer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.auth-layer[hidden] { display: none; }
.auth-scrim { position: absolute; inset: 0; background: rgba(15,10,50,.3); opacity: 0; transition: opacity .2s ease; }
.auth {
  position: relative; width: min(430px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto;
  border-radius: 30px; padding: 26px 24px 22px;
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.auth-layer.visible .auth-scrim { opacity: 1; }
.auth-layer.visible .auth { opacity: 1; transform: none; }
.auth-close { position: absolute; top: 12px; right: 12px; }
.auth-close:hover { background: var(--hover); }
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 36px; }
.auth-orb {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 28%, #fff 0 12%, #7FA0FF 30%, var(--violet) 62%, var(--pink) 100%);
  box-shadow: 0 4px 14px -2px var(--glow-soft), inset 0 -2px 4px rgba(0,0,0,.12);
}
:root[data-theme="custom"] .auth-orb { background: var(--orb); }
.auth-title { margin: 0; font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border-radius: 14px; background: var(--inset-fill); border: 1px solid var(--glass-edge); margin-bottom: 18px; }
.auth-tabs[hidden] { display: none; }
.auth-tabs button { height: 38px; border-radius: 11px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.auth-tabs button[aria-selected="true"] { background: var(--active); color: var(--ink); box-shadow: 0 2px 8px -4px var(--shadow-ink); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span:first-child { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.auth-input { position: relative; display: flex; }
.auth-input input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; outline: none; font-size: 16px;
  border: 1px solid var(--glass-edge); background: var(--active); color: var(--ink);
}
.auth-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus-ring); }
.auth-input input[type="password"], .auth-input input[data-pwd] { padding-right: 46px; }
.auth-eye { position: absolute; right: 6px; top: 5px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-faint); }
.auth-eye:hover, .auth-eye.on { color: var(--ink); background: var(--hover); }
.auth-eye svg { width: 18px; height: 18px; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth-link { align-self: flex-start; font-size: 13.5px; font-weight: 500; color: var(--blue); padding: 2px 0; }
.auth-link.inline { display: inline; padding: 0; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-error { margin: 0; min-height: 0; font-size: 13.5px; color: var(--danger); line-height: 1.4; }
.auth-error:empty { display: none; }
.auth-submit {
  height: 50px; border-radius: 16px; font-weight: 700; font-size: 15.5px; color: var(--on-brand); background: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 22px -12px var(--glow);
  display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 4px;
}
.auth-submit:disabled { opacity: .6; cursor: default; }
.auth-foot, .auth-note, .auth-lead { margin: 0; font-size: 13.5px; color: var(--ink-soft); text-align: center; line-height: 1.45; }
.auth-lead { text-align: left; }
.auth-note { color: var(--ink-faint); font-size: 12.5px; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-method {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 16px; text-align: left;
  background: var(--inset-fill); border: 1.5px solid var(--glass-edge); transition: border-color .15s ease, background .15s ease;
}
.auth-method b { display: block; font-size: 14px; font-weight: 600; }
.auth-method small { display: block; font-size: 12px; color: var(--ink-faint); line-height: 1.35; margin-top: 2px; }
.auth-method[aria-checked="true"] { border-color: var(--blue); background: var(--tint); }
.auth-method:disabled { opacity: .55; cursor: default; }
.auth-method-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: var(--tint); }
.auth-method-icon svg { width: 17px; height: 17px; }
.auth-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 6px 0 2px; }
.auth-done p { margin: 0; font-size: 15px; line-height: 1.5; }
.auth-done .auth-submit { align-self: stretch; }
.auth-done-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: var(--on-brand); background: var(--brand); box-shadow: 0 12px 26px -12px var(--glow); }
.auth-done-icon svg { width: 28px; height: 28px; }
:root[data-theme="custom"] .auth-link, :root[data-theme="custom"] .auth-method-icon { color: hsl(var(--accent-h) 95% 74%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-scrim { background: rgba(0,0,0,.5); } }
:root[data-theme="dark"] .auth-scrim, :root[data-theme="custom"] .auth-scrim { background: rgba(0,0,0,.5); }
@media (max-width: 480px) {
  .auth-layer { padding: 10px; place-items: end center; }
  .auth { border-radius: 26px; padding: 22px 18px 18px; }
  .auth-methods { grid-template-columns: 1fr; }
  .auth-method { flex-direction: row; align-items: center; }
}

/* значок «Подтверждена» и форма смены пароля */
.ok-badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #0F8A68; background: rgba(31,211,164,.16); white-space: nowrap; }
.s-pwd { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.s-pwd input {
  height: 46px; padding: 0 14px; border-radius: 13px; outline: none; font-size: 15px;
  border: 1px solid var(--glass-edge); background: var(--active); color: var(--ink); margin-bottom: 6px;
}
.s-pwd input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--focus-ring); }
.s-pwd .s-btn { align-self: flex-start; margin-top: 4px; }
.survey-confirm + .survey-confirm { margin-top: 8px; }

/* страница сброса пароля */
.reset-body { overflow: auto; }
.reset-wrap { position: relative; z-index: 1; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.reset-card { opacity: 1; transform: none; }

/* поддержка: непрочитанный ответ */
.s-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-brand); background: var(--brand); }
#openSettings { position: relative; }
#openSettings.has-dot::after { content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--base); }

.s-row.armed, .survey-alt-btn.armed { background: rgba(229,56,91,.1); }
.s-row.armed .s-label, .survey-alt-btn.armed b { color: var(--danger); }

.s-explain { margin: 14px 4px 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.s-explain p { margin: 0 0 10px; }
.s-explain b { color: var(--ink); font-weight: 600; }

/* ---------- страница входа (/login): окно нельзя закрыть ---------- */
.auth-layer.locked .auth-close { display: none; }
.auth-layer.locked .auth-scrim { background: transparent; cursor: default; }
body.login-body { min-height: 100dvh; }
.login-home {
  position: fixed; top: 16px; left: 16px; z-index: 95; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: var(--glass-fill); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shine);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.login-home svg { width: 18px; height: 18px; color: var(--ink-soft); }
.login-home .logo-orb { width: 22px; height: 22px; }
.login-home .logo-word { font: 700 16px/1 var(--font-display); }
.login-home:hover { background: var(--hover); }
.login-why {
  position: fixed; left: 50%; bottom: 18px; z-index: 95; transform: translateX(-50%); width: min(520px, calc(100% - 32px));
  margin: 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--ink-soft);
}
@media (max-width: 560px) {
  .login-body .auth-layer.locked { place-items: center; padding-top: 70px; padding-bottom: 90px; }
  .login-why { bottom: 12px; font-size: 12px; }
}
