/* v2-profile.css — дизайн-система v2 (docs/37), слайс «profile»: стили поверх app.css.
 * Экраны: Сохранённые поиски (Profile_Saved), Авто-правила (Profile_Rules/RuleNew),
 * Подписка (Profile_Billing), paywall доски (Profile_Paywall), Заявки с формы
 * (Profile_Intake/IntakeSheet). Только классы v2p-*; токены — var(--…).
 * Коралл --accent — только одна главная кнопка экрана; тумблеры/лимит — графит (--text). */

/* ═════════════ общий словарь ═════════════ */
.v2p-screen { display: flex; flex-direction: column; gap: 20px; max-width: 640px; margin: 0 auto; width: 100%; }
.v2p-i { width: 16px; height: 16px; stroke-width: 1.8; flex: none; }

.v2p-head { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.v2p-head__row { display: flex; align-items: center; gap: 4px; }
.v2p-head__row .v2p-h1 { flex: 1 1 auto; min-width: 0; }
.v2p-h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--text); }
.v2p-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }

.v2p-sec { display: flex; flex-direction: column; gap: 8px; }
.v2p-label {
  font-size: 12px; font-weight: var(--weight-semibold); letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-faint); padding: 0 4px;
}
.v2p-label--flush { padding: 0; }
.v2p-strong { color: var(--text); font-weight: var(--weight-medium); }
.v2p-muted-sm { font-size: 13px; color: var(--text-faint); }
.v2p-hr { height: 1px; background: var(--surface-sunken); }

.v2p-grp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.v2p-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}

/* иконка 30px в плитке */
.v2p-ic {
  width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* строка списка (Profile_Saved .row) */
.v2p-row {
  display: flex; align-items: center; gap: 10px; min-height: 68px; box-sizing: border-box;
  padding: 10px 4px 10px 14px; position: relative;
}
.v2p-row + .v2p-row { border-top: 1px solid var(--surface-sunken); }
.v2p-row--top { align-items: flex-start; padding: 12px 4px 12px 14px; }
.v2p-row--top > .v2p-ic { margin-top: 2px; }
.v2p-row__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2p-row__text--gap { gap: 8px; }
.v2p-row__titles { display: flex; flex-direction: column; gap: 2px; }
.v2p-row__title {
  font-size: 15px; font-weight: var(--weight-medium); line-height: 20px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.v2p-row__sub { font-size: 13px; line-height: 17px; color: var(--text-faint); }
.v2p-row__ctl { display: flex; align-items: center; flex: none; margin-top: -2px; min-height: 44px; }
.v2p-row.is-off .v2p-row__title { color: var(--text-muted); }
.v2p-row.is-off .v2p-ic { color: var(--warm-400); }

/* тумблер 44×26: вкл — графит */
.v2p-sw {
  width: 44px; height: 26px; border-radius: var(--radius-pill); position: relative; flex: none; border: 0; padding: 0;
  background: var(--border); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-out);
}
.v2p-sw::after { content: ""; position: absolute; inset: -9px -2px; } /* зона тапа ≥44 */
.v2p-sw__knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-knob);
  transition: transform var(--dur-fast) var(--ease-out);
}
.v2p-sw.is-on { background: var(--text); }
.v2p-sw.is-on .v2p-sw__knob { transform: translateX(18px); }
.v2p-sw:disabled { cursor: default; }
.v2p-sw:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* кнопка «…» 44×44 */
.v2p-more {
  width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-md); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.v2p-more .v2p-i { width: 20px; height: 20px; }
.v2p-more.is-open, .v2p-more:active { background: var(--surface-sunken); }
.v2p-more:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* поповер-меню */
.v2p-menu {
  position: fixed; z-index: 65; width: 236px; max-width: calc(100vw - 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-overlay); overflow: hidden;
  animation: v2p-pop var(--dur-fast) var(--ease-out) both; transform-origin: top right;
}
@keyframes v2p-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.v2p-menu__cap {
  padding: 10px 14px 8px; font-size: 12px; line-height: 16px; color: var(--text-faint);
  border-bottom: 1px solid var(--surface-sunken); display: flex; flex-direction: column; gap: 2px;
}
.v2p-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px;
  border: 0; background: none; font: inherit; font-size: 15px; font-weight: var(--weight-medium);
  color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.v2p-menu__item + .v2p-menu__item { border-top: 1px solid var(--surface-sunken); }
.v2p-menu__item .v2p-i { width: 18px; height: 18px; }
.v2p-menu__item:active { background: var(--surface-hover); }
.v2p-menu__item:focus-visible { outline: none; background: var(--surface-hover); }
.v2p-menu__item.is-danger { color: var(--danger); }
.v2p-menu__item:disabled { color: var(--text-faint); cursor: default; }
.v2p-menu__item:disabled:active { background: none; }

/* кнопки */
.v2p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--radius-md); box-sizing: border-box;
  font: inherit; font-size: 15px; font-weight: var(--weight-medium); line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.v2p-btn .v2p-i { width: 18px; height: 18px; stroke-width: 2; }
.v2p-btn:active:not(:disabled) { transform: scale(.98); }
.v2p-btn:disabled { opacity: .6; cursor: default; }
.v2p-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.v2p-btn--wide { width: 100%; }
.v2p-btn--xl { min-height: 50px; border-radius: var(--radius-md); }
.v2p-btn--primary { background: var(--accent); color: var(--text-on-accent); font-size: 16px; font-weight: var(--weight-semibold); }
.v2p-btn--outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.v2p-btn--outline:active:not(:disabled) { background: var(--surface-hover); }
.v2p-btn--soft { background: var(--surface-sunken); color: var(--text); min-height: 44px; padding: 0 16px; }
.v2p-btn--danger { background: var(--danger); color: var(--text-on-accent); font-weight: var(--weight-semibold); }
.v2p-btn.is-loading { opacity: .7; pointer-events: none; }
.v2p-grow { flex: 1 1 auto; }
.v2p-textbtn {
  border: 0; background: none; padding: 6px 4px; font: inherit; font-size: 13px; font-weight: var(--weight-medium);
  color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
  min-height: 44px;
}
.v2p-danger-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px;
  border: 0; background: none; font: inherit; font-size: 15px; font-weight: var(--weight-medium);
  color: var(--danger); cursor: pointer; border-radius: var(--radius-md);
}
.v2p-danger-link .v2p-i { width: 17px; height: 17px; }
.v2p-danger-link:active { background: var(--danger-soft); }

/* ✕ / (i) — 44×44 */
.v2p-x {
  width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-md); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.v2p-x .v2p-i { width: 20px; height: 20px; stroke-width: 2; }
.v2p-x--lg .v2p-i { width: 22px; height: 22px; }
.v2p-x:active { background: var(--surface-sunken); }
.v2p-x:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* статус-чип */
.v2p-st {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: var(--weight-medium); white-space: nowrap; line-height: 1; flex: none;
}
.v2p-st__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.v2p-st--new { background: var(--st-new-bg); color: var(--st-new-fg); }
.v2p-st--new .v2p-st__dot { background: var(--col-new); }
.v2p-st--work { background: var(--st-work-bg); color: var(--st-work-fg); }
.v2p-st--work .v2p-st__dot { background: var(--col-in_progress, var(--st-work-fg)); }
.v2p-st--won { background: var(--st-won-bg); color: var(--st-won-fg); }
.v2p-st--won .v2p-st__dot { background: var(--col-won); }
.v2p-st--lost { background: var(--surface-sunken); color: var(--text-muted); }
.v2p-st--lost .v2p-st__dot { background: var(--text-faint); }

/* тег «рекомендуем» */
.v2p-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-muted); font-size: 12px; font-weight: var(--weight-medium); white-space: nowrap;
}

/* фильтр-чипы (один ряд, горизонтальный скролл) */
.v2p-chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px; padding: 4px 16px;
  overscroll-behavior-x: contain;
}
.v2p-chips::-webkit-scrollbar { display: none; }
.v2p-fchip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; flex: none;
  border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: 14px; font-weight: var(--weight-medium); color: var(--text-muted); white-space: nowrap;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.v2p-fchip__n { color: var(--warm-400); font-variant-numeric: tabular-nums; }
.v2p-fchip.is-active { background: var(--text); border-color: var(--text); color: var(--text-on-accent); }
.v2p-fchip.is-active .v2p-fchip__n { color: var(--text-on-accent); }
.v2p-fchip:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* пустое состояние */
.v2p-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 28px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.v2p-empty__ic {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.v2p-empty__ic .v2p-i { width: 20px; height: 20px; }
.v2p-empty__title { margin: 0; font-size: var(--text-headline); font-weight: var(--weight-semibold); color: var(--text); }
.v2p-empty__hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); max-width: 360px; }
.v2p-empty .v2p-btn { margin-top: 8px; }

/* ═════════════ шторки (содержимое внутри .v2-sheet) ═════════════ */
.v2p-sheet {
  display: flex; flex-direction: column; gap: 16px; padding: 0 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain; min-height: 0;
}
.v2p-sheet__head { display: flex; align-items: flex-start; gap: 10px; }
.v2p-sheet__headcol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.v2p-sheet__head .v2p-x { margin: 0 -10px 0 0; }
.v2p-sheet__title { font-size: 20px; line-height: 26px; font-weight: var(--weight-semibold); color: var(--text); overflow-wrap: anywhere; }
.v2p-sheet__title--lg { font-size: var(--text-title-2); line-height: 26px; }
.v2p-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* подтверждение */
.v2p-confirm { padding-top: 6px; }
.v2p-confirm__text { margin: -6px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.v2p-confirm__actions { display: flex; gap: 10px; }
.v2p-confirm__actions .v2p-btn { flex: 1 1 0; }

/* ═════════════ Авто-правила ═════════════ */
.v2p-sigs { display: flex; flex-wrap: wrap; gap: 6px; }
.v2p-sig {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); font-size: 13px; font-weight: var(--weight-medium); color: var(--text-muted); white-space: nowrap;
}
.v2p-sig .v2p-i { width: 13px; height: 13px; stroke-width: 2.2; color: var(--why-icon); }
.v2p-rules .v2p-rule-new { margin-top: 6px; }

.v2p-rule-form { gap: 20px; }
.v2p-field { display: flex; flex-direction: column; gap: 8px; }
.v2p-field__row { display: flex; align-items: baseline; }
.v2p-field__row .v2p-label { flex: 1 1 auto; }
.v2p-field__aside { font-size: 13px; color: var(--text-faint); }
.v2p-select-wrap { position: relative; }
.v2p-select {
  width: 100%; height: 48px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 0 40px 0 14px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.v2p-select:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.v2p-select-wrap__chev { position: absolute; right: 14px; top: 16px; color: var(--text-faint); pointer-events: none; stroke-width: 2; }
.v2p-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.v2p-pick {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 15px; font-weight: var(--weight-medium);
  color: var(--text); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.v2p-pick__ic { display: inline-flex; color: var(--warm-400); }
.v2p-pick__ic .v2p-i { width: 14px; height: 14px; stroke-width: 2; }
.v2p-pick[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--text-on-accent); }
.v2p-pick[aria-pressed="true"] .v2p-pick__ic { color: var(--text-on-accent); }
.v2p-pick[aria-pressed="true"] .v2p-pick__ic .v2p-i { stroke-width: 2.6; }
.v2p-pick:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.v2p-info {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--surface-2); font-size: 13px; line-height: 18px; color: var(--text-muted);
}
.v2p-info .v2p-i { color: var(--text-faint); margin-top: 1px; }

/* ═════════════ Подписка (полноэкранная задача) ═════════════ */
.v2p-billing { gap: 0; padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
.v2p-topbar { display: flex; align-items: center; padding-top: calc(12px + env(safe-area-inset-top, 0px)); margin-left: -8px; }
.v2p-billing .v2p-head { padding-top: 4px; margin-bottom: 18px; }
.v2p-billing .v2p-card + .v2p-card { margin-top: 12px; }
.v2p-bill__top { display: flex; align-items: center; gap: 10px; }
.v2p-bill__date { margin-left: auto; font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.v2p-bill__big { font-size: var(--text-title-2); line-height: 26px; font-weight: var(--weight-semibold); color: var(--text); letter-spacing: -0.01em; }
.v2p-bill__ok { margin: 0; font-size: 14px; color: var(--st-won-fg); }
.v2p-usage { display: flex; flex-direction: column; gap: 6px; }
.v2p-usage__top { display: flex; font-size: 14px; }
.v2p-usage__cap { flex: 1 1 auto; color: var(--text-muted); }
.v2p-usage__val { font-weight: var(--weight-semibold); color: var(--text); }
.v2p-usage__track { height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.v2p-usage__fill { height: 100%; background: var(--text); border-radius: 3px; }
.v2p-kpis { display: flex; border-top: 1px solid var(--surface-sunken); padding-top: 12px; margin: 0 -12px; }
.v2p-kpi { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.v2p-kpi + .v2p-kpi { border-left: 1px solid var(--surface-sunken); }
.v2p-kpi__val { font-size: 20px; font-weight: var(--weight-bold); letter-spacing: -0.02em; color: var(--text); }
.v2p-kpi__cap { font-size: 12px; color: var(--text-muted); }

.v2p-plan { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.v2p-plan__head { display: flex; align-items: flex-start; gap: 10px; }
.v2p-plan__left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2p-plan__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2p-plan__name { font-size: var(--text-headline); font-weight: var(--weight-semibold); color: var(--text); }
.v2p-plan__price { font-size: 14px; color: var(--text-muted); }
.v2p-plan__price-col { text-align: right; display: flex; flex-direction: column; gap: 2px; flex: none; }
.v2p-plan__sum { font-size: 20px; font-weight: var(--weight-bold); letter-spacing: -0.01em; }
.v2p-plan__per { font-size: 12px; color: var(--text-faint); }
.v2p-bens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2p-ben { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 21px; color: var(--text); }
.v2p-ben .v2p-i { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.2; color: var(--col-won, var(--success)); }
.v2p-foot-note { margin: 12px 0 0; padding: 0 4px; font-size: 13px; line-height: 18px; color: var(--text-faint); }

.v2p-paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--border);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.v2p-paybar > * { width: 100%; max-width: 608px; }
.v2p-paybar__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-faint); text-align: center; }
.v2p-paybar__note .v2p-i { width: 13px; height: 13px; stroke-width: 2; }
/* Срез 55A: ссылка на оферту на панели оплаты (акцепт оплатой, п. 3.2 оферты). */
.v2p-paybar__legal { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-faint); text-align: center; }
.v2p-paybar__legal a { color: inherit; text-decoration: underline; }

/* ═════════════ paywall доски ═════════════ */
.v2p-pw { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.v2p-pw__card { align-items: center; text-align: center; padding: 24px 20px 20px; box-shadow: var(--shadow-card); }
.v2p-pw__ic {
  width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.v2p-pw__ic .v2p-i { width: 24px; height: 24px; }
.v2p-pw__text { display: flex; flex-direction: column; gap: 6px; }
.v2p-pw__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: var(--weight-semibold); color: var(--text); }
.v2p-pw__hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.v2p-pw__actions { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.v2p-pw__crm { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 6px; font-size: 13px; color: var(--text-faint); }
.v2p-ghost {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.v2p-ghost__row { display: flex; gap: 12px; align-items: flex-start; }
.v2p-ghost__col { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.v2p-ghost__ring { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-sunken); flex: none; display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.v2p-ghost__ring .v2p-i { width: 15px; height: 15px; }
.v2p-pw__ghosts { display: flex; flex-direction: column; gap: 10px; }
.v2p-pw__ghost-cap { margin: 6px 0 0; padding: 0 4px; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.v2p-pw__ghost-cap .v2p-i { width: 14px; height: 14px; flex: none; }
.v2p-ghost__chips { display: flex; gap: 8px; }
.v2p-ghost__bar { height: 12px; border-radius: 6px; background: var(--surface-sunken); }
.v2p-ghost__bar--lg { height: 14px; }
.v2p-ghost__bar--why { background: var(--why-bg); }
.v2p-ghost__bar--chip { height: 22px; border-radius: 11px; }

/* ═════════════ Заявки с формы ═════════════ */
.v2p-intake { gap: 16px; }
.v2p-intake .v2p-head__row .v2p-x { margin-right: -10px; color: var(--text-faint); }
.v2p-li + .v2p-li { border-top: 1px solid var(--surface-sunken); }
.v2p-irow {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; box-sizing: border-box;
  border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.v2p-irow:active { background: var(--surface-hover); }
.v2p-irow:focus-visible { outline: none; box-shadow: inset var(--shadow-focus); }
.v2p-irow--skel { cursor: default; }
.v2p-irow--skel + .v2p-irow--skel { border-top: 1px solid var(--surface-sunken); }
.v2p-av {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: var(--weight-semibold); flex: none;
}
.v2p-irow__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2p-intake__name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.v2p-intake__nm { font-size: 15px; font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2p-consent-ic { display: inline-flex; color: var(--col-won, var(--success)); flex: none; }
.v2p-consent-ic .v2p-i { width: 15px; height: 15px; stroke-width: 2.2; }
.v2p-irow__req { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2p-irow__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.v2p-irow__date { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.v2p-intake__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2p-phone {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.v2p-phone__num { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2p-kvs { display: flex; flex-direction: column; }
.v2p-kv { display: flex; gap: 12px; font-size: 15px; line-height: 21px; padding: 10px 0; }
.v2p-kv + .v2p-kv { border-top: 1px solid var(--surface-sunken); }
.v2p-kv__k { width: 104px; flex: none; color: var(--text-faint); font-size: 14px; }
.v2p-kv__v { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.v2p-consent { display: flex; flex-direction: column; gap: 6px; }
.v2p-consent__bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--st-won-bg); color: var(--st-won-fg);
}
.v2p-consent__bar .v2p-i { width: 18px; height: 18px; stroke-width: 2; color: var(--col-won, var(--success)); }
.v2p-consent__bar.is-missing { background: var(--surface-sunken); color: var(--text-muted); }
.v2p-consent__bar.is-missing .v2p-i { color: var(--text-faint); }
.v2p-consent__title { flex: 1 1 auto; font-size: 14px; font-weight: var(--weight-medium); }
.v2p-consent__date { font-size: 13px; font-variant-numeric: tabular-nums; }
.v2p-consent__more summary {
  cursor: pointer; font-size: 13px; color: var(--text-faint); padding: 6px 4px; list-style: none;
  text-decoration: underline; text-underline-offset: 2px;
}
.v2p-consent__more summary::-webkit-details-marker { display: none; }
.v2p-consent__p { margin: 6px 4px 0; display: flex; gap: 12px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.v2p-consent__text { margin: 8px 4px 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.v2p-intake__acts { display: flex; gap: 10px; }
.v2p-intake__acts .v2p-btn--outline { padding: 0 20px; }

/* hover — только у точных указателей */
@media (hover: hover) and (pointer: fine) {
  .v2p-more:hover, .v2p-x:hover { background: var(--surface-sunken); }
  .v2p-menu__item:hover:not(:disabled) { background: var(--surface-hover); }
  .v2p-irow:hover { background: var(--surface-hover); }
  .v2p-btn--outline:hover:not(:disabled) { background: var(--surface-hover); }
  .v2p-fchip:hover:not(.is-active), .v2p-pick:hover:not([aria-pressed="true"]) { border-color: var(--border-strong); }
}

@media (prefers-reduced-motion: reduce) {
  .v2p-menu { animation: none; }
  .v2p-sw, .v2p-sw__knob, .v2p-btn, .v2p-pick { transition: none; }
}

/* ═════════════ Тарифы (срез 53): выбор тарифа, счётчики, докупки ═════════════ */
.v2p-billing { padding-bottom: calc(230px + env(safe-area-inset-bottom, 0px)); }
.v2p-paybar[hidden] { display: none; }
@media (min-width: 900px) { .v2p-screen.v2p-billing { max-width: 960px; } }
.v2p-tf { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.v2p-tf__cap { margin: 0; font-size: var(--text-headline); font-weight: var(--weight-semibold); color: var(--text); }
.v2p-tf__lead { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.v2p-tf__controls { display: flex; flex-wrap: wrap; gap: 8px; }
.v2p-tf-lines { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.v2p-tf-lines::-webkit-scrollbar { display: none; }
.v2p-tf__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .v2p-tf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v2p-billing .v2p-tf__grid .v2p-card + .v2p-card { margin-top: 0; }
.v2p-tariff { display: flex; flex-direction: column; gap: 12px; transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.v2p-tariff--rec { border-color: var(--border-strong); }
.v2p-tariff.is-selected { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.v2p-tariff__head { display: flex; flex-direction: column; gap: 4px; }
.v2p-tariff__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2p-tariff__name { font-size: var(--text-headline); font-weight: var(--weight-semibold); color: var(--text); }
.v2p-tariff__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.v2p-tariff__sum { font-size: 22px; font-weight: var(--weight-bold); letter-spacing: -0.01em; color: var(--text); }
.v2p-tariff__per { font-size: 13px; color: var(--text-faint); }
.v2p-tariff__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.v2p-tariff__feat { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.v2p-tariff__fv { color: var(--text); font-weight: var(--weight-medium); text-align: right; }
.v2p-tariff__cta { min-height: 44px; }
.v2p-tag--quiet { background: var(--st-won-bg); color: var(--st-won-fg); }
.v2p-tf-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.v2p-tf-note--warn { color: var(--st-work-fg); background: var(--st-work-bg); padding: 8px 10px; border-radius: var(--radius-sm); }
.v2p-tf-pending { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); background: var(--surface-2); padding: 8px 10px; border-radius: var(--radius-sm); }
.v2p-tf-pending > span { flex: 1 1 auto; min-width: 0; }
.v2p-tf-meters { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.v2p-meter--warn .v2p-usage__fill, .v2p-meter--buffer .v2p-usage__fill { background: var(--st-work-fg); }
.v2p-meter--over .v2p-usage__fill { background: var(--danger); }
.v2p-meter__hint { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.v2p-tf-reset { margin: 0; font-size: 12px; color: var(--text-faint); }
.v2p-tf-renew { align-self: flex-start; min-height: 40px; padding: 0 16px; }
.v2p-paybar__sum { margin: 0; font-size: 14px; line-height: 20px; color: var(--text); text-align: center; }
.v2p-paybar__err { margin: 0; font-size: 13px; color: var(--danger); text-align: center; }
.v2p-tf-promo {
  font: inherit; font-size: 16px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-transform: uppercase;
}
.v2p-tf-promo::placeholder { text-transform: none; color: var(--text-faint); }
.v2p-paybar > .v2p-tf-cancel { align-self: center; width: auto; }
.v2p-tf-addlist { padding: 4px 16px; gap: 0; }
.v2p-addon { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.v2p-addon + .v2p-addon { border-top: 1px solid var(--surface-sunken); }
.v2p-addon__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2p-addon__name { font-size: 15px; font-weight: var(--weight-medium); color: var(--text); }
.v2p-addon__price { font-size: 13px; color: var(--text-muted); }
.v2p-addon__buy { min-height: 40px; padding: 0 14px; flex: none; }
.v2p-autotopup { display: flex; flex-direction: column; gap: 10px; }
.v2p-autotopup__row { display: flex; align-items: center; gap: 12px; }
.v2p-autotopup__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2p-autotopup__sub { font-size: 13px; line-height: 18px; color: var(--text-muted); }
.v2p-autotopup__caprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-muted); }
.v2p-autotopup__cap { font: inherit; font-size: 16px; min-height: 40px; padding: 0 10px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.v2p-tf-custom { display: flex; flex-direction: row; align-items: center; gap: 12px; margin-top: 24px; }
.v2p-tf-custom__cta { flex: none; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 480px) { .v2p-tf-custom { flex-direction: column; align-items: stretch; } }

/* Срез 53: докупка у счётчика и баннер лимита на «Сегодня» */
.v2p-meter__buy { align-self: flex-start; font-size: 13px; min-height: 32px; padding: 0; }
.v2p-lb {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; margin: 4px 0 12px;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--st-work-bg); color: var(--st-work-fg);
}
.v2p-lb--over { background: var(--danger-soft); color: var(--danger); }
.v2p-lb__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 20px; }
.v2p-lb__text strong { font-weight: var(--weight-semibold); }
.v2p-lb__text span { color: var(--text); }
.v2p-lb__acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v2p-lb__buy { min-height: 40px; padding: 0 14px; }

/* срез 54X (P6): подпись состояния автопоиска и «Новый поиск» */
.v2p-saved-state { color: var(--text-faint); }
.v2p-saved-state.is-on { color: var(--col-won, var(--success)); font-weight: var(--weight-medium); }
.v2p-saved-list { display: flex; flex-direction: column; gap: 20px; }
.v2p-saved-add.v2p-btn--primary { background: var(--text); color: var(--surface); }
.v2p-saved-add { margin-top: 24px; align-self: stretch; width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* 68K: итог сверху, «N новых» значком на строке */
.v2p-saved-sum { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.v2p-saved-sum__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2p-saved-sum__text b { font-size: var(--text-headline); font-weight: var(--weight-semibold); }
.v2p-saved-sum__text small { font-size: 13px; color: var(--text-muted); }
.v2p-saved-sum__go { margin-left: auto; flex: none; min-height: 44px; padding: 0 16px; }
.v2p-saved-badge { display: inline-block; font-size: 12px; font-weight: var(--weight-semibold); color: var(--surface); background: var(--text); border-radius: var(--radius-pill, 999px); padding: 2px 8px; }
.v2p-saved-add .v2p-i { width: 16px; height: 16px; }

/* Срез 55A: баннер «Мы обновили публичную оферту» (до подтверждения) */
.v2p-offer-list { margin: 4px 0 2px; padding-left: 18px; list-style: disc outside; }
.v2p-offer-list li { margin: 2px 0; color: var(--text); font-size: 14px; line-height: 20px; }
.v2p-offer-note { font-size: 13px; line-height: 18px; }

/* ── 68D: шторка «Тихие часы» (#/settings) ── */
.qh-sheet { display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 8px; }
.qh-sheet .sheet__title { margin: 0; }
.qh-sheet .sheet__desc { margin: 0; }
.qh-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.qh-preset { font: inherit; font-weight: var(--weight-medium); font-size: var(--text-md); min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.qh-preset.on { background: var(--text); border-color: var(--text); color: var(--surface); }
.qh-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qh-times label { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); color: var(--text-muted); }
.qh-time { font: inherit; font-size: 22px; font-weight: var(--weight-semibold); height: 52px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--text); }
.qh-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.qh-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qh-row__text b { font-size: var(--text-md); font-weight: var(--weight-semibold); }
.qh-row__text small { font-size: var(--text-sm); color: var(--text-muted); }
.qh-row .switch { margin-left: auto; flex: none; }
.qh-sheet > .btn { width: 100%; }
