/* Ultra Партнёры — единая таблица стилей кабинета.
 *
 * Цвета в OKLCH, контраст проверен расчётом (текст ≥ 4,5:1, рамки полей
 * ≥ 3:1) в обеих темах. Акцент — мятно-бирюзовый с логотипа «Эхо» — только
 * для действий и выбранного состояния. Нейтральные слегка тянутся к нему.
 */

/* ── Токены ─────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: oklch(0.975 0.004 190);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0.006 190);
  --line: oklch(0.90 0.008 190);
  --line-strong: oklch(0.62 0.014 210);
  --ink: oklch(0.21 0.015 220);
  --ink-2: oklch(0.42 0.015 220);
  --ink-3: oklch(0.51 0.013 220);
  --accent: oklch(0.50 0.085 184);
  --accent-hover: oklch(0.45 0.085 184);
  --on-accent: oklch(1 0 0);
  --accent-ink: oklch(0.44 0.075 186);
  --accent-soft: oklch(0.955 0.03 184);
  --ok: oklch(0.47 0.11 152);
  --ok-soft: oklch(0.955 0.035 152);
  --warn: oklch(0.50 0.11 62);
  --warn-soft: oklch(0.965 0.03 80);
  --bad: oklch(0.52 0.17 27);
  --bad-soft: oklch(0.965 0.018 27);
  --shadow: 0 1px 2px oklch(0.21 0.015 220 / 0.05), 0 1px 1px oklch(0.21 0.015 220 / 0.03);
  --shadow-pop: 0 8px 24px oklch(0.21 0.015 220 / 0.10);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-sticky: 10; --z-toast: 30;
  --control: 36px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: oklch(0.165 0.008 210);
    --surface: oklch(0.205 0.009 210);
    --surface-2: oklch(0.245 0.01 210);
    --line: oklch(0.30 0.01 210);
    --line-strong: oklch(0.53 0.012 210);
    --ink: oklch(0.945 0.005 210);
    --ink-2: oklch(0.79 0.01 210);
    --ink-3: oklch(0.69 0.01 210);
    --accent: oklch(0.79 0.11 180);
    --accent-hover: oklch(0.84 0.10 180);
    --on-accent: oklch(0.19 0.03 190);
    --accent-ink: oklch(0.83 0.10 180);
    --accent-soft: oklch(0.29 0.04 185);
    --ok: oklch(0.81 0.13 155);
    --ok-soft: oklch(0.28 0.045 155);
    --warn: oklch(0.85 0.12 80);
    --warn-soft: oklch(0.29 0.045 75);
    --bad: oklch(0.76 0.14 25);
    --bad-soft: oklch(0.29 0.05 25);
    --shadow: none;
    --shadow-pop: 0 8px 24px oklch(0 0 0 / 0.4);
  }
}

@media (max-width: 719px) { :root { --control: 44px; } }

/* ── Основа ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-base)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: var(--t-md); font-weight: 600; }
h3 { font-size: var(--t-base); font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--s4); top: -40px; z-index: var(--z-toast);
  background: var(--surface); padding: var(--s2) var(--s3); border-radius: var(--r);
  box-shadow: var(--shadow-pop);
}
.skip:focus { top: var(--s2); }

/* ── Шапка ──────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--s5);
  display: flex; align-items: center; gap: var(--s6); height: 56px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: var(--ink);
  font-weight: 650; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, oklch(0.86 0.09 175), var(--accent) 70%);
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.08);
}
.brand-sub { color: var(--ink-3); font-weight: 450; }
.nav { display: flex; gap: var(--s1); align-self: stretch; }
.nav a {
  display: flex; align-items: center; gap: 6px; padding: 0 var(--s3);
  color: var(--ink-2); font-weight: 500; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent);
  font-size: var(--t-xs); font-weight: 650; line-height: 18px; text-align: center;
}
.who { margin-left: auto; display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.who-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-role { color: var(--ink-3); font-size: var(--t-sm); }
.who-out { color: var(--ink-2); font-size: var(--t-sm); display: flex; align-items: center; gap: 4px; }

@media (max-width: 719px) {
  .top-in { padding: 0 var(--s4); gap: var(--s3); flex-wrap: wrap; height: auto; }
  .brand { height: 52px; }
  .brand-sub, .who-role { display: none; }
  .who { height: 52px; }
  .nav {
    order: 3; width: calc(100% + 2 * var(--s4)); margin: 0 calc(-1 * var(--s4));
    padding: 0 var(--s2); overflow-x: auto; scrollbar-width: none; height: 44px;
    border-top: 1px solid var(--line);
  }
  .nav::-webkit-scrollbar { display: none; }
}

/* ── Страница ───────────────────────────────────────────────────── */
main { max-width: 1120px; margin: 0 auto; padding: var(--s6) var(--s5) var(--s7); }
@media (max-width: 719px) { main { padding: var(--s5) var(--s4) var(--s7); } }

.head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5);
}
.head .sub { color: var(--ink-2); margin-top: var(--s1); max-width: 68ch; }
.crumb { font-size: var(--t-sm); color: var(--ink-3); margin-bottom: var(--s2); display: inline-flex; gap: 4px; align-items: center; }
.crumb a { color: var(--ink-2); }

.section { margin-top: var(--s7); }
.section:first-of-type { margin-top: 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3);
}
.section-head p { color: var(--ink-2); font-size: var(--t-sm); }
.note { color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s3); max-width: 72ch; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.panel-pad { padding: var(--s5); }
@media (max-width: 719px) { .panel-pad { padding: var(--s4); } }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s5); align-items: start; }
@media (max-width: 719px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Цифры ──────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: var(--s4) var(--s5); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-l { color: var(--ink-2); font-size: var(--t-sm); }
.stat-v { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
.stat-v.sm { font-size: var(--t-lg); }
.stat-h { color: var(--ink-3); font-size: var(--t-sm); margin-top: 2px; }
.stat-v.good { color: var(--ok); }
@media (max-width: 719px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--s3) var(--s4); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-v { font-size: var(--t-lg); }
  .stats.three { grid-template-columns: 1fr 1fr 1fr; }
  .stats.three .stat:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); }
  .stats.three .stat:first-child { border-left: 0; }
}

/* ── Таблицы: на телефоне строка становится карточкой списка ────── */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-base); }
.tbl th {
  text-align: left; font-weight: 500; font-size: var(--t-sm); color: var(--ink-2);
  padding: 10px var(--s4); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 12px var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tbody tr[data-href] { cursor: pointer; transition: background-color 150ms var(--ease); }
.tbl tbody tr[data-href]:hover { background: var(--surface-2); }
.tbl .strong { font-weight: 550; color: var(--ink); }
.tbl .sub { display: block; font-size: var(--t-sm); color: var(--ink-3); margin-top: 1px; }
.tbl tr.off td { color: var(--ink-3); }
.tbl-scroll { overflow-x: auto; }

@media (max-width: 719px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody { display: block; }
  .tbl tr {
    display: grid; grid-template-columns: 1fr auto; column-gap: var(--s3); row-gap: 2px;
    padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line);
  }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 0; border: 0; }
  .tbl td.m-main { grid-column: 1; }
  .tbl td.m-val { grid-column: 2; grid-row: 1; text-align: right; align-self: start; }
  .tbl td.m-meta { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--ink-2); }
  .tbl td.m-meta[data-l]::before { content: attr(data-l) ": "; color: var(--ink-3); }
  .tbl td.m-side { grid-column: 2; text-align: right; font-size: var(--t-sm); }
  .tbl td.m-full { grid-column: 1 / -1; margin-top: var(--s2); }
  .tbl td.m-hide { display: none; }
}

/* ── Статусы ────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 11px; font-size: var(--t-xs); font-weight: 550; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.plain::before { display: none; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 1px 7px; border-radius: var(--r-sm);
  border: 1px solid var(--line); font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap;
}

/* ── Кнопки ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--control); padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 550 var(--t-base)/1 var(--font); cursor: pointer; white-space: nowrap;
  text-decoration: none; user-select: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease),
              color 150ms var(--ease), transform 100ms var(--ease);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.btn.danger:hover { filter: brightness(0.95); }
.btn.sm { height: 30px; padding: 0 10px; font-size: var(--t-sm); }
@media (max-width: 719px) { .btn.sm { height: 36px; } }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ── Формы ──────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s4); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); }
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .label { font-size: var(--t-sm); font-weight: 550; color: var(--ink); }
.field .hint { font-size: var(--t-sm); color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: var(--control); padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: 400 var(--t-base)/1.4 var(--font);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.select { appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 25%, transparent);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input.mono { font-family: var(--mono); font-size: var(--t-sm); }
@media (max-width: 719px) { .input, .select, .textarea { font-size: 16px; } }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

.check {
  display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4);
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--surface);
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.check + .check { margin-top: var(--s2); }
.check:hover { border-color: var(--line-strong); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check:has(input:disabled) { cursor: not-allowed; opacity: 0.7; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check-body { flex: 1; min-width: 0; }
.check-title { display: block; font-weight: 550; }
.check-sub { display: block; font-size: var(--t-sm); color: var(--ink-2); margin-top: 1px; }
.check .select { display: block; margin-top: var(--s2); width: 100%; max-width: 320px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r); background: var(--surface-2); }
.seg a, .seg label {
  padding: 5px 12px; border-radius: 6px; color: var(--ink-2); font-size: var(--t-sm);
  font-weight: 550; cursor: pointer; white-space: nowrap;
}
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg [aria-current="page"], .seg input:checked + span {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: block; margin: -5px -12px; padding: 5px 12px; border-radius: 6px; }

/* ── Раскрывающиеся формы: вместо всплывающих окон ──────────────── */
.disclosure > summary { list-style: none; cursor: pointer; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > .dropdown {
  margin-top: var(--s3); animation: reveal 200ms var(--ease);
}
.disclosure.inline > .dropdown { margin-top: var(--s3); }
@keyframes reveal { from { transform: translateY(-4px); } }
.head .disclosure { flex-basis: 100%; }
.head .disclosure > summary { display: inline-flex; }
.head-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
@media (max-width: 719px) { .head-actions { width: 100%; } .head-actions .btn { flex: 1 1 auto; } }
.search { display: flex; gap: var(--s2); flex: 1; justify-content: flex-end; min-width: 0; }
.search .input { flex: 1; min-width: 0; max-width: 320px; }
@media (max-width: 719px) { .search { flex-basis: 100%; } .search .input { max-width: none; } }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

/* ── Сообщение после действия ───────────────────────────────────── */
.flash {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s3) var(--s4); border-radius: var(--r-lg); margin-bottom: var(--s5);
  font-weight: 500; animation: reveal 250ms var(--ease);
}
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.flash svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.flash p { flex: 1; color: var(--ink); }
.flash button { background: none; border: 0; color: inherit; cursor: pointer; padding: 2px; border-radius: 4px; }
.flash.hide { opacity: 0; transition: opacity 300ms var(--ease); }

/* ── Внимание (обзор владельца) ─────────────────────────────────── */
.todo { display: grid; }
.todo a {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5);
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.todo a:last-child { border-bottom: 0; }
.todo a:hover { background: var(--surface-2); text-decoration: none; }
.todo .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); }
.todo .dot.warn { background: var(--warn); }
.todo .t { flex: 1; }
.todo .t small { display: block; color: var(--ink-2); font-size: var(--t-sm); }
.todo svg { color: var(--ink-3); width: 16px; height: 16px; }

/* ── Ссылки с копированием ──────────────────────────────────────── */
.links { display: grid; }
.link-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s4);
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); align-items: center;
}
.link-row:last-child { border-bottom: 0; }
.link-title { font-weight: 550; display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.link-url {
  font-family: var(--mono); font-size: var(--t-sm); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px;
}
.link-stats { font-size: var(--t-sm); color: var(--ink-2); margin-top: 2px; }
.link-stats b { color: var(--ink); font-weight: 600; }
@media (max-width: 719px) {
  .link-row { grid-template-columns: 1fr; padding: var(--s4); }
  .link-row .btn { width: 100%; }
}
.copied { color: var(--ok) !important; border-color: var(--ok) !important; }

/* ── Прогресс ставки ────────────────────────────────────────────── */
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: var(--s2); }
.meter > i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.tiers { display: flex; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s2); font-size: var(--t-sm); color: var(--ink-3); }
.tiers .on { color: var(--accent-ink); font-weight: 600; }

/* ── Пустые состояния ───────────────────────────────────────────── */
.empty { padding: var(--s6) var(--s5); text-align: center; }
.empty h3 { margin-bottom: var(--s1); }
.empty p { color: var(--ink-2); max-width: 52ch; margin: 0 auto; }
.empty .actions { justify-content: center; margin-top: var(--s4); }

/* ── Ключ — значение ────────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); }
.kv dt { color: var(--ink-2); font-size: var(--t-sm); padding-top: 1px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: var(--s2); } }

/* ── Заявки на вывод ────────────────────────────────────────────── */
.payout { padding: var(--s5); border-bottom: 1px solid var(--line); }
.payout:last-child { border-bottom: 0; }
.payout-top { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; align-items: baseline; }
.payout-sum { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.02em; }
.payout-req {
  margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r);
  background: var(--surface-2); font-family: var(--mono); font-size: var(--t-sm);
  display: flex; gap: var(--s3); align-items: center; justify-content: space-between; overflow-wrap: anywhere;
}
.warn-line { display: flex; gap: var(--s2); align-items: flex-start; color: var(--warn); font-size: var(--t-sm); margin-top: var(--s3); font-weight: 500; }
.warn-line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ── Вход ───────────────────────────────────────────────────────── */
.login { max-width: 440px; margin: 6vh auto 0; }
.tg-btn { background: #2aabee; border-color: #2aabee; color: #fff; height: 48px; border-radius: 24px; font-size: 16px; }
.tg-btn:hover { background: #229ed9; border-color: #229ed9; }
.steps { margin: var(--s4) 0 0; padding-left: 20px; color: var(--ink-2); font-size: var(--t-sm); }
.steps li { margin: 3px 0; }
.steps b { color: var(--ink); font-weight: 600; }
.status { display: flex; align-items: center; gap: 8px; margin-top: var(--s4); font-size: var(--t-sm); color: var(--ink-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
.status.ok { color: var(--ok); } .status.ok::before { background: var(--ok); animation: none; }
.status.bad { color: var(--ink); } .status.bad::before { background: var(--bad); animation: none; }
@keyframes pulse { 50% { opacity: 0.25; } }
.qr-card { display: flex; gap: var(--s4); align-items: center; margin-top: var(--s3); }
.qr { flex: none; width: 132px; height: 132px; padding: 6px; background: #fff; border-radius: var(--r); }
.qr svg { display: block; width: 100%; height: 100%; }
@media (max-width: 519px) { .qr-card { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; }
}

/* Ступени тарифа в «Настройках»: лесенка, пороги и ставки выровнены по правому краю */
.tiers { display: inline-grid; grid-template-columns: auto auto; column-gap: var(--s3); row-gap: 2px;
  margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiers dt { text-align: right; color: var(--ink-2); font-weight: 400; }
.tiers dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
