/* ---------- «Проверить самому»: окно тестовой ссылки и тестировщиков ---------- */
.modal.tst-modal { max-width: 560px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.tst-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.tst-head h3 { margin: 0; flex: none; }
.tst-bot { min-width: 0; color: var(--text-faint); font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-x { margin-left: auto; flex: none; width: 36px; height: 36px; padding: 0; }
.tst-lead { margin: 0 0 14px; color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.tst-lead code { color: var(--accent-text); }
.modal label.tst-fl { margin-top: 4px; }
.tst-link { display: flex; align-items: center; min-width: 0; margin-top: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--border); }
.tst-link code { min-width: 0; padding: 0; background: none; overflow-wrap: anywhere; user-select: all;
  font: 600 14px "IBM Plex Mono", ui-monospace, monospace; color: var(--accent-text); }
.tst-link.muted { color: var(--text-faint); font-size: 13.5px; }
.tst-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tst-acts > * { flex: 1 1 160px; min-height: 42px; }
.tst-open { display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: border-color .12s, background .12s; }
.tst-open:hover { border-color: var(--accent); background: var(--panel-4); }
.tst-open:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.tst-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 8px; }
.tst-sec b { font-size: 14px; }
.tst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tst-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.tst-who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.tst-who b, .tst-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tst-who small { color: var(--text-faint); font-size: 12.5px; }
.tst-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--text-dim); font-size: 12.5px; min-width: 0; }
.tst-meta > span { min-width: 0; overflow-wrap: anywhere; }
.tst-mono { font: 500 12.5px "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.tst-row-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
.tst-empty { padding: 18px; text-align: center; color: var(--text-faint); font-size: 13.5px;
  border: 1px dashed var(--border-2); border-radius: 12px; }
.tst-err { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px;
  background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.tst-err span { flex: 1; }
.tst-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.tst-foot .spacer { flex: 1; }
.tst-rot { padding: 6px 4px; background: transparent; border-color: transparent; color: var(--text-dim); font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px; }
.tst-rot:hover { color: var(--text); background: transparent; border-color: transparent; }

/* кнопка в полоске воронки */
.fn-test { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* «📨 Прислать мне» в подвале формы: на узком экране кнопки переносятся */
.footer-actions:has(.tsend-btn) { flex-wrap: wrap; }

/* метка тестировщика в списке людей: вне обрезаемого имени — длинное имя её не прячет */
.u-nm-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.u-test { flex: none; display: inline-block; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); }

/* ---------- чек-лист «Перед запуском» (верх вкладки «Шаги») ---------- */
.lc { margin-bottom: 12px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border); }
.lc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lc-head b { font-size: 14px; }
.lc-cnt { font: 600 12.5px "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--text-faint); }
.lc-bar { height: 4px; margin: 10px 0 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; }
.lc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--aurora-grad); transition: width .4s cubic-bezier(.2, .8, .3, 1); }
.lc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.lc-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 38px;
  font-size: 13px; color: var(--text); }
.lc-list li.ok { color: var(--text-dim); }
.lc-mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border-2);
  font-size: 11px; font-weight: 800; }
.lc-list li.ok .lc-mark { background: var(--pos); border-color: var(--pos); color: var(--bg); }
.lc-t { min-width: 0; line-height: 1.35; }
.lc-go { padding: 5px 10px; font-size: 12.5px; white-space: nowrap; }
.lc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lc.lc-ok { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--pos-text);
  background: color-mix(in srgb, var(--pos) 8%, transparent); border-color: color-mix(in srgb, var(--pos) 35%, transparent); }
.lc-hide { margin-left: auto; padding: 4px 6px; background: transparent; border-color: transparent; color: var(--text-faint);
  font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.lc-hide:hover { color: var(--text); background: transparent; border-color: transparent; }

/* пустая воронка во вкладке «Шаги» */
#stepList.is-empty { padding-left: 0; }
#stepList.is-empty::before { display: none; }
.st-empty { display: grid; gap: 8px; margin-bottom: 10px; padding: 16px; border-radius: 14px;
  background: var(--panel); border: 1px dashed var(--border-2); }
.st-empty b { font-size: 14.5px; }
.st-empty span { color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.st-empty .st-or { color: var(--text-faint); font-size: 12.5px; text-align: center; }
.st-empty button { width: 100%; margin-top: 4px; }
#fullTplStep { margin-left: 17px; width: calc(100% - 17px) !important; }

/* до 1100px — только значок: рядом с подписью «В эфире…» и «Все воронки» подпись не помещается */
@media (max-width: 1100px) {
  .fn-test { padding: 8px 11px; }
  .fn-test-t { display: none; }
}
@media (max-width: 768px) {
  .modal.tst-modal select { font-size: 16px; }
  .tst-row { grid-template-columns: minmax(0, 1fr); }
  .tst-row-acts { grid-column: 1; grid-row: auto; }
  .tst-row-acts button { flex: 1; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .lc-bar i { transition: none; } }
