/*
 * Удаление аккаунта (js/n1-delete.js): строка внизу Профиля и экран
 * #delete-account-screen в три шага. Карточки и кнопки — общие (.s-card,
 * .n1-dlg-btn из n1-shell.css), здесь только раскладка шагов. Без эффектов
 * нажатия: кнопки статичные.
 */
body.n1 { --n1-red: #ff6b6b; }

/* строка «Удалить аккаунт» под «Выйти из аккаунта»: тихая, но на виду */
body.n1 .n1-prof-del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  color: var(--n1-grey2);
  font: 400 15px/20px var(--n1-font);
  letter-spacing: -.23px;
  text-align: center;
}

body.n1 #delete-account-screen .n1dl-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
body.n1 .n1dl-step[hidden] { display: none; }

body.n1 .n1dl-lead { margin: 8px 4px 12px; }
body.n1 .n1dl-h { margin: 8px 4px 16px; font: 700 22px/28px var(--n1-font); letter-spacing: -.5px; color: #fff; text-wrap: balance; }

/* шаг 1: что человек теряет */
body.n1 .n1dl-list { transition: opacity .2s ease-out; }
body.n1 .n1dl-list.is-wait { opacity: .55; }
body.n1 .n1dl-row { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; }
body.n1 .n1dl-row + .n1dl-row::before { content: ""; position: absolute; left: 52px; right: 0; top: 0; height: 1px; transform: scaleY(.5); transform-origin: top; background: var(--n1-hair); }
body.n1 .n1dl-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; }
body.n1 .n1dl-ic.is-amber { color: var(--n1-amber); }
body.n1 .n1dl-ic.is-bonus { color: var(--n1-bonus); }
body.n1 .n1dl-ic.is-lime { color: var(--n1-lime); }
body.n1 .n1dl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.n1 .n1dl-tx .s-g { text-wrap: pretty; }

body.n1 .n1dl-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
body.n1 .n1dl-quiet { background: none; }

/* шаг 2: причина */
body.n1 .n1dl-reason {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  text-align: left;
}
body.n1 .n1dl-reason + .n1dl-reason::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; transform: scaleY(.5); transform-origin: top; background: var(--n1-hair); }
body.n1 .n1dl-reason-t { flex: 1; min-width: 0; padding: 16px 0; }
body.n1 .n1dl-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--n1-chev); box-sizing: border-box; }
body.n1 .n1dl-reason.is-on .n1dl-radio { box-shadow: inset 0 0 0 2px var(--n1-lime), inset 0 0 0 6px var(--n1-card), inset 0 0 0 11px var(--n1-lime); }
body.n1 .n1dl-reason:focus-visible { outline: 2px solid var(--n1-lime); outline-offset: -2px; }

body.n1 .n1dl-hint { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--n1-card2); }
body.n1 .n1dl-hint[hidden] { display: none; }
body.n1 .n1dl-hint .s-g { text-wrap: pretty; }
body.n1 .n1dl-hint-btn { margin-top: 10px; min-height: 32px; color: var(--n1-lime); font: 600 15px/20px var(--n1-font); letter-spacing: -.23px; }
body.n1 .n1dl-hint-btn[hidden] { display: none; }

body.n1 .n1dl-comment {
  display: block;
  width: 100%;
  min-height: 96px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--n1-card);
  color: #fff;
  font: 400 17px/22px var(--n1-font);
  letter-spacing: -.43px;
  resize: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
body.n1 .n1dl-comment[hidden] { display: none; }
body.n1 .n1dl-comment::placeholder { color: var(--n1-grey2); }
body.n1 .n1dl-comment:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--n1-lime); }

body.n1 .n1dl-del { background: var(--n1-red); color: #fff; }

/* шаг 3: готово */
body.n1 .n1dl-done { display: flex; flex-direction: column; align-items: center; padding-top: 48px; text-align: center; }
body.n1 .n1dl-done[hidden] { display: none; }
body.n1 .n1dl-done-ic { color: var(--n1-lime); }
body.n1 .n1dl-done .n1dl-h { margin: 16px 0 8px; }
body.n1 .n1dl-done-x { max-width: 320px; text-wrap: balance; }
body.n1 .n1dl-done .n1dl-btns { align-self: stretch; margin-top: 32px; }
