/* NetWeb · app/css/b2.css — экраны B2: «Новый человек», «Города», город, «Я еду в…», поездка, «по одному», ритмы,
   импорт, настройки, «Ещё». Только раскладка поверх tokens.css: цвета и размеры — токены, своих цветов нет. */

/* ---------- общее ---------- */
.b2-title { margin-top: 8px; }
.b2-title-md { font-size: 1.75rem; line-height: 2.125rem; margin: 6px 0 10px 1px; }
.b2-title-tight { margin-bottom: 2px; }
.b2-flexnone { flex: none !important; max-width: 70%; }
.b2-gap { margin-top: 12px; }
.b2-gap6 { margin-top: 6px; }
.b2-gap14 { margin-top: 14px; }
.b2-gap16 { margin-top: 16px; }
.b2-wrap { white-space: normal; overflow: visible; }
.b2-nowrap { white-space: nowrap; }
.b2-row16 { --nw-sep-inset: 16px; }
.b2-row--link .nw-row__title { color: var(--nw-link-ink); }
.b2-value-sm { font-size: .9375rem; }
/* короткие подписи строк настроек и ритмов переносятся, а не режутся значением справа («Где я сейчас · Киев · по поездке»
   на 360 pt); строки людей (.nw-person) остаются в одну строку */
.b2-settings .nw-row:not(.nw-person) .nw-row__title, .b2-rhythms .nw-row:not(.nw-person) .nw-row__title { white-space: normal; }
.b2-icon-muted { background: var(--nw-fill) !important; color: var(--nw-text-2) !important; }
.b2-inline-link { font-size: inherit; min-height: 0; padding: 0; vertical-align: baseline; }
.b2-version { margin-top: 18px; text-align: center; }

/* заголовок с действием справа («Города · Карта») */
.b2-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.b2-titlebar__link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 18px; min-height: var(--nw-hit); font-size: var(--nw-fs-body); }

/* ---------- «Новый человек» (кадр 3.3) ---------- */
.b2-line { position: relative; display: grid; margin-top: 2px; }
.b2-line > * { grid-area: 1 / 1; margin: 0; padding: 2px 0 4px; border: 0; box-sizing: border-box; min-width: 0; width: 100%;
  font: inherit; font-size: var(--nw-fs-callout); line-height: 1.4375rem; letter-spacing: normal; word-spacing: normal;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; tab-size: 4; text-indent: 0; }
.b2-line__mirror { color: transparent; pointer-events: none; min-height: calc(1.4375rem + 6px); }
.b2-line__input { background: transparent; color: var(--nw-text); caret-color: var(--nw-link); resize: none; overflow: hidden; height: 100%;
  -webkit-appearance: none; appearance: none; border-radius: 0; outline: none; }
.b2-line__input::placeholder { color: var(--nw-text-2); opacity: 1; }
.nw-app .b2-line__input:focus-visible { outline: none; }
.b2-add__foot { margin: 12px 0 8px; }
.b2-add__chips .nw-recog { padding: 0; gap: 0; }
.b2-recog__edit { display: inline-flex; align-items: center; gap: 5px; height: 100%; padding: 0 2px 0 9px; white-space: nowrap; position: relative; }
.b2-recog__edit::after { content: ""; position: absolute; inset: -7px 0; }
.b2-recog__x { display: grid; place-items: center; width: 26px; height: 100%; position: relative; }
.b2-recog__x::after { content: ""; position: absolute; inset: -7px -4px; }
.nw-recog.is-editing { box-shadow: inset 0 0 0 1.5px var(--nw-accent); }
.b2-add__chips .nw-recog--add { gap: 4px; padding: 0 11px 0 8px; position: relative; }
.nw-recog--add::after { content: ""; position: absolute; inset: -7px 0; }
.nw-recog--add.is-editing { outline-color: var(--nw-accent); }
.b2-add__edit { margin-top: 10px; }
.b2-edit { background: var(--nw-fill); border-radius: var(--nw-r-md); padding: 6px 12px 12px; }
.b2-edit__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font-size: var(--nw-fs-foot); line-height: var(--nw-lh-foot); color: var(--nw-text-2); font-weight: var(--nw-w-semibold); }
.b2-edit__done { min-height: var(--nw-hit); display: inline-flex; align-items: center; font-size: var(--nw-fs-sub); }
.b2-edit__input { width: 100%; box-sizing: border-box; height: var(--nw-field-h); border: 0; border-radius: var(--nw-r-sm); padding: 0 12px; margin: 0 0 8px;
  background: var(--nw-card); color: var(--nw-text); font: inherit; font-size: var(--nw-fs-callout); caret-color: var(--nw-link); -webkit-appearance: none; appearance: none; }
.nw-app .b2-edit__input:focus-visible { outline: none; }
.b2-edit .nw-chip { background: var(--nw-card); }
.b2-edit .nw-chip.is-on { background: var(--nw-accent-tint); }
.b2-edit__note { margin: 8px 0 0; }
.b2-add__dup { margin-top: 10px; }
.b2-dup, .b2-way { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
.b2-dup > span:first-child, .b2-way > span:first-child { flex: 1 1 100%; }
.b2-dup__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.b2-add__cons { margin: 10px 0 0; }
.b2-add__ways { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.b2-add__way { margin-top: 10px; }
.b2-add__hint { margin: 14px 0 0; }

/* ---------- «Города» (кадр 4.1) ---------- */
.b2-acts .nw-banner { --nw-sep-inset: 68px; }
.b2-act .nw-banner__sub { white-space: normal; }
.b2-citylist .nw-row, .b2-city { --nw-sep-inset: 16px; min-height: 58px; }
.b2-city .nw-person__top, .b2-sugg .nw-person__top { align-items: baseline; }
.b2-city .nw-hero__alt, .b2-sugg .nw-hero__alt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.b2-sugg { --nw-sep-inset: 52px; min-height: 54px; padding-top: 7px; padding-bottom: 7px; }
.b2-sugg mark { background: color-mix(in srgb, var(--nw-accent) 24%, transparent); color: var(--nw-text); border-radius: 3px; }
.b2-cities__results { margin-top: 4px; }

/* экран города */
.b2-city-page__sub { font-size: var(--nw-fs-sub); line-height: var(--nw-lh-sub); color: var(--nw-text-2); margin: 0 2px 12px; }
.b2-city-page .nw-chip-row { margin-top: 12px; }

/* ---------- «Я еду в…» (кадр 4.2) ---------- */
.b2-tripnew .nw-search-row { margin-top: 2px; }
.b2-tripnew__sugg .nw-section-head--sm { margin-top: 14px; }
.b2-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.b2-date { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px 9px; text-align: left; min-height: 56px; }
.b2-date .nw-footnote { margin: 0; }
.b2-date.is-on { box-shadow: inset 0 0 0 1.5px var(--nw-accent); }
.b2-tripnew__radius { margin-top: 10px; }
.b2-tripnew__radius .nw-segmented > * { height: 34px; }
.b2-tripnew__count { margin-top: 12px; }
.b2-count__when { color: var(--nw-text-2); }
.b2-tripnew__hint { margin-top: 6px; }
.b2-cal { margin-top: 10px; background: var(--nw-card); border-radius: var(--nw-r-lg); padding: 4px 8px 10px; }
.b2-cal__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--nw-hit); font-size: var(--nw-fs-sub); }
.b2-cal__nav { width: var(--nw-hit); height: var(--nw-hit); display: grid; place-items: center; color: var(--nw-link); border-radius: 50%; }
.b2-cal__nav:disabled { color: var(--nw-text-3); cursor: default; }
.b2-cal__title { font-size: var(--nw-fs-sub); font-weight: var(--nw-w-semibold); margin: 8px 6px 4px; }
.b2-cal__title::first-letter { text-transform: uppercase; }
.b2-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.b2-cal__wd { text-align: center; font-size: .75rem; line-height: 1.5rem; color: var(--nw-text-2); }
.b2-cal__d { height: var(--nw-hit); display: grid; place-items: center; font-size: var(--nw-fs-callout); font-variant-numeric: tabular-nums; border-radius: 0; position: relative; color: var(--nw-text); }
.b2-cal__d:disabled { color: var(--nw-text-3); cursor: default; }
.b2-cal__d.is-today { font-weight: var(--nw-w-bold); color: var(--nw-link-ink); }
.b2-cal__d.is-in { background: var(--nw-accent-tint); }
.b2-cal__d.is-from, .b2-cal__d.is-to { color: var(--nw-on-accent, #fff); font-weight: var(--nw-w-semibold); z-index: 0; }
.b2-cal__d.is-from::before, .b2-cal__d.is-to::before { content: ""; position: absolute; z-index: -1; inset: 2px; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--nw-accent-fill); }
.b2-cal__d.is-from:not(.is-one) { background: linear-gradient(90deg, transparent 50%, var(--nw-accent-tint) 50%); }
.b2-cal__d.is-to:not(.is-one) { background: linear-gradient(90deg, var(--nw-accent-tint) 50%, transparent 50%); }
.b2-cal__d.is-from.is-to { background: none; }

/* ---------- поездка (кадр 4.3) ---------- */
.b2-tripcard { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; margin-top: 4px; }
.b2-tripcard__eyebrow { margin: 0; }
.b2-tripcard__city { font-size: 1.75rem; line-height: 2.125rem; }
.b2-stamp { flex: none; color: var(--nw-accent); }
.b2-stamp text { fill: currentColor; font-family: var(--nw-font); font-weight: 700; }
.b2-stamp__ring { letter-spacing: .16em; }
.b2-trip .nw-chip-row { margin-top: 10px; }
.b2-checklist .nw-person { --nw-sep-inset: 78px; padding-left: 14px; }
.b2-checklist .nw-person > .nw-avatar { --s: 40px; }
.b2-draftwrap { display: block; }
.b2-draft { display: block; padding: 10px 12px; color: var(--nw-text); font-size: .9375rem; line-height: 1.3125rem; }
.b2-draft__label { margin: 0 0 3px; }
.b2-tone { margin: 8px 0 0; padding: 0; overflow: visible; }
.b2-trip__bday { display: flex; align-items: center; gap: 6px; margin-top: 10px; }

/* ---------- «по одному» ---------- */
.b2-run__progress { height: 4px; border-radius: 2px; background: var(--nw-fill); overflow: hidden; margin-top: 6px; }
.b2-run__progress > i { display: block; height: 100%; background: var(--nw-accent); border-radius: 2px; transition: width var(--nw-dur-fast, .2s) var(--nw-ease, ease); }
.b2-run__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 4px 10px; font-size: var(--nw-fs-sub); line-height: var(--nw-lh-sub); color: var(--nw-text-2); }
.b2-run__top b { color: var(--nw-text); font-weight: var(--nw-w-semibold); }
.b2-run__top .nw-link { display: inline-flex; align-items: center; gap: 3px; min-height: var(--nw-hit); }
.b2-run__card { padding: 14px 16px 14px; }
.b2-run__hero { display: flex; align-items: center; gap: 12px; }
.b2-run__hero .nw-avatar { margin: 2px; }
.b2-run__name { font-size: 1.375rem; line-height: 1.75rem; }
.b2-run__why { font-size: var(--nw-fs-sub); line-height: var(--nw-lh-sub); color: var(--nw-text); margin-top: 2px; }
.b2-run__label { display: block; margin: 14px 0 6px; }
.b2-run__text { display: block; width: 100%; box-sizing: border-box; min-height: 112px; border: 0; border-radius: var(--nw-r-md); padding: 10px 12px; resize: vertical;
  background: var(--nw-fill); color: var(--nw-text); font: inherit; font-size: var(--nw-fs-callout); line-height: 1.4375rem; caret-color: var(--nw-link); -webkit-appearance: none; appearance: none; }
.nw-app .b2-run__text:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--nw-link); }
.b2-run .b2-tone { margin-top: 10px; }

/* ---------- ритмы и «без вины» ---------- */
.b2-rhythms .nw-segmented { margin-top: 2px; }
.b2-rhythms .nw-segmented > * { height: 34px; }
.b2-noguilt, .b2-about { margin-top: 16px; padding: 14px 16px; }
.b2-noguilt__t { font-size: var(--nw-fs-callout); line-height: var(--nw-lh-callout); font-weight: var(--nw-w-semibold); margin-bottom: 4px; }

/* ---------- настройки и «На экран Домой» ---------- */
.b2-settings .nw-segmented { margin-top: 0; }
.b2-home { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; }
.b2-home__icon { flex: none; border-radius: 12px; }
.b2-home__ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--nw-accent-fill); color: #fff; flex: none; }
.b2-home__steps { margin-top: 10px; }
.b2-steps { list-style: none; margin: 0; padding: 4px 16px 8px; counter-reset: b2s; }
.b2-steps > li { counter-increment: b2s; position: relative; padding: 10px 0 10px 36px; display: flex; flex-direction: column; gap: 2px; font-size: var(--nw-fs-sub); line-height: var(--nw-lh-sub); }
.b2-steps > li + li { box-shadow: inset 0 .5px 0 var(--nw-sep); }
.b2-steps > li::before { content: counter(b2s); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--nw-accent-tint); color: var(--nw-accent-ink); font-size: .8125rem; font-weight: var(--nw-w-bold); }
.b2-steps b { font-weight: var(--nw-w-semibold); }
.b2-steps span { color: var(--nw-text-2); }
.b2-steps .b2-steps__url { color: var(--nw-text); font-weight: var(--nw-w-medium); overflow-wrap: anywhere; }
.b2-steps__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- импорт (кадр 5.2) ---------- */
.b2-import__head .nw-eyebrow { margin-top: 2px; }
.b2-paste { padding: 10px 12px 12px; }
.b2-paste__label { display: block; margin: 2px 2px 8px; }
.b2-paste__input { display: block; width: 100%; box-sizing: border-box; min-height: 150px; border: 0; border-radius: var(--nw-r-md); padding: 10px 12px; resize: vertical;
  background: var(--nw-fill); color: var(--nw-text); font: inherit; font-size: .875rem; line-height: 1.25rem; white-space: pre; overflow: auto; caret-color: var(--nw-link); -webkit-appearance: none; appearance: none; }
.b2-paste__input::placeholder { color: var(--nw-text-2); white-space: normal; }
.nw-app .b2-paste__input:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--nw-link); }
.b2-import__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.b2-import__info { min-height: 1em; }
.b2-maprow .nw-row__value { max-width: 48%; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; }
.b2-maprow.is-skip .nw-row__value { color: var(--nw-text-3); }
.b2-maprow .nw-row__title { white-space: normal; }
.b2-private { color: var(--nw-text); }
.b2-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-top: 10px; color: var(--nw-text-2); }
.b2-note > .nw-ic { flex: none; margin-top: 1px; }
.b2-note b { color: var(--nw-text); }
.b2-sum { padding: 14px 16px; margin-top: 4px; }
.b2-sum__big { font-size: var(--nw-fs-title3, 1.25rem); line-height: var(--nw-lh-title3, 1.625rem); font-weight: var(--nw-w-bold); letter-spacing: -0.015em; margin-bottom: 4px; }
.b2-import .nw-segmented { margin-top: 10px; }
.b2-review { margin-top: 14px; padding: 14px 16px; touch-action: pan-y; transition: transform var(--nw-dur-fast, .2s) var(--nw-ease, ease), opacity var(--nw-dur-fast, .2s); }
.b2-review.is-skipped { opacity: .55; }
.b2-review__who { display: flex; gap: 12px; align-items: center; }
.b2-review__who .nw-avatar { margin: 0; }
.b2-review__table { display: block; margin-top: 12px; }
.b2-review__label { margin: 14px 0 6px; }
.b2-review__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 0; }
.b2-review__foot .nw-link { min-height: var(--nw-hit); display: inline-flex; align-items: center; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .b2-review, .b2-run__progress > i { transition: none; }
}
