/* ---------- копия бота: «Что копировать» и «Адаптировать» (окно мастера, wizard.css) ---------- */

/* итог над кнопками подвала: «Скопируем: 2 воронки, 14 шагов…» */
#wzFoot { flex-wrap: wrap; }
.cl-foot-sum { flex-basis: 100%; display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.cl-foot-sum::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--aurora-grad);
  box-shadow: 0 0 0 3px var(--accent-soft); }

/* шаг 1: галочки */
.cl-group + .cl-group { margin-top: 22px; }
.cl-gh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cl-gh b { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.cl-all { min-height: 32px; padding: 4px 10px; font-size: 13px; font-weight: 600; background: transparent;
  border-color: transparent; color: var(--accent-text); }
.cl-all:hover { background: var(--accent-soft); border-color: transparent; }
.wz label.cl-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0;
  padding: 13px 16px; min-height: 44px; cursor: pointer; border-radius: 16px; border: 1px solid var(--border);
  background: var(--panel); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--text);
  transition: border-color .12s, background .12s; }
.wz label.cl-opt + label.cl-opt { margin-top: 8px; }
.wz label.cl-opt:hover { border-color: var(--border-2); }
.wz label.cl-opt:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--panel); }
.wz label.cl-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ring); }
.wz label.cl-opt.off { cursor: not-allowed; opacity: .6; }
.cl-opt input { width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); cursor: inherit; }
.cl-opt input:focus { box-shadow: none; }
.cl-opt-t { display: grid; gap: 3px; min-width: 0; }
.cl-opt-t b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; overflow-wrap: anywhere; }
.cl-opt-t small { color: var(--text-dim); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.cl-live { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--pos-text);
  background: color-mix(in srgb, var(--pos) 14%, transparent); border: 1px solid color-mix(in srgb, var(--pos) 30%, transparent); }

/* шаг 2: ссылки */
.cl-from { min-width: 0; flex: 1 1 180px; font: 500 13px "IBM Plex Mono", ui-monospace, monospace; color: var(--text);
  overflow-wrap: anywhere; line-height: 1.45; }
.cl-n { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--panel-3); color: var(--text-dim);
  font: 600 12px "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.cl-lk-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.cl-where { margin: 6px 0 0; color: var(--text-faint); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.cl-where code { padding: 1px 5px; font-size: 11.5px; color: var(--accent-text); }
.wz label.cl-to-l { margin: 12px 0 6px; }
.wz .cl-to { font: 500 13.5px "IBM Plex Mono", ui-monospace, monospace; }
.cl-to[aria-invalid="true"] { border-color: var(--danger); }
.cl-st { min-height: 20px; margin-top: 6px; font-size: 13px; line-height: 1.45; }
.cl-ok { color: var(--pos-text); font-weight: 600; }
.cl-bad { color: var(--neg-text); }
.cl-dim { color: var(--text-faint); }
.cl-tag { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  color: var(--accent-text); background: var(--accent-soft); }
.cl-kind { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--panel-3); color: var(--accent-text); font: 700 14px "IBM Plex Mono", ui-monospace, monospace; }
.cl-kind svg { width: 15px; height: 15px; }

/* реф-ссылка — первой, подсвечена */
.cl-ref { position: relative; overflow: hidden; padding: 20px 18px 14px; border-radius: 18px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%),
    radial-gradient(360px 160px at 100% 0%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 70%), var(--panel); }
.cl-ref::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--aurora-grad); }
.cl-ref.ok { border-color: color-mix(in srgb, var(--pos) 55%, transparent); }
.cl-ref-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cl-ref-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--aurora-grad); color: var(--on-accent);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.cl-ref-ico svg { width: 20px; height: 20px; }
.cl-ref-t { display: grid; gap: 2px; min-width: 0; }
.cl-ref-t b { font-size: 16px; font-weight: 800; }
.cl-ref-t small { color: var(--text-dim); font-size: 13px; line-height: 1.45; }
.cl-ref-to { display: flex; gap: 8px; }
.cl-ref-to input { flex: 1; min-width: 0; }
.cl-ref-to button { flex: none; min-height: 40px; font-weight: 700; }

.cl-list-h { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.cl-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-link { padding: 14px 16px 10px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel);
  transition: border-color .12s; }
.cl-link.ok { border-color: color-mix(in srgb, var(--pos) 50%, transparent); }
.cl-link.bad { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }

.cl-empty { display: grid; justify-items: center; gap: 6px; padding: 30px 20px; text-align: center; border-radius: 18px;
  border: 1px dashed var(--border-2); background: var(--panel); }
.cl-empty > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px;
  background: var(--accent-soft); color: var(--accent-text); }
.cl-empty > span svg { width: 22px; height: 22px; }
.cl-empty small { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; max-width: 420px; }

/* загрузка и ошибка */
.cl-wait { display: grid; gap: 10px; }
.cl-wait i { display: block; height: 64px; border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%;
  animation: clShine 1.3s linear infinite; }
.cl-wait i:nth-child(2) { opacity: .75; } .cl-wait i:nth-child(3) { opacity: .5; }
.wz-alert.cl-err { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.cl-err span { flex: 1; min-width: 0; }
.cl-retry { flex: none; min-height: 40px; font-weight: 600; }

/* «Готово»: что скопировали и заменили */
.cl-done { width: 100%; max-width: 540px; margin-top: 12px; display: grid; gap: 10px; text-align: left; }
.cl-done-b { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--panel); }
.cl-done-b > b { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); }
.cl-done-l, .cl-done-r { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cl-done-l li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.cl-done-l li::before { content: "✓"; flex: none; color: var(--pos-text); font-weight: 800; }
.cl-done-r li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.cl-done-r .cl-from { flex: 0 1 auto; font-size: 12.5px; }
.cl-arrow { color: var(--text-faint); }
.cl-new { color: var(--accent-text); }
.cl-skip { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; color: var(--text-dim);
  background: color-mix(in srgb, var(--warn) 9%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }

@keyframes clShine { to { background-position: -300% 0; } }

/* телефон: всё в одну колонку, поля 16px (иначе iOS увеличивает страницу), кнопки крупные */
@media (max-width: 768px) {
  .cl-foot-sum { font-size: 13px; }
  .cl-all { min-height: 40px; padding: 8px 12px; }
  .wz label.cl-opt { padding: 12px 14px; }
  .wz .cl-to { font-size: 16px; }
  .cl-ref { padding: 18px 14px 12px; }
  .cl-ref-to { flex-direction: column; }
  .cl-ref-to button { min-height: 44px; width: 100%; }
  .cl-link { padding: 12px 14px 8px; }
  .cl-done-b { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-wait i { animation: none; }
}
