/* Раскладка: экран настройки бренда → кабинет партнёра (меню слева на широком экране, ряд вкладок на телефоне).
   Цвета кабинета и карта повторяют боевой фронт: PartnerCabinet.tsx, .tpl-card-face. Один тёмный вид. */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --ink: #f4f1ea;
  --ink-80: rgba(244, 241, 234, 0.8);
  --ink-70: rgba(244, 241, 234, 0.7);
  --ink-50: rgba(244, 241, 234, 0.5);
  --ink-40: rgba(244, 241, 234, 0.4);
  --champ: #e7c987;
  --champ-hi: #f0d69b;
  --champ-30: rgba(231, 201, 135, 0.3);
  --champ-10: rgba(231, 201, 135, 0.1);
  --champ-06: rgba(231, 201, 135, 0.06);
  --tile: rgba(0, 0, 0, 0.2);
  --field: #15151a;
  --positive: #6ee7b7;
  --positive-soft: rgba(52, 211, 153, 0.1);
  --warn: #e08a3c;
  --disp: "Unbounded", "Golos Text", system-ui, sans-serif;
  --sans: "Golos Text", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --serif: Georgia, "Times New Roman", serif;
  /* Цвет посетителя; app.js подменяет на <html>. Красит карту «своего цвета» и приложение клиента. */
  --brand: #d4a853;
  --brand-ink: #14110a;
  --brand-soft: rgba(212, 168, 83, 0.16);
  /* Токены карты; app.js подставляет набор выбранного шаблона. */
  --t-card-face: linear-gradient(150deg, #23232b, #0d0d11);
  --t-card-border: rgba(255, 255, 255, 0.12);
  --t-chip: linear-gradient(135deg, #f2d998, #8a6a2e);
  --t-card-ink: #f3ecdd;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  background-image: radial-gradient(900px 520px at 85% -10%, rgba(231, 201, 135, 0.09), transparent 62%);
  background-repeat: no-repeat;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 2px; }
.fine { font-size: 11px; line-height: 1.5; color: var(--ink-40); }
.fine b { color: var(--ink-50); }

.wrap {
  max-width: 1120px; margin: 0 auto; padding-block: 0 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ── шапка ── */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.top-logo { height: 24px; width: auto; display: block; }
.top-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.badge-mark {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: rgba(231, 201, 135, 0.15); color: var(--champ); box-shadow: 0 0 0 1px var(--champ-30);
  font: 600 16px var(--serif); overflow: hidden;
}
.badge-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.top-name { min-width: 0; }
.top-name b { display: block; font: 600 14px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-name span { display: block; font: 11px var(--mono); color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.icon-btn {
  display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--champ-10); background: none; color: var(--ink-70); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.icon-btn:hover { background: var(--champ-10); }
.lang { display: flex; border: 1px solid var(--champ-10); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; height: 34px; padding: 0 10px; font: 600 11px var(--mono); color: var(--ink-50); }
.lang button.on { background: var(--champ); color: #0a0a0b; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--champ); color: #000; font-weight: 600; font-size: 14px; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--champ-hi); }
.btn.wide { width: 100%; }
.btn-quiet { background: var(--champ-10); color: var(--ink-80); }
.btn-quiet:hover { background: rgba(231, 201, 135, 0.2); }

/* ── экран настройки бренда ── */
.setup { display: grid; gap: 24px; padding-top: 12px; }
.kicker { font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--champ); }
h1 { font: 700 clamp(28px, 7.6vw, 52px)/1.08 var(--disp); letter-spacing: -0.02em; margin: 12px 0 14px; text-wrap: balance; }
.lead { color: var(--ink-70); font-size: 16px; max-width: 46ch; }
.setup-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-50); }
.text-in {
  width: 100%; min-height: 48px; padding: 0 14px; background: var(--field);
  border: 1px solid var(--champ-10); border-radius: 12px; font-size: 16px; outline: none;
}
.text-in:focus { border-color: var(--champ); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; padding: 0; background-clip: padding-box; position: relative; }
.sw.on { border-color: var(--ink); }
.sw-custom { overflow: hidden; background: conic-gradient(#ff4d4d, #ffd24d, #4dff88, #4dd2ff, #7a4dff, #ff4dd2, #ff4d4d); }
.sw-custom input { position: absolute; inset: -8px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 13px;
  font-size: 12px; font-weight: 500; background: var(--champ-10); color: var(--ink-70); white-space: nowrap; text-decoration: none;
}
.pill:hover { background: rgba(231, 201, 135, 0.2); }
.pill.on { background: var(--champ); color: #0a0a0b; }
.pill svg { width: 14px; height: 14px; flex: none; }
.logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── карта: .tpl-card-face из web/src/index.css ── */
.card-stage { width: 100%; max-width: 440px; margin: 0 auto; }
.tpl-card-face {
  position: relative; width: 100%; aspect-ratio: 1.586; overflow: hidden;
  background: var(--t-card-face); border: 1px solid var(--t-card-border);
  border-radius: 3.715% / 5.888%;
  container-type: inline-size; color: var(--t-card-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.07), 0 26px 50px -18px rgba(0, 0, 0, 0.55), 0 10px 22px -10px rgba(0, 0, 0, 0.32);
}
.tpl-card-face::after {
  content: ""; position: absolute; top: -60%; left: -45%; width: 45%; height: 220%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg); opacity: 0; animation: metalSheen 3s ease-in-out 0.2s infinite;
}
@keyframes metalSheen { 0% { left: -45%; opacity: 0; } 18% { opacity: 1; } 55% { left: 120%; opacity: 0; } 100% { left: 120%; opacity: 0; } }
.tpl-guilloche {
  position: absolute; inset: 0; opacity: 0.42; mix-blend-mode: soft-light; pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 6px),
    repeating-conic-gradient(from 0deg at 55% 45%, rgba(255, 255, 255, 0.04) 0deg 1.5deg, transparent 1.5deg 5deg);
}
.tpl-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 80% at 78% -10%, rgba(255, 255, 255, 0.14) 0%, transparent 55%); }
.tpl-body { position: absolute; inset: 0; padding: 6.2cqw; display: flex; flex-direction: column; }
.tpl-top { display: flex; align-items: center; justify-content: space-between; gap: 4cqw; }
.tpl-word { font: 600 4.4cqw/1.2 var(--sans); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tpl-word { display: flex; align-items: center; gap: 2.4cqw; }
.tpl-word img { display: block; height: 8cqw; max-width: 36cqw; object-fit: contain; border-radius: 1cqw; }
.tpl-contactless { width: 5cqw; height: 5cqw; flex: none; opacity: 0.8; }
.tpl-card-chip {
  position: relative; width: 13.4cqw; height: 9.9cqw; border-radius: 1.2cqw; margin-top: 5cqw;
  background: var(--t-chip); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}
.tpl-card-chip::before {
  content: ""; position: absolute; inset: 16% 9%;
  background:
    linear-gradient(rgba(70, 48, 10, 0.42), rgba(70, 48, 10, 0.42)) 33.3% 0 / 0.8px 100% no-repeat,
    linear-gradient(rgba(70, 48, 10, 0.42), rgba(70, 48, 10, 0.42)) 66.6% 0 / 0.8px 100% no-repeat,
    linear-gradient(rgba(70, 48, 10, 0.36), rgba(70, 48, 10, 0.36)) 0 50% / 100% 0.8px no-repeat;
}
.tpl-emboss { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24), 0 -1px 0 rgba(0, 0, 0, 0.32); }
.tpl-pan { font: 500 5cqw var(--mono); letter-spacing: 0.06em; margin-top: 3.4cqw; white-space: nowrap; }
.tpl-bottom { margin-top: auto; display: flex; align-items: flex-end; gap: 4cqw; }
.tpl-holder { font-size: 3cqw; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.92; white-space: nowrap; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tpl-valid { display: flex; align-items: center; gap: 1.4cqw; }
.tpl-valid i { font-style: normal; font-size: 1.8cqw; line-height: 1.1; opacity: 0.5; text-transform: uppercase; }
.tpl-valid b { font: 500 3cqw var(--mono); }
.tpl-scheme { display: grid; justify-items: center; gap: 0.6cqw; flex: none; }
.tpl-scheme svg { height: 6cqw; width: auto; display: block; }
.tpl-scheme span { font-size: 2.1cqw; letter-spacing: 0.22em; opacity: 0.7; }

/* ── кабинет ── */
.cab { display: grid; gap: 20px; }
.nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.nav::-webkit-scrollbar { display: none; }
.pane { display: grid; gap: 28px; min-width: 0; max-width: 768px; }
.sec { display: grid; gap: 12px; min-width: 0; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-80); }
.sec-h svg { width: 16px; height: 16px; color: var(--champ); flex: none; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { border-radius: 16px; border: 1px solid var(--champ-10); background: var(--tile); padding: 12px 16px; min-width: 0; }
.stat.accent { border-color: var(--champ-30); background: var(--champ-06); }
.stat span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-50); }
.stat b { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.accent b { color: var(--champ); }
.panel { border-radius: 16px; border: 1px solid var(--champ-10); background: var(--tile); padding: 16px; display: grid; gap: 14px; min-width: 0; }
.rows { display: grid; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; border-radius: 12px; background: var(--tile); border: 1px solid var(--champ-10); padding: 8px 12px; min-width: 0; }
.row-t { flex: 1; min-width: 0; font-size: 13px; }
.row-t small { display: block; font-size: 11px; color: var(--ink-40); }
.row b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.row.sum { border-color: var(--champ-30); background: var(--champ-06); }
.row.sum b { color: var(--champ); }
.badge { flex: none; border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 500; background: var(--champ-10); color: var(--champ); white-space: nowrap; }
.badge.monthly { background: var(--positive-soft); color: var(--positive); }

.sliders { display: grid; gap: 16px; }
.sl { display: grid; gap: 6px; }
.sl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--ink-70); }
.sl-h b { font: 600 15px var(--mono); color: var(--ink); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--champ) var(--fill, 0%), rgba(231, 201, 135, 0.14) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(231, 201, 135, 0.14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--champ); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--champ); border: 3px solid #0a0a0b; box-shadow: 0 0 0 1px var(--champ); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--champ); border: 3px solid #0a0a0b; box-shadow: 0 0 0 1px var(--champ); }
details.more > summary { cursor: pointer; font-size: 12px; font-weight: 500; color: var(--champ); list-style: none; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; font-family: var(--mono); }
details.more[open] > summary::before { content: "− "; }
details.more > .sliders, details.more > .notes { margin-top: 14px; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.warn { font-size: 12px; color: var(--warn); }

/* ── приложение клиента ── */
.client { display: grid; gap: 20px; justify-items: center; }
.phone {
  position: relative; width: 100%; max-width: 340px; background: #0a0a10; border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 34px; padding: 44px 18px 22px; min-height: 500px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.phone-flag { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font: 600 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.phone-head { display: flex; align-items: center; gap: 10px; font: 600 15px var(--sans); margin-bottom: 18px; }
.mark { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font: 700 14px var(--sans); overflow: hidden; }
.mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.muted { color: var(--ink-50); font-size: 12.5px; }
.bal { font: 700 32px/1.1 var(--sans); margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.act { display: grid; place-items: center; min-height: 42px; border-radius: 12px; background: var(--field); font-size: 12.5px; font-weight: 600; text-align: center; padding: 0 4px; }
.act-main { background: var(--brand); color: var(--brand-ink); }
.tx li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(244, 241, 234, 0.1); font-size: 14px; }
.tx b { font: 600 14px var(--mono); }
.pos { color: var(--positive); }
.screen-h { font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.screen .muted { margin: 12px 0 8px; }
.nets { display: flex; gap: 8px; }
.net { padding: 8px 14px; border-radius: 10px; background: var(--field); font: 600 13px var(--mono); }
.net.on { background: var(--brand); color: var(--brand-ink); }
.addr { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--field); }
.addr code { font: 500 12px var(--mono); color: var(--ink-50); word-break: break-all; }
.fakeqr { flex: none; width: 68px; height: 68px; border-radius: 8px; background-color: #fff; background-image: conic-gradient(#111 25%, transparent 0 50%, #111 0 75%, transparent 0), conic-gradient(transparent 25%, #111 0 50%, transparent 0 75%, #111 0); background-size: 18px 18px, 12px 12px; background-position: 0 0, 3px 3px; box-shadow: inset 0 0 0 6px #fff; }
.feeline { display: flex; justify-content: space-between; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; }
.feeline b { font-family: var(--mono); color: var(--brand); }
.push { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--field); }
.push div { display: grid; font-size: 13px; }
.push div span { color: var(--ink-50); }
.receipt { text-align: center; padding: 24px 0 8px; }
.ok { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 26px; font-weight: 700; }
.receipt .bal { margin-bottom: 4px; }
.phone .fine { text-align: center; margin-top: 12px; }

.client-box { display: grid; gap: 20px; align-items: center; }
.client-side { display: grid; gap: 10px; }
.client-qr { display: flex; align-items: center; gap: 14px; }
.qr { flex: none; background: #fff; padding: 8px; border-radius: 10px; }
.qr svg { display: block; width: 104px; height: 104px; }

/* Экран приложения: на телефоне — на весь экран, на широком — в рамке телефона. */
.app { max-width: 430px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; padding: 12px 0 96px; }
.app-flag { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.app-flag a { color: inherit; }
.app-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.app-screen { display: grid; gap: 4px; }
.app-screen .card-stage { margin-bottom: 14px; }
button.act { border: 0; color: var(--ink); cursor: pointer; }
button.act.act-main { color: var(--brand-ink); }
.app-do { width: 100%; min-height: 50px; margin-top: 18px; font-size: 15px; }
.app-earn { padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--champ-30); background: var(--champ-06); color: var(--champ); font-size: 13px; }
.app-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 430px; margin: 0 auto; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 10, 11, 0.94); border-top: 1px solid rgba(244, 241, 234, 0.1); }
.app-nav button { background: none; border: 0; min-height: 44px; border-radius: 12px; color: var(--ink-50); font-size: 13px; font-weight: 600; }
.app-nav button.on { color: var(--brand); background: var(--brand-soft); }

/* ── условия ── */
.models { display: grid; gap: 10px; }
.model { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--tile); border: 1px solid var(--champ-10); }
.model.on { border-color: var(--champ-30); background: var(--champ-06); }
.model-name { font-size: 15px; font-weight: 600; }
.model-fee { font: 600 22px var(--sans); font-variant-numeric: tabular-nums; color: var(--champ); grid-row: span 2; }
.model-cap { font-size: 11px; color: var(--ink-50); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.tbl th, .tbl td { padding: 10px 2px; border-bottom: 1px solid var(--champ-10); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; color: var(--ink-70); width: 31%; font-size: 12px; overflow-wrap: break-word; hyphens: auto; }
.tbl thead th { font-size: min(10px, 2.5vw); font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-50); }
.tbl td { font-size: min(13px, 3.05vw); white-space: nowrap; }
.tbl td:first-child { white-space: normal; }
.tbl .sel { color: var(--champ); }
.tbl tr.total td { font-weight: 600; color: var(--ink); border-bottom: 0; border-top: 1px solid var(--champ-30); }
.tbl tr.total td.sel { color: var(--champ); }
.notes { display: grid; gap: 8px; }

/* ── запуск ── */
.speed { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: var(--champ-06); border: 1px solid var(--champ-30); }
.speed b { font: 700 26px/1.15 var(--disp); color: var(--champ); }
.speed span:last-child { color: var(--ink-70); font-size: 13px; }
.steps { display: grid; gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--tile); border: 1px solid var(--champ-10); font-size: 13px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 11px var(--mono); color: var(--champ); }
.steps li.here { border-color: var(--champ-30); background: var(--champ-06); }
.cta-btns { display: grid; gap: 8px; }
.contact { font: 500 13px var(--mono); color: var(--ink-70); user-select: all; overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; background: var(--ink); color: #0a0a0b; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.86); display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; }
.modal img { max-width: 100%; max-height: 70vh; border-radius: 12px; }
.modal p { color: var(--ink-70); font-size: 14px; text-align: center; }

@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .models { grid-template-columns: repeat(3, 1fr); }
  .model { grid-template-columns: 1fr; }
  .model-fee { grid-row: auto; margin: 6px 0 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tbl td { font-size: 14px; }
  .tbl thead th { font-size: 10px; }
}
@media (min-width: 600px) {
  .client-box { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .app { min-height: 0; margin-top: 24px; padding: 28px 22px 96px; border: 1px solid rgba(244, 241, 234, 0.14); border-radius: 40px; background: #0a0a10; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); position: relative; }
  .app-nav { position: absolute; border-radius: 0 0 40px 40px; }
}
@media (min-width: 900px) {
  .setup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 40px; }
  .setup .card-col { order: 2; }
  .cab { grid-template-columns: 216px minmax(0, 1fr); gap: 32px; align-items: start; }
  .nav { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: sticky; top: 16px; }
  .nav .pill { border-radius: 12px; padding: 10px 14px; font-size: 13px; }
  .sliders.two { grid-template-columns: 1fr 1fr; gap: 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpl-card-face::after { animation: none; }
}
.app .acts { grid-template-columns: 1fr 1fr; }
.pill.ex { padding: 5px 12px 5px 5px; }
.pill.ex img { width: 24px; height: 24px; border-radius: 50%; display: block; }
/* Три модели всегда в один ряд: название сверху, взнос снизу. */
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg3 .pill { flex-direction: column; gap: 1px; padding: 8px 4px; border-radius: 12px; white-space: normal; text-align: center; min-width: 0; }
.seg3 .pill span { font-size: min(12px, 3.1vw); font-weight: 600; }
.seg3 .pill small { font-size: 11px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.to-terms { justify-self: start; }

/* ── появление экранов и разделов ── */
#view-setup, #view-cab, #view-app, .pane { animation: rise 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── карта: наклон за пальцем, переворот по нажатию ── */
.card3d { perspective: 1100px; cursor: pointer; touch-action: pan-y; }
.card3d-in { position: relative; transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); }
.card3d.flipped .card3d-in { --flip: 180deg; }
.card3d .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card3d .back {
  position: absolute; inset: 0; transform: rotateY(180deg); overflow: hidden; container-type: inline-size;
  background: var(--t-card-face); border: 1px solid var(--t-card-border); border-radius: 3.715% / 5.888%; color: var(--t-card-ink);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.55);
}
.cb-stripe { height: 17%; margin-top: 9%; background: #0b0b0d; }
.cb-sign { display: flex; align-items: center; justify-content: flex-end; gap: 3cqw; width: 78%; margin: 7% 6.2cqw 0; padding: 2.4cqw 3cqw; background: repeating-linear-gradient(90deg, #f3f0ea 0 6px, #e6e1d6 6px 12px); color: #17130c; border-radius: 1cqw; font: 500 3.4cqw var(--mono); }
.cb-sign span { opacity: 0.6; font-size: 2.6cqw; }
.cb-note { position: absolute; left: 6.2cqw; bottom: 6.2cqw; font-size: 2.6cqw; letter-spacing: 0.08em; opacity: 0.7; text-transform: uppercase; }
.flip-hint { text-align: center; margin-top: 10px; }

/* ── приложение клиента ── */
.app { position: relative; }
.app-push { position: fixed; z-index: 8; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; width: min(400px, calc(100% - 24px)); transform: translate(-50%, -140%); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(28, 28, 34, 0.96); border: 1px solid rgba(244, 241, 234, 0.14); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
.app-push.show { animation: pushIn 3.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes pushIn { 0% { transform: translate(-50%, -140%); } 9%, 88% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, -140%); } }
.app-push div { display: grid; font-size: 13px; min-width: 0; }
.app-push div span { color: var(--ink-70); font-family: var(--mono); }
.bal { font-variant-numeric: tabular-nums; }
.tx li { align-items: center; gap: 10px; }
.tx li span { flex: 1; }
.tx-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 14px; background: var(--field); color: var(--ink-70); }
.tx-ic.tx-t { background: var(--positive-soft); color: var(--positive); }
.tx li.fresh { animation: fresh 1.6s ease both; }
@keyframes fresh { 0% { background: var(--brand-soft); transform: translateX(-8px); opacity: 0; } 30% { opacity: 1; transform: none; } 100% { background: transparent; } }
.week-box { margin: 4px 0 14px; padding: 14px; border-radius: 16px; background: var(--field); }
.week-box .muted { margin: 0 0 10px; }
.week-box .muted b { color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 92px; }
.wk { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--ink-50); font-size: 10.5px; }
.wk i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: rgba(244, 241, 234, 0.22); transition: height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wk.today i { background: var(--brand); }
.wk em { position: absolute; top: -4px; font: 500 10px var(--mono); font-style: normal; color: var(--ink); background: #000; padding: 2px 5px; border-radius: 6px; opacity: 0; pointer-events: none; white-space: nowrap; }
.wk:hover em, .wk:focus em { opacity: 1; }
.flow { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--field); animation: rise 0.3s both; }
.flow ol { display: grid; gap: 12px; }
.flow li { position: relative; padding-left: 28px; font-size: 14px; color: var(--ink-50); }
.flow li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(244, 241, 234, 0.25); }
.flow li.on { color: var(--ink); }
.flow li.on::before { border-color: var(--brand); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.flow li.done { color: var(--ink); }
.flow li.done::before { border: 0; width: 20px; height: 20px; left: -2px; top: 0; background: var(--positive); }
.flow li.done::after { content: ""; position: absolute; left: 5px; top: 4px; width: 5px; height: 9px; border: solid #06281c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: rgba(244, 241, 234, 0.12); overflow: hidden; }
.flow-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.08s linear; }
.term { text-align: center; padding: 18px 0 6px; }
.term-rings { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; display: grid; place-items: center; }
.term-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0.18; }
.term-rings i:nth-child(2) { inset: 18px; opacity: 0.3; }
.term-rings i:nth-child(3) { inset: 36px; opacity: 0.5; background: var(--brand-soft); }
.term.wait .term-rings i { animation: ring 1.2s ease-out infinite; }
.term.wait .term-rings i:nth-child(2) { animation-delay: 0.15s; }
.term.wait .term-rings i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ring { 0% { transform: scale(0.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.term-ok { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--positive); font-size: 0; transform: scale(0); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.term.done .term-ok { transform: scale(1); }
.term.done #app-term-text { color: var(--positive); }

/* ── отчёты ── */
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 600 10px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--positive); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
.sec-val { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ev-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 13px; background: var(--champ-10); color: var(--champ); }
.row.ev b { color: var(--positive); }
/* Ровно пять строк по 58px и четыре зазора по 6px; строки не сжимаются, лишние прокручиваются. */
.feed { height: 314px; overflow-y: auto; align-content: start; scrollbar-width: thin; overscroll-behavior: contain; }
.row.ev { flex: none; height: 58px; box-sizing: border-box; overflow: hidden; }
.row.ev .row-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.ev .row-t small { overflow: hidden; text-overflow: ellipsis; }
.row.ev.in { animation: evIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.row.ev.mine { border-color: var(--champ-30); background: var(--champ-06); }
@keyframes evIn { from { opacity: 0; height: 0; margin-bottom: -6px; padding-block: 0; border-width: 0; } to { opacity: 1; height: 58px; margin-bottom: 0; } }
.chart { position: relative; padding: 12px 10px 6px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: rgba(244, 241, 234, 0.08); stroke-width: 1; }
.chart .tick { fill: rgba(244, 241, 234, 0.5); font: 11px var(--sans); }
.chart .bar { fill: var(--champ); }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(244, 241, 234, 0.06); }
.tip { position: absolute; top: 8px; display: grid; gap: 2px; min-width: 120px; padding: 8px 10px; border-radius: 10px; background: #000; border: 1px solid var(--champ-30); font-size: 12px; pointer-events: none; }
.tip span { color: var(--ink-50); }
.tip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.mixbar { display: flex; gap: 2px; height: 22px; }
.mixbar i { display: block; min-width: 3px; border-radius: 4px; transition: flex 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.legend { display: grid; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend li i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.legend li span { flex: 1; color: var(--ink-70); }
.legend li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.legend li em { width: 38px; text-align: right; font-style: normal; color: var(--ink-50); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  #view-setup, #view-cab, #view-app, .pane, .flow, .row.ev.in, .tx li.fresh { animation: none; }
  .card3d-in, .wk i, .mixbar i { transition: none; }
  .live i, .term.wait .term-rings i, .flow li.on::before { animation: none; }
}
.term-ok::after { content: ""; position: absolute; left: 18px; top: 10px; width: 10px; height: 20px; border: solid #06281c; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.chart .tick { font-size: 10.5px; }
.lead-qr { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--champ-30); background: var(--champ-06); }
.lead-qr p { font-size: 13px; line-height: 1.45; color: var(--ink-80); }
.qr.big svg { width: 148px; height: 148px; }
@media (max-width: 420px) { .lead-qr { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qr.big svg { width: 200px; height: 200px; } }

/* ══ Кабинет: группы меню и вкладки боевого кабинета ══ */
.nav-g { display: none; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip { display: flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid var(--champ-30); background: rgba(231, 201, 135, 0.05); padding: 8px 12px; font-size: 12px; color: var(--champ); }
.sec-btn { margin-left: auto; padding: 4px 10px; font-size: 11px; }
.chip { display: inline-block; font-style: normal; font-size: 10px; font-weight: 500; line-height: 1.5; padding: 0 6px; border-radius: 999px; background: var(--champ-10); color: var(--champ); vertical-align: 1px; }
.chip.ok { background: var(--positive-soft); color: var(--positive); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--champ); vertical-align: 1px; }
.row.evt.unread { background: var(--champ-06); }
.sev-info { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; }
.sev-warning { background: var(--champ-10); color: var(--champ); }
.ev-amt { flex: none; text-align: right; }
.ev-amt b { display: block; color: var(--champ); font-size: 14px; }
.ev-amt small { display: block; font-size: 11px; color: var(--ink-40); font-variant-numeric: tabular-nums; }
.row.ev .ev-amt b { color: var(--champ); }
.modrow { align-items: center; padding: 10px 12px; }
.sw-toggle { flex: none; width: 44px; height: 26px; border-radius: 999px; border: 0; background: rgba(244, 241, 234, 0.14); position: relative; transition: background 0.2s; }
.sw-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-70); transition: transform 0.2s, background 0.2s; }
.sw-toggle.on { background: var(--champ); }
.sw-toggle.on::after { transform: translateX(18px); background: #0a0a0b; }
@media (max-width: 599px) { .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .nav-g { display: block; margin: 12px 0 2px 4px; font: 600 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-40); }
  .nav-g:first-child { margin-top: 0; }
}

/* ══ Приложение клиента по боевой раскладке ══ */
.app-flag { gap: 8px; }
.app-flag #app-sim { margin-left: auto; border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 3px 9px; font: inherit; letter-spacing: 0.04em; }
.app-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbtn { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--field); color: var(--ink-70); }
.hbtn svg { width: 18px; height: 18px; }
.hbtn #app-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.card-btns { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; }
.apill { border: 0; border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 600; background: var(--field); color: var(--ink-70); white-space: nowrap; }
.apill.on { background: var(--brand); color: var(--brand-ink); }
.bal-label { display: flex; align-items: center; gap: 8px; margin: 0; }
.linkb { display: inline-grid; place-items: center; border: 0; background: none; color: var(--ink-50); padding: 2px; }
.linkb svg { width: 16px; height: 16px; }
.app .bal { margin: 2px 0 2px; font-size: 36px; }
.app .bal small { font-size: 0.55em; color: var(--ink-50); }
.acts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 20px; }
.act4 { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: var(--ink-80); font-size: 11.5px; font-weight: 600; padding: 0; }
.act4 i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--field); color: var(--ink); }
.act4:first-child i { background: var(--brand); color: var(--brand-ink); }
.act4 svg { width: 20px; height: 20px; }
.tx-h { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.app .tx { margin-top: 8px; }
.app .tx li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(244, 241, 234, 0.08); }
.app .tx li span { flex: 1; min-width: 0; display: grid; }
.app .tx li span b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app .tx li span small { font-size: 11.5px; color: var(--ink-50); }
.app .tx li em { font: 600 14px var(--sans); font-style: normal; font-variant-numeric: tabular-nums; }
.app .tx li.empty { justify-content: center; color: var(--ink-50); border: 0; padding: 24px 0; }
.app .tx-ic { width: 38px; height: 38px; }
.app .tx-ic svg { width: 17px; height: 17px; }
.app .tx-ic.tx-t { background: var(--brand-soft); color: var(--brand); }
.app .tx li em.pos { color: var(--brand); }
.app-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.app-nav button { display: grid; justify-items: center; gap: 3px; min-height: 48px; font-size: 10.5px; padding: 4px 2px; }
.app-nav button svg { width: 20px; height: 20px; }
.app-nav button.on { background: none; }
.abox { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--field); margin-top: 12px; }
.abox .muted { margin: 0; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kpis div { padding: 12px; border-radius: 14px; background: var(--field); }
.kpis span { display: block; font-size: 11px; color: var(--ink-50); }
.kpis b { font-size: 17px; font-variant-numeric: tabular-nums; }
.rep-chart { display: block; width: 100%; height: auto; }
.alegend { display: grid; gap: 7px; font-size: 12.5px; color: var(--ink-70); flex: 1; min-width: 0; }
.alegend.row2 { display: flex; gap: 16px; }
.alegend li { display: flex; align-items: center; gap: 8px; }
.alegend li i { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.alegend li span { flex: 1; }
.alegend li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-row { display: flex; align-items: center; gap: 16px; }
.donut { flex: none; width: 104px; height: 104px; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.shop b { font-size: 15px; }
.shop span { font-size: 12.5px; color: var(--ink-50); }
.shop .app-do { margin-top: 4px; }
.plain { display: grid; gap: 8px; }
.plain li { padding: 12px 14px; border-radius: 12px; background: rgba(244, 241, 234, 0.05); font-size: 14px; }
.sheet { position: fixed; inset: 0; z-index: 9; background: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet-in { position: relative; width: 100%; max-width: 430px; max-height: 92%; overflow-y: auto; display: grid; gap: 10px; padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: #121217; border: 1px solid rgba(244, 241, 234, 0.1); border-bottom: 0; animation: sheetUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--field); color: var(--ink-70); font-size: 20px; line-height: 1; }
.sheet-h { font-size: 18px; font-weight: 600; padding-right: 40px; }
.sheet-big { font-size: 20px; font-weight: 700; text-align: center; }
.center { text-align: center; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(244, 241, 234, 0.08); font-size: 14px; }
.srow span { color: var(--ink-70); }
.srow b { font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.mono { font-family: var(--mono); }
.sfield { display: grid; gap: 6px; font-size: 12px; color: var(--ink-50); }
.sfield input { min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(244, 241, 234, 0.12); background: var(--field); font-size: 16px; color: var(--ink); outline: none; width: 100%; }
.sfield input:focus { border-color: var(--brand); }
button.net { border: 0; display: grid; justify-items: start; gap: 0; color: var(--ink); flex: 1; }
button.net small { font-size: 10px; opacity: 0.7; font-weight: 500; }
button.net.on { color: var(--brand-ink); }
button.net:disabled { opacity: 0.5; }
.sheet .addr > div { min-width: 0; display: grid; gap: 4px; }
.sheet .addr .muted { margin: 0; }
.spin { width: 44px; height: 44px; margin: 14px auto 4px; border-radius: 50%; border: 3px solid rgba(244, 241, 234, 0.14); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
.shimmer { height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(244, 241, 234, 0.08) 25%, var(--brand) 50%, rgba(244, 241, 234, 0.08) 75%); background-size: 200% 100%; animation: shim 1.3s linear infinite; }
@keyframes shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.okmark { position: relative; width: 56px; height: 56px; margin: 10px auto 2px; border-radius: 50%; background: var(--positive); animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.okmark::after { content: ""; position: absolute; left: 21px; top: 12px; width: 11px; height: 23px; border: solid #06281c; border-width: 0 4px 4px 0; transform: rotate(45deg); }
@keyframes pop { from { transform: scale(0); } }
.confetti { position: absolute; inset: 0 0 auto; height: 0; pointer-events: none; }
.confetti i { position: absolute; top: 0; width: 8px; height: 12px; border-radius: 2px; background: var(--brand); animation: fall 1.6s ease-out both; }
.confetti i:nth-child(3n) { background: var(--positive); }
.confetti i:nth-child(3n + 1) { background: var(--champ); }
.confetti i:nth-child(1) { left: 6%; animation-delay: 0.05s; } .confetti i:nth-child(2) { left: 13%; animation-delay: 0.2s; } .confetti i:nth-child(3) { left: 20%; } .confetti i:nth-child(4) { left: 27%; animation-delay: 0.3s; }
.confetti i:nth-child(5) { left: 34%; animation-delay: 0.1s; } .confetti i:nth-child(6) { left: 41%; animation-delay: 0.25s; } .confetti i:nth-child(7) { left: 48%; } .confetti i:nth-child(8) { left: 55%; animation-delay: 0.15s; }
.confetti i:nth-child(9) { left: 62%; animation-delay: 0.35s; } .confetti i:nth-child(10) { left: 69%; animation-delay: 0.05s; } .confetti i:nth-child(11) { left: 76%; animation-delay: 0.2s; } .confetti i:nth-child(12) { left: 83%; }
.confetti i:nth-child(13) { left: 90%; animation-delay: 0.3s; } .confetti i:nth-child(14) { left: 96%; animation-delay: 0.1s; }
@keyframes fall { from { transform: translateY(-20px) rotate(0); opacity: 1; } to { transform: translateY(260px) rotate(300deg); opacity: 0; } }
.nlist { display: grid; }
.nlist li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(244, 241, 234, 0.08); font-size: 14px; }
.nlist small { font-size: 12px; color: var(--ink-50); }
@media (min-width: 600px) { .sheet { position: absolute; border-radius: 40px; } .app-nav { position: absolute; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-in, .okmark, .confetti i, .spin, .shimmer { animation: none; } .confetti { display: none; } }
.app .tx li span b { font-family: var(--sans); }
.donut { -webkit-mask: radial-gradient(circle, transparent 43%, #000 44%); mask: radial-gradient(circle, transparent 43%, #000 44%); }
.app-flag { white-space: nowrap; }
.app-flag > span { overflow: hidden; text-overflow: ellipsis; }

/* ══ Проход по вёрстке: минимальный размер текста 12px, ряды кнопок не переносятся ══ */
body { font-size: 16px; }
.fine { font-size: 12.5px; }
.kicker { font-size: 12px; }
.lead { font-size: 17px; }
.field > span { font-size: 12px; }
.sec-h { font-size: 16px; min-width: 0; }
.sec-h > span:not(.live) { flex: 1; min-width: 0; }
.sec-val { font-size: 16px; }
.stat { padding: 14px 16px; }
.stat span { font-size: 12px; letter-spacing: 0.03em; }
.stat b { font-size: 21px; }
.row { padding: 10px 14px; }
.row-t { font-size: 15px; }
.row-t small { font-size: 12.5px; line-height: 1.4; }
.row b { font-size: 16px; }
.badge, .chip { font-size: 12px; padding: 2px 9px; }
.pill { font-size: 14px; padding: 9px 15px; }
.icon-btn { font-size: 13px; height: 38px; }
.lang button { font-size: 12px; height: 36px; padding: 0 11px; }
.top-name b { font-size: 16px; }
.top-name span { font-size: 12px; }
.sl-h { font-size: 15px; }
.sl-h b { font-size: 16px; }
details.more > summary { font-size: 14px; }
.warn { font-size: 13px; }
.seg3 .pill span { font-size: min(14px, 3.6vw); }
.seg3 .pill small { font-size: 12.5px; }
.model-name { font-size: 16px; }
.model-cap { font-size: 12.5px; }
.steps li { font-size: 15px; padding: 11px 14px; }
.steps li::before { font-size: 12px; }
.speed span:last-child { font-size: 14px; }
.live { font-size: 12px; flex: none; }
.ev-amt b { font-size: 16px; }
.ev-amt small { font-size: 12px; }
.feed { height: 346px; }
.row.ev { height: 64px; }
@keyframes evIn { from { opacity: 0; height: 0; margin-bottom: -6px; padding-block: 0; border-width: 0; } to { opacity: 1; height: 64px; margin-bottom: 0; } }
.strip { font-size: 13.5px; }
.contact { font-size: 14px; }
.tbl th:first-child, .tbl td:first-child { font-size: 13px; width: 30%; }
.tbl thead th { font-size: 12px; text-transform: none; letter-spacing: 0; }
.tbl td { font-size: 13px; }

/* Ряды пилюль — одна строка с прокруткой, а не перенос на вторую. */
.pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pills::-webkit-scrollbar { display: none; }
.pills > * { flex: none; }
.panel-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-foot .pill { justify-content: center; text-align: center; white-space: normal; }
.panel-foot .fine { grid-column: 1 / -1; }
.stats.bill { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.bill .stat.accent { grid-column: 1 / -1; }
.top { flex-wrap: nowrap; min-width: 0; }
.nav { flex-wrap: nowrap; }

/* Приложение клиента */
.app-flag { font-size: 12px; padding: 8px 14px; letter-spacing: 0.05em; }
.app-flag > span { flex: 1; min-width: 0; }
.app-flag a { flex: none; }
.app-head { font-size: 18px; flex-wrap: nowrap; }
.muted { font-size: 14px; }
.card-btns { flex-wrap: nowrap; }
.card-btns .fine { flex: 1; min-width: 0; }
.apill { font-size: 14px; padding: 8px 14px; flex: none; }
.act4 { font-size: 13px; }
.tx-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; }
#app-sim { flex: none; border: 1px dashed var(--brand); background: none; color: var(--brand); border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--sans); }
.app .tx li span b { font-size: 15.5px; }
.app .tx li span small { font-size: 13px; }
.app .tx li em { font-size: 15.5px; }
.app-nav button { font-size: 12px; min-height: 52px; }
.kpis span { font-size: 13px; }
.kpis b { font-size: 19px; }
.alegend { font-size: 14px; }
.shop span { font-size: 14px; }
.screen-h, .sheet-h { font-size: 20px; }
.srow { font-size: 15.5px; }
.sfield { font-size: 13px; }
button.net { font-size: 15px; }
button.net small { font-size: 12px; }
.nlist li { font-size: 15.5px; }
.nlist small { font-size: 13px; }
.addr code { font-size: 13px; }
@media (min-width: 600px) {
  .stats.bill { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.bill .stat.accent { grid-column: auto; }
  .tbl td, .tbl th:first-child, .tbl td:first-child { font-size: 15px; }
  .tbl thead th { font-size: 13px; }
}
@media (min-width: 900px) { .nav { flex-wrap: nowrap; } .nav .pill { font-size: 15px; } }
#app-week { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.swatches::-webkit-scrollbar { display: none; }
.sw { flex: none; }
/* Прокручиваемый ряд гаснет к правому краю: видно, что дальше есть ещё. */
@media (max-width: 899px) {
  .nav, #examples, #tpls, .swatches { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); padding-right: 28px; }
}

/* ══ Фон кабинета: StudioLightBackdrop (кадры patchDrift — из боевого фронта) ══ */
.studio { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.studio i { position: absolute; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); transform: translate(-50%, -50%); animation: patchDrift 16s cubic-bezier(0.19, 1, 0.22, 1) infinite; }
.studio b { position: absolute; inset: 0; background: radial-gradient(120% 58% at 50% -12%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.12) 100%); }
@keyframes patchDrift {
  0% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
  33% { transform: translate(-50%, -50%) translate(var(--drift-x, 3%), calc(var(--drift-y, 2%) * -1)) scale(1.06); }
  66% { transform: translate(-50%, -50%) translate(calc(var(--drift-x, 3%) * -0.7), var(--drift-y, 2%)) scale(0.97); }
  100% { transform: translate(-50%, -50%) translate(0, 0) scale(1); }
}
.wrap { position: relative; z-index: 1; }
body { background-image: none; }

/* ══ Приложение клиента: контурные кольца (.tpl-rings) и открытие приложения ══ */
.app { overflow: hidden; isolation: isolate; }
.app-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.tpl-rings { position: absolute; left: 50%; top: -18%; height: 130%; width: 190%; transform-origin: center; margin-left: -95%;
  background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 25px, color-mix(in srgb, var(--brand) 30%, transparent) 25px 26px);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, transparent 78%); mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, transparent 78%);
  opacity: 0.5; animation: tplRingDrift 26s ease-in-out infinite alternate; }
@keyframes tplRingDrift { from { transform: scale(1); } to { transform: scale(1.14) translateY(-2%); } }
.app-glow { position: absolute; left: 50%; top: -10%; height: 80%; width: 130%; margin-left: -65%; background: radial-gradient(50% 50% at 50% 40%, var(--brand-soft) 0%, transparent 72%); }

.gate { position: fixed; inset: 0; z-index: 12; background: #08090b; color: var(--ink); display: grid; overflow: hidden; transition: opacity 0.4s ease; }
.gate.out { opacity: 0; }
.gate::before { content: ""; position: absolute; left: 50%; top: -20%; height: 140%; width: 200%; margin-left: -100%; pointer-events: none;
  background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 25px, color-mix(in srgb, var(--brand) 30%, transparent) 25px 26px);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, transparent 78%); mask-image: radial-gradient(60% 60% at 50% 45%, #000 0%, transparent 78%);
  opacity: 0.5; animation: tplRingDrift 26s ease-in-out infinite alternate; }
.g-orb { position: absolute; border-radius: 50%; background: var(--brand-soft); pointer-events: none; }
.g-orb1 { right: -96px; top: -96px; width: 288px; height: 288px; filter: blur(24px); }
.g-orb2 { left: -80px; bottom: -80px; width: 256px; height: 256px; filter: blur(28px); opacity: 0.6; }
.g-logo { display: block; object-fit: contain; border-radius: 22%; }
.g-glyph { display: block; color: var(--ink); }
.g-boot, .g-splash { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-bootbar { margin-top: 20px; width: 96px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.g-bootbar i { display: block; height: 100%; width: 60%; border-radius: 999px; background: var(--brand); animation: bootSlide 1.15s ease-in-out infinite; }
@keyframes bootSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(180%); } }
.g-splash { transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1); }
.gate.exit .g-splash { transform: scale(1.05); opacity: 0; }
.g-float { animation: gFloat 3s ease-in-out infinite; }
@keyframes gFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.g-word { margin-top: 20px; padding-left: 0.42em; font: 500 22px "Playfair Display", Georgia, serif; letter-spacing: 0.42em; text-transform: uppercase; text-align: center; max-width: 92%; }
.g-loading { margin-top: 20px; font-size: 15px; color: var(--ink-70); }
.g-pulse { margin-top: 28px; width: 80px; height: 4px; border-radius: 999px; background: rgba(244, 241, 234, 0.12); overflow: hidden; }
.g-pulse i { display: block; height: 100%; width: 50%; border-radius: 999px; background: var(--brand); animation: gPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes gPulse { 50% { opacity: 0.5; } }
.g-auth { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 430px; margin: 0 auto; min-height: 0; overflow-y: auto; animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.g-head { display: grid; justify-items: center; gap: 6px; padding: 44px 32px 20px; text-align: center; }
.g-head.left { justify-items: start; text-align: left; padding: 28px 28px 16px; }
.g-brand { margin-top: 10px; padding-left: 0.36em; font-size: 14px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ink-70); }
.g-head h2 { font: 400 28px/1.2 "Playfair Display", Georgia, serif; margin-top: 10px; }
.g-head p { font-size: 14px; color: var(--ink-50); }
.g-back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244, 241, 234, 0.14); background: rgba(244, 241, 234, 0.06); color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.g-form { display: grid; gap: 14px; padding: 0 28px; }
.g-form label { display: grid; gap: 6px; }
.g-form label span { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-50); }
.g-form input { width: 100%; border-radius: 12px; padding: 13px 14px; font-size: 16px; background: rgba(244, 241, 234, 0.06); border: 1px solid rgba(244, 241, 234, 0.12); color: var(--ink); outline: none; }
.g-form input:focus { border-color: var(--brand); }
.g-form .g-code { text-align: center; font-size: 22px; font-weight: 600; letter-spacing: 0.5em; padding: 14px 0 14px 0.5em; font-variant-numeric: tabular-nums; }
.g-forgot { text-align: right; font-size: 13px; color: var(--brand); }
.g-primary { width: 100%; border: 0; border-radius: 9999px; padding: 15px 0; font: 600 15px var(--sans); background: var(--brand); color: var(--brand-ink); }
.g-primary:active { transform: scale(0.98); }
.g-link { border: 0; background: none; color: var(--brand); font-size: 14px; justify-self: center; padding: 4px; }
.g-demo { text-align: center; font-size: 12.5px; color: var(--ink-40); }
.g-foot { margin-top: auto; padding: 16px 28px 32px; display: grid; gap: 10px; text-align: center; font-size: 13px; color: var(--ink-50); }
.g-foot b { color: var(--brand); font-weight: 600; }
/* Первая отрисовка главной — ступенчатый подъём, как tpl-rise у Vanta. */
.rise > * { animation: tplRise 0.62s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise > *:nth-child(2) { animation-delay: 70ms; } .rise > *:nth-child(3) { animation-delay: 140ms; } .rise > *:nth-child(4) { animation-delay: 200ms; }
.rise > *:nth-child(5) { animation-delay: 260ms; } .rise > *:nth-child(n + 6) { animation-delay: 320ms; }
@keyframes tplRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 600px) { .gate { position: absolute; border-radius: 40px; } }
@media (prefers-reduced-motion: reduce) { .studio i, .tpl-rings, .gate::before, .g-float, .g-pulse i, .g-bootbar i, .rise > *, .g-auth { animation: none !important; } }
/* Анимация с transform и заполнением «вперёд» делает экран опорой для position: fixed, и заставка
   перестаёт закрывать весь экран телефона. Поэтому подъём экранов действует только до своего конца. */
#view-setup, #view-cab, #view-app, .pane { animation-fill-mode: backwards; }
.g-back { display: grid; place-items: center; }
.app-nav { background: #0a0a0b; }

/* Автозаполнение входа: поле, в которое «печатают», подсвечено; готовая кнопка мягко пульсирует. */
.g-form input.typing { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.g-primary.ready { animation: gReady 1.5s ease-in-out infinite; }
@keyframes gReady { 0%, 100% { box-shadow: 0 0 0 0 var(--brand-soft); transform: scale(1); } 50% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .g-primary.ready { animation: none; box-shadow: 0 0 0 3px var(--brand-soft); } }

/* ══ Экран настройки: карта закреплена сверху и остаётся на виду, пока меняешь её параметры ══ */
.setup { gap: 14px; }
.setup-intro h1 { font-size: clamp(26px, 7.2vw, 52px); margin: 8px 0 8px; }
.setup-intro .lead { font-size: 15px; }
.card-col { position: sticky; top: 0; z-index: 6; margin: 0 -16px; padding: 10px 16px 8px; background: linear-gradient(180deg, rgba(10, 10, 11, 0.96) 0%, rgba(10, 10, 11, 0.96) 82%, rgba(10, 10, 11, 0) 100%); }
.card-col .card-stage { max-width: min(300px, 76vw); }
.card-col .flip-hint { margin-top: 6px; font-size: 12px; }
@media (max-height: 640px) { .card-col .card-stage { max-width: min(240px, 64vw); } .card-col .flip-hint { display: none; } }
@media (min-width: 900px) {
  .setup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro card" "form card"; gap: 24px 56px; align-items: start; }
  .setup-intro { grid-area: intro; }
  .setup-form { grid-area: form; }
  .setup .card-col { grid-area: card; order: 0; top: 40px; margin: 0; padding: 0; background: none; }
  .card-col .card-stage { max-width: 440px; }
  .setup-intro .lead { font-size: 17px; }
}
/* Пульсация готовой кнопки — только свечением: размер не меняется, кнопка не «уезжает» из-под пальца. */
@keyframes gReady { 0%, 100% { box-shadow: 0 0 0 0 var(--brand); } 50% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); } }

/* ══ Finance: графики ══ */
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: barUp 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes barUp { from { transform: scaleY(0); } }
.cum-line { fill: none; stroke: var(--champ); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.cum-dot { fill: var(--champ); stroke: #0a0a0b; stroke-width: 2; }
.chart .tick { font-size: 12px; }
.tip { font-size: 13px; }
.tip b { font-size: 15px; }
.legend li { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .chart .bar { animation: none; } .cum-line { animation: none; stroke-dashoffset: 0; } }

/* До входа виден только экран открытия: содержимое приложения не просвечивает между заставкой и входом. */
.app.locked > :not(.gate):not(.app-bg) { visibility: hidden; }

/* Finance: продажа карт */
.meter { height: 22px; border-radius: 6px; background: rgba(231, 201, 135, 0.12); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--champ); transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.legend li.sum { padding-top: 8px; border-top: 1px solid var(--champ-30); }
.legend li.sum b { color: var(--champ); font-size: 17px; }
.legend li b { text-align: right; }
.sec-h .badge { flex: none; }

/* Бейдж в заголовке раздела держит свою ширину и прижат вправо; тянется только название. */
.sec-h > span.badge { flex: none; margin-left: auto; }

.chart.still .bar { animation: none; }
.chart.still .cum-line { animation: none; stroke-dashoffset: 0; }

/* Статусная метка: отдельное имя, чтобы не пересекаться с круглой галочкой .ok. */
.chip.good { background: var(--positive-soft); color: var(--positive); }
/* Приложение клиента глазами партнёра: подсказки о заработке — цветом кабинета, пунктиром. */
.earn-hint { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--champ-30); background: var(--champ-06); color: var(--champ); font-size: 13.5px; line-height: 1.4; }
.app .tx li { cursor: pointer; }
.tx-go { flex: none; font-style: normal; font-size: 20px; line-height: 1; color: var(--ink-40); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.split > div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--field); }
.split span { font-size: 12.5px; color: var(--ink-50); }
.split b { font-size: 22px; font-variant-numeric: tabular-nums; }
.split .you { background: var(--champ-06); border: 1px solid var(--champ-30); }
.split .you span, .split .you b { color: var(--champ); }

/* Возврат из приложения клиента в кабинет: тихая ссылка над шапкой вместо демо-плашки. */
.app-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; color: var(--ink-50); font-size: 13px; text-decoration: none; padding: 4px 0; }
.app-back:hover { color: var(--ink); }
.card3d { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* Доля партнёра прямо в приложении клиента: под суммой операции и строкой в расчётах. */
.app .tx li em { display: grid; justify-items: end; gap: 1px; }
.app .tx li em .you { font: 600 12px var(--sans); font-style: normal; color: var(--champ); white-space: nowrap; }
.srow.earn { border-bottom-style: dashed; border-bottom-color: var(--champ-30); }
.srow.earn span, .srow.earn b { color: var(--champ); }
.srow.earn span { font-size: 13.5px; }

/* Три тарифа рядом: на итоге с клиента и на каждой операции. Нажатие переключает тариф. */
.earn-hint > p { margin: 0 0 10px; }
.cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cmp button { display: grid; gap: 2px; justify-items: start; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--champ-10); background: rgba(0, 0, 0, 0.25); color: var(--ink-70); min-width: 0; text-align: left; }
.cmp button span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cmp button b { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink); }
.cmp button.on { border-color: var(--champ); background: var(--champ-06); }
.cmp button.on span, .cmp button.on b { color: var(--champ); }
.sheet .cmp { margin-top: -2px; }
