/* SELLER — панель автопродаж. Чёрный фон, стекло, фиолетовый акцент (один токен --accent). Без неона.
   Настоящее размытие — только у плавающих слоёв (меню, шторка, тост); карточки — матовое стекло без blur. */
:root {
  color-scheme: dark;
  --bg: #000; --fg: #f3f2f7; --fg2: rgba(243,242,247,.58); --fg3: rgba(243,242,247,.3);
  --card: rgba(255,255,255,.055); --chip: rgba(255,255,255,.08); --chip2: rgba(255,255,255,.13);
  --sep: rgba(255,255,255,.08); --rim: rgba(255,255,255,.09); --hi: rgba(255,255,255,.07);
  --accent: #a995ff; --accent2: #7c6cf0; --accent-soft: rgba(169,149,255,.14); --accent-line: rgba(169,149,255,.5); --on-accent: #0e0a1f;
  --ok: #57d3a4; --warn: #f0b354; --bad: #f07272; --info: #7fb2ff;
  --fp: #5aa0ff; --po: #ff8fb4;
  --sheet: rgba(16,15,20,.84); --tabbg: rgba(24,23,30,.5);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overscroll-behavior: none; }
body { font: 15px/1.35 'Onest', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums; --sab: max(env(safe-area-inset-bottom), var(--tg-sab, 0px)); }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
input, textarea { border: 0; outline: none; background: transparent; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--fg3); }
a { color: inherit; }
[hidden] { display: none !important; }
svg { display: block; }
.ic { display: inline-flex; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes slIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slToast { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slSpin { to { transform: rotate(360deg); } }
@keyframes slPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes slFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.press { transition: transform .3s cubic-bezier(.3,1.3,.5,1), opacity .2s; }
.press:active { transform: scale(.96); }

/* ---------- каркас ---------- */
.app { position: fixed; inset: 0; max-width: 520px; margin: 0 auto; overflow: hidden; background: #000; }
.app::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(75% 36% at 8% 2%, rgba(169,149,255,.13), transparent 70%), radial-gradient(60% 30% at 100% 62%, rgba(124,108,240,.08), transparent 70%); }
.bgsky { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.scroll { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain;
  padding: var(--top, 16px) 0 calc(var(--sab) + 120px); }
.scroll::-webkit-scrollbar { display: none; }
.edge-top { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--top, 16px) + 6px); z-index: 8; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.94) 35%, rgba(0,0,0,0)); }
.edge-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--sab) + 124px); z-index: 8; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.5) calc(var(--sab) + 26px), rgba(0,0,0,0)); }
.compact { position: absolute; z-index: 9; left: 90px; right: 90px; top: var(--ctop, -100px); text-align: center; font-size: 15px; font-weight: 600;
  opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compact.on { opacity: 1; }
.screen { display: none; flex-direction: column; animation: slIn .34s cubic-bezier(.2,.8,.2,1) backwards; }
.screen.on { display: flex; }

/* ---------- шапки и подписи ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px 0 20px; min-height: 44px; }
.title { flex: 1; min-width: 0; margin: 0; font-size: 31px; line-height: 38px; font-weight: 750; letter-spacing: -1.1px; }
.sub { padding: 2px 20px 0; font-size: 15px; line-height: 20px; color: var(--fg2); text-wrap: pretty; }
.h2 { margin: 26px 20px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.h2 small { font-size: 13px; font-weight: 500; color: var(--fg2); letter-spacing: 0; }
.h2 button { font-size: 14px; font-weight: 650; color: var(--accent); letter-spacing: 0; }
.label { margin: 18px 4px 8px; font-size: 13px; font-weight: 600; color: var(--fg2); }
.note { margin: 10px 4px 0; font-size: 13px; line-height: 18px; color: var(--fg2); text-wrap: pretty; }
.muted { color: var(--fg2); }
.round { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.round .ic { width: 20px; height: 20px; }
.round--accent { background: var(--accent); color: var(--on-accent); }
.round--accent svg { stroke-width: 2.6; }
.hhead { margin: 0 16px; display: flex; align-items: center; gap: 12px; min-height: 52px; }
.ava { width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0; object-fit: cover; background: linear-gradient(145deg, var(--accent), var(--accent2));
  color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 750; }
.hhead__m { flex: 1; min-width: 0; }
.hhead__t { font-size: 17px; font-weight: 750; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hhead__s { font-size: 13px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { flex-shrink: 0; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--rim); }

/* ---------- матовое стекло карточек ---------- */
.card, .tile, .row, .hero, .field, .box, .chip, .seg, .ev {
  background-image: linear-gradient(var(--card), var(--card)); background-color: rgba(0,0,0,.86);
  box-shadow: inset 0 0 0 1px var(--rim), inset 0 1px 0 var(--hi); }
.sheet .card, .sheet .row, .sheet .field, .sheet .box, .sheet .chip, .sheet .seg { background-color: transparent; }

/* ---------- главная ---------- */
.hero { position: relative; margin: 14px 16px 0; padding: 18px 18px 16px; min-height: 148px; border-radius: 30px; overflow: hidden;
  background-image: linear-gradient(150deg, rgba(169,149,255,.2), rgba(169,149,255,.03) 62%), linear-gradient(var(--card), var(--card)); }
.hero__k { font-size: 13px; font-weight: 600; color: var(--fg2); }
.hero__n { margin-top: 2px; font: 800 52px/1 'Unbounded', 'Onest', system-ui, sans-serif; letter-spacing: -2px; }
.hero__s { margin-top: 10px; max-width: 62%; font-size: 14px; line-height: 19px; color: var(--fg2); text-wrap: pretty; }
.hero__s b { color: var(--fg); font-weight: 650; }
.hero__art { position: absolute; right: 4px; bottom: 2px; width: 132px; height: 132px; pointer-events: none; }
.hero__art tgs-sticker { width: 100%; height: 100%; }
.hero--start { text-align: center; padding: 14px 20px 20px; min-height: 0; }
.hero--start .hero__art { position: static; margin: 0 auto; width: 150px; height: 150px; }
.hero--start .hero__t { margin-top: 4px; font-size: 22px; line-height: 27px; font-weight: 800; letter-spacing: -.6px; }
.hero--start .hero__s { max-width: none; margin: 8px auto 16px; }
.tiles { margin: 10px 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 13px 14px 12px; border-radius: 22px; display: block; width: 100%; }
.tile b { display: block; font-size: 24px; line-height: 28px; font-weight: 750; letter-spacing: -.8px; }
.tile span { display: block; margin-top: 1px; font-size: 12px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.warn b { color: var(--warn); }
.list { margin: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.row { width: 100%; min-height: 64px; padding: 10px 14px; border-radius: 22px; display: flex; align-items: center; gap: 12px; }
.row__ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.row__ic .ic { width: 21px; height: 21px; }
.row__ic tgs-sticker { width: 34px; height: 34px; }
.row__ic--fp { background: rgba(90,160,255,.16); color: var(--fp); }
.row__ic--po { background: rgba(255,143,180,.16); color: var(--po); }
.row__ic b { font: 800 13px/1 'Unbounded', 'Onest', sans-serif; letter-spacing: -.3px; }
.row__m { flex: 1; min-width: 0; }
.row__t { font-size: 16px; line-height: 20px; font-weight: 650; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__s { margin-top: 2px; font-size: 13px; line-height: 17px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.row__s span { overflow: hidden; text-overflow: ellipsis; }
.row__r { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: var(--fg2); }
.row__r b { font-size: 15px; font-weight: 700; color: var(--fg); }
.row--add { justify-content: center; min-height: 54px; color: var(--accent); font-weight: 650; background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  box-shadow: inset 0 0 0 1px var(--accent-line); }
.row--add .ic { width: 18px; height: 18px; }
.row--add svg { stroke-width: 2.6; }
.chev { width: 8px; height: 14px; flex-shrink: 0; color: var(--fg3); }
.chev svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; background: var(--fg3); }
.dot.ok { background: var(--ok); } .dot.new { background: var(--warn); animation: slPulse 1.4s ease-in-out infinite; }
.dot.error { background: var(--warn); } .dot.auth { background: var(--bad); } .dot.off { background: var(--fg3); }
.pill { height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; white-space: nowrap;
  background: var(--chip); color: var(--fg2); }
.pill.ok { background: rgba(87,211,164,.14); color: var(--ok); } .pill.warn { background: rgba(240,179,84,.15); color: var(--warn); }
.pill.bad { background: rgba(240,114,114,.15); color: var(--bad); } .pill.acc { background: var(--accent-soft); color: var(--accent); }
.tag { height: 20px; padding: 0 7px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 750; letter-spacing: .1px; flex-shrink: 0; }
.tag.fp { background: rgba(90,160,255,.16); color: var(--fp); } .tag.po { background: rgba(255,143,180,.16); color: var(--po); }
.tag.any { background: var(--chip); color: var(--fg2); }
.ev { margin: 0 16px; border-radius: 22px; padding: 4px 14px; }
.ev__i { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--sep); font-size: 14px; line-height: 19px; }
.ev__i:first-child { border-top: 0; }
.ev__d { width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; flex-shrink: 0; background: var(--fg3); }
.ev__d.delivered, .ev__d.done { background: var(--ok); } .ev__d.problem { background: var(--warn); } .ev__d.raise, .ev__d.info { background: var(--accent); }
.ev__d.review { background: var(--info); }
.ev__t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ev__w { flex-shrink: 0; font-size: 12px; color: var(--fg3); white-space: nowrap; }

/* ---------- баннер раздела со стикером ---------- */
.bn { position: relative; margin: 14px 16px 0; padding: 16px 132px 16px 18px; min-height: 116px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column;
  justify-content: center; background-image: linear-gradient(150deg, rgba(169,149,255,.16), rgba(169,149,255,.02) 65%), linear-gradient(var(--card), var(--card));
  background-color: rgba(0,0,0,.86); box-shadow: inset 0 0 0 1px var(--rim), inset 0 1px 0 var(--hi); }
.bn__t { font-size: 18px; line-height: 23px; font-weight: 750; letter-spacing: -.4px; }
.bn__s { margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--fg2); text-wrap: pretty; }
.bn__art { position: absolute; right: 8px; top: 50%; margin-top: -58px; width: 116px; height: 116px; pointer-events: none; }
.bn__art tgs-sticker { width: 100%; height: 100%; }
.warnbox { margin: 10px 16px 0; padding: 11px 14px; border-radius: 18px; font-size: 13px; line-height: 18px; color: var(--warn); text-wrap: pretty;
  background: rgba(240,179,84,.09); box-shadow: inset 0 0 0 1px rgba(240,179,84,.24); }
.sheet .warnbox { margin: 12px 0 0; }
.empty { margin: 18px 16px 0; padding: 18px 20px 24px; text-align: center; color: var(--fg2); font-size: 14px; line-height: 19px; text-wrap: pretty; }
.empty tgs-sticker { display: block; width: 150px; height: 150px; margin: 0 auto 6px; }
.empty b { display: block; margin-bottom: 4px; font-size: 19px; font-weight: 750; letter-spacing: -.4px; color: var(--fg); }
.empty .btn { margin-top: 16px; }
.skel { margin: 0 16px; height: 64px; border-radius: 22px; background: var(--card); animation: slPulse 1.3s ease-in-out infinite; }

/* ---------- кнопки, поля, переключатели ---------- */
.btn { width: 100%; height: 54px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 17px; font-weight: 700; text-align: center; transition: transform .25s cubic-bezier(.3,1.3,.5,1), opacity .2s, filter .2s; }
.btn:active { transform: scale(.97); filter: brightness(.92); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost { background: var(--chip); color: var(--fg); }
.btn.danger { background: rgba(240,114,114,.14); color: var(--bad); }
.btn.sm { height: 46px; font-size: 15px; }
.btn .ic { width: 19px; height: 19px; }
.btns { margin-top: 12px; display: flex; gap: 8px; }
.stack { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.spin { width: 18px; height: 18px; border-radius: 999px; border: 2.2px solid var(--fg3); border-top-color: var(--fg); animation: slSpin .8s linear infinite; flex-shrink: 0; }
.btn:not(.ghost):not(.danger) .spin { border-color: rgba(14,10,31,.3); border-top-color: var(--on-accent); }
.field { min-height: 52px; border-radius: 18px; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.field input { flex: 1; height: 52px; font-size: 16px; }
.field textarea { flex: 1; min-height: 116px; padding: 14px 0; font-size: 15px; line-height: 21px; resize: none; }
.field.mono textarea, .field.mono input { font: 14px/20px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.field + .field { margin-top: 8px; }
.seg { position: relative; height: 44px; border-radius: 16px; padding: 4px; display: flex; gap: 4px; }
.seg button { flex: 1; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 650; color: var(--fg2); text-align: center; }
.seg button.on { background: var(--accent-soft); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.on { background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip small { font-size: 12px; font-weight: 700; color: var(--fg2); }
.chip.var { height: 30px; padding: 0 10px; font: 600 13px/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--accent); }
.fchips { margin: 12px 0 0; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchips .chip { flex-shrink: 0; }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; border-radius: 999px; background: var(--chip2); transition: background .25s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #fff;
  transition: transform .3s cubic-bezier(.3,1.3,.5,1); box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.box { border-radius: 22px; overflow: hidden; }
.opt { width: 100%; min-height: 54px; padding: 9px 14px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--sep); }
.opt:first-child { border-top: 0; }
.opt__ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.opt__ic .ic { width: 18px; height: 18px; }
.opt__m { flex: 1; min-width: 0; }
.opt__t { font-size: 16px; font-weight: 600; }
.opt__s { margin-top: 1px; font-size: 13px; line-height: 17px; color: var(--fg2); text-wrap: pretty; }
.opt.danger .opt__t, .opt.danger .opt__ic { color: var(--bad); }
.opt__v { flex-shrink: 0; max-width: 46%; font-size: 14px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- нижнее меню: стеклянная панель, без «линзы» и анимаций ---------- */
.tabbar { position: absolute; z-index: 12; left: 14px; right: 14px; bottom: calc(var(--sab) + 20px); height: 64px; padding: 5px; border-radius: 32px; display: flex;
  isolation: isolate; -webkit-user-select: none; user-select: none;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 55%, rgba(255,255,255,.035)), var(--tabbg);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 22px 44px -16px rgba(0,0,0,.9), 0 4px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.tabbar::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.4), rgba(255,255,255,.1) 18%, rgba(255,255,255,.035) 46%, rgba(255,255,255,.05) 70%, rgba(255,255,255,.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tab { position: relative; z-index: 1; flex: 1 1 0; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: rgba(243,242,247,.45); }
.tab__ic { display: block; width: 24px; height: 24px; position: relative; }
.tab__ic svg { width: 24px; height: 24px; overflow: visible; fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab__l { font-size: 10.5px; line-height: 12px; font-weight: 550; letter-spacing: -.05px; white-space: nowrap; }
.tab.on { color: var(--fg); }
.tab.on .tab__ic { color: var(--accent); }
.tab.on .tab__ic svg.solid { fill-opacity: 1; }
.tab.on .tab__l { font-weight: 650; }
.tab__n { position: absolute; top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--warn); color: #1a1204;
  font-size: 10.5px; line-height: 17px; font-weight: 800; text-align: center; }
@media (max-width: 370px) { .tabbar { left: 8px; right: 8px; } .tab__l { font-size: 9.5px; } }

/* ---------- шторка ---------- */
.dim { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.66); opacity: 0; transition: opacity .4s ease; }
.dim.on { opacity: 1; }
.sheet { position: absolute; z-index: 31; left: 8px; right: 8px; bottom: calc(var(--sab) + 8px); max-height: calc(100% - var(--top, 16px) - var(--sab) - 16px);
  border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; background: var(--sheet);
  -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--rim), inset 0 1px 0 rgba(255,255,255,.08), 0 -6px 30px rgba(0,0,0,.5);
  transform: translateY(110%); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.sheet.on { transform: translateY(var(--dy, 0px)); }
.sheet.drag { transition: none; }
.sheet__top { position: relative; flex-shrink: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 0; touch-action: none; }
.sheet__grab { position: absolute; top: 7px; left: 50%; margin-left: -18px; width: 36px; height: 5px; border-radius: 999px; background: var(--fg3); }
.sheet__title { font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.sheet__top .round .ic { width: 16px; height: 16px; }
.sheet__body { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4px 16px calc(22px + var(--sab)); }
.sheet__body::-webkit-scrollbar { display: none; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.center tgs-sticker { width: 132px; height: 132px; }
.big { margin-top: 6px; font-size: 23px; line-height: 28px; font-weight: 750; letter-spacing: -.6px; }
.lead { margin-top: 5px; font-size: 15px; line-height: 20px; color: var(--fg2); max-width: 320px; text-wrap: pretty; }
.kv { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.kv div { border-radius: 18px; background: var(--chip); padding: 11px 13px; min-width: 0; }
.kv span { display: block; font-size: 12px; color: var(--fg2); }
.kv b { display: block; margin-top: 2px; font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre { margin-top: 8px; padding: 12px 14px; border-radius: 18px; background: var(--chip); font: 13.5px/19px ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; }
.errbox { margin-top: 12px; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 19px; color: var(--bad); background: rgba(240,114,114,.1);
  box-shadow: inset 0 0 0 1px rgba(240,114,114,.26); overflow-wrap: anywhere; }
.steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: st; position: relative; padding-left: 34px; font-size: 14px; line-height: 20px; color: var(--fg2); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { color: var(--fg); font-weight: 650; }
.mkt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mkt button { height: 112px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; }
.mkt .row__ic { width: 48px; height: 48px; border-radius: 16px; }
.stock__i { display: flex; align-items: center; gap: 8px; padding: 9px 4px 9px 14px; border-top: 1px solid var(--sep); }
.stock__i:first-child { border-top: 0; }
.stock__i code { flex: 1; min-width: 0; font: 13px/18px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.stock__i button { width: 34px; height: 34px; flex-shrink: 0; color: var(--fg3); display: flex; align-items: center; justify-content: center; }
.stock__i button .ic { width: 15px; height: 15px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--fg2); }
.check i { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; background: var(--chip2); display: flex; align-items: center; justify-content: center; }
.check.on i { background: var(--accent); }
.check i svg { width: 13px; height: 13px; fill: none; stroke: var(--on-accent); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check.on i svg { opacity: 1; }

/* ---------- тост ---------- */
.toast { position: absolute; z-index: 50; left: 0; right: 0; top: calc(var(--top, 16px) + 6px); display: flex; justify-content: center; pointer-events: none; }
.toast div { max-width: calc(100% - 40px); min-height: 40px; padding: 10px 18px; border-radius: 22px; font-size: 14px; font-weight: 600; text-align: center;
  background: rgba(30,28,38,.78); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--rim), 0 8px 24px rgba(0,0,0,.4); animation: slToast .4s cubic-bezier(.22,1,.36,1) backwards; }

/* ---------- заставка ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #000;
  transition: opacity .6s ease, transform .6s cubic-bezier(.3,.7,.4,1); }
.splash::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 42%, rgba(169,149,255,.16), transparent 72%); }
.splash.off { opacity: 0; transform: scale(1.05); pointer-events: none; }
.splash__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__hero { position: relative; width: min(60vw, 240px); aspect-ratio: 1 / 1; margin-top: -56px; animation: slFloat 3.6s ease-in-out infinite; }
.splash__brand { position: relative; margin-top: 10px; text-align: center; }
.splash__brand b { display: block; font: 900 30px/1 'Unbounded', 'Onest', system-ui, sans-serif; letter-spacing: 2px; color: #fff; }
.splash__brand span { display: block; margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.55); }
.splash__bar { position: absolute; left: 50%; bottom: calc(max(env(safe-area-inset-bottom), 0px) + 54px); width: 150px; margin-left: -75px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,.12); overflow: hidden; }
.splash__bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left center; transform: scaleX(.04); transition: transform .45s ease; }
.gate { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.gate tgs-sticker { width: 170px; height: 170px; }
.gate b.name { font: 900 26px/1 'Unbounded', 'Onest', sans-serif; letter-spacing: 1.5px; }
.gate .idbox { margin-top: 16px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rim);
  display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 ui-monospace, 'SF Mono', Menlo, monospace; }
.gate .idbox .ic { width: 17px; height: 17px; color: var(--fg2); }
