/* Аккаунт, счётчик, тарифы, оплата (account.js). Цвета — переменные темы. */

/* ── Меню аккаунта: кружок в боковой панели → панель (account.js) ───────── */
.acc-block { display: flex; padding: 6px 6px 2px; min-width: 0; width: 100%; }
.acc-me { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
  padding: 6px 8px 6px 6px; border-radius: 12px; cursor: pointer; transition: background var(--motion-fast) var(--ease-out); }
.acc-me:hover, .acc-me[aria-expanded="true"] { background: var(--bg-hover); }
.acc-me:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acc-me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.acc-me-name { font-size: 13.5px; font-weight: 550; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-me-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-me-chev { width: 16px; height: 16px; color: var(--text-faint); flex: none; }
/* Кольцо вокруг аватара: заполненная часть — сколько ответов ещё осталось */
.acc-ring { --p: 360deg; position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) var(--p), var(--border-strong) 0); }
.acc-ring.low { background: conic-gradient(#d08a2e var(--p), var(--border-strong) 0); }
.acc-ring.none { background: none; }
.acc-ava { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--bg-elevated); color: var(--text-primary);
  font: 600 11.5px/1 var(--font-ui); letter-spacing: .02em; box-shadow: 0 0 0 1.5px var(--bg-page); }
.acc-ring.none .acc-ava { width: 30px; height: 30px; box-shadow: inset 0 0 0 1px var(--border-strong); }
.acc-ava svg, .acc-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-ava-ghost { color: var(--text-muted); padding: 5px; }
.acc-ava-lg { width: 40px; height: 40px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--border-strong); }
.acc-ava-lg.acc-ava-ghost { padding: 8px; }
/* свёрнутая панель: только кружок */
.sidebar:not(.expanded):not(.mobile-open) .acc-block { padding: 6px 0 2px; justify-content: center; }
.sidebar:not(.expanded):not(.mobile-open) .acc-me { width: auto; padding: 3px; border-radius: 50%; }
.sidebar:not(.expanded):not(.mobile-open) .acc-me-text,
.sidebar:not(.expanded):not(.mobile-open) .acc-me-chev { display: none; }

.acc-ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.acc-pop { position: fixed; z-index: 2900; width: 304px; max-width: calc(100vw - 16px); overflow: hidden;
  background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: 20% 100%;
  transition: opacity .2s ease, transform .26s cubic-bezier(.2, .8, .2, 1); }
.acc-pop.open { opacity: 1; transform: none; }
/* подложка под шторкой на телефоне */
.acc-pop-bd { position: fixed; inset: 0; z-index: 2899; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .22s ease; }
.acc-pop-bd.open { opacity: 1; }
.acc-pop.leaving { opacity: 0; transform: translateY(6px) scale(.985); transition-duration: .16s; }
/* два вида внутри панели — основной и «Правовая информация» — сменяются сдвигом */
.acc-views { position: relative; transition: height .26s cubic-bezier(.2, .8, .2, 1); }
.acc-view { position: absolute; left: 0; right: 0; top: 0; padding: 8px;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility 0s linear 0s; }
.acc-view-legal { transform: translateX(24px); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .28s; }
.acc-pop.on-legal .acc-view-main { transform: translateX(-24px); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, .28s; }
.acc-pop.on-legal .acc-view-legal { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.acc-pop-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; }
.acc-pop-who { min-width: 0; }
.acc-pop-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-pop-sub { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.acc-use { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 12px 11px; margin-bottom: 8px; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border); }
button.acc-use { cursor: pointer; transition: border-color var(--motion-fast); }
button.acc-use:hover { border-color: var(--border-strong); }
.acc-use-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--text-secondary); }
.acc-use-top b { font-weight: 600; color: var(--text-primary); }
.acc-use-top span { font-variant-numeric: tabular-nums; }
.acc-meter { height: 5px; border-radius: 5px; background: var(--border-strong); overflow: hidden; margin: 8px 0; }
.acc-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease-out); }
.acc-meter i.low { background: #d08a2e; }
.acc-use-line { font-size: 13px; color: var(--text-primary); }
.acc-use-foot { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.acc-cta { width: 100%; margin: 0 0 6px; padding: 10px 14px; font-weight: 600; border-radius: 10px; }
.acc-list { display: flex; flex-direction: column; }
.acc-list-end { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.acc-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px;
  font-size: 14px; color: var(--text-primary); cursor: pointer; transition: background var(--motion-fast); text-decoration: none; }
@media (hover: hover) { .acc-item:hover { background: var(--bg-hover); } }
.acc-item:focus-visible { background: var(--bg-hover); }
.acc-item .acc-ico { color: var(--text-secondary); }
.acc-item-t { flex: 1; min-width: 0; line-height: 1.35; }
.acc-item-chev { width: 15px; height: 15px; color: var(--text-faint); }
.acc-item-quiet { color: var(--text-secondary); }
.acc-back { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 8px 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-primary); border-radius: 9px; }
.acc-back .acc-ico { width: 16px; height: 16px; color: var(--text-muted); }
.acc-back:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.acc-pop-fine { font-size: 11.5px; color: var(--text-faint); padding: 8px 10px 6px; line-height: 1.45; }

/* ── Оформление кнопки и панели (07.10.2026) ─────────────────────────────
   Свёрнутая панель — 44 px, отступы по 6 px: на кнопку остаётся ровно 32 px.
   Кольцо 30 px + 1 px поля = 32 — кнопка стоит по оси «»», ничего не вылезает. */
.acc-block { padding: 4px 0 0; }
.acc-me { gap: 10px; padding: 7px 8px 7px 7px; border-radius: 14px; border: 1px solid transparent;
  transition: background var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out); }
.sidebar.expanded .acc-me, .sidebar.mobile-open .acc-me { background: var(--bg-elevated); border-color: var(--border); }
@media (hover: hover) {
  .sidebar.expanded .acc-me:hover, .sidebar.mobile-open .acc-me:hover { border-color: var(--border-strong); background: var(--bg-hover); }
}
.acc-me[aria-expanded="true"] { border-color: var(--border-strong); }
.acc-ring { width: 30px; height: 30px; }
.acc-ava { width: 25px; height: 25px; font-size: 11px; box-shadow: 0 0 0 1.5px var(--bg-elevated); }
.acc-ring.none .acc-ava { width: 30px; height: 30px; }
.acc-ava-ghost { padding: 4px; }
.acc-ring.none .acc-ava-ghost { padding: 6px; }
.acc-me-name { font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; }
.acc-me-sub { font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.acc-me-chev { width: 15px; height: 15px; }
.sidebar:not(.expanded):not(.mobile-open) .acc-block { padding: 4px 0 0; justify-content: center; }
.sidebar:not(.expanded):not(.mobile-open) .acc-me { width: 32px; height: 32px; padding: 1px; border-radius: 50%;
  justify-content: center; border: 0; background: transparent; }
@media (hover: hover) {
  .sidebar:not(.expanded):not(.mobile-open) .acc-me:hover { background: var(--bg-hover); }
}
.sidebar:not(.expanded):not(.mobile-open) .acc-ava { box-shadow: 0 0 0 1.5px var(--bg-page); }

/* панель: шапка с крупным аватаром, спокойная кнопка тарифа */
.acc-pop { border-radius: 18px; }
.acc-pop-head { gap: 12px; padding: 10px 10px 14px; }
.acc-ava-lg { width: 42px; height: 42px; font-size: 15px; background: var(--bg-elevated); }
.acc-ava-lg.acc-ava-ghost { padding: 9px; }
.acc-pop-name { font-size: 15px; letter-spacing: -.01em; }
.acc-use { border-radius: 14px; padding: 13px 14px 12px; }
.acc-meter { height: 6px; margin: 9px 0 8px; }
.acc-cta { height: 40px; padding: 0 14px; margin: 2px 0 8px; border-radius: 12px; font-size: 14px; letter-spacing: .005em; }
/* Кнопка тарифа — монохромная, как «Открыть Protocol» на страницах документов: синий остаётся
   за кольцом и полосой расхода, кнопка не спорит с ними за внимание. */
.acc-pop .acc-cta.acc-primary { background: var(--text-primary); color: var(--bg-page); border-color: transparent; font-weight: 600; }
@media (hover: hover) { .acc-pop .acc-cta.acc-primary:hover { opacity: .9; } }
.acc-item { padding: 9px 10px; border-radius: 10px; }
.acc-item .acc-ico { width: 17px; height: 17px; }

/* связаться с нами */
.acc-kinds { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border); align-self: flex-start; }
.acc-kind { all: unset; cursor: pointer; font-size: 13px; padding: 6px 13px; border-radius: 999px; color: var(--text-muted); transition: background var(--motion-fast), color var(--motion-fast); }
.acc-kind.active { background: var(--bg-surface); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.acc-textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.acc-done { padding-top: 18px; padding-bottom: 24px; }
.acc-done-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 11px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); }
.acc-done-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.acc-done-t { margin: 0; font-size: 17px; font-weight: 600; }

.acc-bar { height: 4px; border-radius: 4px; background: var(--border-strong); overflow: hidden; }
.acc-bar-lg { height: 8px; margin: 8px 0 6px; }
.acc-bar-fill { height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease-out); }
.acc-bar-fill.low { background: #d08a2e; }

.acc-btn { font: inherit; font-size: 14px; padding: 9px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text-primary);
  transition: background var(--motion-fast), border-color var(--motion-fast); }
.acc-btn:hover { background: var(--bg-hover); }
.acc-btn:disabled { opacity: .55; cursor: default; }
.acc-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.acc-primary:hover { background: var(--accent); filter: brightness(1.08); }
.acc-danger { border-color: #c45c5c; color: #c45c5c; }
.acc-link { all: unset; cursor: pointer; color: var(--link); font-size: 13px; }
.acc-link:hover { text-decoration: underline; }
.acc-login { width: 100%; }

.acc-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: acc-fade .22s ease both; }
.acc-overlay .acc-modal { animation: acc-rise .3s cubic-bezier(.2, .8, .2, 1) both; }
.acc-overlay.leaving { animation: acc-fade .16s ease reverse both; }
@keyframes acc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes acc-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.acc-modal { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-surface);
  color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.acc-modal.acc-wide { width: min(820px, 100%); }
.acc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 4px; }
.acc-modal-title { font-size: 18px; font-weight: 600; }
.acc-x { all: unset; cursor: pointer; font-size: 24px; line-height: 1; color: var(--text-muted); padding: 2px 6px; border-radius: 6px; }
.acc-x:hover { background: var(--bg-hover); color: var(--text-primary); }
.acc-body { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.acc-center { align-items: center; text-align: center; }
.acc-lead { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.acc-fine { margin: 0; color: var(--text-faint); font-size: 12px; line-height: 1.5; }
.acc-fine a, .acc-check a { color: var(--link); }
.acc-hint { font-size: 13px; color: var(--text-secondary); line-height: 1.45; }
.acc-error { display: none; font-size: 13px; color: #d9534f; line-height: 1.4; }
.acc-loading { color: var(--text-muted); font-size: 13px; padding: 12px 0; }

.acc-consents { display: flex; flex-direction: column; gap: 8px; }
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-secondary); cursor: pointer; }
.acc-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.acc-providers { display: flex; flex-direction: column; gap: 8px; }
.acc-provider { width: 100%; font-weight: 500; padding: 11px 14px; }
.acc-yandex { background: #fc3f1d; border-color: #fc3f1d; color: #fff; }
.acc-yandex:hover { background: #fc3f1d; filter: brightness(1.06); }
.acc-vk { background: #0077ff; border-color: #0077ff; color: #fff; }
.acc-vk:hover { background: #0077ff; filter: brightness(1.06); }
.acc-or { text-align: center; font-size: 12px; color: var(--text-muted); }
.acc-phone { display: flex; flex-direction: column; gap: 8px; }
.acc-row { display: flex; gap: 8px; align-items: center; }
.acc-between { justify-content: space-between; font-size: 13px; padding: 4px 0; gap: 12px; }
.acc-input { font: inherit; font-size: 15px; flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--input-bg); border: 1px solid var(--input-border); color: var(--input-text); }
.acc-input:focus { outline: none; border-color: var(--accent); }
.acc-code { max-width: 120px; letter-spacing: 4px; text-align: center; }
.acc-step2 { display: flex; gap: 8px; }
.acc-captcha:empty { display: none; }

/* ── Окно входа и галочки (07.10.2026): спокойнее и компактнее ───────────
   Фирменные цвета — только в знаках Яндекса и VK; кнопки и галочки монохромные,
   как окно согласий (legal-ui.css .lgn-*), ссылки — без ярко-синего. */
.acc-modal-head { padding: 18px 20px 2px; }
.acc-modal-title { font-size: 17px; letter-spacing: -.01em; }
.acc-login-body { gap: 14px; padding-top: 6px; }
.acc-login-body .acc-lead { font-size: 13.5px; color: var(--text-muted); }
.acc-consents { gap: 2px; margin: 0 -8px; }
.acc-check { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 7px 8px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--text-secondary);
  transition: background var(--motion-fast); }
@media (hover: hover) { .acc-check:hover { background: var(--bg-hover); } }
.acc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.acc-box { width: 18px; height: 18px; margin-top: 0; border-radius: 5px; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); background: transparent; transition: background .2s, border-color .2s, transform .15s; }
@media (hover: hover) { .acc-check:hover .acc-box { border-color: var(--text-muted); } }
.acc-box svg { width: 12px; height: 12px; fill: none; stroke: var(--bg-surface); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-box path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .28s var(--ease-out) .04s; }
.acc-check input:checked + .acc-box { background: var(--text-primary); border-color: var(--text-primary); }
.acc-check input:checked + .acc-box path { stroke-dashoffset: 0; }
.acc-check:active .acc-box { transform: scale(.92); }
.acc-check input:focus-visible + .acc-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-check a, .acc-fine a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong);
  text-underline-offset: 3px; }
.acc-check a:hover, .acc-fine a:hover { text-decoration-color: currentColor; }
.acc-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.acc-provider, .acc-yandex, .acc-vk { display: flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 12px;
  border-radius: 12px; font-weight: 550; font-size: 14px; background: var(--bg-elevated); border: 1px solid var(--border-strong);
  color: var(--text-primary); filter: none; }
@media (hover: hover) { .acc-provider:hover, .acc-yandex:hover, .acc-vk:hover { background: var(--bg-hover); border-color: var(--text-faint); filter: none; } }
.acc-prov-mark { display: inline-flex; width: 18px; height: 18px; flex: none; }
.acc-prov-mark svg { width: 100%; height: 100%; }
.acc-or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-faint); }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.acc-login-body .acc-input { height: 42px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; background: var(--bg-elevated);
  border-color: var(--border-strong); font-variant-numeric: tabular-nums; }
.acc-login-body .acc-input:focus { border-color: var(--text-muted); }
.acc-mono { height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 600; white-space: nowrap;
  background: var(--text-primary); border-color: transparent; color: var(--bg-surface); }
@media (hover: hover) { .acc-mono:hover { background: var(--text-primary); opacity: .9; } }
.acc-login-body .acc-hint { font-size: 12.5px; color: var(--text-muted); }

/* ── Вход по почте (29.10.2026): адрес → код из письма, в том же окне ───────── */
.acc-email { display: flex; flex-direction: column; }
.acc-email-step { display: flex; flex-direction: column; gap: 8px; animation: accStepIn .22s var(--ease-out, ease-out); }
.acc-email-step .acc-input { flex: none; width: 100%; box-sizing: border-box; }   /* .acc-input тянется по строке (flex: 1) — в столбце сплющивало */
@keyframes accStepIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acc-email-step { animation: none; } }
.acc-wide-btn { width: 100%; }
.acc-btn.acc-mono:disabled { opacity: .55; cursor: default; }
.acc-sent { font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 2px 0 4px; }
.acc-sent-to { color: var(--text-primary); font-weight: 550; word-break: break-all; }
.acc-link-btn { all: unset; cursor: pointer; font-size: 13px; color: var(--text-muted); text-decoration: underline;
  text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.acc-link-btn:hover:not(:disabled) { color: var(--text-primary); text-decoration-color: currentColor; }
.acc-link-btn:disabled { cursor: default; text-decoration: none; color: var(--text-faint); }
.acc-link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.acc-sent .acc-link-btn { margin-left: 4px; }
.acc-login-body .acc-input.acc-otp { height: 56px; font-size: 26px; font-weight: 600; letter-spacing: .42em; text-indent: .42em;
  text-align: center; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.acc-login-body .acc-input.acc-otp::placeholder { color: var(--text-faint); opacity: .5; }
.acc-resend { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; text-align: center; }
.acc-resend-hint { font-size: 12px; color: var(--text-faint); }
.acc-login-body.acc-email-sent .acc-hide-sent { display: none; }
.acc-login-body .acc-fine { font-size: 11.5px; text-align: center; padding-top: 2px; }

.acc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-strong); margin: 0 -20px; padding: 0 20px; overflow-x: auto; }
.acc-tab { all: unset; cursor: pointer; padding: 10px 12px; font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.acc-tab.active { color: var(--text-primary); border-bottom-color: var(--accent); }
.acc-admin-link { margin-left: auto; color: var(--link); }
.acc-tab-body { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.acc-card { border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 14px 16px; background: var(--bg-elevated);
  display: flex; flex-direction: column; gap: 6px; }
.acc-card-title { font-weight: 600; font-size: 14px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.acc-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.acc-help summary { cursor: pointer; font-size: 13px; color: var(--text-secondary); }
.acc-help ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.acc-history { display: flex; flex-direction: column; max-height: 260px; overflow: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.acc-hist-row { display: grid; grid-template-columns: 110px 1fr 48px; gap: 10px; padding: 7px 12px; font-size: 13px; border-bottom: 1px solid var(--border); }
.acc-hist-row:last-child { border-bottom: 0; }
.acc-hist-date { color: var(--text-muted); }
.acc-hist-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-hist-n { text-align: right; color: var(--text-secondary); }

.acc-period { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border-strong); align-self: center; }
.acc-seg { all: unset; cursor: pointer; font-size: 13px; padding: 6px 14px; border-radius: 999px; color: var(--text-muted); }
.acc-seg.active { background: var(--accent); color: var(--on-accent); }
.acc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.acc-plan { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-elevated); }
.acc-plan.featured { border-color: var(--accent); }
.acc-plan.current { outline: 2px solid var(--accent-muted); }
.acc-plan-title { font-weight: 600; font-size: 16px; }
.acc-price { font-size: 22px; font-weight: 600; }
.acc-plan ul { margin: 4px 0 8px; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--text-secondary); flex: 1; }
.acc-methods { display: flex; flex-direction: column; gap: 8px; }
.acc-method { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); cursor: pointer; }
.acc-method:has(input:checked) { border-color: var(--accent); }
.acc-method input { margin-top: 3px; accent-color: var(--accent); }
.acc-method span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.acc-method small { color: var(--text-muted); font-size: 12px; }
.acc-pay { padding: 12px; font-size: 15px; font-weight: 600; }
.acc-qr { width: 240px; height: 240px; background: #fff; padding: 10px; border-radius: var(--radius-md); }

.acc-limit-card { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 16px 18px; background: var(--bg-elevated);
  display: flex; gap: 14px; align-items: flex-start; max-width: 560px; animation: acc-limit-in var(--motion-normal) var(--ease-out) both; }
.acc-limit-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-hover); color: var(--text-secondary); }
.acc-limit-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-limit-ico .sand { fill: currentColor; stroke: none; opacity: .55; }
.acc-limit-card.is-window .acc-limit-ico svg { animation: acc-hourglass 6s var(--ease-out) infinite; }
.acc-limit-card.is-ready .acc-limit-ico { color: var(--accent); }
.acc-limit-card.is-ready .acc-limit-ico svg { animation: none; }
.acc-limit-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.acc-limit-title { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text-primary); }
.acc-limit-when { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.acc-limit-bar { height: 4px; border-radius: 2px; background: var(--border-strong); overflow: hidden; }
.acc-limit-bar-fill { display: block; height: 100%; width: 2%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease-out); }
.acc-limit-note { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.acc-limit-body .acc-actions { margin-top: 4px; }
@keyframes acc-limit-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes acc-hourglass { 0%, 80% { transform: rotate(0); } 92%, 100% { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .acc-limit-card, .acc-limit-card.is-window .acc-limit-ico svg { animation: none; } }

@media (max-width: 760px) {
  .acc-pop { left: 0 !important; right: 0; bottom: 0 !important; width: auto; max-width: none; border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(24px); transform-origin: 50% 100%; }
  .acc-pop.open { transform: none; }
  .acc-item { padding: 12px 10px; font-size: 15px; }
  .acc-overlay { align-items: flex-end; padding: 0; }
  .acc-overlay .acc-modal { animation-name: acc-sheet; }
  .acc-modal, .acc-modal.acc-wide { width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .acc-row { flex-wrap: wrap; }
  .acc-hist-row { grid-template-columns: 84px 1fr 40px; }
}
@keyframes acc-sheet { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .acc-pop, .acc-view, .acc-views, .acc-overlay, .acc-overlay .acc-modal { transition: none !important; animation: none !important; }
}

/* Меню аккаунта заменяет круглую кнопку «Правовая информация» из legal-notice.js (07.10.2026). */
.acc-menu-on .lgf { display: none !important; }
.acc-login-body .acc-captcha-note { margin-top: -8px; }

/* ── Телефон: окна аккаунта как «шторки» (08.10.2026) ──────────────────────────
   Не просто уменьшенные окна: ручка и свайп вниз (account.js, openModal), заголовок с крестиком
   прилипает при прокрутке, кнопки — ровной сеткой под палец, тарифы — карусель с «Про» в центре,
   а не три длинные карточки подряд. */
@media (max-width: 760px) {
  .acc-modal { overscroll-behavior: contain; }
  .acc-modal-head { position: sticky; top: 0; z-index: 2; background: var(--bg-surface); padding: 22px 16px 8px 20px;
    touch-action: none; cursor: grab; }
  .acc-modal-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px;
    border-radius: 2px; background: var(--border-strong); }
  .acc-x { min-width: 40px; min-height: 40px; display: grid; place-items: center; }
  .acc-modal.dragging { transition: none !important; }
  .acc-body { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

  .acc-tabs { position: sticky; top: 62px; z-index: 1; background: var(--bg-surface); }
  .acc-tab { flex: 1 0 auto; text-align: center; padding: 12px 10px; font-size: 14.5px; }

  .acc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .acc-actions > .acc-btn { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; min-height: 44px; }
  .acc-actions > .acc-primary { grid-column: 1 / -1; order: -1; }
  /* одна вторичная кнопка рядом с главной — тоже во всю ширину, а не половинкой */
  .acc-actions:has(> .acc-primary) > .acc-btn:last-child:nth-child(even):not(.acc-primary) { grid-column: 1 / -1; }
  .acc-seg { white-space: nowrap; }
  .acc-card > .acc-btn { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; min-height: 44px; }
  .acc-sub { font-size: 14px; }

  .acc-period { align-self: stretch; display: flex; }
  .acc-seg { flex: 1; text-align: center; padding: 8px 10px; }
  .acc-plans { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 8px;
    scroll-padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .acc-plans::-webkit-scrollbar { display: none; }
  .acc-plan { flex: 0 0 82%; scroll-snap-align: center; box-sizing: border-box; }
  .acc-plan > .acc-btn { margin-top: auto; min-height: 46px; }
  .acc-plan ul { margin: 2px 0 6px; padding-left: 18px; }
  .acc-dots { display: flex; justify-content: center; gap: 6px; margin-top: -2px; }
  .acc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background .2s, width .2s; }
  .acc-dots i.on { width: 16px; border-radius: 3px; background: var(--text-secondary); }
}
@media (min-width: 761px) { .acc-dots { display: none; } }

/* ── Окно «Аккаунт» (26.10.2026): сгруппированный список вместо карточек с кнопками ──────────
   Ширина под форму, вкладки — сегментом, строки одной высоты: значок · текст · тихое действие справа.
   Главная кнопка («Сохранить») появляется только при изменениях. Цвета — переменные темы. */
.acc-modal.acc-mid { width: min(520px, 100%); }
.acc-account { gap: 18px; padding-top: 10px; }
.acc-account .acc-tabs { display: inline-flex; align-self: flex-start; gap: 2px; margin: 0; padding: 3px; overflow: visible;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elevated); }
.acc-account .acc-tab { padding: 6px 14px; font-size: 13.5px; border: 0; border-radius: 999px; color: var(--text-muted);
  transition: background var(--motion-fast), color var(--motion-fast); }
.acc-account .acc-tab.active { background: var(--bg-surface); color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--border-strong), 0 1px 3px rgba(0, 0, 0, .18); }
@media (hover: hover) { .acc-account .acc-tab:not(.active):hover { color: var(--text-secondary); } }
.acc-account .acc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acc-account .acc-tab-body { gap: 18px; padding-top: 0; }

.acc-gs { display: flex; flex-direction: column; gap: 7px; }
.acc-gs-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px;
  font-size: 12px; font-weight: 550; letter-spacing: .02em; color: var(--text-muted); }
.acc-gs-aside { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--text-faint); }
.acc-g { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elevated); overflow: hidden; }
.acc-gr { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px;
  padding: 9px 12px 9px 14px; font-size: 14px; color: var(--text-primary); }
.acc-g > * + * { border-top: 1px solid var(--border); }
.acc-gr-ico { display: inline-flex; width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.acc-gr-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-gr-mark svg { stroke: none; }
.acc-gr-main { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.acc-gr-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-gr-s { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; }
.acc-gr-act { cursor: pointer; transition: background var(--motion-fast); text-decoration: none; }
@media (hover: hover) { .acc-gr-act:hover { background: var(--bg-hover); } }
.acc-gr-act:focus-visible { background: var(--bg-hover); outline: none; }
.acc-gr-danger, .acc-gr-danger .acc-gr-ico { color: #d9534f; }
/* поля профиля прямо в строке: подпись слева, ввод без рамки */
.acc-gf { cursor: text; gap: 14px; }
.acc-gf-l { flex: 0 0 64px; font-size: 13px; color: var(--text-muted); }
.acc-gf-in { all: unset; box-sizing: border-box; flex: 1; min-width: 0; height: 30px; font-size: 14px; color: var(--text-primary); }
.acc-gf-in::placeholder { color: var(--text-faint); }
.acc-gf:focus-within { background: var(--bg-hover); }
.acc-g-foot { display: none; align-items: center; justify-content: flex-end; gap: 12px; }
.acc-g-foot.on { display: flex; animation: acc-fade .18s ease both; }
.acc-g-foot .acc-error { flex: 1; }
.acc-save { height: 36px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; }
/* тихое действие справа и отметка «подключён» */
.acc-tbtn { all: unset; box-sizing: border-box; flex: none; cursor: pointer; padding: 6px 10px; margin: -6px -4px -6px 0; border-radius: 8px;
  font-size: 13.5px; font-weight: 550; color: var(--text-secondary); white-space: nowrap; transition: background var(--motion-fast), color var(--motion-fast); }
@media (hover: hover) { .acc-tbtn:hover { background: var(--bg-hover); color: var(--text-primary); } }
.acc-tbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.acc-okm { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.acc-okm .acc-ico { width: 14px; height: 14px; color: var(--accent); }
.acc-okm .acc-ico svg { stroke-width: 2.2; }
/* удаление: пояснение и кнопка раскрываются под строкой */
.acc-g > .acc-del { display: none; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
.acc-g > .acc-del.on { display: flex; }
.acc-del .acc-danger { align-self: flex-start; background: transparent; }
/* история вопросов — тем же списком */
.acc-account .acc-history { max-height: 360px; border-color: var(--border); border-radius: 14px; background: var(--bg-elevated); }
.acc-account .acc-hist-row { padding: 11px 14px; align-items: baseline; }
.acc-account .acc-hist-nonum { grid-template-columns: 118px 1fr; }

@media (max-width: 760px) {
  .acc-modal.acc-mid { width: 100%; }
  .acc-account .acc-tabs { position: static; align-self: stretch; display: flex; }
  .acc-account .acc-tab { flex: 1; text-align: center; padding: 8px 10px; font-size: 14px; }
  .acc-gr { min-height: 52px; font-size: 15px; }
  .acc-gf-in { font-size: 16px; }   /* без автоувеличения на iPhone */
  .acc-g-foot .acc-save { flex: 1; height: 44px; }
  .acc-account .acc-hist-nonum { grid-template-columns: 84px 1fr; }
}
.acc-account .acc-hist-title { font-weight: 400; }
/* смена вкладки (26.10.2026): высота перетекает, новое содержимое проявляется (account.js, openAccount → show) */
.acc-account .acc-tab-body { transition: height .36s cubic-bezier(.2, .8, .2, 1); }
.acc-account .acc-tab-body.acc-anim { overflow: hidden; }
.acc-account .acc-tab-body > * { animation: acc-tab-in .28s ease both; }
.acc-account .acc-tab-body > .acc-loading { animation-delay: .12s; }
@keyframes acc-tab-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .acc-account .acc-tab-body { transition: none; }
  .acc-account .acc-tab-body > * { animation: none; }
}
/* номер под именем (26.10.2026): мельче и тише имени — в кнопке аккаунта и в шапке меню */
.acc-me-sub { font-size: 11px; letter-spacing: .01em; margin-top: 2px; }
.acc-pop-sub { font-size: 11.5px; letter-spacing: .01em; margin-top: 2px; }

/* ── Вход и аккаунт, 30.10.2026 ─────────────────────────────────────────────────────────────
   Пароль у почты, карточка недавнего входа, «Вы вошли» всплывающей плашкой, выход с подтверждением,
   действия в окне «Аккаунт» — кнопками-«пилюлями» с воздухом между ними. Ниже — отдельные правила
   для телефона: поля 16 px (iPhone не увеличивает страницу), кнопки под палец, окно над клавиатурой. */

/* главная кнопка формы: монохромная, со стрелкой; пока идёт запрос — крутилка */
.acc-btn.acc-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 46px;
  padding: 0 18px; border: 0; border-radius: 13px; font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
  background: var(--text-primary); color: var(--bg-surface);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .07));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 8px 20px -10px rgba(0, 0, 0, .5);
  transition: transform .12s ease, opacity .2s ease, box-shadow .2s ease; }
.acc-go-ico { display: inline-flex; width: 17px; height: 17px; flex: none; transition: transform .22s var(--ease-out, ease-out); }
.acc-go-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .acc-btn.acc-go:not(:disabled):hover { background: var(--text-primary); background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .03)); }
  .acc-btn.acc-go:not(:disabled):hover .acc-go-ico { transform: translateX(3px); }
}
.acc-btn.acc-go:not(:disabled):active { transform: scale(.985); }
.acc-btn.acc-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.acc-btn.acc-go:disabled { opacity: .72; cursor: default; }
.acc-go.is-busy .acc-go-ico svg { display: none; }
.acc-go.is-busy .acc-go-ico { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: acc-spin .7s linear infinite; }
.acc-go.is-busy .acc-go-t::after { content: "…"; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* второстепенная кнопка: прозрачная, с тонкой рамкой */
.acc-btn.acc-ghost { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 13px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-primary); font-weight: 550; font-size: 14px; }
@media (hover: hover) { .acc-btn.acc-ghost:hover { background: var(--bg-hover); border-color: var(--text-faint); } }
.acc-btn.acc-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* окно входа: поля и кнопки сервисов одной высоты, между блоками — ровный шаг */
.acc-login-body { gap: 16px; }
.acc-login-body .acc-input { height: 46px; border-radius: 13px; padding: 0 14px; }
.acc-provider, .acc-yandex, .acc-vk { height: 46px; border-radius: 13px; transition: background var(--motion-fast), border-color var(--motion-fast), transform .12s; }
.acc-provider:active { transform: scale(.985); }
.acc-providers { gap: 10px; }
.acc-email-step { gap: 10px; }
.acc-login-full { display: flex; flex-direction: column; gap: 16px; }
.acc-appear { animation: accStepIn .24s var(--ease-out, ease-out); }
.acc-reset-mode .acc-prov-wrap, .acc-reset-mode .acc-or { display: none; }
.acc-email-step > .acc-error { margin: -2px 2px 0; }

/* пароль: глазок внутри поля */
.acc-pw { position: relative; display: flex; }
.acc-pw .acc-input { flex: 1; width: 100%; box-sizing: border-box; padding-right: 48px; }
.acc-eye { all: unset; box-sizing: border-box; position: absolute; top: 50%; right: 5px; width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center; border-radius: 10px; color: var(--text-faint); cursor: pointer; transition: color .15s, background .15s; }
.acc-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .acc-eye:hover { color: var(--text-primary); background: var(--bg-hover); } }
.acc-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; color: var(--text-primary); }
.acc-pw-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: -2px 2px 4px; }
.acc-pw-hint { font-size: 12.5px; line-height: 1.4; color: var(--text-faint); }
.acc-pw-row .acc-link-btn { flex: none; margin-left: auto; font-size: 12.5px; }
.acc-pw-again { animation: accStepIn .22s var(--ease-out, ease-out); }

/* недавний вход: карточка «продолжить» и «Войти в другой аккаунт» */
.acc-quick { display: flex; flex-direction: column; gap: 10px; }
.acc-recent { position: relative; }
.acc-recent-go { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px 14px 14px;
  border-radius: 16px; cursor: pointer; background: var(--bg-elevated); border: 1px solid var(--border-strong);
  transition: background var(--motion-fast), border-color var(--motion-fast), transform .12s; }
@media (hover: hover) {
  .acc-recent-go:hover { background: var(--bg-hover); border-color: var(--text-faint); }
  .acc-recent-go:hover .acc-recent-chev { transform: translateX(3px); color: var(--text-primary); }
}
.acc-recent-go:active { transform: scale(.99); }
.acc-recent-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-recent-ava { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-primary); font: 600 15px/1 var(--font-ui); }
.acc-recent-ava.ghost { color: var(--text-muted); }
.acc-recent-ava > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acc-recent-mark { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; display: flex; border-radius: 7px;
  box-shadow: 0 0 0 2.5px var(--bg-elevated); }
.acc-recent-mark:empty { display: none; }
.acc-recent-mark svg { width: 100%; height: 100%; }
.acc-recent-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.acc-recent-name { font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-recent-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-recent-chev { display: inline-flex; width: 18px; height: 18px; flex: none; color: var(--text-faint); transition: transform .2s var(--ease-out, ease-out), color .2s; }
.acc-recent-chev svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* «убрать с устройства» — маленький крестик в углу, на компьютере появляется при наведении */
.acc-recent-x { all: unset; box-sizing: border-box; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--bg-surface); border: 1px solid var(--border-strong); color: var(--text-muted);
  opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s, color .15s; }
.acc-recent-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.acc-recent:hover .acc-recent-x, .acc-recent-x:focus-visible { opacity: 1; transform: none; }
@media (hover: hover) { .acc-recent-x:hover { color: var(--text-primary); } }
@media (hover: none) { .acc-recent-x { opacity: 1; transform: none; } }

/* «Вы вошли» / «Вы вышли»: плашка сверху, галочка прорисовывается */
.acc-toast { position: fixed; z-index: 5000; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; gap: 11px;
  max-width: calc(100vw - 32px); box-sizing: border-box; padding: 9px 18px 9px 10px; border-radius: 999px; pointer-events: none;
  background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-strong);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .12);
  opacity: 0; transform: translate(-50%, -16px) scale(.96); transition: opacity .25s ease, transform .45s cubic-bezier(.2, .9, .25, 1.15); }
.acc-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.acc-toast-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); }
.acc-toast-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-toast-ico .ring { stroke-width: 1.4; opacity: .55; stroke-dasharray: 63; stroke-dashoffset: 63; transform: rotate(-90deg); transform-origin: 50% 50%; }
.acc-toast-ico .tick { stroke-dasharray: 16; stroke-dashoffset: 16; }
.acc-toast.show .ring { animation: acc-draw .55s .08s ease-out forwards; }
.acc-toast.show .tick { animation: acc-draw .3s .45s ease-out forwards; }
@keyframes acc-draw { to { stroke-dashoffset: 0; } }
.acc-toast-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.acc-toast-t b { font-size: 14px; font-weight: 600; }
.acc-toast-t span { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) {
  .acc-toast { transition: opacity .2s; transform: translate(-50%, 0); }
  .acc-toast.show .ring, .acc-toast.show .tick { animation: none; stroke-dashoffset: 0; }
}

/* небольшие окна: подтверждение выхода, согласия */
.acc-modal.acc-small { width: min(400px, 100%); }
.acc-confirm { gap: 18px; padding-top: 4px; }
.acc-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acc-confirm-actions .acc-btn { height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-weight: 600; }

/* окно «Аккаунт»: действия — «пилюлями», строки свободнее, разделы дальше друг от друга */
.acc-account .acc-tab-body { gap: 22px; }
.acc-gs { gap: 8px; }
.acc-gr { gap: 13px; min-height: 56px; padding: 10px 14px; }
.acc-tbtn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; margin: 0;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text-primary);
  font-size: 13px; font-weight: 550; transition: background var(--motion-fast), border-color var(--motion-fast), transform .12s; }
@media (hover: hover) { .acc-tbtn:hover { background: var(--bg-hover); border-color: var(--text-faint); color: var(--text-primary); } }
.acc-tbtn:active { transform: scale(.97); }
.acc-tbtn:disabled { opacity: .5; cursor: default; }
.acc-tbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-gs-foot { display: flex; padding-top: 4px; }
.acc-tbtn-wide { height: 36px; padding: 0 16px; color: var(--text-secondary); }
.acc-here { flex: none; font-size: 12px; color: var(--text-muted); padding: 4px 10px; border-radius: 999px; background: var(--bg-hover); white-space: nowrap; }
.acc-okm { padding-right: 2px; }
.acc-del .acc-danger { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; transition: background .2s, color .2s; }
.acc-del .acc-danger.armed { background: #d9534f; border-color: #d9534f; color: #fff; }

@media (max-width: 760px) {
  /* поля — 16 px: иначе iPhone увеличивает страницу при вводе */
  .acc-login-body .acc-input, .acc-pw .acc-input { font-size: 16px; height: 50px; }
  .acc-login-body .acc-input.acc-otp { height: 58px; font-size: 26px; }
  .acc-btn.acc-go { height: 50px; font-size: 15.5px; border-radius: 14px; }
  .acc-btn.acc-ghost, .acc-provider, .acc-yandex, .acc-vk { height: 48px; border-radius: 14px; font-size: 15px; }
  .acc-providers { grid-template-columns: 1fr 1fr; }
  .acc-eye { width: 44px; height: 44px; margin-top: -22px; right: 3px; }
  .acc-pw-row { flex-wrap: wrap; row-gap: 6px; }
  .acc-pw-hint, .acc-pw-row .acc-link-btn { font-size: 13px; }
  .acc-pw-row .acc-link-btn { padding: 6px 0; margin: -6px 0; }   /* попасть пальцем, не раздвигая строку */
  .acc-recent-go { padding: 16px 16px 16px 14px; }
  .acc-recent-x { top: -9px; right: -6px; width: 28px; height: 28px; }
  .acc-confirm-actions .acc-btn { height: 50px; font-size: 15px; }
  .acc-modal.acc-small { width: 100%; }
  .acc-tbtn { height: 36px; padding: 0 16px; font-size: 14px; }
  .acc-gs-foot .acc-tbtn-wide { flex: 1; height: 44px; }
  .acc-gr { min-height: 60px; }
  .acc-toast { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .acc-del .acc-danger { width: 100%; height: 46px; align-self: stretch; }
}

/* предупреждение и блокировка за попытки взломать модель (30.10.2026, account.js abuseNotice) */
.acc-abuse { align-items: flex-start; }
.acc-abuse-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #d08a2e;
  background: color-mix(in srgb, #d08a2e 14%, transparent); }
.acc-abuse-ico.is-blocked { color: #d9534f; background: color-mix(in srgb, #d9534f 14%, transparent); }
.acc-abuse-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acc-abuse .acc-btn { align-self: stretch; height: 44px; border-radius: 13px; }
