  .logo {
    width: 44px; height: 44px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    object-fit: cover; flex-shrink: 0; background: #0f1b2f;
  }
  .copyable { cursor: pointer; border-bottom: 1px dashed #94a3b8; transition: color .15s; }
  .copyable:hover { color: #4338ca; }
  .copyable:active { opacity: .6; }
  .copy-done { color: #059669 !important; font-weight: 600; }
  #check-result-card, #radar-list {
    opacity: 0; transform: translateY(8px);
    transition: opacity .28s ease, transform .28s ease;
  }
  #check-result-card.is-visible, #radar-list.is-visible { opacity: 1; transform: translateY(0); }
  .tab-active { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

  /* ── Тосты ─────────────────────────────────────────────── */
  #toast-stack {
    position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%;
    transform: translateX(-50%); z-index: 50;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
    width: min(92vw, 420px); pointer-events: none;
  }
  .toast-item {
    max-width: 100%; padding: 10px 14px; border-radius: 12px;
    font-size: 12px; font-weight: 500; line-height: 1.35;
    box-shadow: 0 8px 24px -6px rgb(15 23 42 / .35);
    animation: toast-in .22s cubic-bezier(.2,.8,.2,1) both;
    word-break: break-word; text-align: center;
  }
  .toast-item.is-leaving { animation: toast-out .18s ease both; }
  .toast-info    { background: #0f172a; color: #fff; }
  .toast-success { background: #059669; color: #fff; }
  .toast-warning { background: #f59e0b; color: #451a03; }
  .toast-error   { background: #dc2626; color: #fff; }
  @keyframes toast-in  { from { opacity: 0; transform: translateY(-12px) scale(.96); }
                         to   { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes toast-out { to   { opacity: 0; transform: translateY(-8px) scale(.97); } }

  /* ── Модалка тарифов ──────────────────────────────────── */
  /* Прозрачность задаётся здесь, а не классом Tailwind: CDN-Tailwind
     подключается позже и перебил бы opacity-0 — окно оставалось бы
     «открытым», но полностью прозрачным. */
  #tariff-modal { opacity: 0; transition: opacity .2s ease; }
  #tariff-modal.is-open { opacity: 1; }
  #tariff-modal .tariff-dialog {
    opacity: 0; transform: translateY(18px) scale(.96);
    transition: opacity .24s cubic-bezier(.2,.8,.2,1), transform .24s cubic-bezier(.2,.8,.2,1);
  }
  #tariff-modal.is-open .tariff-dialog { opacity: 1; transform: translateY(0) scale(1); }
  /* Меньше движения — по запросу системы. */
@media (prefers-reduced-motion: reduce) {
    #tariff-modal, #tariff-modal .tariff-dialog, .toast-item { transition: none !important; animation: none !important; }
  }

  /* ── Карточки радара ────────────────────────────────────── */
  /* Клик по карточке открывает отчёт, поэтому нужен явный курсор.
     Удаление — плавное исчезновение, а не мгновенный пропаж карточки. */
  .radar-card { transition: opacity .2s ease, transform .2s ease, border-color .15s ease; }
  .radar-card.is-removing {
    opacity: 0; transform: scale(.97); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  /* ── Кнопки ────────────────────────────────────────────── */
  .press { transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease; }
  .press:active:not(:disabled) { transform: scale(.97); }
  .spinner {
    width: 14px; height: 14px; border-radius: 9999px;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

/* ── Новая карточка проверки: источники, шаги, риск ───────────────── */

/* Бейдж состояния источника: зелёный — данные есть, оранжевый — нужна
   сверка вручную, серый — источник не ответил. */
/* Видимый фокус у всех интерактивных элементов: без него
   навигация с клавиатуры выглядит как «ничего не происходит». */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Нижняя «безопасная» зона: на iPhone с вырезом подвал не уезжает
   под домашнюю полоску. */
body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Модалка: прокручивается только диалог, фон остаётся на месте. */
[id$="-modal"] {
  overscroll-behavior: contain;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
[id$="-modal"] > .tariff-dialog {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  white-space: nowrap;
}
.source-badge.is-ok {
  background: #ecfdf5;
  color: #047857;
}
.source-badge.is-warn {
  background: #fffbeb;
  color: #b45309;
}
.source-badge.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

/* Шаги загрузки: ожидание → работа → готово / не получилось. */
.step-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}
.step-row .step-mark {
  display: inline-grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  background: #f1f5f9;
  font-size: 0.6875rem;
  line-height: 1;
  color: #94a3b8;
}
.step-row.is-active {
  color: #334155;
  font-weight: 600;
}
.step-row.is-active .step-mark {
  background: #e0e7ff;
  color: #4338ca;
}
.step-row.is-done {
  color: #475569;
}
.step-row.is-done .step-mark {
  background: #ecfdf5;
  color: #047857;
}
.step-row.is-failed .step-mark {
  background: #fffbeb;
  color: #b45309;
}

/* Пилюля риска в шапке карточки: цвет задаётся из JS по статусу. */
[data-r="risk-pill"].is-ok {
  background: #ecfdf5;
  color: #047857;
}
[data-r="risk-pill"].is-warn {
  background: #fffbeb;
  color: #b45309;
}
[data-r="risk-pill"].is-crit {
  background: #fef2f2;
  color: #b91c1c;
}
[data-r="risk-pill"].is-muted {
  background: #f1f5f9;
  color: #475569;
}
