/* Экран аккаунта гостя (Д-1963, подзадача 6, модуль `akkaunt.js`).
   Вид - из утверждённого макета (`docs/mockups/d1963-akkaunt-gostya-akcii/`,
   классы там `d63-`/`d8-`, здесь `akk-`). Токены и общие классы портала
   (`me-row`, `me-group`, `primary`, `secondary`, `promo-input`, `notice`,
   `field-label`) берутся из `guest.css`, своих цветов нет. */

.akk-lead { margin: 2px 2px 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.akk-gbtn { display: flex; align-items: center; gap: 12px; }
.akk-gbtn svg { width: 24px; height: 24px; flex: none; }
.akk-phoneico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.akk-code { text-align: center; font-size: 26px !important; letter-spacing: 0.38em; font-variant-numeric: tabular-nums; text-indent: 0.38em; }
.akk-bad-input { border-color: var(--bad) !important; }
.akk-err { margin-top: 8px; color: var(--bad-text); font-size: 14px; line-height: 1.4; }
.akk-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 6px; }
.akk-links button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; }

.akk-field { margin-bottom: 14px; }
.akk-field .field-label { margin-bottom: 6px; }
.akk-field .promo-input { width: 100%; box-sizing: border-box; }
.akk-field .primary, .akk-field .secondary { width: 100%; margin: 10px 0 0; }
.akk-phone { display: flex; gap: 8px; }
.akk-phone .promo-input { flex: 1 1 0; min-width: 0; }
.akk-cc { flex: none; min-width: 84px; min-height: var(--touch); padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.akk-st { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.akk-st.ok { color: var(--ok-text); }
.akk-st.warn { color: var(--warn-text); }
.akk-hint { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.akk-check { display: flex; gap: 12px; align-items: flex-start; min-height: var(--touch); margin: 4px 0 14px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; background: none; border: 0; padding: 0; color: var(--text); text-align: left; font-family: inherit; }
.akk-box { flex: none; width: 26px; height: 26px; margin-top: -1px; border: 2px solid var(--line); border-radius: 7px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 700; }
.akk-box.on { background: var(--accent); border-color: var(--accent); }
.akk-main { width: 100%; margin: 0; }

.akk-who { margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.akk-name { font-size: 20px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.akk-num { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.akk-num b { color: var(--text); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.akk-note { margin: 0 0 10px; }
.akk-note .primary { width: 100%; margin: 10px 0 0; }

.akk-qrwrap { position: relative; width: min(100%, 232px); margin: 0 auto; }
.akk-qrsq { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background: #fff; padding: 0; overflow: hidden; }
.akk-qrwrap.stale .akk-qrsq svg { opacity: 0.12; }
.akk-stale { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; color: #1b1f27; font-size: 15px; font-weight: 700; line-height: 1.35; text-align: center; }
.akk-bar { height: 4px; margin: 12px auto 6px; max-width: 232px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.akk-bar i { display: block; height: 100%; background: var(--accent); }
.akk-cap { color: var(--muted); font-size: 13px; line-height: 1.4; }

.akk-pill { margin-left: auto; flex: none; padding: 2px 9px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.akk-pill.ok { border-color: var(--ok); color: var(--ok-text); }
.akk-pill.bad { border-color: var(--bad); color: var(--bad-text); }
.akk-pill.warn { border-color: var(--warn); color: var(--warn-text); }
.akk-row { align-items: flex-start; flex-wrap: wrap; height: auto; }
.akk-row .me-text { flex: 1 1 0; min-width: 0; }
.akk-row .me-text span { overflow-wrap: anywhere; }
.akk-row .me-sign { padding-top: 1px; }
.akk-apply { width: 100%; margin: 0 0 8px; }
.akk-tick { margin-left: auto; flex: none; color: var(--ok-text); font-size: 18px; font-weight: 700; }
.akk-none { padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); font-size: 14px; text-align: center; }

.akk-out { display: block; width: 100%; min-height: var(--touch); margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; }
.akk-out + .akk-del { margin-top: 12px; }
.akk-del { display: block; width: 100%; min-height: var(--touch); margin-top: 22px; border: 1px solid var(--bad); border-radius: 10px; background: transparent; color: var(--bad-text); font: inherit; font-size: 15px; font-weight: 600; }
.akk-conf { margin-top: 22px; padding: 14px; border: 1px solid var(--bad); border-radius: var(--radius-lg); background: var(--bad-wash); }
.akk-conf b { display: block; margin-bottom: 6px; font-size: 16px; }
.akk-conf p { margin: 0 0 12px; color: var(--text); font-size: 14px; line-height: 1.45; }
.akk-conf .akk-two { display: flex; gap: 8px; flex-wrap: wrap; }
.akk-conf .akk-two button { flex: 1 1 140px; min-height: var(--touch); border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; }
.akk-conf .cancel { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.akk-conf .go { border: 0; background: var(--bad); color: #fff; }

/* 🔴 Последняя кнопка достижима (критерий 6, Р21). Плавающая плашка «С собой»
   (`.deck-left`) стоит над панелью поверх прокрутки и закрывала «Удалить
   аккаунт» в конце экрана - дефект портала, найденный макетом (кадр 2-21).
   Пустое место в конце экрана = высота плашки (`--touch`) и запас; вместе с
   нижним отступом тела (24px) кнопка стоит на ~15px выше плашки (замер 06.10:
   плашка начинается в 61px от низа тела). Кадры 2-34, 2-35 - как должно быть. */
.akk-end { flex: none; height: calc(var(--touch) + 4px); }


.akk-cam { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px 16px; background: var(--bg); }
.akk-cam video { width: min(92vw, 360px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); background: #000; }
.akk-cam .akk-lead { text-align: center; max-width: 340px; }
.akk-cam .primary { width: 100%; max-width: 340px; }

/* Д-2372: значок чека в строке-действии «Моё» (модуль moyo-chek-stroka.js); пометка «Есть чек из кафе?» убрана. */
.akk-scanrow .ck-znachok { display: grid; place-items: center; width: 28px; }
.akk-scanrow .ck-znachok svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.akk-scanrow .me-text span { font-size: 13px; color: var(--muted); }
