/* v2-flows.css — дизайн-система v2 (docs/37), слайс «flows»: стили поверх app.css.
 * Макеты: docs/design-v2/Bot_List, Bot_Step1, Bot_Step3, Welcome_Step1, Welcome_Step2,
 * Web_Login (.dc.html). Только токены var(--…); классы v2f-* + переопределение
 * унаследованных .bots-* / .bot-* / .welcome__* / .weblogin__*. */

/* ═════════════════════════ общие примитивы ═════════════════════════ */
.v2f-head { display: flex; flex-direction: column; gap: 6px; }
.v2f-head--center { align-items: center; text-align: center; }
.v2f-h1 {
  margin: 0; font-size: 28px; line-height: 34px; font-weight: var(--weight-semibold);
  letter-spacing: -0.02em; color: var(--text);
}
.v2f-sub { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-muted); }
.v2f-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--text-faint); }
.v2f-block { display: flex; flex-direction: column; gap: 8px; }
.v2f-cap {
  display: flex; align-items: center; gap: 8px; padding: 0 4px;
  font-size: 12px; font-weight: var(--weight-semibold); letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-faint);
}
.v2f-grow { flex: 1 1 auto; min-width: 0; }

/* поле: подпись 14/500 + ввод (радиус 14, --border-strong, 16px — без зума на iOS) */
.v2f-field { display: flex; flex-direction: column; gap: 8px; }
.v2f-field__label { font-size: 14px; font-weight: var(--weight-medium); color: var(--text); }
.v2f-textarea.text-input, .v2f-input.text-input {
  border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface);
  font-size: 16px; line-height: 24px; color: var(--text);
}
.v2f-textarea.text-input { padding: 14px; resize: none; min-height: 0; }
.v2f-input.text-input { min-height: 48px; padding: 0 14px; }
.v2f-textarea.text-input:focus-visible, .v2f-input.text-input:focus-visible {
  border-color: var(--text); box-shadow: var(--shadow-focus);
}
.v2f-textarea[readonly] { background: var(--surface-sunken); color: var(--text-muted); }

/* «Можно продиктовать» — тихая кнопка с круглой плиткой микрофона */
.v2f-dict {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14px;
  font-weight: var(--weight-medium); color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; border-radius: var(--radius-md);
}
.v2f-dict__ic {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.v2f-dict__ic .icon { width: 16px; height: 16px; stroke-width: 2; }
.v2f-dict.is-recording { color: var(--text); }
.v2f-dict.is-recording .v2f-dict__ic { background: var(--text); color: var(--surface); animation: v2f-rec 1.2s ease-in-out infinite; }
@keyframes v2f-rec { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-ring); } 50% { box-shadow: 0 0 0 6px transparent; } }
.v2f-dict:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* сегмент-радио (Авто / RU / UZ): трек --surface-sunken, активный — белый */
.v2f-seg { display: flex; padding: 3px; border-radius: var(--radius-md); background: var(--surface-sunken); }
.v2f-seg__btn {
  flex: 1 1 0; min-width: 0; height: 38px; border: 0; border-radius: var(--radius-sm);
  background: none; font: inherit; font-size: 14px; font-weight: var(--weight-medium);
  color: var(--text-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.v2f-seg__btn.is-active {
  background: var(--surface); color: var(--text); font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-seg);
}
.v2f-seg__btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* прогресс сегментами с подписями: пройденные и текущий — графит */
.v2f-steps { margin: 0; padding: 0; list-style: none; display: flex; gap: 4px; }
.v2f-steps__item {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-weight: var(--weight-medium); color: var(--text-faint);
}
.v2f-steps__bar { height: 4px; border-radius: 2px; background: var(--border); transition: background var(--dur-base) var(--ease-out); }
.v2f-steps__item.is-done .v2f-steps__bar, .v2f-steps__item.is-current .v2f-steps__bar { background: var(--text); }
.v2f-steps__item.is-current { color: var(--text); }
.v2f-steps__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ✕ — круглая 40px на --surface-sunken */
.v2f-close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer;
  color: var(--text-muted); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.v2f-close .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.v2f-close:active { background: var(--border); }
.v2f-close:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* кнопки */
.btn.v2f-primary {
  min-height: 50px; border-radius: var(--radius-md); font-size: 16px; font-weight: var(--weight-semibold);
  gap: 8px; text-decoration: none;
}
.btn.v2f-primary .icon { width: 18px; height: 18px; stroke-width: 2; }
.v2f-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 16px; border-radius: var(--radius-md); font: inherit; font-size: 15px;
  font-weight: var(--weight-semibold); cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.v2f-outline, .btn.v2f-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.v2f-outline .icon { width: 18px; height: 18px; stroke-width: 2; }
.v2f-outline:active { background: var(--surface-hover); }
.v2f-outline:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (hover: hover) and (pointer: fine) { .v2f-outline:hover { background: var(--surface-hover); } }
.v2f-outline--back { flex: 0 0 112px; min-height: 50px; gap: 4px; }
.v2f-outline--square { flex: 0 0 50px; width: 50px; min-height: 50px; padding: 0; }
.v2f-outline--wide { width: 100%; }
.v2f-quiet {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 0 10px; margin-left: -10px; border: 0; background: none; border-radius: var(--radius-md);
  font: inherit; font-size: 14px; font-weight: var(--weight-medium); color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.v2f-quiet .icon { width: 16px; height: 16px; stroke-width: 2; }
.v2f-quiet:active { background: var(--surface-hover); }
.v2f-quiet:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.v2f-quiet.is-loading { opacity: .6; pointer-events: none; }
.v2f-quietlink {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  font-size: 15px; font-weight: var(--weight-medium); color: var(--text-muted); text-decoration: none;
}
.v2f-quietlink:active { color: var(--text); }

/* нижняя панель задачи: одна панель внизу, белая с блюром, над safe-area */
.v2f-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: 640px; margin: 0 auto;
  display: flex; gap: 10px; align-items: stretch;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.v2f-bar > .btn.v2f-primary:only-child, .v2f-bar > .welcome__actions:only-child { flex: 1 1 auto; }
.v2f-bar--stack { flex-direction: column; gap: 2px; }
.v2f-bar .welcome__actions { margin: 0; display: flex; }
.v2f-bar .welcome__actions > .btn { flex: 1 1 auto; }
.v2f-bar .welcome__skip { margin: 0; }
@media (min-width: 700px) {
  .v2f-bar { border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}

/* чип-пилюля 26px: статус (точка) / Telegram (иконка) */
.v2f-pill {
  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; max-width: 100%; background: var(--surface-sunken); color: var(--text-muted);
}
.v2f-pill > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.v2f-pill .icon { width: 13px; height: 13px; flex: none; stroke-width: 2; }
.v2f-pill__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor; }
.v2f-pill--won { background: var(--st-won-bg); color: var(--st-won-fg); }
.v2f-pill--work { background: var(--st-work-bg); color: var(--st-work-fg); }
.v2f-pill--lost { background: var(--st-lost-bg); color: var(--st-lost-fg); }
.v2f-pill--overdue { background: var(--st-overdue-bg); color: var(--st-overdue-fg); }
.v2f-pill--won .v2f-pill__dot { background: var(--col-won); }
.v2f-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* плитка иконки 30px (список-строка) */
.v2f-tile {
  width: 30px; height: 30px; border-radius: 8px; background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.v2f-tile .icon { width: 16px; height: 16px; stroke-width: 1.8; }
.v2f-chev { width: 16px; height: 16px; flex: none; color: var(--text-faint); stroke-width: 2; }

/* карточки и группы */
.v2f-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.v2f-grp { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }

/* янтарная плашка-предупреждение (Bot_Step3) */
.v2f-warns { display: flex; flex-direction: column; gap: 8px; }
.v2f-warn {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--why-bg); border: 1px solid var(--why-border);
}
.v2f-warn__ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--why-icon); stroke-width: 2; }
.v2f-warn__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v2f-warn__text { font-size: 14px; line-height: 20px; color: var(--text); }
.v2f-warn__act {
  align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 14px;
  font-weight: var(--weight-semibold); color: var(--st-work-fg); cursor: pointer; min-height: 28px;
}
.v2f-warn__act:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }

/* чипы-выбор (отрасль) — стиль .v2s-ind из слайса «Экраны»; здесь только раскладка */
.v2f-inds { display: flex; flex-wrap: wrap; gap: 8px; }

/* шторка правки (одно поле / параметр) */
.v2f-sheet {
  display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}
.v2f-sheet__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: var(--weight-semibold); color: var(--text); }
.v2f-sheet__inner { display: flex; flex-direction: column; gap: 12px; }
.v2f-sheet .btn.v2f-primary { width: 100%; flex: none; }

/* пустое состояние */
.v2f-empty { padding: 28px 16px; gap: 8px; }
.v2f-empty__ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 4px;
}
.v2f-empty__ic .icon { width: 22px; height: 22px; }

/* логотип suv (вариант D) */
.v2f-brand { display: inline-flex; align-items: center; gap: 10px; }
.v2f-brand__logo { display: block; flex: none; }
.v2f-brand__bg { fill: var(--text); }
.v2f-brand__drop { fill: var(--accent); }
.v2f-brand__spark { fill: var(--surface); }
.v2f-brand__name { font-size: 19px; font-weight: var(--weight-bold); letter-spacing: -0.03em; color: var(--text); }

/* ═════════════════════ Конструктор бота — список (Bot_List) ═════════════════════ */
.bots-tab.v2f-bots { max-width: 640px; gap: 18px; padding-bottom: 24px; }
.v2f-bots .bots-create { width: 100%; align-self: stretch; }
.v2f-bots .v2f-empty + .bots-create { margin-top: -4px; }
.bots-list.v2f-botlist { gap: 8px; }
.v2f-botlist .bots-swipe { border-radius: 14px; border: 1px solid var(--border); box-shadow: none; }
.v2f-botlist .bots-swipe__del.is-armed { background: var(--text); }
.bots-row.v2f-botcard {
  padding: 14px; gap: 12px; align-items: center; border: 0; border-radius: 0; box-shadow: none;
  background: var(--surface); color: var(--text); animation: none;
}
.v2f-botcard > .v2f-tile { align-self: flex-start; }
.v2f-botcard .bots-row__body { gap: 4px; }
.v2f-botcard .bots-row__name { font-size: 15px; line-height: 21px; font-weight: var(--weight-medium); color: var(--text); }
.v2f-botcard .bots-row__sub {
  font-size: 13px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v2f-botcard .bots-row__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.v2f-botcard:active { background: var(--surface-hover); }
.v2f-botcard:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ring); }

/* ═════════════════════ Конструктор бота — мастер (Bot_Step1/3) ═════════════════════ */
.bots-tab.bot-wizard.v2f-wiz { max-width: 640px; margin: 0 auto; gap: 0; padding-bottom: 110px; }
.v2f-wiz__top {
  display: flex; flex-direction: column; gap: 14px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 12px;
}
.v2f-wiz__row { display: flex; align-items: center; gap: 10px; }
.v2f-wiz__title {
  flex: 1 1 auto; min-width: 0; font-size: var(--text-headline); font-weight: var(--weight-semibold); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v2f-wiz__count { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex: none; }
.bot-wizard__body.v2f-wiz__body { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
.v2f-wiz .bot-wizard__nav { margin-top: 0; justify-content: stretch; } /* горизонталь — от .v2f-bar (0 auto), иначе на десктопе панель прилипает влево */

/* знания */
.v2f-kbstatus { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--text-muted); min-height: 0; }
.v2f-kbstatus:empty { display: none; }
.v2f-kbstatus .icon { width: 15px; height: 15px; flex: none; stroke-width: 2; }
.v2f-kbstatus.is-ok { color: var(--st-won-fg); }
.bot-kb-list.v2f-kblist { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
.v2f-kblist__row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ревью: строка «что понял бот» */
.v2f-rrow {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding: 8px 6px 8px 14px; border: 0; background: var(--surface); font: inherit; text-align: left;
  color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.v2f-rrow + .v2f-rrow { border-top: 1px solid var(--surface-sunken); }
.v2f-rrow:active { background: var(--surface-hover); }
.v2f-rrow:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ring); }
.v2f-rrow__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2f-rrow__title { font-size: 15px; font-weight: var(--weight-medium); }
.v2f-rrow__val {
  font-size: 14px; line-height: 19px; color: var(--text-faint);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.v2f-rrow__act { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.v2f-rrow__act .icon { width: 16px; height: 16px; stroke-width: 1.8; }
@media (hover: hover) and (pointer: fine) { .v2f-rrow:hover { background: var(--surface-hover); } }

.v2f-verdict { gap: 8px; }
.v2f-verdict .bot-verdict:empty { display: none; }
.v2f-verdict .bot-verdict__inner { display: flex; flex-direction: column; gap: 8px; }
.v2f-verdict .v2f-quiet { margin-top: -4px; }

/* пример/последний диалог */
.v2f-dialog { gap: 8px; }
.v2f-bubble { max-width: 78%; padding: 9px 12px; font-size: 14px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.v2f-bubble--user { align-self: flex-end; background: var(--surface-sunken); border-radius: 14px 14px 4px 14px; }
.v2f-bubble--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; }
.v2f-dialog .v2f-note { padding-top: 4px; font-size: 12px; }

/* тест-чат */
.v2f-chatcard { padding: 0; gap: 0; overflow: hidden; }
.bot-chat.v2f-chat {
  margin: 0; border: 0; border-radius: 0; background: var(--bg); min-height: 180px; max-height: 44vh;
  padding: 14px;
}
.v2f-chat .bot-msg__ava { background: var(--surface-sunken); color: var(--text-muted); }
.v2f-chat .bot-msg__ava .icon { width: 14px; height: 14px; }
.v2f-chat .bot-msg--user .bot-msg__bubble { background: var(--surface-sunken); color: var(--text); border-radius: 14px 14px 4px 14px; }
.v2f-chat .bot-msg--bot .bot-msg__bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; }
.v2f-chat .bot-msg__bubble { font-size: 14px; line-height: 20px; padding: 9px 12px; }
.v2f-chat .bot-chat__empty .icon { width: 24px; height: 24px; }
.bot-quickies.v2f-inds {
  flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 10px 14px; border-top: 1px solid var(--surface-sunken);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.bot-quickies.v2f-inds::-webkit-scrollbar { display: none; }
.bot-quickies .v2s-ind { flex: none; }
.bot-test-row.v2f-testrow { padding: 10px 14px 14px; gap: 8px; align-items: center; }
.v2f-testrow .v2f-input { flex: 1 1 auto; }
.btn.v2f-send {
  width: 48px; min-width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: var(--text); border-color: var(--text); color: var(--surface);
}
.btn.v2f-send .icon { width: 18px; height: 18px; stroke-width: 2; }

.bot-publish-gate.v2f-gate { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; }
.v2f-gate .icon { width: 16px; height: 16px; flex: none; stroke-width: 2; }
.v2f-gate.is-ok { color: var(--st-won-fg); }
.v2f-gate.is-block { color: var(--text-muted); }

/* канал Telegram */
.bot-tg.v2f-card { margin: 0; box-shadow: none; }
.v2f-card .bot-tg__head { gap: 10px; }
.v2f-card .bot-tg__title { font-size: 15px; font-weight: var(--weight-medium); }
.v2f-card .bot-tg__steps { gap: 4px; }
.v2f-card .bot-tg__steps li { font-size: 14px; color: var(--text-muted); }
.v2f-card .bot-tg__ok { color: var(--st-won-fg); font-size: 14px; gap: 8px; }
.v2f-card .bot-tg__ok .icon { width: 16px; height: 16px; }

/* пульс живого бота — нейтрально (без коралла) */
.v2f-wiz .bot-pulse { border-radius: 14px; box-shadow: none; margin: 0; }
.v2f-wiz .pulse__head { color: var(--text-faint); }

/* шаблоны скриптов продаж в шторке */
.v2f-sheet .sales-tpl { margin: 0; }

/* ═════════════════════ Первый запуск (Welcome_Step1/2) ═════════════════════ */
.welcome.v2f-welcome { max-width: 640px; margin: 0 auto; gap: 0; padding-bottom: 150px; }
.v2f-welcome__top {
  display: flex; flex-direction: column; gap: 18px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 12px;
}
.v2f-welcome__brandrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.v2f-welcome .v2f-steps__item { display: flex; }
.welcome__card.v2f-welcome__card {
  background: none; border: 0; box-shadow: none; border-radius: 0; padding: 10px 0 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; gap: 20px;
}
.v2f-welcome .welcome__title { font-size: 28px; line-height: 34px; font-weight: var(--weight-semibold); letter-spacing: -0.02em; }
.v2f-welcome .welcome__sub { font-size: 15px; line-height: 22px; }
.v2f-welcome .welcome__note { font-size: 13px; line-height: 18px; color: var(--text-faint); }

/* «Распознали»: чипы-правки */
.welcome__chips.v2f-pcs { display: flex; flex-wrap: wrap; gap: 8px; }
.v2f-pc {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%;
  padding: 0 8px 0 14px; 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); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.v2f-pc__cap { font-size: 12px; color: var(--text-faint); font-weight: var(--weight-medium); flex: none; }
.v2f-pc__val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v2f-pc__edit {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-sunken); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.v2f-pc__edit .icon { width: 13px; height: 13px; stroke-width: 2; }
.v2f-pc:active { background: var(--surface-hover); }
.v2f-pc:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.v2f-pc--static { cursor: default; padding-right: 14px; }
@media (hover: hover) and (pointer: fine) { button.v2f-pc:hover { border-color: var(--border-strong); } }

/* карточка «Ваш рынок» */
.v2f-market {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.v2f-market .v2f-cap { padding: 0; }
.welcome__market.v2f-market__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; }
.v2f-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.welcome__metric-val.v2f-kpi__val {
  font-size: 28px; line-height: 32px; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--text);
}
.welcome__metric-val.v2f-kpi__val.is-pos { color: var(--st-won-fg); }
.welcome__metric-cap.v2f-kpi__cap { font-size: 13px; line-height: 17px; color: var(--text-faint); }
.v2f-market__foot { margin: 0; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--surface-sunken); padding-top: 12px; }
.v2f-market__empty { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-muted); }
.tins-result.v2f-market { gap: 6px; }

/* финал «Готово — ищем компании» */
.v2f-welcome__done { align-items: center; text-align: center; }
.v2f-welcome__done .welcome__done-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--st-won-bg); color: var(--st-won-fg);
  display: flex; align-items: center; justify-content: center;
}
.v2f-welcome__done .welcome__done-icon .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.v2f-welcome__done .demo-leads { align-self: stretch; text-align: left; }

/* шторка правки распознанного */
.v2f-inds--wrap { max-height: 46vh; overflow-y: auto; }

/* ═════════════════════════ Веб-вход (Web_Login) ═════════════════════════ */
body.is-weblogin { background: var(--bg); }
.weblogin__card.v2f-login {
  max-width: 440px; gap: 20px; padding: 32px 36px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.v2f-login .v2f-brand__logo { width: 32px; height: 32px; }
.v2f-login .v2f-brand__name { font-size: 20px; }
.v2f-login__head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.v2f-login .weblogin__title { font-size: 24px; line-height: 30px; font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
.v2f-login .weblogin__hint { font-size: 15px; line-height: 22px; color: var(--text-muted); max-width: 34ch; }
.weblogin__steps { margin: 0; padding: 0; list-style: none; align-self: stretch; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.weblogin__step { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; color: var(--text); }
.weblogin__step-n {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface-sunken); color: var(--text);
  font-size: 13px; font-weight: var(--weight-semibold); display: flex; align-items: center; justify-content: center; flex: none;
}
.v2f-login .weblogin__qr { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: none; }
.v2f-login .weblogin__qr svg { width: 200px; height: 200px; }
.weblogin__cta { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.weblogin__cta .weblogin__open { width: 100%; }
.v2f-login .weblogin__status { font-size: 14px; color: var(--text-muted); gap: 8px; }
.v2f-login .weblogin__dot { background: var(--why-icon); }
.v2f-login .weblogin__status.is-ok .weblogin__dot { background: var(--col-won); }
.v2f-login .weblogin__status.is-ok .weblogin__status-text { color: var(--st-won-fg); }
.v2f-login .weblogin__ttl { font-size: 13px; color: var(--text-faint); }
.v2f-login .weblogin__ttl-val { color: var(--text-muted); font-weight: var(--weight-semibold); }
.v2f-login .weblogin__linkrow { border-top: 0; padding-top: 0; }
.weblogin__tools {
  align-self: stretch; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px;
  border-top: 1px solid var(--surface-sunken); padding-top: 8px;
}
.weblogin__tool {
  min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: var(--radius-md);
  font: inherit; font-size: 14px; font-weight: var(--weight-medium); color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.weblogin__tool .icon { width: 16px; height: 16px; stroke-width: 2; }
.weblogin__tool:active { background: var(--surface-hover); }
.weblogin__tool:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (hover: hover) and (pointer: fine) { .weblogin__tool:hover { background: var(--surface-hover); color: var(--text); } }
.weblogin__card--msg.v2f-login .weblogin__icon { background: var(--surface-sunken); color: var(--text-muted); border-radius: 14px; }
.weblogin__card--msg.v2f-login .btn.v2f-primary { width: 100%; }
@media (max-width: 480px) {
  .weblogin__card.v2f-login { padding: 24px 20px 18px; border-radius: var(--radius-xl); }
  .weblogin__tools { flex-wrap: nowrap; gap: 0; }
  .weblogin__tool { padding: 0 8px; font-size: 13px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .v2f-dict.is-recording .v2f-dict__ic { animation: none; }
  .v2f-steps__bar { transition: none; }
}

/* свайп «Удалить»: действие под строкой проявляется только во время свайпа (bots.js is-swiping) */
.v2f-botlist .bots-swipe:not(.is-swiping) .bots-swipe__actions { visibility: hidden; }

/* прогресс первого запуска: .welcome__step — тест-хук; гасим старую раскладку «точка + подпись» */
.v2f-steps .welcome__step { align-items: stretch; gap: 6px; color: var(--text-faint); }
.v2f-steps .welcome__step.is-done { color: var(--text-faint); }
.v2f-steps .welcome__step.is-current { color: var(--text); }
.welcome__skip a.v2f-quietlink { text-decoration: none; color: var(--text-muted); }
/* reduced-motion-фолбэк app.css красит .welcome__card в --surface !important — у v2 экран без карточки */
@media (prefers-reduced-motion: reduce) {
  .welcome__card.v2f-welcome__card { background: transparent !important; }
}
/* в шторке правки заголовок уже называет поле — подпись поля только для скринридера */
.v2f-sheet > .v2f-field > .v2f-field__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.v2f-welcome .v2f-field__label { color: var(--text-muted); font-weight: var(--weight-regular); }
