/* ===== Telegram Mini App — Налоговый навигатор ИП 2026 ===== */
/* Используем нативные переменные темы Telegram, чтобы вписаться и в светлую, и в тёмную тему. */

:root {
  /* Фирменная тёмная тема (full-brand) — НЕ зависит от темы Telegram, как у @wallet */
  --bg: #0a0c15;
  --section-bg: #14172a;
  --bg-secondary: #1e2236;
  --text: #f1f3fb;
  --hint: #8b90b5;
  --link: #818cf8;
  --card-line: rgba(255, 255, 255, .07);
  --brand: #6366f1;
  --brand-2: #a855f7;
  --brand-grad: linear-gradient(135deg, #6366f1, #a855f7);
  --brand-soft: rgba(99, 102, 241, .16);
  --win: #34d399;
  --win-bg: rgba(52, 211, 153, .13);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  padding: 0;
  overscroll-behavior-y: none;
}
.app { max-width: 560px; margin: 0 auto; padding: 12px 14px; }

.head { display: flex; align-items: center; gap: 11px; padding: 12px 4px 18px; }
.head__mark { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-grad); display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .7); }
.head__txt h1 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.head__txt p { color: var(--hint); font-size: 13px; margin-top: 1px; }

.card {
  background: var(--section-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.card__title { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card__hint { font-size: 12px; color: var(--hint); font-weight: 500; }

/* Вводная подсказка над формой */
.form-intro { font-size: 13px; color: var(--hint); line-height: 1.5; margin: 0 0 16px; padding: 11px 13px; background: var(--bg-secondary); border-radius: 10px; }

/* Кнопка-подсказка «?» рядом с подписью поля */
.help {
  display: inline-grid; place-items: center; width: 18px; height: 18px; vertical-align: middle;
  border-radius: 50%; border: none; background: rgba(127,127,127,.2); color: var(--text);
  font-size: 11px; font-weight: 800; cursor: pointer; padding: 0; line-height: 1; margin-left: 3px;
  font-family: inherit;
}
.help:active { transform: scale(.9); }
/* Текстовые подсказки под чипами (АУСН / патент) */
.chip-help { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }
.chip-help .help { width: auto; height: auto; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; background: var(--bg-secondary); color: var(--link); }

/* Поля ввода */
.f { margin-bottom: 14px; }
.f:last-child { margin-bottom: 0; }
.f label { display: block; font-size: 13px; font-weight: 600; color: var(--hint); margin-bottom: 6px; }
.f label b { color: var(--text); }
.f input[type=text], .f input[type=number] {
  width: 100%; font-family: inherit; font-size: 18px; font-weight: 700; color: var(--text);
  padding: 12px 14px; border: 1.5px solid transparent; border-radius: 11px;
  background: var(--bg-secondary); transition: border .15s;
}
.f input:focus { outline: none; border-color: var(--brand); background: var(--bg); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--bg-secondary); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); border: 4px solid var(--bg); box-shadow: 0 2px 6px rgba(0,0,0,.2); }

.f-row { display: flex; gap: 8px; margin-bottom: 14px; }
.chip {
  flex: 1; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--bg-secondary); border: 1.5px solid transparent; border-radius: 11px;
  padding: 11px 10px; cursor: pointer; transition: .15s;
}
.chip[data-on="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip span { font-weight: 800; }

/* Лучший режим */
.best {
  background: var(--brand-grad);
  color: #fff; border-radius: 22px; padding: 24px 22px; margin-bottom: 12px; text-align: center;
  box-shadow: 0 18px 44px -16px rgba(124, 77, 255, .6);
}
.best__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.best__name { font-size: 26px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; }
.best__total { font-size: 33px; font-weight: 800; letter-spacing: -.02em; }
.best__save { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.18); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }

/* Сравнение */
.compare { display: grid; gap: 9px; }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 13px; background: var(--bg-secondary); }
.crow--best { background: var(--win-bg); box-shadow: inset 0 0 0 1.5px var(--win); }
.crow--off { opacity: .5; }
.crow__name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.crow__tag { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--win); color: #fff; }
.crow__sum { font-weight: 800; font-size: 15px; text-align: right; }
.crow__na { font-size: 12.5px; color: var(--hint); font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: 5px; }
.crow--off { cursor: pointer; }
.crow__why { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(127,127,127,.22); color: var(--text); font-size: 10px; font-weight: 800; line-height: 1; }
.crow--off:hover .crow__why, .crow--off:focus .crow__why, .crow--off.is-open .crow__why { background: var(--brand); color: #fff; }
.crow__reason { grid-column: 1 / -1; overflow: hidden; max-height: 0; opacity: 0; font-size: 12px; font-weight: 500; color: var(--hint); text-align: left; transition: max-height .25s ease, opacity .2s ease, margin .2s ease; }
.crow--off:hover .crow__reason, .crow--off:focus .crow__reason, .crow--off.is-open .crow__reason { max-height: 90px; opacity: 1; margin-top: 5px; }
.crow--off:focus, .crow--off.is-open { outline: none; opacity: 1; }
.crow__bar { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: rgba(127,127,127,.18); overflow: hidden; }
.crow__bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .5s; }
.crow--best .crow__bar i { background: var(--win); }

/* Pro секции */
.pro-section { position: relative; }
.pro-badge { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #fff; background: var(--brand-grad); padding: 3px 9px; border-radius: 999px; }
.pro-section.locked #detailContent, .pro-section.locked #scenContent { filter: blur(6px); pointer-events: none; user-select: none; min-height: 90px; }
.pro-lock-cta { position: absolute; inset: 44px 12px 12px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.pro-lock-cta .lk { font-size: 26px; }
.pro-lock-cta p { font-size: 13px; color: var(--hint); max-width: 240px; }

/* Вердикт-рекомендация (Pro) */
.verdict { display: flex; gap: 12px; align-items: flex-start; }
.verdict__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--win); color: #fff; font-weight: 900; font-size: 16px; box-shadow: 0 4px 12px -4px var(--win); }
.verdict__text p { font-size: 14px; line-height: 1.55; margin-bottom: 8px; color: var(--text); }
.verdict__text p:last-child { margin-bottom: 0; }
.verdict__text b { font-weight: 800; }

/* Детальная разбивка с мини-графиками (Pro) */
.detail-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--bg-secondary); }
/* Подпись с маленьким цветным квадратиком (цвет — только на квадрате, не на тексте) */
.dot { font-size: 11.5px; color: var(--hint); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; background: none; padding: 0; }
.dot::before { content: ''; width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.dot--tax::before { background: #6366f1; }
.dot--contrib::before { background: #f59e0b; }
.dot--vat::before { background: #ec4899; }

.detail-block { padding: 14px 0; border-top: 1px solid var(--bg-secondary); }
.detail-block:first-child { border-top: none; padding-top: 0; }
.detail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.detail-name { font-weight: 700; font-size: 14px; }
.detail-badge { font-size: 10px; font-weight: 800; color: #fff; background: var(--win); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.detail-total { font-weight: 800; font-size: 15px; white-space: nowrap; }
.detail-block--best .detail-total { color: var(--win); }
/* Составной бар нагрузки */
.detail-track { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--bg-secondary); min-width: 24px; }
.seg { display: block; height: 100%; }
.seg--tax { background: #6366f1; }
.seg--contrib { background: #f59e0b; }
.seg--vat { background: #ec4899; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.detail-rate { font-size: 11.5px; color: var(--hint); margin-left: auto; white-space: nowrap; }

/* Мини-график сценариев (Pro) */
.scen-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 12px; height: 150px; margin-bottom: 18px; padding: 8px 4px 0; }
.scen-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.scen-col__val { font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.scen-col__bar { width: 100%; max-width: 56px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--brand), var(--brand-2)); transition: height .5s ease; min-height: 6px; }
.scen-col__lbl { font-size: 11px; font-weight: 700; color: var(--hint); text-align: center; margin-top: 7px; line-height: 1.3; }
.scen-col__lbl span { font-weight: 500; opacity: .8; }

/* Сценарии (Pro) */
.scen-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.scen-table th { text-align: right; font-weight: 700; color: var(--hint); padding: 7px 6px; font-size: 11.5px; }
.scen-table th:first-child { text-align: left; }
.scen-table td { text-align: right; padding: 9px 6px; border-top: 1px solid var(--bg-secondary); }
.scen-table td:first-child { text-align: left; font-weight: 600; }
.scen-best { color: var(--win); font-weight: 800; }
.breakpoint { margin-top: 14px; padding: 12px; background: var(--win-bg); border-radius: 11px; font-size: 13px; }
.breakpoint b { color: var(--win); }
.pdf-btn { margin-top: 14px; }

/* Налоговый календарь (Pro) */
.cal-next { background: var(--win-bg); border: 1px solid var(--win); border-radius: 11px; padding: 11px 13px; font-size: 13px; margin-bottom: 14px; line-height: 1.5; }
.cal-next b { font-weight: 800; }
.cal-next--done { background: var(--bg-secondary); border-color: transparent; color: var(--hint); }
.cal-list { display: grid; gap: 8px; }
.cal-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--bg-secondary); }
.cal-row--next { box-shadow: inset 0 0 0 1.5px var(--brand); background: var(--bg); }
.cal-row--past { opacity: .5; }
.cal-date { font-weight: 800; font-size: 13px; color: var(--text); text-align: center; line-height: 1.2; }
.cal-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-kind { font-size: 10.5px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .02em; }
.cal-title { font-size: 13px; font-weight: 600; color: var(--text); }
.cal-days { font-size: 11px; font-weight: 700; color: var(--brand); background: rgba(127,127,127,.14); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.cal-row--next .cal-days { background: var(--brand); color: #fff; }
.cal-check { color: var(--win); font-weight: 800; font-size: 15px; }
.cal-note { font-size: 11px; color: var(--hint); margin-top: 12px; line-height: 1.5; }

/* Черновик декларации УСН (Pro) */
.decl-hint { font-size: 12.5px; color: var(--hint); line-height: 1.5; margin: 0 0 14px; }
.decl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.decl-cell { display: flex; flex-direction: column; gap: 4px; }
.decl-cell span { font-size: 11px; font-weight: 600; color: var(--hint); }
.decl-cell input { width: 100%; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text); padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; background: var(--bg-secondary); }
.decl-cell input:focus { outline: none; border-color: var(--brand); background: var(--bg); }
.decl-sum { background: var(--bg-secondary); border-radius: 11px; padding: 12px 14px; margin: 14px 0; display: grid; gap: 4px; }
.decl-sum__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--hint); }
.decl-sum__row b { color: var(--text); font-weight: 700; }
.decl-sum__row--total { border-top: 1px dashed rgba(127,127,127,.3); margin-top: 5px; padding-top: 8px; }
.decl-sum__row--total span, .decl-sum__row--total b { color: var(--text); font-weight: 800; font-size: 14px; }
.decl-sum__row--total b { color: var(--brand); }

/* Кнопки */
.btn { width: 100%; font-family: inherit; font-size: 16px; font-weight: 700; padding: 15px; border-radius: 13px; border: none; cursor: pointer; }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .55); }
.btn--text { background: transparent; color: var(--hint); margin-top: 6px; }
.btn:active { transform: scale(.99); }

.field-warn { color: #fbbf24; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .32); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; margin-top: 12px; }
.field-warn[hidden] { display: none; }
.privacy-line { margin-top: 12px; font-size: 12px; color: var(--hint); text-align: center; }

.disclaimer { font-size: 11.5px; color: var(--hint); text-align: center; padding: 6px 8px 0; line-height: 1.5; }
.disclaimer__link { display: inline-block; margin-top: 4px; color: var(--link); font-weight: 600; }
.bottom-space { height: 92px; } /* запас под фиксированную нижнюю навигацию */

/* Нижняя таб-навигация (Расчёт / Сроки / Профиль) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; max-width: 560px; margin: 0 auto;
  background: rgba(10, 12, 21, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--card-line);
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
}
.tabbar__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; padding: 6px 4px; border-radius: 10px;
  color: var(--hint); font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.tabbar__btn.is-active { color: #a5b4fc; }
.tabbar__btn:active .tabbar__ico { transform: scale(.92); }
.tabbar__btn svg { display: block; }
/* Капсула-индикатор под иконкой активной вкладки (как в @wallet) */
.tabbar__ico { display: grid; place-items: center; padding: 4px 18px; border-radius: 999px; transition: background .22s ease, transform .12s ease; }
.tabbar__btn.is-active .tabbar__ico { background: var(--brand-soft); }
.tab-panel[hidden] { display: none; }
/* Анимация перехода между вкладками — контент въезжает в сторону движения */
@keyframes tabInFwd { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes tabInBack { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.tab-in-fwd { animation: tabInFwd .26s cubic-bezier(.2, .8, .2, 1); }
.tab-in-back { animation: tabInBack .26s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .tab-in-fwd, .tab-in-back { animation: none; } }

/* Вкладка «Профиль» */
.pstatus { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.pstatus__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--brand-soft); }
.pstatus__title { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.pstatus__text { font-size: 13px; color: var(--hint); line-height: 1.5; margin-bottom: 12px; }
.about-text { font-size: 13px; color: var(--hint); line-height: 1.6; margin-bottom: 8px; }
.about-text:last-child { margin-bottom: 0; }
.about-link { color: var(--link); font-weight: 600; text-decoration: none; }
/* Профиль: «ваш режим» */
.pregime { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pregime__name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pregime__sub { font-size: 12.5px; color: var(--hint); margin-top: 2px; }
/* Профиль: сохранённые расчёты */
.scalc-list { display: grid; gap: 8px; margin-bottom: 12px; }
.scalc { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--bg-secondary); cursor: pointer; transition: transform .1s ease; }
.scalc:active { transform: scale(.99); }
.scalc__main { flex: 1; min-width: 0; }
.scalc__name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scalc__sub { font-size: 12px; color: var(--hint); margin-top: 2px; }
.scalc__del { flex: none; width: 28px; height: 28px; border-radius: 8px; border: none; background: rgba(127, 127, 127, .15); color: var(--hint); font-family: inherit; font-size: 13px; cursor: pointer; }
.scalc__del:active { transform: scale(.9); }

/* CTA «включить напоминания» (Pro) */
.remind-cta { display: flex; flex-direction: column; gap: 14px; }
.remind-cta__head { display: flex; gap: 12px; align-items: flex-start; }
.remind-cta__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--win-bg); }
.remind-cta__title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.remind-cta__text { font-size: 13px; line-height: 1.5; color: var(--hint); }

/* Виральная карточка «поделиться расчётом» */
.share-cta { display: flex; flex-direction: column; gap: 14px; }
.share-cta__head { display: flex; gap: 12px; align-items: flex-start; }
.share-cta__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--win-bg); }
.share-cta__title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.share-cta__text { font-size: 13px; line-height: 1.5; color: var(--hint); }
/* Зачёркнутая старая цена (промо «990 вместо 1990») */
.price-old { opacity: .6; text-decoration: line-through; font-weight: 600; }

/* Веб-оплата (открыто в браузере, без Telegram) */
.web-pay { margin-bottom: 10px; }
.web-pay input { width: 100%; font-family: inherit; font-size: 16px; color: var(--text); padding: 12px 13px; border: 1.5px solid var(--bg-secondary); border-radius: 11px; background: var(--bg-secondary); box-sizing: border-box; }
.web-pay input:focus { outline: none; border-color: var(--brand); background: var(--bg); }
.pay-done { margin: 0 0 16px; padding: 20px 18px; border-radius: 16px; background: var(--win-bg); border: 1px solid rgba(52,211,153,.3); text-align: center; }
.pay-done__title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 7px; }
.pay-done__text { font-size: 13px; line-height: 1.55; color: var(--hint); margin: 0 auto 16px; max-width: 320px; }
.pay-done__btn { width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 18px; }

/* Налоговая подушка (сколько отложить на налоги) */
.sa-hint { font-size: 13px; color: var(--hint); line-height: 1.5; margin-bottom: 14px; }
.sa-grid { display: grid; gap: 10px; }
.sa-cell { display: grid; gap: 5px; }
.sa-cell span { font-size: 12.5px; font-weight: 600; color: var(--hint); }
.sa-cell input { width: 100%; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--text); padding: 11px 13px; border: 1.5px solid var(--bg-secondary); border-radius: 11px; background: var(--bg-secondary); }
.sa-cell input:focus { outline: none; border-color: var(--brand); background: var(--bg); }
.sa-big { margin: 16px 0 10px; padding: 18px; border-radius: 14px; background: var(--win-bg); display: grid; gap: 3px; text-align: center; }
.sa-big__label { font-size: 13px; font-weight: 600; color: var(--hint); }
.sa-big__val { font-size: 30px; font-weight: 800; color: var(--win); letter-spacing: -.02em; }
.sa-big__sub { font-size: 12.5px; color: var(--hint); }
.sa-sub { font-size: 12px; color: var(--hint); text-align: center; margin-bottom: 10px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.sa-chip { font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--bg-secondary); border-radius: 999px; padding: 5px 11px; }
.sa-next { font-size: 13px; line-height: 1.5; color: var(--text); background: var(--bg-secondary); border-radius: 11px; padding: 11px 13px; margin-bottom: 12px; }
.sa-auto { font-size: 14px; line-height: 1.5; color: var(--text); background: var(--win-bg); border-radius: 12px; padding: 14px 16px; margin: 14px 0 10px; }
.sa-note { font-size: 12.5px; color: var(--hint); line-height: 1.55; margin-top: 4px; }
.sa-disclaimer { font-size: 11.5px; color: var(--hint); line-height: 1.5; margin-top: 8px; opacity: .85; }

/* Paywall sheet */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fade .2s; }
.sheet__panel { position: relative; width: 100%; max-width: 560px; margin: 0 auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 12px 20px 28px; animation: slideUp .28s cubic-bezier(.2,.8,.2,1); }
.sheet__grip { width: 38px; height: 4px; border-radius: 999px; background: var(--hint); opacity: .4; margin: 4px auto 14px; }
.sheet__icon { font-size: 34px; text-align: center; }
.sheet__panel h2 { text-align: center; font-size: 21px; font-weight: 800; margin: 6px 0 16px; }
.sheet__list { list-style: none; display: grid; gap: 11px; margin-bottom: 20px; }
.sheet__list li { font-size: 14.5px; font-weight: 500; }
.sheet__note { text-align: center; font-size: 12.5px; color: var(--hint); margin-top: 12px; }

/* Активация по коду доступа */
.code-box { margin: 4px 0 6px; display: grid; gap: 10px; }
.code-box[hidden] { display: none; }
.code-box input { width: 100%; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 16px; font-weight: 700; letter-spacing: 1px; text-align: center; text-transform: uppercase; padding: 13px 14px; border: 1.5px solid var(--brand); border-radius: 11px; background: var(--bg-secondary); color: var(--text); }
.code-box input:focus { outline: none; background: var(--bg); }
.code-msg { text-align: center; font-size: 13px; font-weight: 600; min-height: 18px; margin: 0; }
.code-msg--ok { color: var(--win); }
.code-msg--err { color: #ef4444; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
