/*
 * find-card-modal.css
 * Новая модалка «Поиск карточки» (#findCard).
 * Двух-экранный поток: start (выбор коллекции) → list (юзеры выбранной коллекции).
 *
 * Префикс классов: .fcm__*
 * Палитра и цвета коллекций взяты из card.css (sell #1b7bce, wishlist #e32a92,
 * like #F44336, has #009B76, drop — градиент 4FA0FF→524FFF→B338FF).
 *
 * SVG-спрайт с иконками подключён в modules/modals.ejs рядом с диалогом.
 */

#findCard.modal { padding: 0; }
#findCard .modal-frame {
  padding: 0;
  max-width: 520px;
  width: 100%;
  background: transparent;
  box-shadow: none;
}
/* Бэкдроп без блюра. Специфичность поднята, чтобы перебить #dark .modal>.backdrop (index.css:3367).
   Прозрачность задаётся inline (transform follows swipe — см. modules/modals.ejs). */
#dark #findCard.modal > .backdrop,
#findCard.modal > .backdrop {
  background: rgba(8, 6, 12, 0.72);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.fcm {
  --fcm-bg:           #18161b;
  --fcm-surface-1:    #1f1d23;
  --fcm-surface-2:    #2a2730;
  --fcm-surface-3:    #353141;
  --fcm-border:       rgba(255, 255, 255, 0.06);
  --fcm-border-2:     rgba(255, 255, 255, 0.10);
  --fcm-text:         #fefefe;
  --fcm-text-soft:    #A49CC1;
  --fcm-text-dim:     #6b6477;
  --fcm-accent:       #7F2DE8;
  --fcm-accent-2:     #ac51ff;
  --fcm-accent-soft:  rgba(127, 45, 232, 0.14);
  --fcm-success:      #0EAD69;
  --fcm-danger:       #ff6666;
  --fcm-danger-soft:  rgba(255, 102, 102, 0.10);
  --fcm-tg:           #4FA0FF;
  --fcm-c-sell:       #1b7bce;
  --fcm-c-wishlist:   #e32a92;
  --fcm-c-like:       #F44336;
  --fcm-c-has:        #009B76;
  --fcm-c-drop:       linear-gradient(120deg, #4FA0FF 0%, #524FFF 50%, #B338FF 100%);
  --fcm-c-drop-solid: #7F2DE8;
  --fcm-radius-l: 18px;
  --fcm-radius-m: 12px;
  --fcm-radius-s: 9px;
  /* Drop-shadow + внутренняя обводка как у .modal-frame в #dark (см. static/styles/index.css:2966) */
  --fcm-shadow: 0 6px 20px rgba(19, 20, 24, 0.56), inset 0 0 0 1px #2a2c2e;

  background: var(--fcm-bg);
  color: var(--fcm-text);
  display: flex; flex-direction: column;
  position: relative;
  width: 100%;
  border-radius: var(--fcm-radius-l);
  overflow: hidden;
  box-shadow: var(--fcm-shadow);
  /* Стартовый экран — по контенту с потолком; в режиме списка — фикс 90vh (см. .fcm--list-mode) */
  max-height: 90vh;
  font-size: 14px;
  line-height: 1.4;
  will-change: transform, opacity;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
/* В режиме просмотра коллекции окно занимает максимум — даже с одной карточкой не сжимается */
.fcm--list-mode { height: 90vh; }
@media (max-width: 540px) {
  .fcm--list-mode { height: 85vh; }
}

.fcm * { box-sizing: border-box; }
.fcm .ic { width: 16px; height: 16px; display: inline-block; flex-shrink: 0; }
.fcm .ic--20 { width: 20px; height: 20px; }
.fcm .ic--22 { width: 22px; height: 22px; }
.fcm .ic--24 { width: 24px; height: 24px; }

/* На мобилке — bottom-sheet прижатый к низу, со свободным пространством сверху.
   ВАЖНО: не переопределяем display (иначе <dialog> в закрытом состоянии перестаёт скрываться
   и блокирует клики). Просто меняем маржины — браузер сам спрячет dialog без атрибута [open]. */
@media (max-width: 540px) {
  #findCard.modal {
    margin: auto auto 0 auto;   /* прижато к нижнему краю; сверху — auto-пространство */
    padding: 0;
    width: 100%;
    max-width: 100%;
  }
  #findCard .modal-frame {
    max-width: 100%;
    width: 100%;
  }
  .fcm {
    border-radius: 18px 18px 0 0;
    max-height: 85vh;
    box-shadow: 0 -6px 20px rgba(19, 20, 24, 0.56), inset 0 0 0 1px #2a2c2e;
  }
}
.fcm--dragging { transition: none; }

.fcm__handle {
  display: none;
}
@media (max-width: 540px) {
  /* Tap target — невидимая область ~24px высотой, внутри визуальная палочка */
  .fcm__handle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding-top: 8px;
    cursor: grab;
    touch-action: none;     /* критично: блокирует скролл странички, оставляет touch для drag */
    user-select: none;
  }
  .fcm__handle::before {
    content: '';
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
    transition: background 0.15s;
  }
  .fcm__handle:active { cursor: grabbing; }
  .fcm__handle:active::before { background: rgba(255, 255, 255, 0.32); }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.fcm__hero {
  flex-shrink: 0;                /* не сжимаем шапку, даже при огромном списке */
  display: flex; gap: 14px;
  padding: 16px 20px 14px;
  position: relative;
  border-bottom: 1px solid var(--fcm-border);
}
@media (max-width: 540px) {
  .fcm__handle { flex-shrink: 0; }
}
.fcm__close, .fcm__back {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--fcm-surface-2);
  border: 1px solid var(--fcm-border);
  color: var(--fcm-text-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  padding: 0;
}
.fcm__close:hover, .fcm__back:hover { background: var(--fcm-surface-3); color: var(--fcm-text); }
.fcm__close { position: absolute; top: 14px; right: 14px; }
.fcm__back  { margin-top: 2px; }

.fcm__thumb {
  flex-shrink: 0;
  width: 56px; height: 78px;
  border-radius: .2rem;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 14px -3px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06);
  background-size: cover;
  background-position: center;
}
.fcm__meta { flex: 1; min-width: 0; padding-right: 38px; }
.fcm__card-name {
  font-size: 16px; font-weight: 600;
  margin: 0 0 4px; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--fcm-text);
}
.fcm__card-sub {
  color: var(--fcm-text-soft); font-size: 12px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.fcm__price-row {
  margin-top: 8px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.fcm__price-hint {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 4px 10px;
  background: var(--fcm-surface-1);
  border: 1px solid var(--fcm-border);
  border-radius: 999px;
  font-size: 11.5px;
  cursor: help;
}
.fcm__price-hint > span:first-child { color: var(--fcm-text-soft); }
.fcm__price-hint b { font-weight: 600; color: var(--fcm-text); font-variant-numeric: tabular-nums; }
.fcm__price-hint--drop {
  background: rgba(127, 45, 232, 0.10);
  border-color: rgba(127, 45, 232, 0.22);
}
.fcm__price-hint--drop b { color: var(--fcm-accent-2); }
.fcm__price-hint--loading {
  color: var(--fcm-text-dim);
}

.fcm__hero--compact .fcm__thumb { width: 40px; height: 56px; }
.fcm__hero--compact .fcm__card-name { font-size: 14px; margin-bottom: 2px; }
.fcm__hero--compact .fcm__card-sub  { font-size: 11.5px; }
.fcm__hero--compact .fcm__price-row { margin-top: 6px; }
.fcm__hero--compact .fcm__price-hint { padding: 3px 9px; font-size: 11px; }

/* ─── Start screen: collection chooser ─────────────────────────── */
/* flex: 0 1 auto + min-height: 0 — высота по контенту, может сжаться внутри max-height родителя */
.fcm__start {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 20px;
}
.fcm__start-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fcm-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 2px 12px;
}
.fcm__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 540px) {
  .fcm__start { padding: 14px 14px 16px; }
  .fcm__grid  { grid-template-columns: 1fr; }
}

.fcm__choice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fcm-surface-1);
  border: 1px solid var(--fcm-border);
  border-radius: var(--fcm-radius-m);
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  color: inherit;
  position: relative;
  font-family: inherit;
}
.fcm__choice:hover {
  background: var(--fcm-surface-2);
  border-color: var(--fcm-border-2);
  transform: translateY(-1px);
}
.fcm__choice-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fcm-text-soft);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.fcm__choice--sell .fcm__choice-icon {
  color: var(--fcm-c-sell);
  background: rgba(27, 123, 206, 0.12);
  border-color: rgba(27, 123, 206, 0.22);
}
.fcm__choice--wishlist .fcm__choice-icon {
  color: var(--fcm-c-wishlist);
  background: rgba(227, 42, 146, 0.12);
  border-color: rgba(227, 42, 146, 0.22);
}
.fcm__choice--like .fcm__choice-icon {
  color: var(--fcm-c-like);
  background: rgba(244, 67, 54, 0.12);
  border-color: rgba(244, 67, 54, 0.22);
}
.fcm__choice--has .fcm__choice-icon {
  color: var(--fcm-c-has);
  background: rgba(0, 155, 118, 0.12);
  border-color: rgba(0, 155, 118, 0.22);
}
.fcm__choice--drop .fcm__choice-icon {
  color: #fff;
  background: var(--fcm-c-drop);
  border-color: rgba(127, 45, 232, 0.35);
  box-shadow: 0 4px 14px -4px rgba(127, 45, 232, 0.55);
}
.fcm__choice--drop { grid-column: 1 / -1; }

.fcm__choice-body { flex: 1; min-width: 0; }
.fcm__choice-label {
  font-weight: 600; font-size: 13.5px;
  color: var(--fcm-text); line-height: 1.2;
}
.fcm__choice-meta {
  font-size: 11.5px; color: var(--fcm-text-soft);
  margin-top: 3px;
  display: flex; gap: 4px; align-items: baseline; flex-wrap: wrap;
}
.fcm__choice-meta b {
  color: var(--fcm-text); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fcm__choice-meta-extra { color: var(--fcm-text-dim); }
.fcm__choice-chev {
  color: var(--fcm-text-dim);
  transition: transform 0.15s, color 0.15s;
}
.fcm__choice:hover .fcm__choice-chev {
  color: var(--fcm-text-soft);
  transform: translateX(2px);
}
.fcm__choice--empty {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ─── Horizontal collection nav (list view) ────────────────────── */
.fcm__col-nav {
  flex-shrink: 0;                /* не сжимать табы по вертикали при длинном списке */
  display: flex; gap: 2px;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--fcm-border);
  scrollbar-width: none;
}
.fcm__col-nav::-webkit-scrollbar { display: none; }
@media (max-width: 540px) {
  .fcm__col-nav { padding: 0 10px; }
}
.fcm__col-nav-item {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 11px;
  background: transparent;
  border: 0;
  color: var(--fcm-text-soft);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
  font-family: inherit;
}
.fcm__col-nav-item:hover { color: var(--fcm-text); }
.fcm__col-nav-item .ic { color: currentColor; opacity: 0.85; }
.fcm__col-nav-item .count {
  background: rgba(255,255,255,0.06);
  color: var(--fcm-text-soft);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fcm__col-nav-item--sell.active     { color: var(--fcm-c-sell);     border-bottom-color: var(--fcm-c-sell); }
.fcm__col-nav-item--wishlist.active { color: var(--fcm-c-wishlist); border-bottom-color: var(--fcm-c-wishlist); }
.fcm__col-nav-item--like.active     { color: var(--fcm-c-like);     border-bottom-color: var(--fcm-c-like); }
.fcm__col-nav-item--has.active      { color: var(--fcm-c-has);      border-bottom-color: var(--fcm-c-has); }
.fcm__col-nav-item--drop.active     { color: var(--fcm-c-drop-solid); border-bottom-color: var(--fcm-c-drop-solid); }
.fcm__col-nav-item.active .ic { opacity: 1; }
.fcm__col-nav-item.active .count { background: rgba(255,255,255,0.10); color: var(--fcm-text); }

/* ─── Toolbar ──────────────────────────────────────────────────── */
.fcm__toolbar {
  flex-shrink: 0;                /* не даём тулбару сжиматься внутри .fcm */
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px 8px;
  flex-wrap: wrap;
}
@media (max-width: 540px) {
  .fcm__toolbar { padding: 9px 14px 6px; }
}
.fcm__chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent;
  border: 1px solid var(--fcm-border);
  color: var(--fcm-text-soft);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  font-family: inherit;
}
.fcm__chip:hover { background: var(--fcm-surface-1); color: var(--fcm-text); }
.fcm__chip.active {
  background: var(--fcm-accent-soft);
  border-color: rgba(127, 45, 232, 0.35);
  color: var(--fcm-text);
}
.fcm__chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fcm-accent-2);
  display: inline-block;
}
.fcm__balance {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  background: var(--fcm-accent-soft);
  border: 1px solid rgba(127, 45, 232, 0.20);
  border-radius: 999px;
  font-size: 12px; color: var(--fcm-text);
  font-variant-numeric: tabular-nums;
}
.fcm__balance .ic { color: var(--fcm-accent-2); }
.fcm__balance b { font-weight: 700; }

.fcm__sort-wrap { position: relative; }
.fcm__sort-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--fcm-surface-2);
  border: 1px solid var(--fcm-border-2);
  border-radius: var(--fcm-radius-s);
  padding: 4px;
  min-width: 200px;
  box-shadow: var(--fcm-shadow);
  z-index: 5;
}
.fcm__sort-menu button {
  display: flex; width: 100%;
  align-items: center; gap: 6px;
  border: 0; background: transparent;
  color: var(--fcm-text-soft);
  text-align: left;
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  font-family: inherit;
}
.fcm__sort-menu button:hover { background: var(--fcm-surface-3); color: var(--fcm-text); }
.fcm__sort-menu button.active { color: var(--fcm-accent-2); background: var(--fcm-surface-3); }
.fcm__sort-menu button .ic-check {
  margin-left: auto; opacity: 0; color: var(--fcm-accent-2);
}
.fcm__sort-menu button.active .ic-check { opacity: 1; }

.fcm__filter-pills {
  flex-shrink: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 20px 6px;
}
@media (max-width: 540px) {
  .fcm__filter-pills { padding: 0 14px 4px; }
}

/* ─── List ──────────────────────────────────────────────────────── */
/* В .fcm--list-mode (height: 90vh) список растёт и заполняет оставшуюся высоту,
   а если контент длиннее — корректно скроллит благодаря min-height: 0. */
.fcm__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 20px 20px;
  display: flex; flex-direction: column; gap: 7px;
}
@media (max-width: 540px) {
  .fcm__list { padding: 4px 14px 16px; }
}

.fcm__row {
  display: block; text-decoration: none; color: inherit;
  background: var(--fcm-surface-1);
  border: 1px solid var(--fcm-border);
  border-radius: var(--fcm-radius-m);
  padding: 11px 13px;
  transition: all 0.15s;
}
.fcm__row:hover {
  background: var(--fcm-surface-2);
  border-color: var(--fcm-border-2);
}
.fcm__row--no-tg { opacity: 0.55; }
.fcm__row--no-tg:hover { opacity: 0.8; }
.fcm__row--out { opacity: 0.42; }
.fcm__row--out:hover { opacity: 0.65; }
.fcm__row-head { display: flex; align-items: center; gap: 10px; }

.fcm__avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 13px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.fcm__avatar--online::after {
  content: '';
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--fcm-success);
  border: 2px solid var(--fcm-surface-1);
}
.fcm__row:hover .fcm__avatar--online::after { border-color: var(--fcm-surface-2); }

.fcm__user-info { flex: 1; min-width: 0; overflow: hidden; }
.fcm__username {
  display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13.5px;
  color: var(--fcm-text); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fcm__badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1;
}
.fcm__sub-line {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px;
  color: var(--fcm-text-dim); font-size: 11.5px;
  overflow: hidden;
}
.fcm__tg {
  color: var(--fcm-tg);
  font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fcm__no-tg {
  color: var(--fcm-text-dim);
  font-size: 11px;
  font-style: italic;
}
.fcm__last-seen { color: var(--fcm-text-dim); white-space: nowrap; }
.fcm__sub-line .dot-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--fcm-text-dim); flex-shrink: 0;
}

.fcm__right {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px;
  text-align: right;
}
.fcm__price {
  font-weight: 700; font-size: 14.5px;
  color: var(--fcm-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fcm__count {
  font-size: 10.5px; color: var(--fcm-text-soft);
  background: rgba(255,255,255,0.04);
  padding: 1.5px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--fcm-border);
}
.fcm__buy {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(120deg, rgba(79, 160, 255, 0.5) 0%, transparent 40%, rgba(179, 56, 255, 0.7) 100%), #5c2eaa;
  color: #fff; border: 0;
  padding: 8px 13px;
  border-radius: var(--fcm-radius-s);
  font-weight: 600; font-size: 12.5px;
  cursor: pointer; transition: all 0.15s;
  box-shadow: inset 0 0 0 1px rgba(127, 45, 232, 0.55);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}
.fcm__buy .ic { width: 13px; height: 13px; }
.fcm__buy:hover { background-color: #6c3ec0; }
.fcm__buy:active { transform: translateY(1px); }
.fcm__buy--low {
  background: rgba(255,255,255,0.04);
  color: var(--fcm-text-dim);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  cursor: not-allowed;
}
.fcm__buy--low:hover { background-color: rgba(255,255,255,0.04); }
.fcm__out-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  background: var(--fcm-danger-soft);
  color: var(--fcm-danger);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  border: 1px solid rgba(255, 102, 102, 0.18);
}
.fcm__not-sale-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fcm-text-soft);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  border: 1px solid var(--fcm-border-2);
}

.fcm__tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 8px;
}
.fcm__tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 500;
  background: var(--fcm-surface-3);
  color: var(--fcm-text-soft);
  border: 1px solid var(--fcm-border);
}
.fcm__tag--green  { background: rgba(14, 173, 105, 0.10); color: #5fcf90; border-color: rgba(14, 173, 105, 0.20); }
.fcm__tag--blue   { background: rgba(79, 160, 255, 0.10); color: #93c5fd; border-color: rgba(79, 160, 255, 0.20); }
.fcm__tag--pink   { background: rgba(255, 107, 138, 0.10); color: #fb7185; border-color: rgba(255, 107, 138, 0.20); }
.fcm__tag--orange { background: rgba(245, 158, 11, 0.10); color: #fcd34d; border-color: rgba(245, 158, 11, 0.20); }
.fcm__tag--violet { background: rgba(172, 81, 255, 0.10); color: #c4b5fd; border-color: rgba(172, 81, 255, 0.20); }

.fcm__comment {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fcm-text-soft);
  line-height: 1.45;
}
.fcm__comment::before { content: '«'; opacity: 0.65; margin-right: 1px; }
.fcm__comment::after  { content: '»'; opacity: 0.65; margin-left: 1px; }

.fcm__empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  text-align: center; gap: 6px;
  color: var(--fcm-text-dim);
}
.fcm__empty-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--fcm-surface-1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  border: 1px solid var(--fcm-border);
  color: var(--fcm-text-soft);
}
.fcm__empty-title { color: var(--fcm-text-soft); font-weight: 600; font-size: 13.5px; }
.fcm__empty-hint { font-size: 12px; max-width: 260px; line-height: 1.5; }

.fcm__skeleton {
  background: var(--fcm-surface-1);
  border: 1px solid var(--fcm-border);
  border-radius: var(--fcm-radius-m);
  padding: 11px 13px;
  display: flex; gap: 10px; align-items: center;
}
.fcm__skeleton .sk-circle { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.fcm__skeleton .sk-col { flex: 1; }
.fcm__skeleton .sk-line { height: 10px; border-radius: 4px; }
.fcm__skeleton .sk-line + .sk-line { margin-top: 6px; }
.fcm-sk {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: fcm-shimmer 1.5s linear infinite;
}
@keyframes fcm-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
