/* WAYLAB-CATALOG-SEARCH-STATES (T-1452)
   Состояния поиска по смыслу в каталогах: «идёт поиск» → «нашлось» → «не нашлось».
   Отдельный файл: css/style.css остаётся zero-diff (frozen-гарды glass/бюджет/канон),
   .cat-status из marina.css больше не используется в каталогах.
   Классы .csx-* — только здесь; тёмная тема не поддерживается, как и весь каталог. */

/* ---------- 1. Сводка «нашлось» ------------------------------------------ */
.csx-find {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 14px 16px 14px 18px;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, .18);
  border-radius: 14px;
  box-shadow: 0 12px 26px -22px rgba(10, 22, 40, .6);
  position: relative;
  overflow: hidden;
}
.csx-find::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--m-lime, #d8fa4b);
}
.csx-find.is-plain::before { background: rgba(10, 22, 40, .28); }
.csx-find-badge {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 250, 75, .45);
  color: var(--m-ink, #0a1628);
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .06);
}
.csx-find-badge svg { width: 17px; height: 17px; }
.csx-find.is-plain .csx-find-badge {
  background: var(--m-paper, #f2f3f0);
  color: rgba(10, 22, 40, .62);
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .1);
}
.csx-find-body { flex: 1 1 auto; min-width: 0; }
.csx-find-title {
  margin: 1px 0 3px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--m-ink, #0a1628);
}
.csx-find-title b { font-weight: 900; }
.csx-find-title .csx-q { color: rgba(10, 22, 40, .62); font-weight: 600; }
.csx-find-note {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(10, 22, 40, .62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 92ch;
}
.csx-find-side {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
}
.csx-find-count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(10, 22, 40, .44);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.csx-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(10, 22, 40, .18);
  background: #fff;
  color: var(--m-ink, #0a1628);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 26px -22px rgba(10, 22, 40, .6);
}
.csx-reset:hover { background: var(--m-paper, #f2f3f0); border-color: rgba(10, 22, 40, .28); }
.csx-reset:focus-visible { outline: 2px solid var(--m-lime-deep, #c9ee35); outline-offset: 2px; }
.csx-reset svg { width: 13px; height: 13px; }

/* ---------- 2. «Идёт поиск»: шкала-нить маршрута ------------------------- */
.csx-load {
  position: relative;
  overflow: hidden;
  margin: 4px 0 20px;
  padding: 14px 18px 12px;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, .18);
  border-radius: 14px;
  box-shadow: 0 12px 26px -22px rgba(10, 22, 40, .6);
}
.csx-load-head { display: flex; align-items: center; gap: 12px; }
.csx-load-badge {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(216, 250, 75, .45);
  color: var(--m-ink, #0a1628);
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .06);
}
.csx-load-badge svg { width: 16px; height: 16px; }
.csx-load-title {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--m-ink, #0a1628);
  white-space: nowrap;
}
.csx-load-q {
  font-size: 12px;
  font-weight: 600;
  color: rgba(10, 22, 40, .62);
  background: var(--m-paper, #f2f3f0);
  border: 1px solid rgba(10, 22, 40, .12);
  padding: 3px 10px;
  border-radius: 999px;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.csx-load-time {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(10, 22, 40, .44);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.csx-progress { position: relative; height: 24px; margin: 12px 0 0; }
.csx-progress-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 3px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(10, 22, 40, .18) 0 7px, transparent 7px 13px);
}
.csx-progress-fill {
  position: absolute;
  left: 0;
  top: 11px;
  height: 3px;
  border-radius: 2px;
  width: 6%;
  background: linear-gradient(90deg, var(--m-lime, #d8fa4b), var(--m-lime-deep, #c9ee35));
  transition: width .9s cubic-bezier(.22, .61, .36, 1);
}
.csx-progress-wp {
  position: absolute;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(10, 22, 40, .28);
  transform: translateX(-50%);
}
.csx-progress-wp.is-on { background: var(--m-lime-deep, #c9ee35); border-color: var(--m-lime-deep, #c9ee35); }
.csx-progress-marker {
  position: absolute;
  top: 2px;
  left: 6%;
  transform: translateX(-50%);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--m-lime, #d8fa4b);
  border: 2.5px solid #fff;
  box-shadow: 0 4px 10px -2px rgba(10, 22, 40, .35);
  display: grid;
  place-items: center;
  transition: left .9s cubic-bezier(.22, .61, .36, 1);
}
.csx-progress-marker svg { width: 11px; height: 11px; color: var(--m-ink, #0a1628); }
.csx-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(10, 22, 40, .44);
}
.csx-step.is-on { color: var(--m-ink, #0a1628); }
.csx-step .csx-step-short { display: none; }

/* ---------- 3. Скелетоны вместо сетки ------------------------------------ */
.csx-skel-grid { pointer-events: none; }
.csx-sh,
.csx-bar,
.csx-skel-tile {
  background: linear-gradient(90deg, #f0f1ec 0%, #e0e3da 50%, #f0f1ec 100%);
  background-size: 220% 100%;
  animation: csx-shimmer 1.5s ease-in-out infinite;
}
@keyframes csx-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
.csx-bar { height: 10px; border-radius: 6px; }
.csx-bar.is-lg { height: 14px; }
.csx-skel-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(10, 22, 40, .18);
}
.csx-skel-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 6px; }
.csx-skel-cap i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .82); }
.csx-skel-cap i:last-child { width: 46%; height: 8px; }

/* ---------- 4. Карточка «не нашлось» ------------------------------------- */
.csx-empty-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 300px);
  padding: 6px 0 18px;
}
.csx-empty {
  width: min(500px, 100%);
  padding: 34px 34px 26px;
  background: #fff;
  border: 1px solid rgba(10, 22, 40, .18);
  border-radius: 20px;
  box-shadow: 0 32px 64px -44px rgba(10, 22, 40, .62), 0 2px 6px rgba(10, 22, 40, .04);
  text-align: center;
}
.csx-empty-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 21px;
  display: grid;
  place-items: center;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  position: relative;
}
.csx-empty-ico::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 26px;
  border: 1px dashed rgba(15, 118, 110, .22);
}
.csx-empty-ico svg { width: 26px; height: 26px; color: #0f766e; }
.csx-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--m-ink, #0a1628);
}
.csx-empty p {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(10, 22, 40, .62);
}
.csx-empty p .csx-q { color: var(--m-ink, #0a1628); font-weight: 700; }
.csx-empty-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 22px; }
.csx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(10, 22, 40, .18);
  background: #fff;
  color: var(--m-ink, #0a1628);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.csx-chip:hover { background: rgba(216, 250, 75, .28); border-color: rgba(10, 22, 40, .28); }
.csx-chip:focus-visible { outline: 2px solid var(--m-lime-deep, #c9ee35); outline-offset: 2px; }
.csx-chip svg { width: 12px; height: 12px; color: rgba(10, 22, 40, .44); }
.csx-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.csx-empty-actions .btn { height: 40px; padding: 0 18px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.csx-empty-foot {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(10, 22, 40, .44);
}

/* ---------- 5. Адаптив --------------------------------------------------- */
@media (max-width: 900px) {
  .csx-load { padding: 12px 14px 10px; }
  .csx-load-q { display: none; }
  .csx-load-title { white-space: normal; }
  .csx-steps { font-size: 11px; gap: 8px; }
  .csx-step .csx-step-long { display: none; }
  .csx-step .csx-step-short { display: inline; }
  .csx-find { display: block; padding: 12px 14px 12px 16px; }
  .csx-find-badge { display: none; }
  .csx-find-title { margin: 0 0 4px; }
  .csx-find-note { -webkit-line-clamp: 3; font-size: 12.5px; }
  .csx-find-side { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .csx-empty-wrap { min-height: calc(100vh - 330px); }
}
@media (max-width: 640px) {
  .csx-empty { padding: 26px 20px 22px; border-radius: 16px; }
  .csx-empty h3 { font-size: 18px; }
  .csx-empty p { font-size: 13px; }
  .csx-empty-actions { flex-direction: column-reverse; }
  .csx-empty-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .csx-empty { padding: 24px 16px 20px; }
  .csx-empty-ico { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 12px; }
  .csx-empty-chips { margin: 14px 0 18px; }
  .csx-chip { height: 30px; font-size: 12.5px; padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .csx-sh, .csx-bar, .csx-skel-tile { animation: none; }
  .csx-progress-fill, .csx-progress-marker { transition: none; }
}
