/*
 * Кабинет владельца ПВЗ — вид N1 (как приложение Neo Cargo, утверждён 29.09.2026).
 * Цвета, шрифт, кривые и правила движения — те же, что в static/css/n1*.css:
 *   фон #262626, карточки #2f2f2f / #383838, салатовый #b2fe12, янтарный #ffbd5a;
 *   системный шрифт (SF Pro на айфоне), веса 400/600, жирного на экране не больше двух мест;
 *   сгруппированные списки, ряд цифр через тонкие разделители, один акцент на экран;
 *   никаких эффектов на нажатие и пружин с перелётом — только торможение.
 * Раскладка: телефон (нижняя панель), планшет (шире, та же панель),
 * компьютер от 1024 px (боковое меню, сетка из карточек).
 */

:root {
  --bg: #262626;
  --card: #2f2f2f;
  --card2: #383838;
  --card3: #404040;
  --hair: #4a4a4a;
  --bar: #1a1a1a;
  --text: #fff;
  --grey: #bdbdbd;
  --grey2: #8e8e8e;
  --chev: #6a6a6a;
  --lime: #b2fe12;
  --lime-2: #9ee010;
  --on-lime: #111a00;
  --amber: #ffbd5a;
  --green: #4ade80;   /* галочки верных полей, «Все данные заполнены» (как --n1-green) */
  --red: #ff5f57;     /* ошибка поля */
  --r-card: 24px;
  --r-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  /* экраны и шторки N1: 420 мс, без пружины (style.css N1 :root) */
  --neo-dur: 420ms;
  --neo-ease: cubic-bezier(.42, .48, .15, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  /* нижняя панель N1: 10 сверху, 46 вкладка, снизу max(22, вырез) */
  --tabbar-h: calc(56px + max(22px, var(--safe-b)));
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
/* Документ не прокручивается (как N1): html и body неподвижны, у вкладки,
   подэкрана, входа и страницы по ссылке — свой элемент прокрутки. */
/* Как приложение (Тим 04.11): без приближения двойным тапом. Нулевая
   специфичность: свои touch-action у карты (maplibre) и графика сильнее. */
* { touch-action: manipulation; }
html { height: 100%; overflow: hidden; overscroll-behavior: none; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: var(--bg); color: var(--text);
  font: 400 15px/20px var(--font); letter-spacing: -.2px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#app { height: 100%; }
/* Долгое нажатие как в приложении (N1 style.css): текст не выделяется, меню
   «копировать / открыть картинку» не всплывает. Исключения — то, что люди
   копируют: поля ввода и класс .copyable (реквизиты БИН/ИИН, ИИК, БИК, номера
   договоров и актов, код пункта, телефон). Экранам: числа, которые копируют,
   метить .copyable. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"], .copyable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg { -webkit-user-drag: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg.i { width: 24px; height: 24px; flex: none; display: block; fill: currentColor; }
svg.i.s16 { width: 16px; height: 16px; }
svg.i.s20 { width: 20px; height: 20px; }
svg.i.s28 { width: 28px; height: 28px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.cur { color: var(--grey2); font-weight: 400; }
.muted { color: var(--grey2); }
.grey { color: var(--grey); }
.lime { color: var(--lime); }
.amber { color: var(--amber); }
.t-c.amber, .t-g.amber { color: var(--amber); }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── текст: 30 / 22 / 17 / 15 / 13 (как в N1) ─────────────────────────── */
.t-h1 { margin: 0; font: 700 30px/36px var(--font); letter-spacing: -.5px; }
.t-h2 { margin: 0; font: 700 22px/28px var(--font); letter-spacing: -.4px; }
.t-t { font: 600 17px/22px var(--font); letter-spacing: -.4px; }
.t-b { font: 400 17px/22px var(--font); letter-spacing: -.43px; }
.t-g { font: 400 15px/20px var(--font); letter-spacing: -.23px; color: var(--grey); }
.t-c { font: 400 13px/18px var(--font); letter-spacing: -.08px; color: var(--grey2); }

/* ── оболочка (o16: неподвижная, как N1) ─────────────────────────────────
   .app во весь экран, .main — место вкладок и подэкранов. У вкладки свой
   элемент прокрутки .tab-content (js/shell.js): неактивные вкладки остаются
   в странице невидимыми, со своей прокруткой. Подэкраны — слои .stk поверх
   (js/stack.js). Лестница слоёв: содержимое вкладки и её шапки 5–6, нижняя
   панель 20, полоса под часами 25, затемнение под подэкраном 29, подэкраны
   30+, шторки 40+, окна 50, тост 60. */
.app { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }
.side { display: none; }
.main { position: absolute; inset: 0; overflow: hidden; }
.tab-content {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabbar-h) + 24px);
  transition: transform var(--neo-dur) var(--neo-ease);
}
/* Вкладка без «потянуть вниз» (Профиль, Договор): родную резинку выключаем —
   на айфоне она тянула вниз и прилипшую шапку (Тим 04.11: «шапки не должны
   тянуться»). У вкладок с обновлением резинку под шапкой ведёт ptr.js. */
.tab-content:not(:has(> neo-ptr)) { overscroll-behavior-y: none; }
/* Подэкран без своей шапки (анкета пункта, «Данные для договора»): его шапка
   .fill-h прилипает внутри прокрутки — без резинки, иначе тянется и она. */
.stk-bare > .stk-body { overscroll-behavior-y: none; }
.tab-content.is-off { visibility: hidden; }
/* Полос прокрутки на телефоне и планшете нет (как N1, style.css «Global
   Scrollbar Hide»). На компьютере у области содержимого своя тонкая полоса. */
@media (max-width: 1023.98px) {
  .tab-content, .stk-body, .sheet .sh-b, .login, .link-app { scrollbar-width: none; }
  .tab-content::-webkit-scrollbar, .stk-body::-webkit-scrollbar, .sheet .sh-b::-webkit-scrollbar,
  .login::-webkit-scrollbar, .link-app::-webkit-scrollbar { display: none; }
}
/* вкладки только проявляются, 160 мс, без сдвига: transform — у стопки */
.tab-in { animation: tabIn 160ms ease-out; }
@keyframes tabIn { from { opacity: 0; } to { opacity: 1; } }
.tab-content > .screen { display: flex; flex-direction: column; }
.wrap { padding: 0 calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l)); }

/* Полоса под часами (режим «на экран Домой»): цвет фона высотой выреза и под
   ней спад 12 px — прокрученное уходит под часы мягко. В браузере высота 0. */
body::before { content: ""; position: fixed; z-index: 25; left: 0; right: 0; top: 0; height: calc(var(--safe-t) + min(12px, var(--safe-t) * 100)); background: linear-gradient(var(--bg) var(--safe-t), rgba(38, 38, 38, 0)); pointer-events: none; }

.top { min-height: 56px; padding: 0 calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .logo { height: 26px; width: auto; display: block; }
.desk-only, .desk-ttl { display: none !important; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions:empty { display: none; }
/* Шапка вкладки на телефоне — одна строка (Тим, 04.11.2026): логотип слева,
   заголовок экрана справа; крупный заголовок .head под ней скрыт. Когда список
   прокручен, мягкий край — под самой шапкой. На компьютере шапки нет (ниже). */
.top-ttl { min-width: 0; margin-left: auto; font: 700 20px/24px var(--font); letter-spacing: -.45px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top.has-ttl .top-ttl + .top-actions { margin-left: -4px; }
@media (max-width: 1023.98px) {
  .screen > .top.has-ttl ~ .head { display: none; }
  .tab-content > .screen > .top.has-ttl::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(var(--bg), rgba(38, 38, 38, 0)); opacity: 0; transition: opacity .22s ease; pointer-events: none; }
  .tab-content.is-scrolled > .screen > .top.has-ttl::after { opacity: 1; }
}
/* только на телефоне и планшете (на компьютере то же есть в боковом меню) */
@media (min-width: 1024px) {
  .mob-only { display: none !important; }
}
.head { padding: 4px calc(16px + var(--safe-r)) 12px calc(16px + var(--safe-l)); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head .sub { margin-top: 4px; }

/* Шапка и крупный заголовок вкладки неподвижны (правило Тима): прилипают на
   своём месте, под ними подложка цвета фона от самого верха экрана; когда под
   шапкой есть прокрученное — мягкий край 18 px (как n1-ptr.css N1).
   Баннер архива — под заголовком, а не между шапкой и заголовком. */
.tab-content > .screen > .top { position: sticky; top: 0; z-index: 6; min-height: calc(56px + var(--safe-t)); padding-top: var(--safe-t); background: var(--bg); }
.tab-content > .screen > .head { position: sticky; top: calc(var(--safe-t) + 56px); z-index: 5; background: var(--bg); }
.tab-content > .screen > .head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(var(--bg), rgba(38, 38, 38, 0)); opacity: 0; transition: opacity .22s ease; pointer-events: none; }
.tab-content.is-scrolled > .screen > .head::after { opacity: 1; }
/* В покое под заголовком ничего нет: подложка прозрачная, и 3D главной
   карточки, которая выходит за её верх (приём N1), не срезается. Подложка
   есть, когда список прокручен и когда тянут «обновить» (знак выходит из-под
   заголовка, js/ptr.js). */
.tab-content:not(.is-scrolled) > .screen > .head { background: transparent; }
.tab-content > neo-ptr.n1ptr:is(.is-pull, .is-armed, .is-busy, .is-done, .is-anim) ~ .screen > .head { background: var(--bg); }
.tab-content > .screen > .arch-wrap { order: 1; }
.tab-content > .screen > .head ~ * { order: 2; }

/* ── стопка подэкранов (js/stack.js) ─────────────────────────────────────
   Подэкран въезжает справа за 420 мс, вкладка с нижней панелью уезжает на
   треть влево и темнеет на .10. Пока экран ведут пальцем — без переходов. */
.stk-dim { position: absolute; inset: 0; z-index: 29; background: #000; opacity: 0; pointer-events: none; transition: opacity var(--neo-dur) var(--neo-ease); }
.app.stk-on .stk-dim { opacity: .1; }
.app.stk-on > .main > .tab-content, .app.stk-on > .tabbar { transform: translate3d(-33.333%, 0, 0); }
.stk { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg); transform: translate3d(0, 0, 0); transition: transform var(--neo-dur) var(--neo-ease); box-shadow: -16px 0 36px rgba(0, 0, 0, .3); }
.stk.enter, .stk.leave { transform: translate3d(100%, 0, 0); }
.stk.under { transform: translate3d(-33.333%, 0, 0); }
.app.stk-drag .stk, .app.stk-drag > .main > .tab-content, .app.stk-drag > .tabbar, .app.stk-drag .stk-dim,
.app.stk-instant .stk, .app.stk-instant > .main > .tab-content, .app.stk-instant > .tabbar, .app.stk-instant .stk-dim { transition: none !important; }
/* шапка подэкрана: 56 + вырез, «назад» 44 в точке (16; вырез+6), заголовок
   17/22 по центру — появляется, когда крупный заголовок экрана ушёл под шапку;
   волосок снизу, пока список прокручен (как .n1-hdr N1) */
.stk-h { position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: center; height: calc(56px + var(--safe-t)); padding: var(--safe-t) 68px 0; background: var(--bg); box-shadow: inset 0 -.5px 0 transparent; transition: box-shadow .2s ease; }
.stk-h.line { box-shadow: inset 0 -.5px 0 var(--hair); }
.stk-back { position: absolute; left: calc(16px + var(--safe-l)); top: calc(var(--safe-t) + 6px); width: 44px; height: 44px; border-radius: 22px; background: var(--card2); color: #fff; display: grid; place-items: center; }
.stk-back svg.i { width: 22px; height: 22px; }
.stk-t { min-width: 0; margin: 0; font: 600 17px/22px var(--font); letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s ease; }
.stk-h.has-t .stk-t { opacity: 1; }
.stk-end { position: absolute; right: calc(16px + var(--safe-r)); top: calc(var(--safe-t) + 6px); height: 44px; display: flex; align-items: center; gap: 8px; }
.stk-end:empty { display: none; }
.stk-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + var(--safe-b)); }
.stk-body > .screen { padding-top: 4px; }
/* подэкран без своей шапки (у экрана она своя, .fill-h): экран во всю высоту */
.stk-bare .stk-body { display: flex; flex-direction: column; padding-bottom: 0; scroll-padding-top: calc(56px + var(--safe-t)); }
.stk-bare .stk-body > .fill { flex: 1 0 auto; width: 100%; animation: none; }
.stk-back:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .stk, .stk-dim, .tab-content, .tabbar, .stk-h, .stk-t { transition: none !important; }
}

/* пилюли и круглые кнопки */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; background: var(--card2); color: #fff; font: 600 15px/20px var(--font); letter-spacing: -.2px; white-space: nowrap; max-width: 100%; }
.pill .ell { max-width: 46vw; }
.pill svg.i { width: 18px; height: 18px; color: var(--grey); }
.pill.on { background: #fff; color: #111; }
.pill.on svg.i { color: #111; }
.ib { width: 40px; height: 40px; border-radius: 20px; background: var(--card2); display: grid; place-items: center; color: #fff; flex: none; }
.ib svg.i { width: 20px; height: 20px; }
.filters { display: flex; gap: 8px; padding: 0 calc(16px + var(--safe-r)) 16px calc(16px + var(--safe-l)); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

/* кнопки */
.btn { max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--lime); color: var(--on-lime); font: 600 16px/20px var(--font); letter-spacing: -.3px; white-space: nowrap; text-decoration: none; }
.btn svg.i { width: 20px; height: 20px; }
.btn.dark { background: var(--card2); color: #fff; }
.btn.ghost { background: transparent; color: var(--grey); }
.btn.wide { width: 100%; height: 56px; border-radius: 28px; font: 600 17px/22px var(--font); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.is-off { opacity: .45; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

/* карточки */
.card { background: var(--card); border-radius: var(--r-card); position: relative; overflow: hidden; }
.card + .card, .card + .grp, .grp + .card, .grp + .grp, .card + .sec, .grp + .sec, .hero + .card { margin-top: 12px; }
.card-pad { padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.card-h .t-t { min-width: 0; }
.sec { display: flex; align-items: center; justify-content: space-between; padding: 24px 4px 10px; font: 600 17px/22px var(--font); letter-spacing: -.4px; }
.sec .r { font: 400 15px/20px var(--font); color: var(--grey); }

/* главная карточка: свечение и 3D, выходящее за верх рамки */
.hero { position: relative; margin-top: 30px; }
.hero > .bg { position: absolute; inset: 0; border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.hero > .bg::before { content: ""; position: absolute; right: -80px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(178, 254, 18, .30), rgba(178, 254, 18, .09) 55%, rgba(178, 254, 18, 0)); }
.hero .art { position: absolute; right: 4px; top: -34px; width: 132px; height: 132px; object-fit: contain; pointer-events: none; animation: artIn 700ms var(--ease) both; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.hero .body { position: relative; padding: 20px 20px 18px; }
.hero .label { padding-right: 120px; }
.hero .amount { margin-top: 10px; font: 700 40px/46px var(--font); letter-spacing: -1px; white-space: nowrap; }
/* Сумма стоит на уровне 3D-картинки: справа у неё отступ на ширину картинки,
   и подгонка шрифта (ui.js fit) меряет сумму вместе с ним — «4 123 505 ₸» не
   заходит под картинку, а уменьшается (Тим: 1 000 000+ не обрезаются). */
.hero .art ~ .body .amount { padding-right: 120px; }
.hero .amount .cur { font-size: .62em; letter-spacing: 0; margin-left: 2px; }
.hero .meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.hero .foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .06); }
.hero .foot button, .hero .foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--grey); text-decoration: none; }

/* изменение к прошлому периоду */
.delta { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; font: 600 13px/18px var(--font); background: var(--card2); color: #fff; }
.delta svg.i { width: 14px; height: 14px; }
.delta.down { background: rgba(255, 189, 90, .12); color: var(--amber); }
.delta.down svg.i { transform: rotate(90deg); }
.delta.flat { background: var(--card2); color: var(--grey); }

/* ряд цифр через тонкие разделители (как .s-stats в N1) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 4px; }
.stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; text-align: center; padding: 0 6px; min-width: 0; }
.stats > div + div::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--hair); }
.stats .v { font: 600 20px/26px var(--font); letter-spacing: -.4px; white-space: nowrap; max-width: 100%; }
.stats .v small { font: 400 13px/18px var(--font); color: var(--grey2); margin-left: 3px; }
.stats .t-c { white-space: normal; text-wrap: balance; }
.stats .d { font: 400 13px/18px var(--font); }

/* сгруппированные списки */
.grp { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; position: relative; color: #fff; text-decoration: none; width: 100%; text-align: left; }
.row + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; transform: scaleY(.5); transform-origin: top; background: var(--hair); }
.row.with-ic + .row.with-ic::before { left: 66px; }
.row .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--card3); display: grid; place-items: center; color: var(--grey); flex: none; }
.row .ic svg.i { width: 20px; height: 20px; }
.row .ic.lime { background: rgba(178, 254, 18, .14); color: var(--lime); }
.row .grow { flex: 1; min-width: 0; }
.row .r { text-align: right; flex: none; }
.row .r .t-b, .row .r .t-t { white-space: nowrap; }
.row .chev { color: var(--chev); flex: none; }
.row .chev svg.i { width: 18px; height: 18px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kv .t-b { text-align: right; overflow-wrap: anywhere; }
.share { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--card3); overflow: hidden; }
.share > i { display: block; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .82); transform-origin: left; animation: growX 700ms var(--ease) both; }
.share.dim > i { background: var(--grey2); }

/* статусы */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 12px; font: 600 12px/16px var(--font); letter-spacing: 0; white-space: nowrap; background: var(--card3); color: var(--grey); }
.tag svg.i { width: 14px; height: 14px; }
.tag.lime { background: rgba(178, 254, 18, .14); color: var(--lime); }
.tag.amber { background: rgba(255, 189, 90, .14); color: var(--amber); }
.tag.solid { background: var(--lime); color: var(--on-lime); }

/* сегменты (Дни / Недели / Месяцы) */
.seg { display: inline-flex; padding: 3px; border-radius: 18px; background: var(--card2); gap: 2px; }
.seg button { position: relative; height: 30px; padding: 0 12px; border-radius: 15px; font: 600 13px/18px var(--font); color: var(--grey); transition: background 200ms var(--ease-out), color 200ms var(--ease-out); }
.seg button::after { content: ""; position: absolute; inset: -6px -1px; }
.seg button.on { background: var(--card3); color: #fff; }
.seg.sm button { height: 28px; padding: 0 10px; }

/* ── графики ─────────────────────────────────────────────────────────── */
.chart { position: relative; padding: 8px 12px 12px; user-select: none; -webkit-user-select: none; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .ax { font: 400 11px/1 var(--font); fill: var(--grey2); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--hair); stroke-width: 1; shape-rendering: crispEdges; opacity: .55; }
.chart .bar { fill: var(--lime); }
.chart .bar.part { fill: rgba(178, 254, 18, .45); }
.chart .bar.dim { fill: #5a5a5a; }
.chart .bar.hi { fill: #fff; }
.chart .bar.grow { transform-box: fill-box; transform-origin: 50% 100%; animation: growY 520ms var(--ease) both; }
.chart .line { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.chart .line.draw { animation: draw 900ms var(--ease-out) both; }
.chart .area { opacity: 0; animation: fadeIn 600ms 300ms ease-out forwards; }
.chart .lag { stroke: none; }
.chart .lag-t { font: 600 11px/1 var(--font); fill: var(--grey); letter-spacing: .2px; }
.chart .guide { stroke: rgba(255, 255, 255, .5); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--bg); stroke: #fff; stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; touch-action: pan-y; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 20px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/18px var(--font); color: var(--grey); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--lime); }
.legend i.ln { height: 2px; border-radius: 1px; background: #fff; }
.legend i.hatch { background: repeating-linear-gradient(135deg, #555 0 2px, transparent 2px 5px); border: 1px solid #555; }
.tip { position: absolute; z-index: 3; min-width: 150px; padding: 10px 12px; border-radius: 14px; background: rgba(20, 20, 20, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: none; opacity: 0; transition: opacity 120ms ease-out; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tip.on { opacity: 1; }
.tip .h { font: 600 13px/18px var(--font); margin-bottom: 6px; }
.tip .l { display: flex; justify-content: space-between; gap: 16px; font: 400 13px/20px var(--font); color: var(--grey); }
.tip .l b { font-weight: 600; color: #fff; }
.tip .l i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

.insight { display: flex; align-items: center; gap: 10px; padding: 0 20px 18px; }
.insight .t-g { min-width: 0; }
.insight b { color: #fff; font-weight: 600; }

/* ── нижняя панель (телефон, планшет), как N1 (n1.css, n1-tabbar.js) ──────
   Сплошная полоса #1a1a1a с волоском сверху, над ней мягкое затемнение 56 px.
   Отступы 10 / max(22, вырез), подпись 10/12. Над активной вкладкой одна
   общая полоска .tab-ind, она переезжает (js/shell.js). */
.tabbar { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; padding: 10px var(--safe-r) max(22px, var(--safe-b)) var(--safe-l); background: var(--bar); box-shadow: inset 0 .5px 0 #3a3a3a; transition: transform var(--neo-dur) var(--neo-ease); }
.tabbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; background: linear-gradient(to top, rgba(38, 38, 38, .72), rgba(38, 38, 38, 0)); pointer-events: none; }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 46px; padding: 4px 0 0; color: var(--grey2); text-decoration: none; font: 500 10px/12px var(--font); letter-spacing: 0; }
.tabbar a svg.i { width: 26px; height: 26px; }
.tabbar a span { white-space: nowrap; }
.tabbar a.on { color: var(--lime); font-weight: 600; }
/* значки панели — контуром (как N1): у активной вкладки тот же контур, лаймовый
   и толще. Толщину символ берёт из --sw (index.html: style у <g> символа) */
.tabbar a.on svg.i { --sw: 2.15; }
.tabbar .nav-dot { top: 2px; }
.tab-ind { position: absolute; left: 0; top: 0; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime); opacity: 0; pointer-events: none; transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .tab-ind { transition: none; } }

/* ── шторки (вид N1: r28 сверху, #2f2f2f, фон .6 без размытия, 420 мс) ──
   На телефоне смахиваются вниз за верхние 80 px (ui.js). */
.sheet-bd { position: fixed; z-index: 40; inset: 0; background: rgba(0, 0, 0, .6); animation: fadeIn 260ms ease-out; }
.sheet-bd.out { opacity: 0; transition: opacity 200ms ease-in; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--card); border-radius: 28px 28px 0 0; padding-bottom: var(--safe-b); animation: sheetUp var(--neo-dur) var(--neo-ease) both; }
.sheet.out { animation: sheetDown 260ms cubic-bezier(.4, 0, 1, 1) forwards; }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #5a5a5a; margin: 8px auto 0; flex: none; }
.sheet .sh-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px 20px; flex: none; }
/* длинный заголовок («Уведомление об исключении ПВЗ») переносится, а не обрезается */
.sheet .sh-h .sh-t { min-width: 0; overflow-wrap: anywhere; }
.sheet .sh-b { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 16px 20px; flex: 1; }
.sheet .sh-f { padding: 12px 16px 16px; flex: none; border-top: 1px solid rgba(255, 255, 255, .06); }
.sheet.full { top: calc(var(--safe-t) + 12px); max-height: none; }
/* Карта на весь экран (sheet({ size: 'map' }), для карты в анкете): на
   телефоне без ручки и заголовка, крестик круглой кнопкой поверх карты слева
   сверху; тело без отступов и без прокрутки — карта занимает всё. Смахивания
   нет (палец двигает карту). На компьютере — окно по центру до 1040×720. */
.sheet.map { top: 0; left: 0; right: 0; width: auto; margin: 0; max-height: none; border-radius: 0; padding-bottom: 0; background: var(--bg); }
.sheet.map .grab, .sheet.map .sh-t { display: none; }
.sheet.map .sh-h { position: absolute; z-index: 5; top: calc(var(--safe-t) + 6px); left: calc(16px + var(--safe-l)); padding: 0; }
.sheet.map .sh-h .ib { width: 44px; height: 44px; border-radius: 22px; background: var(--card2); box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.sheet.map .sh-b { position: relative; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.sheet.map .sh-f { padding: 12px calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l)); border-top: 0; background: var(--bg); }

/* диалог подтверждения (вид .n1-dlg N1): r24 #2f2f2f, отступы 24, заголовок
   20/25, кнопки 52 столбиком; опасное действие — красный текст на #383838 */
.dlg { position: fixed; z-index: 51; left: 50%; top: 50%; width: min(340px, calc(100vw - 48px)); transform: translate(-50%, -50%); background: var(--card); border-radius: 24px; padding: 24px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: dlgIn 220ms var(--neo-ease) both; }
.dlg .t-t { font: 700 20px/25px var(--font); letter-spacing: -.4px; text-wrap: balance; }
.dlg .t-g { margin-top: 8px; text-wrap: balance; }
.dlg .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.dlg .btn.wide { height: 52px; border-radius: 26px; }
.dlg [data-no] { background: var(--card2); color: #fff; }
.dlg.danger [data-ok] { background: var(--card2); color: #ff6b6b; }
.dlg-bd { z-index: 50; }
/* окно уходит прозрачностью за 150 мс ease-in вместе с фоном (n1-motion.css) */
.dlg.out { animation: dlgOut 150ms ease-in forwards; pointer-events: none; }
.dlg-bd.out { transition-duration: 150ms; pointer-events: none; }
@keyframes dlgOut { from { opacity: 1; } to { opacity: 0; } }

/* тост (как N1): плашка #383838 r16 от 56, значок в круге 32 (успех — лайм,
   ошибка — красный), под часами; над подэкраном — под его шапкой. Вход сверху
   на 16 px за 280 мс, уход 180 мс. Касания проходят насквозь. */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-t) + 8px); transform: translate3d(-50%, -16px, 0); opacity: 0; width: max-content; max-width: min(420px, calc(100vw - 32px)); min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #383838; color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25); font: 400 15px/20px var(--font); letter-spacing: -.23px; pointer-events: none; transition: transform 180ms cubic-bezier(.4, 0, 1, 1), opacity 180ms ease-in; }
.toast.on { transform: translate3d(-50%, 0, 0); opacity: 1; transition: transform 280ms var(--neo-ease), opacity 200ms ease-out; }
.toast-ic { flex: none; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); }
.toast-ic svg.i { width: 18px; height: 18px; }
.toast-ic b { font: 700 18px/1 var(--font); }
.toast.err .toast-ic { background: #ff453a; color: #fff; }
.toast-tx { min-width: 0; }
body.stk-open .toast { top: calc(var(--safe-t) + 64px); }

/* ── выбор периода: пресеты и календарь ─────────────────────────────── */
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.presets button { height: 48px; border-radius: 16px; background: var(--card); font: 600 15px/20px var(--font); color: #fff; transition: background 200ms var(--ease-out), color 200ms var(--ease-out); }
.presets button.on { background: #fff; color: #111; }
.cal { margin-top: 16px; background: var(--card); border-radius: 20px; padding: 12px 12px 14px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.cal-h .t-t { text-transform: capitalize; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-g .wd { text-align: center; font: 600 11px/24px var(--font); color: var(--grey2); }
.cal-g button { height: 40px; font: 400 15px/20px var(--font); color: #fff; position: relative; }
.cal-g button span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 18px; }
.cal-g button.in { background: rgba(178, 254, 18, .12); }
.cal-g button.a { background: linear-gradient(90deg, transparent 50%, rgba(178, 254, 18, .12) 50%); }
.cal-g button.b { background: linear-gradient(90deg, rgba(178, 254, 18, .12) 50%, transparent 50%); }
.cal-g button.a.b { background: none; }
.cal-g button.a span, .cal-g button.b span { background: var(--lime); color: var(--on-lime); font-weight: 600; }
.cal-g button.today span { box-shadow: inset 0 0 0 1px var(--grey2); }
.cal-g button[disabled] { color: #555; cursor: default; }
.cal-g button.out { visibility: hidden; }
.range-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.chk { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; text-align: left; }
.chk + .chk { border-top: 1px solid rgba(255, 255, 255, .06); }
.chk .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #5a5a5a; display: grid; place-items: center; flex: none; transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.chk .box svg.i { width: 16px; height: 16px; color: var(--on-lime); opacity: 0; transition: opacity 160ms var(--ease-out); }
.chk.on .box { background: var(--lime); border-color: var(--lime); }
.chk.on .box svg.i { opacity: 1; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; text-align: left; }
.switch .tr { width: 51px; height: 31px; border-radius: 16px; background: #555; position: relative; flex: none; transition: background 220ms var(--ease-out); }
.switch .tr::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: transform 220ms var(--ease); }
.switch.on .tr { background: var(--lime); }
.switch.on .tr::after { transform: translateX(20px); }

/* ── поля ────────────────────────────────────────────────────────────── */
.field { display: block; }
.field + .field { margin-top: 12px; }
.field .lb { display: block; padding: 0 4px 6px; font: 400 13px/18px var(--font); color: var(--grey2); }
.inp { height: 52px; border-radius: 26px; background: var(--card2); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 20px; }
.inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: 400 17px/22px var(--font); letter-spacing: -.4px; padding: 0; }
.inp input::placeholder { color: var(--grey2); opacity: 1; }
.inp:focus-within { box-shadow: inset 0 0 0 1.5px rgba(178, 254, 18, .7); }
.inp.area { height: auto; min-height: 52px; align-items: stretch; padding: 12px 20px; border-radius: 20px; }
.inp textarea { flex: 1; width: 100%; min-height: 88px; resize: vertical; border: 0; outline: 0; background: transparent; color: #fff; font: 400 17px/22px var(--font); letter-spacing: -.4px; padding: 0; }
.inp textarea::placeholder { color: var(--grey2); opacity: 1; }
.inp .eye { width: 40px; height: 40px; display: grid; place-items: center; color: var(--grey2); border-radius: 20px; }
.form-err { min-height: 20px; margin-top: 12px; color: var(--amber); font: 400 15px/20px var(--font); text-align: center; }

/* ── вход ────────────────────────────────────────────────────────────── */
/* вход — сам себе элемент прокрутки (документ неподвижен) */
.login { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 16px) 20px calc(var(--safe-b) + 24px); position: relative; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: touch; }
.login::before { content: ""; position: absolute; left: 50%; top: -140px; width: 520px; height: 420px; margin-left: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(178, 254, 18, .22), rgba(178, 254, 18, .06) 60%, rgba(178, 254, 18, 0)); pointer-events: none; }
.login .logo { height: 28px; width: auto; display: block; position: relative; }
.login .art { width: 190px; height: 190px; object-fit: contain; display: block; margin: 28px auto 8px; position: relative; animation: artIn 800ms var(--ease) both; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.login .ttl { text-align: center; position: relative; }
.login form { width: 100%; max-width: 400px; margin: 28px auto 0; position: relative; }
.login .note { margin-top: auto; padding-top: 24px; text-align: center; position: relative; }

/* ── скелетоны и пустые состояния ───────────────────────────────────── */
.sk { background: var(--card2); border-radius: 10px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, 0)); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
.empty { text-align: center; padding: 28px 20px 32px; }
.empty img { width: 120px; height: 120px; object-fit: contain; display: block; margin: 0 auto 12px; opacity: .95; }

button.card { display: block; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.cur-amt { margin-top: 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cur-amt .num { font: 700 28px/34px var(--font); letter-spacing: -.6px; white-space: nowrap; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* шаги периода (точки прогресса) */
.dots { display: flex; gap: 4px; margin-top: 14px; }
.dots i { flex: 1; height: 6px; border-radius: 3px; background: var(--card3); }
.dots i.on { background: var(--lime); }
.dots i.lag { background: repeating-linear-gradient(135deg, #6b6b6b 0 2px, #4a4a4a 2px 5px); }
.dots.month { gap: 3px; }
.dots.month i { height: 5px; }
/* QR для eGov: белая подложка, иначе телефон не прочтёт код на тёмном фоне */
.qr-wrap { display: flex; justify-content: center; padding: 6px 0 2px; }
.qr { width: 232px; height: 232px; padding: 12px; background: #fff; border-radius: 18px; image-rendering: pixelated; }
.sign-status { color: var(--grey); }

.copy { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--grey2); flex: none; }
.copy svg.i { width: 18px; height: 18px; }

/* ── анимации (вход и торможение, без перелёта) ─────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes artIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { from { stroke-dashoffset: var(--len, 2000); } to { stroke-dashoffset: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes dlgIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes skel { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.rise { animation: rise 420ms var(--ease) both; }

/* фокус с клавиатуры: у строк внутри карточек — внутренняя рамка (внешнюю
   обрезал бы overflow:hidden группы) */
.row:focus-visible, .chk:focus-visible, .switch:focus-visible, button.card:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; border-radius: 14px; }
.pill:focus-visible, .ib:focus-visible, .btn:focus-visible, .seg button:focus-visible, .presets button:focus-visible,
.cal-g button:focus-visible, .copy:focus-visible, .tabbar a:focus-visible, .side nav a:focus-visible, .hero .foot button:focus-visible,
.hero .foot a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sheet:focus { outline: none; }
.inp input:focus-visible { outline: none; }

@media (hover: hover) and (pointer: fine) {
  .row[role="button"]:hover, a.row:hover, .chk:hover, .switch:hover { background: rgba(255, 255, 255, .03); }
  .pill:hover, .ib:hover, .btn.dark:hover { background: var(--card3); }
  .btn:not(.dark):not(.ghost):hover { background: #c3ff3d; }
  .presets button:not(.on):hover, .cal-g button:not([disabled]):not(.a):not(.b):hover span { background: var(--card3); }
  .side nav a:not(.on):hover { background: rgba(255, 255, 255, .04); color: #fff; }
  .seg button:not(.on):hover { color: #fff; }
}

/* ── планшет: шире поля, сетки по две колонки ──────────────────────── */
@media (min-width: 640px) {
  .wrap, .top, .head, .filters { padding-left: calc(24px + var(--safe-l)); padding-right: calc(24px + var(--safe-r)); }
  .hero .amount { font-size: 46px; line-height: 52px; }
  .presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { left: 50%; right: auto; width: 560px; margin-left: -280px; }
  .sheet.full { top: auto; max-height: 92vh; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pair > .card + .card { margin-top: 0; }
}

/* ── компьютер: боковое меню, сетка карточек ───────────────────────── */
@media (min-width: 1024px) {
  :root { --tabbar-h: 0px; }
  body { font-size: 15px; }
  .tabbar { display: none; }
  /* как нативное приложение: меню стоит, прокручивается только область содержимого */
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; position: relative; height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 28px 16px 20px; background: #202020; border-right: 1px solid rgba(255, 255, 255, .05); }
  .side::-webkit-scrollbar { display: none; }
  .side .logo { height: 28px; width: auto; margin: 0 12px 32px; align-self: flex-start; }
  .side nav { display: flex; flex-direction: column; gap: 4px; }
  .side nav a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; color: var(--grey); text-decoration: none; font: 600 15px/20px var(--font); position: relative; transition: background 160ms var(--ease-out), color 160ms var(--ease-out); }
  .side nav a svg.i { width: 22px; height: 22px; }
  .side nav a.on { background: var(--card); color: #fff; }
  .side nav a.on svg.i { color: var(--lime); }
  .side nav a.on::before { content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime); }
  .side .who { margin-top: auto; padding: 14px; border-radius: 16px; background: var(--card); }
  .side .who .t-t { font-size: 15px; line-height: 20px; }
  .side .who button { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--grey); font: 400 13px/18px var(--font); }
  .main { position: relative; inset: auto; min-width: 0; min-height: 0; overflow: hidden; }
  /* своя тонкая полоса прокрутки у области содержимого, место под неё не занято всегда */
  .tab-content, .stk-body { padding-bottom: 48px; scrollbar-width: thin; scrollbar-color: #4a4a4a transparent; }
  .tab-content::-webkit-scrollbar, .stk-body::-webkit-scrollbar { width: 10px; }
  .tab-content::-webkit-scrollbar-thumb, .stk-body::-webkit-scrollbar-thumb { background: #4a4a4a; border: 3px solid transparent; background-clip: padding-box; border-radius: 10px; }
  .tab-content::-webkit-scrollbar-track, .stk-body::-webkit-scrollbar-track { background: transparent; }
  /* содержимое по центру на широких экранах */
  .tab-content > .screen, .stk-body > .screen { max-width: 1440px; margin: 0 auto; }
  .top { display: none; }
  .wrap, .head, .filters { padding-left: 40px; padding-right: 40px; }
  .head { padding-top: 28px; padding-bottom: 20px; align-items: center; }
  .stk-body > .screen { padding-top: 12px; }
  .stk-body > .screen > .head { padding-top: 16px; }
  /* шапка подэкрана 72: «назад» — по левому краю содержимого (отступ --pad-x,
     на широком экране — от колонки 1440 по центру) */
  :root { --pad-x: 40px; }
  .stk-h { height: 72px; padding: 0 calc(var(--pad-x) + 64px); }
  .stk-back { top: 14px; left: max(var(--pad-x), calc(50% - 720px + var(--pad-x))); }
  .stk-end { top: 14px; right: max(var(--pad-x), calc(50% - 720px + var(--pad-x))); }
  /* прилипшая шапка раздела: подложка во всю ширину области, волосок при прокрутке */
  .tab-content > .screen > .head { top: 0; }
  .tab-content > .screen > .head::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--bg); box-shadow: inset 0 -.5px 0 transparent; transition: box-shadow .2s ease; }
  .tab-content.is-scrolled > .screen > .head::before { box-shadow: inset 0 -.5px 0 var(--hair); }
  /* в покое подложка прозрачная: 3D главной карточки не срезается (выше) */
  .tab-content:not(.is-scrolled) > .screen > .head::before { background: transparent; }
  .tab-content > neo-ptr.n1ptr:is(.is-pull, .is-armed, .is-busy, .is-done, .is-anim) ~ .screen > .head::before { background: var(--bg); }
  .tab-content > .screen > .head::after { display: none; }
  .head .t-h1 { font-size: 32px; line-height: 38px; }
  .filters { padding-bottom: 20px; overflow: visible; flex-wrap: wrap; }
  .dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .dash > * { margin-top: 0 !important; min-width: 0; }
  .c-5 { grid-column: span 5; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; }
  .c-4 { grid-column: span 4; } .c-6 { grid-column: span 6; } .c-12 { grid-column: span 12; }
  .hero { margin-top: 0; }
  .hero .art { width: 150px; height: 150px; top: -26px; right: 10px; }
  .hero .art ~ .body .amount { padding-right: 142px; }
  .hero.c-5 .body { padding-top: 26px; }
  .stack { display: flex; flex-direction: column; gap: 16px; }
  .stack > * { margin-top: 0 !important; }
  .sec { padding-top: 8px; }
  .sheet, .sheet.full { left: auto; right: 0; top: 0; bottom: 0; margin: 0; width: 520px; max-height: none; border-radius: 24px 0 0 24px; animation: drawerIn 380ms var(--ease-sheet) both; padding-bottom: 0; }
  .sheet.out { animation: drawerOut 220ms cubic-bezier(.4, 0, 1, 1) forwards; }
  .sheet .grab { display: none; }
  .sheet .sh-h { padding: 24px 20px 8px 28px; }
  .sheet .sh-b { padding: 8px 24px 28px; }
  .sheet .sh-f { padding: 16px 24px 24px; }
  .sheet.mid { top: 50%; bottom: auto; right: auto; left: 50%; width: 560px; max-height: 86vh; border-radius: 24px; transform: translate(-50%, -50%); animation: dlgIn 240ms var(--ease) both; }
  .sheet.mid.out { animation: midOut 160ms ease-in forwards; }
  .sheet.map { top: 50%; left: 50%; right: auto; bottom: auto; width: min(1040px, calc(100vw - 64px)); height: min(720px, calc(100vh - 64px)); height: min(720px, calc(100dvh - 64px)); border-radius: 24px; transform: translate(-50%, -50%); background: var(--card); animation: dlgIn 240ms var(--ease) both; }
  .sheet.map.out { animation: midOut 160ms ease-in forwards; }
  .sheet.map .sh-h { position: static; padding: 20px 20px 12px 28px; }
  .sheet.map .sh-t { display: block; }
  .sheet.map .sh-h .ib { width: 40px; height: 40px; border-radius: 20px; box-shadow: none; }
  .sheet.map .sh-b { padding: 0; }
  .sheet.map .sh-f { padding: 16px 24px 24px; background: transparent; }
  .desk-only { display: grid !important; }
  .desk-ttl { display: block !important; }
  .login { flex-direction: row; padding: 0; }
  .login .l-art { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; background: #202020; position: relative; overflow: hidden; }
  .login .l-form { width: 480px; display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; }
  .login .art { width: 340px; height: 340px; margin: 0 auto; }
  .login form { margin: 32px 0 0; }
  .login .ttl { text-align: left; }
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawerOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes midOut { from { opacity: 1; transform: translate(-50%, -50%); } to { opacity: 0; transform: translate(-50%, -50%) scale(.98); } }

@media (min-width: 1440px) {
  :root { --pad-x: 56px; }
  .wrap, .head, .filters { padding-left: 56px; padding-right: 56px; }
}

/* «Меньше движения»: всё сразу в конечном состоянии */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* вход на телефоне: форма тянется, подсказка внизу */
@media (max-width: 1023px) {
  .login .l-art { position: relative; }
  .login .l-form { position: relative; display: flex; flex-direction: column; flex: 1; }
}

/* ══ Договор с Neo Cargo (ТЗ §5): вкладка, карточка на главной, экран данных ══ */

/* красная точка на вкладке «Договор»: от владельца что-то нужно */
.nav-dot { position: absolute; top: 9px; left: 50%; margin-left: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 2px var(--bar); }
.row .ic.amber-ic { background: rgba(255, 189, 90, .14); color: var(--amber); }

/* карточка на главной: заполнить данные / подписать / ждём нас */
.ccard { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 12px; margin-bottom: 12px; }
.ccard.attn { background: linear-gradient(150deg, rgba(178, 254, 18, .08), rgba(178, 254, 18, 0) 60%), var(--card); box-shadow: inset 0 0 0 1px rgba(178, 254, 18, .18); }
.ccard-art { width: 56px; height: 56px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.ccard-tx { flex: 1; min-width: 0; }
.ccard-tx .t-t { text-wrap: balance; }
.ccard-tx .t-c { margin-top: 2px; }
.ccard-btn { flex: none; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 15px; }
.ccard-ic { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--card2); color: var(--grey); display: grid; place-items: center; }
.ccard-ic svg.i { width: 20px; height: 20px; }
@media (max-width: 559px) {
  .ccard { flex-wrap: wrap; }
  .ccard-btn { flex: 1 0 100%; height: 44px; border-radius: 22px; }
}
/* подпись банка в поле счёта: на узком экране банк и БИК в две строки, иначе номер не влезает */
@media (max-width: 479px) {
  .fill-bank { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 15px; }
  .fill-bank[hidden] { display: none; }
  .fill-bank .fb-n, .fill-bank .fb-b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .fill-bank .fb-dot { display: none; }
}

/* ── экран «Данные для договора» (как «Личные данные» N1) ── */
/* Экран — подэкран (js/stack.js, слой без своей шапки) или обязательный экран
   во вкладке: шапка .fill-h прилипает к верху прокрутки и сама закрывает
   вырез, волосок снизу — пока прокручено. */
.fill { max-width: 640px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.fill-h { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; min-height: calc(56px + var(--safe-t)); padding: var(--safe-t) calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l)); background: var(--bg); box-shadow: inset 0 -.5px 0 transparent; transition: box-shadow .2s ease; }
.is-scrolled .fill-h { box-shadow: inset 0 -.5px 0 var(--hair); }
.fill-back { width: 44px; height: 44px; border-radius: 22px; background: var(--card2); color: #fff; display: grid; place-items: center; }
.fill-back svg.i { width: 22px; height: 22px; }
.fill-title { margin: 0; text-align: center; font: 600 17px/22px var(--font); letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fill-b { flex: 1; padding: 8px calc(16px + var(--safe-r)) 24px calc(16px + var(--safe-l)); }
.fill-art { display: block; width: 96px; height: 96px; margin: 4px auto 12px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.fill-intro { margin: 0 8px 20px; text-align: center; font: 400 15px/20px var(--font); letter-spacing: -.23px; color: var(--grey); text-wrap: balance; }

/* плашка итога */
.fill-sum-box { margin: 0 0 20px; }
.fill-sum-box:empty { display: none; }
.fill-sum { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: 20px; background: var(--card); }
.fill-sum.ok { background: rgba(74, 222, 128, .1); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .24); }
.fill-sum-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--green); }
.fill-sum-ic svg.i { width: 32px; height: 32px; }
.fill-sum-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fill-sum-t { font: 600 17px/22px var(--font); letter-spacing: -.4px; color: #fff; }
.fill-sum-s { font: 400 15px/20px var(--font); letter-spacing: -.23px; color: var(--grey); flex: none; }

/* поля: подпись 15 серым, поле 52 r16, фокус — салатовая обводка, ошибка — красная */
.fill-f + .fill-f, .fill-gen + .fill-f { margin-top: 20px; }
.fill-lbl { display: block; margin: 0 4px 8px; font: 400 15px/20px var(--font); letter-spacing: -.23px; color: var(--grey); }
.fill-box { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px 0 16px; border-radius: 16px; background: var(--card2); cursor: text; transition: box-shadow .15s ease; }
.fill-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--lime); }
.fill-box.err, .fill-box.err:focus-within { box-shadow: inset 0 0 0 1.5px var(--red); }
.fill-box.warn { box-shadow: inset 0 0 0 1.5px var(--amber); }
.fill-box.ro { cursor: default; }
.fill-box.ro .fill-input { color: var(--grey); }
.fill-input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; outline: 0; color: #fff; font: 400 17px/22px var(--font); letter-spacing: -.43px; caret-color: var(--lime); -webkit-appearance: none; appearance: none; }
.fill-input::placeholder { color: var(--grey2); opacity: 1; }
.fill-input:focus-visible { outline: none; }
.fill-check { flex: none; width: 24px; display: flex; justify-content: center; color: var(--green); opacity: 0; transform: scale(.7); transition: opacity .2s cubic-bezier(.2, 0, 0, 1), transform .2s cubic-bezier(.2, 0, 0, 1); }
.fill-check.show { opacity: 1; transform: none; }
.fill-check svg.i { width: 22px; height: 22px; }
.fill-bank { flex: none; max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/18px var(--font); color: var(--grey); }
.fill-hint { margin: 8px 4px 0; font: 400 13px/18px var(--font); letter-spacing: -.08px; color: var(--grey2); }
.fill-hint.err { color: var(--red); }
.fill-hint.warn { color: var(--amber); }
.fill-pend { display: flex; align-items: flex-start; gap: 6px; margin: 8px 4px 0; font: 400 13px/18px var(--font); color: var(--amber); }
.fill-pend svg.i { margin-top: 1px; }
.fill-note { margin: 8px 4px 0; font: 400 13px/18px var(--font); color: var(--grey2); }
.fill-chg { margin-top: 10px; height: 44px; }
.fill-seg { display: flex; width: 100%; padding: 4px; border-radius: 16px; }
.fill-seg button { flex: 1; height: 44px; border-radius: 12px; font-size: 15px; }
.fill-seg button::after { display: none; }

/* «в лице …»: вся фраза договора, своя часть жирным, «Изменить» */
.fill-gen { margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); }
.fill-phrase { font: 400 15px/21px var(--font); letter-spacing: -.23px; color: var(--grey); overflow-wrap: anywhere; }
.fill-phrase b { color: #fff; font-weight: 600; }
.fill-link { margin-top: 6px; min-height: 32px; color: var(--lime); font: 600 15px/20px var(--font); }
.fill-f-gen { margin-top: 16px; }

/* только для чтения */
.fill-pt { margin-top: 4px; font: 400 15px/20px var(--font); letter-spacing: -.23px; color: var(--grey); overflow-wrap: anywhere; }
.fill-wa { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 4px; margin-top: 8px; color: var(--grey); text-decoration: none; font: 400 15px/20px var(--font); }
.fill-wa svg.i { color: var(--lime); }

/* «Сохранить» прижата к низу. Над клавиатурой её поднимает модуль клавиатуры
   N1 (js/vendor/n1-keyboard.js): .fill-foot — data-kb="dock", кнопка в нём
   всплывает на 12 px над клавиатурой, отступ под клавиатуру — на .fill-b
   (data-kb-pad). Свой расчёт --kb убран: подъём был бы двойным. */
.fill-foot { position: sticky; bottom: 0; z-index: 6; padding: 12px calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l)); background: var(--bg); box-shadow: inset 0 .5px 0 var(--hair); }
.fill-foot:empty { display: none; }
.fill-fail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 64px 20px; text-align: center; }
.fill-fail img { width: 112px; height: 112px; margin-bottom: 12px; object-fit: contain; }
.fill-fail .btn { margin-top: 16px; }

.first-home { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

/* шторка при входе: «Заполните данные для договора» */
.fill-ask { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 4px 8px; text-align: center; }
.fill-ask img { width: 150px; height: 150px; object-fit: contain; }
.fill-ask-btns { display: flex; flex-direction: column; gap: 8px; }

/* ── вкладка «Договор» ── */
.doc-hero .doc-state { margin-top: 8px; padding-right: 108px; font: 700 22px/28px var(--font); letter-spacing: -.4px; text-wrap: balance; }
.doc-hero .doc-line { margin-top: 6px; }
.doc-hero.ok .doc-state { color: var(--lime); }
.doc-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.doc-warn { display: flex; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255, 189, 90, .12); box-shadow: inset 0 0 0 1px rgba(255, 189, 90, .35); font: 400 15px/20px var(--font); letter-spacing: -.23px; color: #fff; margin-bottom: 4px; }
.doc-warn svg.i { flex: none; color: var(--amber); }
.doc-warn b { display: block; font-weight: 600; margin-bottom: 2px; }
.doc-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card2); color: var(--grey); font: 400 15px/20px var(--font); }
.doc-note .grow { flex: 1; min-width: 160px; }
.doc-copy { height: 40px; padding: 0 14px; font-size: 15px; background: var(--card3); }
.row.with-ic.row-al-top { align-items: flex-start; }
.row.with-ic.row-al-top > .ic { margin-top: 2px; }
.doc-pdf { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px; color: var(--grey); font: 400 15px/20px var(--font); text-align: left; }
.doc-pdf svg.i { flex: none; width: 20px; height: 20px; color: var(--lime); }
.doc-err-link { min-height: 44px; color: var(--lime); font: 600 15px/20px var(--font); }
.doc-pts { margin-top: 6px; }
.doc-pt { font: 400 15px/20px var(--font); letter-spacing: -.23px; color: var(--grey); overflow-wrap: anywhere; }
.doc-pt + .doc-pt { margin-top: 8px; }
.doc-preview { display: flex; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--card); }
.doc-preview svg.i { flex: none; color: var(--lime); }
.doc-preview .t-b { overflow-wrap: anywhere; }

/* ── страница по ссылке без пароля ── */
/* страница по ссылке — сама себе элемент прокрутки */
.link-app { height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: touch; padding-top: var(--safe-t); }
.link-top { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 calc(16px + var(--safe-r)) 0 calc(16px + var(--safe-l)); max-width: 1100px; margin: 0 auto; }
.link-top .logo { height: 26px; width: auto; display: block; flex: none; }
.link-name { font: 600 15px/20px var(--font); color: var(--grey); }
.link-main { max-width: 1100px; margin: 0 auto; padding: 0 calc(16px + var(--safe-r)) calc(24px + var(--safe-b)) calc(16px + var(--safe-l)); }
.link-fill { margin: 0 calc(-16px - var(--safe-r)) 0 calc(-16px - var(--safe-l)); }
.link-fill .fill { min-height: calc(100vh - 56px - var(--safe-t)); min-height: calc(100dvh - 56px - var(--safe-t)); animation: fillIn 320ms var(--ease) both; }
.link-fill .fill-h { top: var(--safe-t); min-height: 56px; padding-top: 0; }
.link-msg { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; margin: 0 auto; padding: 48px 8px; text-align: center; }
.link-msg img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 6px; }
.link-msg .t-g { text-wrap: balance; }
.link-msg .btn { margin-top: 10px; }
.link-msg .btn + .btn { margin-top: 0; }
.link-ok { width: 72px; height: 72px; border-radius: 36px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; margin-bottom: 8px; animation: artIn 320ms var(--ease) both; }
.link-ok svg.i { width: 34px; height: 34px; }

@keyframes fillIn { from { transform: translateX(100%); } to { transform: none; } }

.fill-back:focus-visible, .fill-link:focus-visible, .doc-pdf:focus-visible, .doc-err-link:focus-visible, .fill-wa:focus-visible, .fill-seg button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

@media (min-width: 1024px) {
  .side nav a .nav-dot { top: 50%; left: auto; right: 14px; margin: -4px 0 0; box-shadow: none; }
  .fill { min-height: 0; }
  .link-fill .fill { animation: fadeIn 200ms ease-out both; }
  .stk-bare .fill-h { min-height: 72px; }
  .ccard { margin-bottom: 16px; }
  .doc-hero .doc-state { padding-right: 130px; }
  .dash.doc-dash { grid-template-rows: auto 1fr; }
  .dash.doc-dash > .doc-side { grid-row: span 2; }
  .dash.doc-dash > .doc-others { align-self: start; }
  .link-top { padding: 12px 40px 0; }
  .link-main { padding: 0 40px 48px; }
  .link-fill { margin: 0 -40px; }
}

/* ── этап 2: архив, документы по видам, изменения в договоре, акты по ссылке ── */

/* режим «только архив»: баннер над экраном */
.arch-wrap { padding-top: 4px; }
.arch-banner { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--grey); font: 400 15px/20px var(--font); letter-spacing: -.23px; }
.arch-banner svg.i { flex: none; color: var(--grey2); margin-top: 0; }
.link-main > .arch-banner, .hub > .arch-banner { margin-top: 12px; }

/* главная: карточка расторжения (янтарная, без кнопки) */
.ccard.amb { background: linear-gradient(150deg, rgba(255, 189, 90, .10), rgba(255, 189, 90, 0) 60%), var(--card); box-shadow: inset 0 0 0 1px rgba(255, 189, 90, .28); padding-left: 16px; }
.ccard-ic.amb { background: rgba(255, 189, 90, .14); color: var(--amber); width: 48px; height: 48px; border-radius: 16px; }
.ccard.amb .t-t { color: var(--amber); }
.ccard-link { margin-top: 6px; min-height: 32px; color: var(--lime); font: 600 15px/20px var(--font); text-align: left; }

/* вкладка «Договор»: строки документов */
.doc-row .doc-row-t { overflow-wrap: anywhere; }
.doc-row .doc-row-s { margin-top: 2px; color: var(--grey); overflow-wrap: anywhere; }
.doc-row .doc-row-m { margin-top: 8px; }
.doc-row .doc-row-stale { margin-top: 6px; color: var(--grey2); }
div.row.doc-row { cursor: pointer; }
.doc-row-btn { margin-top: 10px; height: 36px; padding: 0 16px; border-radius: 18px; font-size: 15px; }
.doc-row-btn svg.i { width: 18px; height: 18px; }
.doc-stale { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--card2); color: var(--grey); font: 400 15px/20px var(--font); letter-spacing: -.23px; }
.doc-stale svg.i { flex: none; color: var(--grey2); }

/* шторка документа */
.doc-sum { margin-top: 12px; overflow-wrap: anywhere; }
.doc-receipt { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--lime); }
.doc-receipt svg.i { flex: none; }
.doc-changes { margin: 0; padding: 0 0 0 20px; font: 400 15px/21px var(--font); letter-spacing: -.23px; color: #fff; }
.doc-changes li + li { margin-top: 8px; }
.doc-changes li::marker { color: var(--grey2); }
.doc-fact { overflow-wrap: anywhere; }
.doc-foot { display: flex; flex-direction: column; gap: 8px; }
.doc-foot .doc-err-link { align-self: center; }
.doc-cancel { color: var(--grey); }
.doc-signer-hint { margin-bottom: 4px; }

/* шторки «Закрыть точку», «Расторжение», «Сменился руководитель» */
.chg-intro { padding: 0 4px 14px; }
.sec.chg-sec { padding-top: 4px; }
.chg-pts { margin-bottom: 4px; }
.chg-pt { cursor: pointer; align-items: flex-start; }
.chg-pt.off { cursor: default; }
.chg-pt.off .chg-pt-t, .chg-pt.off .t-c { color: var(--grey2); }
.chg-pt-t { display: block; font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.chg-pt .t-c { display: block; margin-top: 2px; }
.chg-chk { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chg-box { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--chev); display: grid; place-items: center; color: transparent; transition: background 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.chg-box svg.i { width: 16px; height: 16px; }
.chg-chk:checked + .chg-box { background: var(--lime); box-shadow: none; color: var(--on-lime); }
.chg-chk:disabled + .chg-box { box-shadow: inset 0 0 0 2px var(--card3); }
.chg-chk:focus-visible + .chg-box { outline: 2px solid var(--lime); outline-offset: 2px; }
.chg-all { margin: 12px 0 0; }
.chg-all .chg-link { display: block; margin-top: 6px; }
.chg-field { margin-top: 20px; }
.chg-date input[type="date"] { color-scheme: dark; min-height: 44px; }
.chg-date input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
.chg-last { margin: 10px 4px 0; font: 400 15px/20px var(--font); letter-spacing: -.23px; color: #fff; }
.chg-later { margin: 4px 4px 0; }
.chg-link { min-height: 36px; color: var(--lime); font: 600 15px/20px var(--font); text-align: left; }
.chg-early-open { display: block; margin: 8px 4px 0; }
.chg-early { margin-top: 12px; padding: 16px 12px 12px; border-radius: 20px; background: var(--card); }
.chg-early .btn { margin-top: 12px; }
/* вторичная кнопка просьбы: не вторая крупная кнопка под главной «Подготовить уведомление» */
.chg-early .btn.chg-early-go { height: 40px; padding: 0 18px; border-radius: 20px; font: 600 15px/20px var(--font); }
/* такой документ уже открыт: строка неактивна, под заголовком объяснение */
.chg-rows .row.chg-off { cursor: default; }
.chg-rows .row.chg-off .t-b { color: var(--grey); }
.chg-gap { margin-top: 16px; }
.chg-warn { margin-top: 16px; }
.btn.chg-danger { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--red); }
.chg-gender .fill-seg { margin-top: 0; }
.chg-gen { margin-top: 16px; }
.chg-rows .row .ic { color: var(--grey); }
.chg-signer-ro .fill-note { margin-top: 0; }
.fill-seg.ro button { cursor: default; }
.fill-seg.ro button:not(.on) { opacity: .5; }

/* страница по ссылке: хаб задач */
.hub { padding-top: 8px; }
.hub-title { margin-top: 16px; overflow-wrap: anywhere; }
.hub-sub { margin-top: 6px; }
.hub-tiles { margin-top: 20px; }
.hub-tile .t-b { overflow-wrap: anywhere; }
.lact-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 4px; color: var(--grey); font: 600 15px/20px var(--font); }

/* «Акты на подпись» по ссылке */
.lact-title { margin-top: 12px; }
.lact-sub { margin-top: 6px; }
.lact-list { margin-top: 16px; display: grid; gap: 12px; }
.lact-card { padding: 18px 18px 14px; }
.lact-card.disputed { background: #2a2a2a; }
.lact-h { display: flex; align-items: flex-start; gap: 12px; }
.lact-h .grow { flex: 1; min-width: 0; }
.lact-sum { margin-top: 14px; font: 700 34px/40px var(--font); letter-spacing: -.8px; white-space: nowrap; }
.lact-sum .cur { font-size: .62em; letter-spacing: 0; }
.lact-dispute { margin-top: 10px; overflow-wrap: anywhere; }
.lact-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.lact-acts .doc-err-link { align-self: center; }
.lact-empty .link-ok { margin: 0 auto 12px; }

.ccard-link:focus-visible, .chg-link:focus-visible, .lact-back:focus-visible, div.row.doc-row:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

@media (min-width: 768px) {
  .lact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub { max-width: 640px; }
}
@media (min-width: 1024px) {
  .arch-wrap { padding-top: 0; }
  .arch-banner { margin: 0 0 16px; }
  .lact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .dash.doc-dash.has-todo > .doc-side { grid-row: span 3; }
  .dash.doc-dash > .doc-todo { align-self: start; }
}
.doc-num { margin-top: 10px; overflow-wrap: anywhere; }

/* ══ Регистрация и кабинет кандидата во владельцы (ala_175, o13) ══
   Кандидат — ещё не партнёр. Экраны собраны из тех же кусков: вход (.login),
   поля «Данных для договора» (.fill-*), шторки, сгруппированные списки. */

/* вход: «Регистрация» и «Забыли пароль?» под кнопкой */
.l-links { display: flex; justify-content: center; gap: 28px; margin-top: 12px; }
.j-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #fff; font: 600 15px/20px var(--font); letter-spacing: -.23px; text-decoration: none; }
.j-link[disabled] { color: var(--grey2); font-weight: 400; cursor: default; }
.j-link .spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.note .j-link { min-height: 0; display: inline; color: var(--lime); font-weight: 400; }

/* регистрация и «Забыли пароль»: раскладка входа, шаг справа */
.login.join { overflow-x: hidden; overflow-y: auto; }
.login.join .art { width: 160px; height: 160px; margin-top: 20px; }
.j-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; min-height: 44px; margin: 4px 0 8px; position: relative; }
.j-top .t-c { grid-column: 2; grid-row: 1; text-align: center; }
.j-top .j-back { grid-column: 1; grid-row: 1; }
.j-sub { margin-top: 6px; text-wrap: balance; }
.j-nowrap { white-space: nowrap; }
.login.join form { margin-top: 24px; }
.j-form > * + * { margin-top: 20px; }
.j-form > .btn { margin-top: 8px; }
.j-acts { display: flex; flex-direction: column; align-items: center; margin-top: 8px; }
.otp-in { text-align: center; font: 600 26px/30px var(--font); letter-spacing: 10px; padding-left: 10px; }
.opt { margin-left: 6px; color: var(--grey2); font: 400 13px/18px var(--font); letter-spacing: -.08px; }
.fill-box .eye { width: 40px; height: 40px; margin-right: -8px; display: grid; place-items: center; color: var(--grey2); border-radius: 20px; flex: none; }
.fill-seg.err { box-shadow: inset 0 0 0 1.5px var(--red); }
.j-owner { margin-top: 16px; }
.j-owner span { display: block; }
.j-owner + .btn, .j-more { margin-top: 10px; }
.j-closed { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0 8px; text-align: center; }
.j-closed img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 8px; }
.j-closed .t-g { text-wrap: balance; margin: 0 0 12px; }
.j-closed .btn { width: 100%; max-width: 400px; }
.j-desk-sub { margin-top: 14px; max-width: 460px; text-wrap: balance; }

/* плашки выбора (несколько вариантов в строку с переносом) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 14px; background: var(--card2); color: #fff; font: 400 15px/20px var(--font); letter-spacing: -.23px; text-align: left; transition: background 160ms var(--ease-out), color 160ms var(--ease-out); }
.chip.on { background: #fff; color: #111; }
.chips.err .chip:not(.on) { box-shadow: inset 0 0 0 1.5px rgba(255, 95, 87, .7); }

/* согласие с условиями */
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card); cursor: pointer; }
.consent.err { box-shadow: inset 0 0 0 1.5px var(--red); }
.consent-t { font: 400 15px/20px var(--font); letter-spacing: -.23px; color: var(--grey); }
.consent-link { color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }

/* шторка «Условия сотрудничества» */
.terms-note { margin: 0 4px; }
.terms .sec { padding-top: 20px; }
.terms-l { margin: 0; padding: 0 4px 0 22px; font: 400 15px/21px var(--font); letter-spacing: -.23px; color: #fff; }
.terms-l li + li { margin-top: 8px; }
.terms-l li::marker { color: var(--grey2); }

/* статус «Нужно дополнить» */
.tag.red { background: rgba(255, 95, 87, .14); color: var(--red); }

/* «Заявки»: пусто */
.lead-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; overflow: hidden; }
.lead-empty::before { content: ""; position: absolute; left: 50%; top: -90px; width: 380px; height: 320px; margin-left: -190px; border-radius: 50%; background: radial-gradient(closest-side, rgba(178, 254, 18, .20), rgba(178, 254, 18, .05) 60%, rgba(178, 254, 18, 0)); pointer-events: none; }
.lead-empty > * { position: relative; }
.lead-empty-art { width: 168px; height: 168px; object-fit: contain; animation: artIn 700ms var(--ease) both; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.lead-empty .t-h2 { margin-top: 8px; text-wrap: balance; }
.lead-empty .t-g { margin: 8px 0 20px; max-width: 380px; text-wrap: balance; }
.lead-empty .btn { max-width: 400px; }

/* «Заявки»: список */
.sec.lead-sec { padding-top: 4px; }
.lead-app { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; cursor: pointer; }
.lead-app > .ic { margin-top: 2px; }
.lead-app > .chev { align-self: center; }
.lead-addr { overflow-wrap: anywhere; }
.lead-st { display: flex; margin-top: 8px; }
.lead-st-t { margin-top: 4px; overflow-wrap: anywhere; }
.lead-st-t.red { color: #fff; }
.lead-add { margin-top: 12px; }
.lead-limit { padding: 8px 8px 0; text-align: center; text-wrap: balance; }
.lead-side { margin-top: 24px; }
.lead-side > * + * { margin-top: 12px; }
.lead-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lead-steps li { display: flex; align-items: flex-start; gap: 12px; }
.lead-steps .n { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--card3); color: var(--grey); display: grid; place-items: center; font: 600 13px/1 var(--font); }
.lead-steps .t-c { margin-top: 2px; }

/* «Заявка отправлена» */
.lead-sent { max-width: 420px; margin: 0 auto; padding: 48px 4px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.lead-sent-art { width: 128px; height: 128px; object-fit: contain; margin-bottom: 8px; animation: artIn 700ms var(--ease) both; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45)); }
.lead-sent .t-g { margin: 0; text-wrap: balance; }
.lead-sent .btn { margin-top: 20px; }

/* карточка заявки (шторка) */
.lead-big { padding: 16px 18px 18px; border-radius: 20px; background: var(--card); }
/* 3D-картинка статуса справа вверху карточки заявки */
.lead-big.has-art { position: relative; padding-right: 84px; min-height: 84px; }
.lead-big-art { position: absolute; top: 12px; right: 12px; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); animation: artIn 600ms var(--ease) both; }
/* «Как считаются выплаты»: весы над списком */
.how-art { display: flex; justify-content: center; margin: -4px 0 14px; }
.how-art img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
/* «Помощь»: QR для eGov в углу карточки шагов, спасательный круг у менеджера */
.help-egov { position: relative; }
.help-egov .help-art { position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); pointer-events: none; }
.help-egov .help-steps > li:first-child { padding-right: 56px; }
.help-mgr { gap: 14px; }
.help-mgr > img { flex: none; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.lead-big-t { margin-top: 4px; font: 700 22px/28px var(--font); letter-spacing: -.4px; text-wrap: balance; }
.lead-big-s { margin-top: 6px; font: 400 15px/20px var(--font); letter-spacing: -.23px; color: #fff; overflow-wrap: anywhere; white-space: pre-line; }
.lead-big.amber { background: rgba(255, 189, 90, .10); box-shadow: inset 0 0 0 1px rgba(255, 189, 90, .28); }
.lead-big.amber .lead-big-t { color: var(--amber); }
.lead-big.lime { background: rgba(178, 254, 18, .08); box-shadow: inset 0 0 0 1px rgba(178, 254, 18, .22); }
.lead-big.lime .lead-big-t { color: var(--lime); }
.lead-big.red { background: rgba(255, 95, 87, .10); box-shadow: inset 0 0 0 1px rgba(255, 95, 87, .32); }
.lead-big.red .lead-big-t { color: var(--red); }
.lead-help { margin-top: 12px; }
.lead-val { overflow-wrap: anywhere; white-space: pre-line; }
.lead-when { padding: 16px 4px 4px; }
.lead-foot { display: flex; flex-direction: column; gap: 8px; }
.lead-wd { height: 48px; }

/* анкета пункта: шаги */
.lf-prog { margin: 4px 4px 14px; }
.lf-segs { display: flex; gap: 4px; margin-bottom: 8px; }
.lf-segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--hair); transition: background 240ms var(--ease-out); }
.lf-segs i.on { background: #fff; }
.lf-t { margin: 0 4px 20px; }
.lf-need { margin-bottom: 20px; }
.lf-need span { display: block; overflow-wrap: anywhere; }
.lf-form > * + * { margin-top: 20px; }
.fill-box.area { height: auto; align-items: stretch; padding: 12px 16px; }
.fill-box.area textarea { height: auto; min-height: 88px; resize: vertical; line-height: 22px; }

/* профиль кандидата */
.lead-who { display: flex; align-items: center; gap: 16px; }
.lead-ava { width: 64px; height: 64px; border-radius: 32px; background: var(--card3); display: grid; place-items: center; font: 600 22px/1 var(--font); color: var(--lime); flex: none; box-shadow: inset 0 0 0 2px rgba(178, 254, 18, .35); }

.j-link:focus-visible, .chip:focus-visible, .consent-link:focus-visible, .fill-box .eye:focus-visible, .j-back:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.chip:focus-visible { border-radius: 14px; }
@media (hover: hover) and (pointer: fine) {
  .chip:not(.on):hover { background: var(--card3); }
  .j-link:not([disabled]):hover, .consent-link:hover { opacity: .8; }
  button.lead-app:hover { background: rgba(255, 255, 255, .03); }
}

@media (max-width: 1023px) {
  /* шаги после номера: без картинки и логотипа, сверху «назад» и номер шага */
  .login.join.compact .l-art { display: none; }
  .login.join.compact { padding-top: calc(var(--safe-t) + 8px); }
}
@media (min-width: 1024px) {
  .login.join .l-art { position: sticky; top: 0; height: 100vh; height: 100dvh; align-self: flex-start; }
  .login.join .art { width: 340px; height: 340px; margin: 0 auto; }
  .login.join .l-form { padding-top: 48px; padding-bottom: 48px; }
  .j-top { display: flex; gap: 12px; margin: 0 0 16px; }
  .j-top .t-c { text-align: left; }
  .login.join .note { margin-top: 24px; }
  .lead-side { margin-top: 0; }
  .lead-side > * + * { margin-top: 0; }
  .lead-empty { padding: 32px 32px 36px; }
  .lead-sent { padding-top: 72px; }
}
.lp-legal { margin-top: 20px; }

/* ══ o14 (план набора Б14): «Что сделать» и «Мои пункты» на главной, страница пункта, «Помощь», шаги акта ══ */
.sec.top-sec { padding-top: 4px; }
.sec.home-sec { padding-top: 28px; }
.home-top [data-k="todo"] > :last-child { margin-bottom: 0; }
.ccard-ic.todo-ic { width: 48px; height: 48px; border-radius: 16px; background: rgba(178, 254, 18, .14); color: var(--lime); }
.ccard-ic.todo-ic svg.i { width: 24px; height: 24px; }
@media (max-width: 1023px) {
  /* на телефоне блоки друг под другом: второму заголовку — обычный отступ */
  .dash > section + section .sec.top-sec { padding-top: 24px; }
}

/* «Мои пункты» */
.pt-row { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.pt-row > .ic { margin-top: 2px; }
.pt-row > .chev { align-self: center; }
.pt-row .t-c + .t-c { margin-top: 2px; }
.pt-addr { overflow-wrap: anywhere; }
.pt-row.pt-off .pt-addr { color: var(--grey); }

/* страница пункта */
.pt-h1 { overflow-wrap: anywhere; text-wrap: balance; }
.pt-val { overflow-wrap: anywhere; }
.pt-sub { margin-top: 2px; }
.pt-note { padding: 8px 4px 0; }

/* шаги акта: готов → подписан вами → подписан нами → оплачен */
.step .step-n { font: 600 15px/1 var(--font); color: var(--grey); }
.row .ic.amber-ic .step-n { color: var(--amber); }
.step-chk { flex: none; color: var(--lime); text-decoration: none; }

/* «Помощь» */
.help-steps { margin-top: 0; }
.help-t { overflow-wrap: anywhere; }
a.lact-back { text-decoration: none; }

/* ══ «Қаз | Рус» (волна 7): вход, регистрация, «Забыли пароль» и кабинет кандидата ══
   Вид — как на странице для владельцев: тёмная пилюля, выбранный язык светлее.
   Кнопка 44×44 для пальца, видимая пилюля 36 px. */
.lng { position: relative; display: flex; flex: none; }
.lng::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 36px; margin-top: -18px; border-radius: 18px; background: var(--card2); pointer-events: none; }
.lng-b { position: relative; display: grid; place-items: center; min-width: 44px; height: 44px; margin: 0; padding: 0 3px; border: 0; background: none; color: var(--grey); cursor: pointer; font: 600 14px/18px var(--font); letter-spacing: -.1px; }
.lng-b > span { display: grid; place-items: center; height: 30px; min-width: 38px; padding: 0 7px; border-radius: 15px; transition: background-color 160ms ease-out, color 160ms ease-out; }
.lng-b[aria-pressed="true"] { color: #fff; cursor: default; }
.lng-b[aria-pressed="true"] > span { background: #5a5a5a; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.lng-b:focus { outline: none; }
.lng-b:focus-visible > span { outline: 2px solid var(--lime); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) {
  .lng-b[aria-pressed="false"]:hover { color: #fff; }
}
/* вход и шаги регистрации: справа вверху, на одной линии с логотипом */
.login > .l-lng { position: absolute; z-index: 3; top: calc(var(--safe-t) + 8px); right: 20px; }
@media (max-width: 1023px) {
  /* шаги без логотипа: на одной линии с «назад» и номером шага; место под переключатель */
  .login.join.compact > .l-lng { top: calc(var(--safe-t) + 12px); }
  .login.join.compact .j-top { grid-template-columns: 40px minmax(0, 1fr) 96px; }
  .login.join.compact .j-top .t-c { text-align: left; padding-left: 10px; }
  /* анкета пункта: переключатель вместо пустого места справа в шапке */
  .lead-form .fill-h { grid-template-columns: 44px minmax(0, 1fr) auto; }
}
@media (min-width: 1024px) {
  .login > .l-lng { top: 24px; right: 24px; }
  /* вход: заголовок во всю ширину колонки — опускаем форму под переключатель */
  .login:not(.join) > .l-form { padding-top: 92px; }
  /* на компьютере переключатель — в боковом меню */
  .lead-form .fill-hs .lng { display: none; }
}
/* кабинет кандидата на компьютере: над карточкой «кто вошёл» */
.side .side-lng { margin-top: auto; margin-bottom: 12px; align-self: flex-start; }
.side .side-lng + .who { margin-top: 0; }
/* анкета пункта на узком телефоне (до 359 px): в шапке места хватает только
   заголовку («Новый пункт выдачи» не влезает рядом с переключателем) — шапка
   как была, переключатель — в строке «Шаг N из 3» */
.lf-prog .lf-lng { display: none; }
@media (max-width: 359px) {
  .lead-form .fill-h { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .lead-form .fill-hs .lng { display: none; }
  .lead-form .lf-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
  .lead-form .lf-prog .lf-segs { grid-column: 1 / -1; }
  .lead-form .lf-prog .lf-lng { display: block; margin: -6px -3px -6px 0; }
}

/* ── узкий телефон (до 360 px): 3D-картинка главной карточки меньше, у суммы
   больше места (на 320 сумма 4 123 505 ₸ не заходит под картинку) ── */
@media (max-width: 360px) {
  .hero .art { width: 104px; height: 104px; top: -26px; right: 2px; }
  .hero .label { padding-right: 92px; }
  .hero .art ~ .body .amount { padding-right: 88px; }
}

/* ── обновление свайпом (js/ptr.js) ── на сенсорном экране обновляют жестом
   «потянуть вниз», кнопка ↻ там не нужна; на компьютере (мышь) она остаётся */
@media (hover: none) and (pointer: coarse) {
  [data-refresh] { display: none !important; }
  /* в шапке была только ↻ — места под неё справа от заголовка не держим */
  .top-actions:has(> [data-refresh]:only-child) { display: none; }
}
