/* Эквайринг Сбер — интерфейс приложения и вкладки сделки */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('vendor/fonts/onest-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('vendor/fonts/onest-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('vendor/fonts/onest-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('vendor/fonts/onest-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('vendor/fonts/onest-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('vendor/fonts/onest-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('vendor/fonts/onest-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('vendor/fonts/onest-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
:root {
  --bg: #EDF1EF;
  --surface: #FFFFFF;
  --surface-2: #F6F8F7;
  --ink: #1B2722;
  --ink-2: #3C4A44;
  --muted: #66746E;
  --line: #DAE1DD;
  --line-2: #E8EDEA;
  --accent: #127A55;
  --accent-ink: #0B5C3F;
  --accent-soft: #E1F2EA;
  --amber: #9A5B07;
  --amber-soft: #FCF0DC;
  --red: #B23A2C;
  --red-soft: #FBE7E3;
  --violet: #4F4AB8;
  --violet-soft: #ECEBFB;
  --focus: #2D7FF9;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 8px 24px -12px rgba(20, 40, 30, .18);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.page-deal { background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ---------- загрузка ---------- */
.boot-loader { width: 28px; height: 28px; margin: 80px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover:not(:disabled) { border-color: #B9C4BF; background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--accent-ink); padding: 0 10px; }
.btn-quiet:hover:not(:disabled) { background: var(--accent-soft); }
.btn-danger { background: transparent; color: var(--red); border-color: #E9C3BC; }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

.field { display: grid; gap: 6px; }
.field > label, .field-label { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--red); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 64px; }
.input:hover, .select:hover { border-color: #BCC7C2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid { border-color: var(--red); }
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-group .addon { position: absolute; right: 4px; top: 4px; height: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 38px; height: 22px; border-radius: 22px; background: #C7D0CC; position: relative; cursor: pointer; transition: background .15s; margin: 1px 0 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.switch b { display: block; font-weight: 500; }
.switch span { color: var(--muted); font-size: 13px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--line-2); }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,40,30,.12); }

/* ---------- статусы ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--paid { background: var(--accent-soft); color: var(--accent-ink); }
.pill--pending { background: var(--amber-soft); color: var(--amber); }
.pill--error { background: var(--red-soft); color: var(--red); }
.pill--refund { background: var(--violet-soft); color: var(--violet); }
.pill--closed { background: var(--line-2); color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); }
.tag--test { background: var(--amber-soft); color: var(--amber); }
.tag--live { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- каркас приложения ---------- */
.app { max-width: 1180px; margin: 0 auto; padding: 22px 24px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.brand h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.brand p { margin: 0; color: var(--muted); font-size: 12.5px; }

.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel-pad { padding: 22px 24px; }
.section-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.section-sub { margin: 0 0 18px; color: var(--muted); }

.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 16px; flex-wrap: wrap; }
.banner--warn { background: var(--amber-soft); color: #6B4006; }
.banner--error { background: var(--red-soft); color: #7D2419; }
.banner pre { margin: 6px 0 0; white-space: pre-wrap; font: inherit; font-size: 12.5px; opacity: .85; }

/* ---------- дашборд ---------- */
.dash { display: grid; grid-template-columns: minmax(280px, 1.1fr) 2fr; gap: 0; margin-bottom: 18px; overflow: hidden; }
.dash-main { padding: 24px; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 196px; }
.dash-main .label { color: #A9BCB4; font-size: 13px; }
.dash-total { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 0; }
.dash-total .cur { color: #8FA79D; font-weight: 500; margin-left: 4px; }
.dash-main .seg { background: rgba(255,255,255,.08); }
.dash-main .seg button { color: #C8D6D0; }
.dash-main .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.dash-side { padding: 20px 24px; display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi .v { font-size: 20px; font-weight: 600; }
.kpi .l { color: var(--muted); font-size: 12.5px; }
.chart { position: relative; min-height: 96px; }
.chart svg { display: block; width: 100%; height: 110px; }
.chart .bar { fill: #BFD9CC; }
.chart .bar:hover, .chart .bar.is-today { fill: var(--accent); }
.chart .axis { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.chart-empty { display: grid; place-items: center; height: 110px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-md); font-size: 13px; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }

/* ---------- таблица платежей ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.toolbar .search { flex: 1 1 220px; max-width: 320px; margin-left: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr.row { cursor: pointer; }
.table tr.row:hover td { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table .amount { text-align: right; font-weight: 600; white-space: nowrap; }
.table th.amount { text-align: right; }
.table .desc b { display: block; font-weight: 500; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .desc small { color: var(--muted); }
.table .when { white-space: nowrap; color: var(--ink-2); }
.table-foot { padding: 14px 20px; display: flex; justify-content: center; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 16px; font-weight: 600; }
.empty p { margin: 0 auto; max-width: 420px; }

/* ---------- онбординг ---------- */
.onboard { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; }
.onboard-intro { padding: 32px; }
.onboard-intro h2 { margin: 0 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; max-width: 520px; }
.onboard-intro p { margin: 0 0 22px; color: var(--ink-2); max-width: 520px; }
.steps { list-style: none; margin: 0; padding: 28px 32px; background: var(--surface-2); counter-reset: s; display: grid; gap: 18px; align-content: center; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 13px; }

/* ---------- юрлица ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.profile { padding: 20px; display: grid; gap: 14px; align-content: start; }
.profile-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.profile-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.profile-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.profile-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.health { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.health::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.health--ok::before { background: var(--accent); }
.health--bad { color: var(--red); }
.health--bad::before { background: var(--red); }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-add { border: 1.5px dashed var(--line); background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 180px; color: var(--accent-ink); font-weight: 500; cursor: pointer; border-radius: var(--r-lg); }
.profile-add:hover { background: var(--surface); border-color: #B9C4BF; }

/* ---------- выдвижная панель ---------- */
.drawer-back { position: fixed; inset: 0; background: rgba(18, 30, 25, .32); z-index: 40; animation: fade .15s ease-out; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); z-index: 41; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(18,30,25,.18); animation: slide .2s ease-out; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.drawer-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.drawer-body { flex: 1; overflow: auto; padding: 22px; display: grid; gap: 18px; align-content: start; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
fieldset.box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0; display: grid; gap: 14px; }
fieldset.box legend { padding: 0 6px; font-weight: 600; font-size: 13px; }
.check-result { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.check-result--ok { background: var(--accent-soft); color: var(--accent-ink); }
.check-result--bad { background: var(--red-soft); color: #7D2419; }

/* детали платежа */
.detail-amount { font-size: 32px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.timeline li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 6px; justify-self: center; }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline li.k-paid::before, .timeline li.k-hold::before { background: var(--accent); }
.timeline li.k-error::before, .timeline li.k-declined::before { background: var(--red); }
.timeline li.k-refunded::before, .timeline li.k-refund_request::before, .timeline li.k-partial_refund::before { background: var(--violet); }
.timeline small { color: var(--muted); display: block; }

/* ---------- настройки и инструкция ---------- */
.settings { display: grid; gap: 22px; max-width: 720px; }
.settings .section-sub { margin-bottom: 0; }
.settings h2.section-title { margin-top: 6px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-size: 13px; color: var(--ink-2); background: var(--surface-2); }
.guide { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 820px; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: g; }
.guide ol > li { counter-increment: g; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.guide ol > li:last-child { border-bottom: 0; }
.guide ol > li::before { content: counter(g); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; }
.guide h3 { margin: 4px 0 6px; font-size: 15px; font-weight: 600; }
.guide p { margin: 0 0 6px; color: var(--ink-2); }
.guide ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.guide li li { margin: 3px 0; }

/* ---------- уведомления ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow); font-size: 13.5px; animation: toast .2s ease-out; max-width: calc(100vw - 32px); }
.toast--error { background: var(--red); }
@keyframes toast { from { transform: translate(-50%, 8px); opacity: 0; } }

/* ---------- вкладка сделки ---------- */
.deal { max-width: 1040px; margin: 0 auto; padding: 20px 20px 32px; display: grid; gap: 18px; }
.ledger { display: grid; gap: 12px; }
.ledger-figures { display: flex; gap: 28px; flex-wrap: wrap; align-items: baseline; }
.ledger-figures .f { display: grid; }
.ledger-figures .f .v { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.ledger-figures .f .l { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.ledger-figures .f .l i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ledger-figures .f--total { margin-right: auto; }
.ledger-bar { display: flex; height: 12px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.ledger-bar span { height: 100%; transition: width .4s ease; }
.ledger-bar .paid { background: var(--accent); }
.ledger-bar .wait { background: repeating-linear-gradient(-45deg, #E7B867 0 6px, #F2D29C 6px 12px); }
.sw-paid { background: var(--accent); }
.sw-wait { background: #E7B867; }
.sw-rest { background: var(--line); }

.deal-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--surface); }
.card h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.amount-input { position: relative; }
.amount-input input { height: 56px; font-size: 26px; font-weight: 600; letter-spacing: -.01em; padding: 0 44px 0 16px; border-radius: 12px; }
.amount-input .cur { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); font-weight: 500; pointer-events: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.form-stack { display: grid; gap: 14px; }

.share { display: grid; grid-template-columns: 156px 1fr; gap: 18px; align-items: center; }
.qr { width: 156px; height: 156px; border-radius: 14px; border: 1px solid var(--line); padding: 10px; background: #fff; display: grid; place-items: center; }
.qr img, .qr svg { width: 100%; height: 100%; image-rendering: pixelated; }
.share .share-amount { font-size: 28px; color: var(--ink); font-weight: 600; letter-spacing: -.015em; margin: 0; }
.share p { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-placeholder { display: grid; gap: 10px; place-items: center; text-align: center; color: var(--muted); min-height: 220px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: 24px; }
.share-placeholder svg { width: 40px; height: 40px; opacity: .5; }

.plist { display: grid; }
.plist-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.plist-row:last-child { border-bottom: 0; }
.plist-row b { font-weight: 600; }
.plist-row small { display: block; color: var(--muted); }
.plist-actions { display: flex; gap: 2px; }

/* ---------- публичные страницы ---------- */
.page-public { background: var(--bg); }
.public { min-height: 100vh; display: grid; place-content: center; padding: 24px 16px; gap: 16px; }
.receipt { width: min(440px, 100%); background: var(--surface); border-radius: 22px; padding: 36px 32px 30px; text-align: center; box-shadow: var(--shadow); position: relative; }
.receipt h1 { margin: 16px 0 6px; font-size: 22px; font-weight: 600; }
.receipt-amount { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.receipt-desc { margin: 4px 0 0; color: var(--muted); }
.receipt-text { margin: 18px 0 0; color: var(--ink-2); }
.receipt-actions { margin-top: 24px; display: grid; gap: 10px; }
.receipt-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--line-2); position: relative; }
.receipt--paid .receipt-icon { background: var(--accent-soft); }
.receipt--paid .receipt-icon::after { content: ""; position: absolute; left: 22px; top: 17px; width: 14px; height: 24px; border: solid var(--accent); border-width: 0 4px 4px 0; transform: rotate(45deg); border-radius: 2px; }
.receipt--failed .receipt-icon, .receipt--error .receipt-icon { background: var(--red-soft); }
.receipt--failed .receipt-icon::before, .receipt--failed .receipt-icon::after, .receipt--error .receipt-icon::before, .receipt--error .receipt-icon::after { content: ""; position: absolute; left: 30px; top: 18px; width: 4px; height: 28px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.receipt--failed .receipt-icon::after, .receipt--error .receipt-icon::after { transform: rotate(-45deg); }
.receipt--pending .receipt-icon { background: var(--amber-soft); }
.receipt--pending .receipt-icon::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; border: 4px solid var(--amber); border-right-color: transparent; animation: spin 1s linear infinite; }
.public-foot { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 12.5px; }

.install { min-height: 100vh; display: grid; place-content: center; padding: 24px; }
.install-card { max-width: 460px; background: var(--surface); padding: 32px; border-radius: 20px; box-shadow: var(--shadow); }
.install-card h1 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.install-card p { margin: 0; color: var(--ink-2); }
.install-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 16px; position: relative; }
.install-mark::after { content: ""; position: absolute; left: 17px; top: 11px; width: 10px; height: 20px; border: solid var(--accent); border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); }
.install-card.is-error h1 { color: var(--red); }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .dash, .onboard, .deal-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .table .who, .table .src { display: none; }
}
@media (max-width: 560px) {
  .app { padding: 14px 12px 40px; }
  .grid-2, .kpis { grid-template-columns: 1fr 1fr; }
  .share { grid-template-columns: 1fr; justify-items: start; }
  .table td, .table th { padding-left: 12px; padding-right: 12px; }
  .table .when { display: none; }
  .kv { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
