/* Личный кабинет (/account/), история (/account/history/) и команда (/account/team/). Компоненты дашборда - из decode.css: панели dd-p,
   печать dc-stamp, переключатель dc-seg с жидким индикатором dc-ind, мини-печать dd-mini. Здесь - раскладка
   кабинета и его карточки. Префикс ac-. */

/* переход между страницами кабинета: шапка стоит, содержимое меняется (где браузер умеет) */
@view-transition { navigation: auto; }

.ac-body { font-size: 15.5px; line-height: 1.5; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.ac-body .ic { width: 20px; height: 20px; flex: none; }

/* ---------- шапка ---------- */
.ac-top {
  position: sticky; top: 0; z-index: 20; view-transition-name: ac-top;
  background: rgba(244, 240, 231, 0.84); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.ac-top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 12px 24px; }
.ac-go { justify-self: end; }
.ac-go svg { width: 18px; height: 18px; }
.ac-nav a {
  position: relative; z-index: 1; padding: 7px 16px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-3);
  transition: color 0.25s var(--ease);
}
.ac-nav a:hover { color: var(--ink-2); }
.ac-nav a[aria-current="page"] { color: var(--ink); }
.ac-nav a:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.is-out .ac-nav { visibility: hidden; }

/* ---------- страница ---------- */
.ac { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 28px 24px 56px; display: grid; gap: 18px; align-content: start; }
.ac-nojs { color: var(--ink-2); }
.ac-muted { margin: 0; color: var(--ink-3); }
.ac-foot { padding: 18px 24px 26px; text-align: center; font-size: 13px; color: var(--ink-3); }
.ac-foot a:hover { color: var(--ink); }
.ac-foot small { display: block; margin-top: 6px; font-size: 12px; }
.ac .dd-p { overflow: hidden; }
.ac .dd-ph h2 { display: flex; align-items: baseline; }

/* пока ждём данные дольше 250 мс - скелет (account.js): раскладка страницы, полосы вместо текста. Полосы дышат
   разом: волна по каждой полосе своей ширины даёт рябь */
.ac-sk { display: block; width: var(--w); height: var(--h); border-radius: 7px; background: var(--paper-2); animation: ac-breathe 1.1s ease-in-out infinite alternate; }
@keyframes ac-breathe { to { opacity: 0.45; } }
.ac-sk-field { border-radius: 12px; }
.ac-sk-dot { border-radius: 50%; }
.ac-sk-end { justify-self: end; }
.ac-sk-stack { gap: 12px; }
.ac-sk-stack .ac-pack-top { align-items: center; height: 24px; }
.ac-sk-stack .ac-pack > .ac-sk:last-child { margin: 3px 0; }
.ac-sk-card { gap: 8px; }
.ac-sk-stamp { position: absolute; top: 12px; right: 12px; width: 62px; height: 62px; border-radius: 50%; }
.ac-sk-row { pointer-events: none; }
.ac-sk-lines { gap: 8px; padding: 3px 0; }     /* две строки текста: полосы с межстрочным воздухом */
.ac-sk-search, .ac-sk-seg { flex: none; }     /* у полос нет своей ширины, как у поля ввода: задаём */
.ac-sk-search { width: 236px; }
.ac-sk-seg { display: block; width: 166px; }
.ac-hist.is-stale { opacity: 0.5; transition: opacity 0.2s; }

/* ---------- кабинет: кто и баланс ---------- */
.ac-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.ac-who { display: flex; flex-direction: column; justify-content: flex-start; align-self: start; gap: 14px; padding: 10px 6px 10px 2px; min-width: 0; }
/* главная кабинета: имя, баланс, способы входа - в этом порядке в разметке (на телефоне баланс выше «Выйти»),
   на десктопе имя и способы входа слева одной колонкой, баланс справа на обе строки */
.ac-home { grid-template-areas: 'who bal' 'access bal'; grid-template-rows: auto 1fr; row-gap: 0; }
.ac-home > .ac-who { grid-area: who; padding-bottom: 0; }
.ac-home > .ac-balance { grid-area: bal; }
.ac-home > .ac-access { grid-area: access; padding-top: 14px; padding-bottom: 10px; }
.ac h1[tabindex="-1"]:focus, .ac h2[tabindex="-1"]:focus { outline: none; }     /* фокус после перерисовки - для диктора */
.ac-kicker { margin: 0; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.ac-who h1 { font-size: clamp(30px, 4.2vw, 48px); overflow-wrap: anywhere; }
.ac-logins { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; max-width: 420px; }
.ac-logins li {
  display: grid; grid-template-columns: 20px auto 1fr; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--ink-3);
}
.ac-logins li.is-on { border-style: solid; border-color: var(--line); background: var(--white); color: var(--ink-2); }
.ac-logins b { justify-self: end; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-logins li.is-on b { color: var(--ink); }
.ac-link {
  justify-self: end; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 22px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.ac-link:hover { color: var(--red); border-color: var(--red); }
.ac-link.is-busy { cursor: progress; opacity: 0.6; }
.ac-logins li.is-on b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--green); vertical-align: 2px; }

.ac-team { padding: 4px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-big { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.ac-big b { font-family: var(--font-display); font-size: clamp(56px, 7vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ac-big span { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.ac-split { margin: 8px 0 18px; color: var(--ink-2); }
.ac-packs { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 14px; }
.ac-pack { display: grid; gap: 7px; }
.ac-pack-top { display: flex; justify-content: space-between; gap: 12px; }
.ac-pack-top span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ac-pack-top span b { color: var(--ink); }
.ac-pack-bar { display: block; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.ac-pack-bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--red-2), var(--red)); transform-origin: left; }
.ac-pack small { font-size: 12.5px; color: var(--ink-3); }

/* ---------- последние листы: карточки-бланки с печатью ---------- */
.ac-all { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.ac-all .ic { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.ac-all:hover { color: var(--ink); background: var(--paper); }
.ac-all:hover .ic { transform: translateX(3px); }
.ac-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 168px; padding: 16px 16px 14px;
  border-radius: 14px; background: var(--paper); border: 1px solid transparent;
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgba(20, 31, 56, 0.045) 23px 24px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, background-color 0.3s;
}
.ac-card:hover { transform: translateY(-3px); background-color: var(--white); border-color: var(--line); box-shadow: 0 22px 36px -26px rgba(20, 31, 56, 0.55); }
.ac-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ac-stamp { position: absolute; top: 12px; right: 12px; width: 62px; height: 62px; border-width: 2.5px; transition: rotate 0.5s var(--ease), scale 0.5s var(--ease); }
.ac-stamp::after { inset: 3.5px; border-width: 1px; }
.ac-stamp b { font-size: 19px; }
.ac-stamp span { margin-top: 1px; font-size: 8.5px; }
.ac-stamp.is-empty { border-color: var(--line-strong); color: var(--ink-3); }
.ac-stamp.is-empty::after { border-color: var(--line-strong); }
.ac-stamp.is-empty b { font-size: 17px; }
.ac-card:hover .ac-stamp { rotate: -3deg; scale: 1.05; }
.ac-car { padding-right: 70px; font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.ac-meta { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ac-lot { margin-bottom: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-3); }
.ac-src { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.ac-src-site { background: var(--red-soft); color: var(--red); }
.ac-src-bot { background: rgba(20, 31, 56, 0.07); color: var(--ink-2); }
.ac-empty { display: grid; justify-items: center; gap: 14px; padding: 26px 12px 18px; text-align: center; color: var(--ink-2); }
.ac-empty p { margin: 0; }

/* ---------- платежи и выход ---------- */
.ac-pays { list-style: none; margin: 0; padding: 0; }
.ac-pays li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-pays li:first-child { border-top: 0; padding-top: 4px; }
.ac-pay-what { display: grid; min-width: 0; }
.ac-pay-what small { color: var(--ink-3); font-size: 13px; }
.ac-pay-sum { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ac-pay-sum s { text-decoration: none; }
.ac-pay-sum.is-refund { color: var(--ink-3); }
.ac-pay-sum.is-refund s { text-decoration: line-through; }
.ac-pay-sum small { display: block; font-size: 12px; font-weight: 500; }
.ac-pay-receipt { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ac-pay-receipt .ic { width: 17px; height: 17px; }
a.ac-pay-receipt:hover { color: var(--red); }
.ac-pay-receipt.is-none { color: var(--ink-3); font-weight: 400; }
.ac-exit-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* хвост длинного списка (пакеты, платежи) и кнопка «Ещё N» (.ac-more - другое: заглушки подгрузки истории) */
.ac-tail { overflow: hidden; }
.ac-tail[hidden] { display: none; }
.ac-packs.ac-tail { margin-top: 14px; }
.ac-pays.ac-tail li:first-child { border-top: 1px solid var(--line); padding-top: 12px; }
.ac-unfold {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 12px; padding: 6px 8px 6px 0;
  border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color 0.2s;
}
.ac-unfold:hover { color: var(--red); }
.ac-unfold .ic { width: 16px; height: 16px; transition: rotate 0.3s var(--ease); rotate: 90deg; }
.ac-unfold[aria-expanded="true"] .ic { rotate: -90deg; }
.ac-exit-act .btn svg { width: 18px; height: 18px; }
.ac-out-all { transition: transform 0.25s var(--ease), color 0.2s, border-color 0.2s, background 0.2s; }
.ac-out-all.is-armed { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* ---------- без входа и ошибка ---------- */
.ac-out { width: 100%; max-width: 560px; margin: 6vh auto 0; padding: 36px 32px 32px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.ac-out h1 { font-size: clamp(26px, 3.4vw, 34px); }
.ac-out p { margin: 0; color: var(--ink-2); max-width: 30em; }
.ac-out-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- история ---------- */
.ac-hhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; padding: 6px 0 4px; }
.ac-hhead h1 { display: flex; align-items: baseline; gap: 10px; font-size: clamp(30px, 3.8vw, 42px); }
.ac-hhead h1 .dd-n { font-family: var(--font-body); font-size: 0.5em; font-weight: 600; }
.ac-tools { display: flex; align-items: center; gap: 12px; }
.ac-search { position: relative; display: block; width: min(340px, 100%); }
.ac-search > .ic { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.ac-search input {
  width: 100%; padding: 11px 40px 11px 42px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--white); font: inherit; font-size: 15px; color: var(--ink); transition: border-color 0.2s, box-shadow 0.3s var(--ease);
}
.ac-search input::placeholder { color: var(--ink-3); }
.ac-search input::-webkit-search-cancel-button { display: none; }
.ac-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 31, 56, 0.08); }
.ac-clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; }
.ac-clear .ic { width: 16px; height: 16px; }
.ac-clear:hover { color: var(--ink); background: var(--paper); }
.ac-clear[hidden] { display: none; }

.ac-hist { display: grid; gap: 22px; min-height: 120px; }
.ac-day h2 { margin: 0 0 8px; padding: 0 2px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.ac-day ol { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(20, 31, 56, 0.03), 0 24px 46px -42px rgba(20, 31, 56, 0.55); }
.ac-day li + li { border-top: 1px solid var(--line); }
.ac-item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 76px 18px; align-items: center; gap: 14px; padding: 12px 16px;
  transition: background 0.25s;
}
.ac-item:hover { background: rgba(244, 240, 231, 0.55); }
.ac-item:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.ac-item .dd-mini { transition: rotate 0.45s var(--ease); }
.ac-item:hover .dd-mini { rotate: -2deg; }
.ac-item-main { display: grid; min-width: 0; }
.ac-item-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item-main small { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item time { font-size: 13.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.ac-item > .ic { width: 16px; height: 16px; color: var(--ink-3); transition: transform 0.35s var(--ease), color 0.2s; }
.ac-item:hover > .ic { transform: translateX(3px); color: var(--ink); }
.ac-more[hidden] { display: none; }
.ac-hist-err { text-align: center; }

/* ---------- команда ---------- */
.ac-lead { margin: 0; color: var(--ink-2); max-width: 34em; }
.ac-lead b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-seats { margin-top: 4px; }
.ac-wait { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-2); font-size: 14.5px; max-width: 34em; }
.ac-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; max-width: 34em; }

.ac-invite { align-self: start; }
.ac-invite .dd-pb { gap: 14px; }
.ac-linkbox { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white); transition: border-color 0.2s, box-shadow 0.3s var(--ease); }
.ac-linkbox:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 31, 56, 0.08); }
.ac-linkbox input { flex: 1; min-width: 0; padding: 0 8px; border: 0; background: none; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); text-overflow: ellipsis; }
.ac-linkbox input:focus { outline: none; }
.ac-linkbox .btn { flex: none; gap: 6px; }
.ac-linkbox .btn .ic, .ac-plans-act .btn .ic { width: 18px; height: 18px; }
.btn.is-done { background: var(--green); border-color: var(--green); }
.ac-invite-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ac-invite-alt .dc-link { font-size: 14.5px; }
.ac .is-armed { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.ac-mate-list { list-style: none; margin: 0; padding: 0; }
.ac-mate { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 92px auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-mate:first-child { border-top: 0; padding-top: 4px; }
.ac-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.ac-mate.is-paused .ac-ava { background: var(--paper-2); color: var(--ink-3); }
.ac-ava.is-empty { background: none; border: 1.5px dashed var(--line-strong); color: var(--ink-3); font-size: 20px; font-weight: 400; }
.ac-mate-main { display: grid; gap: 2px; min-width: 0; }
.ac-mate-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-mate.is-paused .ac-mate-main b { color: var(--ink-2); }
.ac-mate-main small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 13px; color: var(--ink-3); }
.ac-via { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.ac-body .ac-via .ic { width: 15px; height: 15px; }
.ac-seat .ac-mate-main small { display: block; }
.ac-seat .ac-link { grid-column: 3 / -1; }
.ac-mate-stat { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.ac-mate-stat b { font-size: 17px; font-weight: 700; line-height: 1.2; }
.ac-mate-stat small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.ac-state { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ac-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.ac-state.is-on { background: rgba(30, 123, 79, 0.1); color: var(--green); }
.ac-state.is-on::before { opacity: 1; }
.ac-mate-ctl { display: contents; }     /* на десктопе статус и кнопки - свои колонки, на телефоне - одна строка */
.ac-mate-act { display: flex; justify-content: flex-end; gap: 6px; }
.ac-mate-act .ac-link, .ac-seat .ac-link { justify-self: end; line-height: 28px; padding: 0 12px; }
.ac-danger:hover { color: var(--red); border-color: var(--red); }
.ac-link:disabled { cursor: progress; opacity: 0.6; }

.ac-plans .dd-pb { gap: 16px; }
.ac-plan-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ac-plan { display: grid; align-content: start; gap: 2px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid transparent; }
.ac-plan-name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.ac-plan > b { margin-top: 6px; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ac-plan > small { color: var(--ink-2); }
.ac-plan-team { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-weight: 600; }
.ac-plan s { text-decoration: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ac-plans-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ac-plans-act .btn { gap: 8px; }
.ac-plans-act small { color: var(--ink-3); font-size: 13.5px; }

/* ---------- покупка пакета: «Пополнить», панель пакетов, плашка после ЮKassa ---------- */
.ac-buy-act { margin: 18px 0 0; }
.ac-buy-act .btn { gap: 8px; }
.ac-buy-act .btn .ic { width: 18px; height: 18px; }
.ac-balance .ac-buy-act.ac-muted { font-size: 14px; }
.ac-balance .ac-own { margin-top: 10px; font-size: 14px; }
.ac-hint { margin: 12px 0 0; max-width: 30em; font-size: 14px; color: var(--ink-2); }
.ac-buy { scroll-margin-top: 84px; }
.ac-buy .dd-pb { gap: 14px; }
/* карточка пакета - как тариф на главной (.plan в style.css); кнопка прижата к низу, и строка «Команда до N» её не сдвигает */
.ac-offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-offer {
  --ring: transparent;
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px;
  border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 0 0 1px var(--ring);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.ac-offer:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ring), 0 24px 50px -30px rgba(20, 31, 56, 0.4); }
.ac-offer.is-best { --ring: var(--ink); border-color: var(--ink); }
.ac-offer.is-picked { --ring: var(--red); border-color: var(--red); }
.ac-offer-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.ac-offer.is-best .ac-offer-name { color: var(--red); }
.ac-offer-qty { font-family: var(--font-display); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ac-offer-qty small { margin-left: 4px; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.ac-save { position: absolute; top: 16px; right: 16px; padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; color: var(--green); }
.ac-per { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.ac-offer-team { font-size: 14px; font-weight: 600; }
.ac-offer-act { margin-top: auto; padding-top: 14px; display: grid; }
.ac-offer-pay { justify-content: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ac-offer-pay:disabled { cursor: progress; opacity: 0.75; }
.ac-buy.is-busy .ac-offer-pay:not(:disabled) { opacity: 0.45; pointer-events: none; }
.ac-buy-err { margin: 0; color: var(--red); font-weight: 600; }
.ac-buy-note { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.ac-buy-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.ac-buy-note a:hover { color: var(--red); }
.ac-test { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ac-test input { margin: 0; accent-color: var(--red); }
.ac-test.is-only { cursor: default; border-style: solid; background: var(--paper-2); }
.ac-x { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -6px -8px -6px 0; border: 0; border-radius: 9px; background: none; color: var(--ink-3); cursor: pointer; transition: color 0.2s, background 0.2s; }
.ac-x:hover { color: var(--ink); background: var(--paper); }
.ac-x .ic { width: 18px; height: 18px; }
.ac-buy .dd-ph-tools { display: flex; align-items: center; gap: 12px; }

.ac-paid { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; padding: 16px 18px; }
.ac-paid-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); }
.ac-paid-ic .ic { width: 22px; height: 22px; }
.ac-paid.is-done .ac-paid-ic { background: rgba(30, 123, 79, 0.12); color: var(--green); }
.ac-paid.is-failed .ac-paid-ic { background: var(--red-soft); color: var(--red); }
.ac-paid-text b { font-size: 17px; }
.ac-paid-text p { margin: 2px 0 0; color: var(--ink-2); }
.ac-paid .ac-x { margin: 0; }
.ac-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--red); animation: ac-spin 0.8s linear infinite; }
@keyframes ac-spin { to { transform: rotate(360deg); } }

.ac-member h1, .ac-join h1 { overflow-wrap: anywhere; }
.ac-member .ac-kicker, .ac-join .ac-kicker { margin-top: 4px; }
.ac-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; width: min(100%, 360px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.ac-facts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.ac-facts li + li { border-top: 1px solid var(--line); }
.ac-facts span { color: var(--ink-3); }
.ac-facts b { font-weight: 600; }
.ac-join .ac-out-act .btn { gap: 8px; }
.ac-join .ac-out-act .btn .ic { width: 18px; height: 18px; }

.ac-toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; max-width: min(440px, calc(100vw - 32px)); margin: 0;
  padding: 11px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 14.5px; font-weight: 500; text-align: center;
  box-shadow: 0 18px 40px -18px rgba(20, 31, 56, 0.6); opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 0.25s, transform 0.4s var(--ease);
}
.ac-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ac-copy-tmp { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* ---------- узко ---------- */
@media (max-width: 1099px) {
  .ac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .ac-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .ac-hero { grid-template-columns: minmax(0, 1fr); }
  .ac-who { padding: 4px 0 0; }
  .ac-home { grid-template-areas: none; grid-template-rows: none; row-gap: 18px; }
  .ac-home > .ac-who, .ac-home > .ac-balance { grid-area: auto; }
  .ac-home > .ac-access { padding: 0; }
}
@media (max-width: 640px) {
  .ac-top-in { padding: 10px 16px; gap: 10px; grid-template-columns: auto 1fr auto; }
  .ac-top-in .logo { font-size: 0; gap: 0; }
  .ac-nav { justify-self: center; }
  .ac-go { padding: 10px 12px; }
  .ac-go span { display: none; }
  .ac { padding: 20px 16px 44px; gap: 14px; }
  .ac-cards { gap: 10px; }
  .ac-card { min-height: 150px; padding: 13px 12px 12px; }
  .ac-stamp { width: 50px; height: 50px; top: 10px; right: 10px; }
  .ac-stamp b { font-size: 15px; }
  .ac-stamp span { display: none; }
  .ac-sk-stamp { width: 50px; height: 50px; top: 10px; right: 10px; }
  .ac-sk-card { min-height: 196px; }     /* на узкой карточке марка и пробег почти всегда в две строки */
  .ac-car { padding-right: 52px; font-size: 15px; }
  .ac-meta { padding-right: 52px; }     /* печать 50 px закрывает и вторую строку карточки */
  .ac-lot { font-size: 11.5px; }
  .ac-card-foot { font-size: 12px; }
  .ac-tools { flex-wrap: wrap; }
  .ac-tools, .ac-search { width: 100%; }
  .ac-filter { width: 100%; }
  .ac-filter button { flex: 1; }
  .ac-sk-search, .ac-sk-seg { width: 100%; }
  .ac-item { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 11px 14px; }
  .ac-item .ac-src, .ac-item > .ic, .ac-sk-badge, .ac-sk-chev { display: none; }
  .ac-pays li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .ac-pay-receipt, .ac-pays .ac-sk-end { grid-column: 2; }
  .ac-pay-receipt.is-none { display: none; }
  .ac-out { padding: 28px 20px 24px; }
  .ac-nav a { padding: 7px 11px; font-size: 14px; }
  .ac-mate { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 8px; }
  .ac-mate-main b { white-space: normal; overflow-wrap: anywhere; }
  .ac-mate-ctl { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .ac-seat .ac-link { grid-column: 2 / -1; justify-self: start; }
  .ac-plan-list { grid-template-columns: minmax(0, 1fr); }
  .ac-plan { grid-template-columns: auto 1fr; column-gap: 10px; }
  .ac-plan-name, .ac-plan-team, .ac-plan s { grid-column: 1 / -1; }
  .ac-plan > b { font-size: 26px; }
  .ac-plan > small { align-self: end; padding-bottom: 3px; }
  .ac-offers { grid-template-columns: minmax(0, 1fr); }
  .ac-buy .dd-ph { flex-wrap: wrap; row-gap: 8px; }
  .ac-paid { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 14px; }
  .ac-paid-ic { width: 40px; height: 40px; }
  .ac-paid-act { grid-column: 1 / -1; grid-row: 2; }
  .ac-paid .ac-x { grid-column: 3; grid-row: 1; align-self: start; margin: -4px -6px 0 0; }
  .ac-paid-act .btn { width: 100%; justify-content: center; }
  .ac-linkbox { flex-direction: column; }
  .ac-linkbox input { padding: 8px; }
}
@media (max-width: 380px) {
  .ac-cards { grid-template-columns: minmax(0, 1fr); }
  .ac-sk-card { min-height: 150px; }     /* в одну колонку марка помещается в строку */
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: ac-vt-out 0.16s cubic-bezier(0.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: ac-vt-in 0.42s var(--ease) both; }
}
@keyframes ac-vt-out { to { opacity: 0; } }
@keyframes ac-vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .ac-toast { transition: none; }
  .ac-card, .ac-stamp, .ac-item .dd-mini, .ac-all .ic, .ac-item > .ic { transition: none; }
  .ac-sk { animation: none; }
  .ac-spin { animation-duration: 2.4s; }
  .ac-offer, .ac-x { transition: none; }
  .ac-hist.is-stale { transition: none; }
}
