/* Редизайн 2026-11, фаза 2 — экраны группы «onboarding». Только var(--…), токены — в tokens.css (блок screens:onboarding). */
/* Макеты: kaplia-redesign/source/Onboarding.dc.html, Onb*.dc.html, OnboardingDone.dc.html.
   Разметка — js/onboarding/*.js. Цвета берутся из темы: в тёмной — как в макетах,
   в светлой — та же раскладка на светлой палитре. */

.ob-page { background: var(--bg); }

/* ── Каркас ── */
.ob-shell {
  box-sizing: border-box;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100dvh;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-bottom: calc(env(safe-area-inset-bottom) + var(--sp-8));
  background: var(--bg-screen);
  color: var(--text);
  font-family: var(--font-text);
  line-height: normal;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
.ob-shell *, .ob-shell *::before, .ob-shell *::after { box-sizing: border-box; }
.ob-shell [hidden] { display: none !important; }
.ob-shell a { color: var(--accent-light); text-decoration: underline; }
.ob-shell--s1 { background: var(--ob-bg-intro); padding-bottom: 0; }
.ob-shell--s3 { background: var(--ob-bg-name); }
.ob-shell--s7 { background: var(--ob-bg-capsule); }
.ob-shell--done { background: var(--ob-bg-done); padding-bottom: 0; }

.ob-spread { animation: kp-spread var(--dur-spread) var(--ease) both; }
.ob-stage { flex: 1; display: flex; flex-direction: column; animation: kp-in-up var(--dur) var(--ease) both; }
.ob-mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.ob-strong { color: var(--text); }

/* Шапка: ‹ назад + 8 сегментов + ссылка справа */
.ob-header {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: calc(env(safe-area-inset-top) + 10px) var(--sp-5) 0 var(--sp-2);
}
.ob-back {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r-full); background: none;
  color: var(--accent-light); cursor: pointer;
}
.ob-back svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ob-header__link {
  min-height: 44px; padding: 0 0 0 var(--sp-2);
  border: 0; background: none; cursor: pointer;
  color: var(--text-secondary); font: 400 var(--fs-label) var(--font-text);
}
.ob-back:focus-visible, .ob-header__link:focus-visible, .ob-textbtn:focus-visible,
.ob-day:focus-visible, .ob-time:focus-visible, .ob-kind:focus-visible, .ob-goal:focus-visible, .ob-rec__btn:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 2px;
}

/* Общие блоки */
.ob-main { display: flex; flex-direction: column; padding-top: var(--sp-6); }
.ob-title { margin: 0; font-size: var(--fs-screen-title); font-weight: 700; line-height: 1.2; }
.ob-headline { display: flex; flex-direction: column; gap: 6px; margin: 0 var(--sp-6); }
.ob-main--date > .ob-title, .ob-main--goal > .ob-title, .ob-main--notify > .ob-title { margin: 0 var(--sp-6); }
.ob-sub { margin: 0; font-size: var(--fs-label); line-height: 1.5; color: var(--text-secondary); }
.ob-lead { margin: 0; font-size: var(--fs-body-rd); line-height: 1.5; color: var(--text-secondary); }
.ob-hint { margin: 0; font-size: var(--fs-caption); line-height: 1.5; color: var(--text-secondary); }
.ob-error { font-size: var(--fs-caption); line-height: 1.4; color: var(--danger); }
.ob-error--center { text-align: center; margin-top: var(--sp-3); }
.ob-textbtn {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--accent-light); font: 400 var(--fs-label) var(--font-text);
}
.ob-textbtn--muted { color: var(--text-secondary); }

.ob-actions {
  margin-top: auto;
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-5) 0;
}
.ob-actions__hint { min-height: 18px; text-align: center; font-size: var(--fs-small); color: var(--text-secondary); }

/* Поле ввода 56 px с фокус-кольцом (OnbName) */
.ob-field { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; }
.ob-field__label { font-size: var(--fs-caption); color: var(--text-secondary); }
.ob-input {
  width: 100%; height: var(--ob-input-h); padding: 0 18px;
  border: 1.5px solid var(--border); border-radius: var(--r-m);
  background: var(--bg-alt); color: var(--text);
  font: 500 var(--ob-fs-input) var(--font-text);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ob-input::placeholder { color: var(--text-secondary); }
.ob-input:focus { border-color: var(--accent); box-shadow: var(--ob-ring-focus); }
.ob-input--mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* ── Шаг 1: ночь, вода, капля ── */
.ob-intro { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100dvh; overflow: hidden; }
.ob-intro__art { position: absolute; left: 0; top: calc(env(safe-area-inset-top) + 40px); width: 100%; height: auto; }
.ob-stop-light { stop-color: var(--accent-light); }
.ob-stop-dark { stop-color: var(--accent-dark); }
.ob-stop-sea { stop-color: var(--accent); stop-opacity: .35; }
.ob-stop-sea-end { stop-color: var(--primary-dark); stop-opacity: 0; }
.ob-intro__stars { fill: var(--text-secondary); opacity: .35; }
.ob-intro__drop { animation: kp-hover 4s var(--ease) infinite; }
.ob-intro__drop-body { filter: var(--ob-drop-glow); }
.ob-intro__shine { fill: none; stroke: var(--text); stroke-opacity: .5; stroke-width: 3.5; stroke-linecap: round; }
.ob-intro__glow { fill: var(--accent-light); opacity: .18; }
.ob-intro__surface { fill: none; stroke: var(--accent-light); stroke-opacity: .45; stroke-width: 1.5; }
.ob-intro__lines { fill: none; stroke: var(--accent-light); stroke-opacity: .12; stroke-width: 1.5; stroke-linecap: round; }
.ob-intro__rings ellipse { fill: none; stroke: var(--accent-light); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
/* «Начать»: капля падает в воду и расходится кольцами */
.ob-intro__fall { transform-box: fill-box; transform-origin: 50% 100%; }
.ob-intro.is-falling .ob-intro__drop { animation: none; }
.ob-intro.is-falling .ob-intro__fall { animation: ob-fall 420ms cubic-bezier(.55, 0, 1, .45) forwards; }
.ob-intro.is-falling .ob-intro__rings ellipse { animation: kp-ring 900ms var(--ease) 360ms both; }
.ob-intro.is-falling .ob-intro__rings ellipse:nth-child(2) { animation-delay: 480ms; }
.ob-intro.is-falling .ob-intro__rings ellipse:nth-child(3) { animation-delay: 600ms; }
@keyframes ob-fall { to { transform: translateY(134px) scale(.5); opacity: 0; } }

.ob-intro__body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 0 var(--sp-6) calc(env(safe-area-inset-bottom) + var(--sp-10)); }
.ob-intro__title { margin: 0; font-size: var(--ob-fs-intro); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.ob-intro__title span { color: var(--accent-light); }
.ob-intro__lead { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--text-secondary); }
.ob-intro__cta { margin-top: 10px; font-size: var(--ob-fs-cta-lg); }
.ob-shell .ob-intro__link { align-self: center; display: flex; align-items: center; min-height: 44px; font-size: var(--fs-body-rd); color: var(--accent-light); text-decoration: none; }

/* ── Шаг 2: согласия ── */
.ob-main--consent { padding: 22px var(--sp-5) 0; gap: var(--sp-3); }
.ob-note {
  display: flex; gap: var(--sp-3); padding: 14px var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l);
  box-shadow: var(--card-shadow);
  font-size: var(--fs-label); line-height: 1.5;
}
.ob-note__icon { flex-shrink: 0; fill: none; stroke: var(--accent-light); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ob-note--danger { border-color: var(--ob-danger-a55); }
.ob-note--danger .ob-note__icon { stroke: var(--danger); }
.ob-note__tel { font-weight: 600; }
.ob-consents { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-2); }
.ob-chk { position: relative; display: flex; gap: var(--sp-3); align-items: flex-start; min-height: 44px; cursor: pointer; font-size: var(--fs-label); line-height: 1.5; }
.ob-chk small { font-size: var(--fs-small); }
.ob-chk--optional { color: var(--text-secondary); }
.ob-chk__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ob-chk .checkbox-box {
  position: relative; display: block; overflow: hidden; flex-shrink: 0;
  box-sizing: content-box; width: 24px; height: 24px; margin-top: 1px;
  border: 1.5px solid var(--border); border-radius: var(--r-s);
  transition: border-color var(--dur) var(--ease);
}
/* Отмеченная заливается снизу вверх, затем появляется галочка */
.ob-chk .checkbox-box::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform var(--dur) var(--ease);
}
.ob-chk .checkbox-box::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px;
  border: solid var(--on-accent); border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--dur) var(--ease) 120ms;
}
.ob-chk__input:checked + .checkbox-box { border-color: var(--accent); }
.ob-chk__input:checked + .checkbox-box::before { transform: scaleY(1); }
.ob-chk__input:checked + .checkbox-box::after { transform: rotate(45deg) scale(1); }
.ob-chk__input:focus-visible + .checkbox-box { outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* «Продолжить» наливается слева направо по числу обязательных галочек */
.ob-fillbtn { position: relative; overflow: hidden; }
.ob-shell .ob-fillbtn:disabled { background: var(--surface); border-color: transparent; color: var(--text-secondary); }
.ob-fillbtn__fill {
  position: absolute; inset: 0; background: var(--accent-a35);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}
.ob-fillbtn:not(:disabled) .ob-fillbtn__fill { opacity: 0; }
.ob-fillbtn__label { position: relative; }

/* ── Шаг 3: имя ── */
.ob-main--name { padding: 120px var(--sp-6) 0; gap: 28px; }
.ob-greet { display: flex; flex-direction: column; gap: var(--sp-2); min-height: 110px; }
.ob-greet__ask { font-size: var(--fs-body-rd); color: var(--text-secondary); }
.ob-greet__hello { font-size: var(--ob-fs-greet); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ob-greet__hello span { color: var(--accent-light); }

/* ── Шаг 3а: телефон и код ── */
.ob-main--phone, .ob-main--code { padding: var(--sp-10) var(--sp-6) 0; gap: 10px; }
.ob-main--phone .ob-field { margin-top: var(--sp-4); }
.ob-code { position: relative; margin-top: 26px; }
.ob-code .kp-code { justify-content: space-between; gap: 0; }
.ob-code .kp-code.shake { animation: ob-shake 400ms var(--ease); }
@keyframes ob-shake { 16% { transform: translateX(-5px); } 33% { transform: translateX(5px); } 50% { transform: translateX(-5px); } 66% { transform: translateX(5px); } 83% { transform: translateX(-5px); } }
/* Успех: волна подсветки по ячейкам и галочка */
.ob-code.is-success .kp-code__cell { border-color: var(--accent-light); animation: ob-cell-ok 420ms var(--ease) both; }
.ob-code.is-success .kp-code__cell:nth-child(2) { animation-delay: 80ms; }
.ob-code.is-success .kp-code__cell:nth-child(3) { animation-delay: 160ms; }
.ob-code.is-success .kp-code__cell:nth-child(4) { animation-delay: 240ms; }
@keyframes ob-cell-ok { 50% { transform: translateY(-6px); } }
.ob-code::before, .ob-code::after { content: ""; position: absolute; opacity: 0; pointer-events: none; }
.ob-code::before { right: -10px; top: -10px; width: 26px; height: 26px; border-radius: var(--r-full); background: var(--accent); }
.ob-code::after { right: -1px; top: -5px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.ob-code.is-success::before, .ob-code.is-success::after { animation: kp-fade var(--dur) var(--ease) 320ms both; }
.ob-code-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: var(--fs-label); }
.ob-code-row__timer { color: var(--text-secondary); }
.ob-lockcard {
  display: flex; gap: var(--sp-3); align-items: center;
  margin: var(--sp-10) var(--sp-6) 0; padding: 14px var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m);
  font-size: var(--fs-caption); line-height: 1.45; color: var(--text-secondary);
}
.ob-lockcard svg { flex-shrink: 0; fill: none; stroke: var(--accent-light); stroke-width: 1.75; stroke-linecap: round; }

/* ── Шаг 4: последняя капля ── */
.ob-main--date { padding-top: var(--sp-8); }
.ob-counter {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 28px var(--sp-5) 0; padding: 22px;
  background: var(--ob-glow-card); border: 1px solid var(--ob-accent-light-a25); border-radius: var(--r-l);
}
.ob-counter__label { font-size: var(--fs-label); color: var(--text-secondary); }
.ob-counter__value { font-size: var(--ob-fs-counter); font-weight: 800; text-align: center; }
.ob-days {
  display: flex; flex-direction: row-reverse; gap: var(--sp-2);
  margin-top: var(--sp-6); padding: var(--sp-1) var(--sp-5);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ob-days::-webkit-scrollbar { display: none; }
.ob-day {
  position: relative; flex: 0 0 64px; height: 84px; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
  border: 1px solid var(--border); border-radius: var(--r-l); background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer; scroll-snap-align: center;
}
.ob-day[aria-checked="true"] { border-color: var(--accent); background: var(--ob-accent-a18); box-shadow: var(--ob-ring-pick); }
.ob-day__wd { font-size: var(--fs-small); color: var(--text-secondary); }
.ob-day__n { font-size: var(--ob-fs-day); font-weight: 700; }
.ob-day__m { font-size: var(--fs-micro); color: var(--text-secondary); }
.ob-day--more input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ob-days__hint { margin: var(--sp-2) var(--sp-6) 0; font-size: var(--fs-small); color: var(--text-secondary); }
.ob-times { display: flex; flex-direction: column; gap: 10px; margin: 22px var(--sp-5) 0; }
.ob-times__label { font-size: var(--fs-caption); color: var(--text-secondary); }
.ob-times__row { display: flex; gap: var(--sp-2); }
.ob-time {
  flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 0;
  border: 1px solid var(--border); border-radius: var(--r-m); background: transparent;
  color: var(--text-secondary); font: 500 var(--fs-body-rd) var(--font-num); text-align: center;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.ob-time[aria-checked="true"] { border-color: var(--accent); color: var(--accent-light); background: var(--accent-a12); }
.ob-time--input { display: block; height: 44px; line-height: 42px; }
.ob-time--input::-webkit-date-and-time-value { text-align: center; }
.ob-time--input::-webkit-calendar-picker-indicator { display: none; }

/* ── Шаг 5: траты ── */
.ob-main--spend .ob-sub { line-height: normal; }
.ob-spend { display: flex; flex-direction: column; gap: 18px; margin: 22px var(--sp-5) 0; }
.ob-kinds { display: flex; gap: var(--sp-2); }
.ob-kind {
  flex: 1; min-height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--r-m); background: transparent;
  color: var(--text-secondary); font: 500 var(--fs-label) var(--font-text); cursor: pointer;
}
.ob-kind[aria-checked="true"] { border-color: var(--accent); color: var(--accent-light); background: var(--accent-a12); }
.ob-range { display: flex; flex-direction: column; gap: var(--sp-1); }
.ob-range__row { display: flex; justify-content: space-between; font-size: var(--fs-label); }
.ob-range__label { color: var(--text-secondary); }
.ob-range__val { font-weight: 700; }
.ob-range input {
  --p: 50%;
  width: 100%; height: 44px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.ob-range input::-webkit-slider-runnable-track { height: 6px; border-radius: var(--r-full); background: linear-gradient(90deg, var(--accent) var(--p), var(--border) var(--p)); }
.ob-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border: 0; border-radius: var(--r-full); background: var(--accent); }
.ob-range input::-moz-range-track { height: 6px; border-radius: var(--r-full); background: var(--border); }
.ob-range input::-moz-range-progress { height: 6px; border-radius: var(--r-full); background: var(--accent); }
.ob-range input::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: var(--r-full); background: var(--accent); }
.ob-range input:focus-visible { outline: none; }
.ob-range input:focus-visible::-webkit-slider-thumb { box-shadow: var(--ob-ring-focus); }
.ob-year {
  display: flex; flex-direction: column; gap: 14px;
  margin: 18px var(--sp-5) 0; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l);
}
.ob-year__label { font-size: var(--fs-label); color: var(--text-secondary); }
.ob-year__nums { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.ob-year__money { font-size: var(--ob-fs-year); font-weight: 800; }
.ob-year__l { font-size: var(--ob-fs-year-l); font-weight: 700; color: var(--accent-light); }
.ob-bottles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.ob-bottles svg { display: block; max-width: 100%; }
.ob-bottle__empty { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1; }
.ob-bottle__full { fill: var(--accent); stroke: var(--accent-light); stroke-width: 1; opacity: 0; transition: opacity var(--dur) var(--ease); }
.ob-bottles .is-full .ob-bottle__full { opacity: 1; }
.ob-year__note { font-size: var(--fs-small); color: var(--text-secondary); }

/* ── Шаг 6: цель ── */
.ob-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin: var(--sp-5) var(--sp-5) 0; }
.ob-goal {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 var(--sp-3);
  border: 1px solid var(--border); border-radius: var(--r-m); background: var(--surface);
  color: var(--text); font: 500 var(--fs-label) var(--font-text); line-height: 1.2; text-align: left; cursor: pointer;
}
.ob-goal[aria-checked="true"] { border-color: var(--accent); background: var(--ob-accent-a14); box-shadow: var(--ob-ring-goal); }
.ob-goal__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--ob-r-icon); background: var(--accent-a15); }
.ob-goal__icon svg { fill: var(--accent-a15); stroke: var(--accent-light); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ob-goalcard {
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin: var(--sp-4) var(--sp-5) 0; padding: var(--sp-4);
  background: var(--ob-glow-card-soft); border: 1px solid var(--ob-accent-light-a25); border-radius: var(--r-l);
}
.ob-goalcard__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.ob-goalcard__name { font-size: var(--fs-body-rd); font-weight: 600; }
.ob-goalcard__title, .ob-goalcard__amount {
  height: 44px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-m); background: var(--bg-alt); color: var(--text);
  outline: none;
}
.ob-goalcard__title { flex: 1; min-width: 0; font: 600 var(--fs-body-rd) var(--font-text); }
.ob-goalcard__title:focus, .ob-goalcard__amount:focus { border-color: var(--accent); box-shadow: var(--ob-ring-focus); }
.ob-goalcard__sum { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ob-goalcard__amount { width: 96px; font: 700 var(--fs-card-title) var(--font-num); text-align: right; }
.ob-goalcard__rub { color: var(--text-secondary); }
.ob-goalcard__track { display: block; width: 100%; height: auto; overflow: visible; }
.ob-goalcard__line { fill: none; stroke: var(--border); stroke-width: 4; stroke-linecap: round; }
.ob-goalcard__run { fill: var(--accent-light); animation: ob-run 3s var(--ease) infinite; }
@keyframes ob-run { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(20px); } }
.ob-goalcard__star { fill: none; stroke: var(--warning); stroke-width: 1.5; stroke-linejoin: round; }
.ob-goalcard__days { min-height: 20px; font-size: var(--fs-label); }
.ob-goalcard__days b { color: var(--accent-light); }

/* ── Шаг 7: капсула ── */
.ob-main--capsule .ob-headline { gap: var(--sp-2); }
.ob-qcard {
  display: flex; gap: 10px; align-items: center;
  margin: 22px var(--sp-5) 0; padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m);
  font-size: var(--fs-label);
}
.ob-qcard svg { flex-shrink: 0; fill: none; stroke: var(--warning); stroke-width: 1.75; stroke-linecap: round; }
.ob-qcard .is-in { animation: kp-fade var(--dur) var(--ease); }
.ob-rec { display: flex; flex-direction: column; align-items: center; }
.ob-rec__stage { position: relative; width: 260px; height: 260px; margin: var(--sp-5) auto 0; }
.ob-rec__wave { display: block; width: 260px; height: 260px; }
.ob-rec__btn {
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: center; justify-content: center;
  width: var(--ob-rec-btn); height: var(--ob-rec-btn); margin: -66px 0 0 -66px; padding: 0;
  border: 0; border-radius: var(--r-full); background: var(--ob-rec-bg); box-shadow: var(--ob-rec-shadow);
  color: var(--bg); cursor: pointer;
  transition: transform var(--dur-press) var(--ease);
}
.ob-rec__btn:active { transform: scale(.97); }
.ob-rec__mic { display: flex; }
.ob-rec__mic svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ob-rec__stop { display: none; width: 34px; height: 34px; border-radius: var(--r-s); background: var(--bg); }
[data-rec="recording"] .ob-rec__mic { display: none; }
[data-rec="recording"] .ob-rec__stop { display: block; }
.ob-rec__time { margin-top: 6px; text-align: center; }
.ob-rec__elapsed { font-size: var(--ob-fs-timer); font-weight: 700; }
.ob-rec__limit { font-size: var(--fs-caption); color: var(--text-secondary); }
.ob-rec__sub { min-height: 18px; margin: var(--sp-1) var(--sp-6) 0; text-align: center; font-size: var(--fs-small); color: var(--text-secondary); }
.ob-rec__after { display: flex; gap: var(--sp-6); justify-content: center; }
.ob-rec-text { margin: var(--sp-5) var(--sp-5) 0; }
.ob-textarea {
  display: block; width: 100%; min-height: 200px; padding: 14px var(--sp-4);
  border: 1.5px solid var(--border); border-radius: var(--r-m); background: var(--bg-alt);
  color: var(--text); font: 400 var(--fs-body-rd) / 1.5 var(--font-text); resize: vertical; outline: none;
}
.ob-textarea:focus { border-color: var(--warning); box-shadow: 0 0 0 4px var(--ob-amber-a12); }
.ob-actions--capsule { gap: var(--sp-3); }
.ob-capseg .kp-seg { padding: var(--sp-1); background: var(--bg-alt); border: 1px solid var(--border); }
.ob-capseg .kp-seg__opt[aria-checked="true"] { background: var(--ob-amber-a18); color: var(--warning); }
.ob-capseg .kp-seg__opt:focus-visible { outline: 2px solid var(--warning); outline-offset: 2px; }

/* ── Шаг 8: уведомления ── */
.ob-phone {
  position: relative; flex-shrink: 0; overflow: hidden;
  width: 230px; height: 250px; margin: var(--sp-6) auto 0;
  border: 2px solid var(--border); border-radius: var(--ob-r-phone);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.ob-phone__notch { position: absolute; left: 50%; top: 10px; width: 70px; height: 20px; margin-left: -35px; border-radius: var(--r-full); background: var(--bg); }
.ob-phone__clock { position: absolute; left: 0; right: 0; top: 46px; text-align: center; font-size: var(--ob-fs-clock); font-weight: 700; }
.ob-phone__toast {
  position: absolute; left: var(--sp-3); right: var(--sp-3); top: 120px;
  display: flex; gap: 10px; padding: var(--sp-3);
  border-radius: var(--ob-r-toast); background: var(--ob-toast-bg);
  -webkit-backdrop-filter: blur(var(--nav-blur)); backdrop-filter: blur(var(--nav-blur));
  animation: ob-toast 4s var(--ease) infinite;
}
@keyframes ob-toast { 0% { transform: translateY(-14px); opacity: 0; } 12%, 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.ob-phone__toast svg { flex-shrink: 0; }
.ob-phone__app { fill: var(--primary-dark); }
.ob-phone__drop { fill: var(--accent); }
.ob-phone__msg { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); }
.ob-phone__msg b { font-weight: 600; }
.ob-phone__msg span { color: var(--text-secondary); line-height: 1.35; }
.ob-switches { margin: var(--sp-6) var(--sp-5) 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); }
.ob-switch-row { display: flex; align-items: center; gap: var(--sp-3); min-height: 60px; padding: var(--sp-2) var(--sp-4); }
.ob-switch-row + .ob-switch-row { border-top: 1px solid var(--border); }
.ob-switch-row__text { flex: 1; font-size: var(--fs-body-rd); }
.ob-switch-row__sub { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--text-secondary); }
.ob-main--notify .ob-hint { margin: var(--sp-3) var(--sp-6) 0; }

/* ── Финал ── */
.ob-done-steps { display: flex; justify-content: center; padding: calc(env(safe-area-inset-top) + 22px) var(--sp-6) 0; }
.ob-done-steps .kp-steps { flex: 0 0 auto; gap: 6px; }
.ob-done-steps .kp-steps__seg { flex: 0 0 22px; width: 22px; }
.ob-shell--done .ob-stage { position: static; animation: none; }
.ob-done__art { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 40px); width: min(100%, 390px); height: auto; transform: translateX(-50%); }
.ob-done__vessel { fill: var(--accent-light-a05); stroke: var(--accent-light); stroke-opacity: .35; stroke-width: 1.5; }
.ob-done__water { fill: var(--accent); }
.ob-done__rings ellipse { fill: none; stroke: var(--accent-light); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ob-done-ring 2.4s var(--ease) 900ms infinite; }
.ob-done__rings ellipse:nth-child(2) { animation-delay: 1.7s; }
.ob-done__rings ellipse:nth-child(3) { animation-delay: 2.5s; }
@keyframes ob-done-ring { 0% { transform: scale(.3); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.ob-done__drop { fill: var(--accent-light); filter: var(--ob-drop-glow-sm); animation: ob-done-fall 900ms cubic-bezier(.55, 0, 1, .45) both; }
@keyframes ob-done-fall { 0% { transform: translateY(-190px); opacity: 0; } 15% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.ob-done__shine { fill: none; stroke: var(--text); stroke-opacity: .18; stroke-width: 6; stroke-linecap: round; }
.ob-done__num { font-family: var(--font-num); font-weight: 800; font-size: var(--fs-hero); fill: var(--text); }
.ob-done__unit { font-family: var(--font-text); font-weight: 600; font-size: var(--fs-body); fill: var(--text-secondary); }
.ob-done__body { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 0 var(--sp-6) calc(env(safe-area-inset-bottom) + var(--sp-10)); text-align: center; }
.ob-done__title { margin: 0; font-size: var(--fs-screen-title); font-weight: 700; line-height: 1.2; }
.ob-done__lead { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--text-secondary); }
.ob-done__cta { margin-top: var(--sp-3); font-size: var(--ob-fs-cta-lg); }

/* Меньше движения: всё сразу в финальном кадре */
@media (prefers-reduced-motion: reduce) {
  .ob-spread, .ob-stage, .ob-intro__drop, .ob-goalcard__run, .ob-phone__toast, .ob-done__drop, .ob-qcard .is-in,
  .ob-code .kp-code.shake, .ob-code.is-success .kp-code__cell { animation: none !important; }
  .ob-code.is-success::before, .ob-code.is-success::after { animation: none; opacity: 1; }
  .ob-done__rings ellipse { animation: none; opacity: .25; }
  .ob-chk .checkbox-box, .ob-chk .checkbox-box::before, .ob-chk .checkbox-box::after,
  .ob-fillbtn__fill, .ob-bottle__full, .ob-input, .ob-rec__btn { transition: none; }
}
