/* assets/discord-preview.css — всплывашка живой проверки Discord-ника (логика: assets/discord-preview.js).
   Signal-тема кабинета, акцент — Discord blurple. Позицию (fixed) ставит JS. */
.dcp {
  position: fixed;
  z-index: 60;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  background: #17092b;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink, #e6edf3);
  animation: dcp-in 0.16s ease;
}
.dcp[hidden] { display: none; }
@keyframes dcp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dcp-full { min-width: 0; width: 100%; }

/* ФОТО — ОСНОВНОЙ ЭЛЕМЕНТ (решение владельца 2026-08-08): было 46px, стало как в карточках. */
.dcp-av { width: 128px; height: 128px; border-radius: 50%; flex: 0 0 auto; border: 1px solid var(--line); object-fit: cover; background: rgba(0, 0, 0, 0.3); }
.dcp-info { min-width: 0; }
.dcp-ok { color: #3fb950; font-weight: 800; font-size: 0.78rem; }
.dcp-login { font-weight: 800; color: #a9b6ff; word-break: break-all; }
.dcp-name { color: var(--muted, #8b949e); font-size: 0.78rem; }
.dcp-txt { min-width: 0; }
.dcp-muted { color: var(--muted, #8b949e); }

/* «Did you mean?» — список совпадений (кликабельные). */
.dcp-q { font-weight: 800; font-size: 0.76rem; color: var(--muted, #8b949e); margin: 0 0 6px; }
.dcp-match { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 4px; padding: 6px 8px; border: 1px solid var(--line, rgba(255,255,255,0.14)); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--ink, #e6edf3); font: inherit; cursor: pointer; text-align: left; }
.dcp-match:hover, .dcp-match:focus-visible { border-color: #5865f2; background: rgba(88, 101, 242, 0.15); }
/* В подсказке «Did you mean?» лицо было 28px — втрое меньше, чем нужно, чтобы человек узнал себя. */
.dcp-av-sm { width: 84px; height: 84px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; background: rgba(0, 0, 0, 0.3); }
.dcp-match-name { font-weight: 700; word-break: break-all; }
.dcp-dim { color: var(--muted, #8b949e); font-weight: 400; }

/* «Не в сервере» — предупреждение + пояснение + кнопки Connect/Join. */
.dcp-warn { color: #ffb44d; font-weight: 800; margin: 0 0 6px; }
.dcp-warn strong { color: #ffd08a; }
.dcp-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dcp-cta { display: inline-block; padding: 7px 11px; font-size: 0.78rem; font-weight: 800; border-radius: 7px; text-decoration: none; }
.dcp-connect { background: #5865f2; color: #fff; }
.dcp-join { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--line, rgba(255,255,255,0.14)); }

.dcp-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #5865f2; display: inline-block; flex: 0 0 auto; margin-top: 2px; animation: dcp-spin 0.7s linear infinite; }
@keyframes dcp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dcp { animation: none; } .dcp-spin { animation-duration: 1.6s; } }

/* Аватар «в сервере» рядом с полем. */
.dc-account-av { border-radius: 50%; object-fit: cover; border: 1px solid var(--line, rgba(255, 255, 255, 0.14)); vertical-align: middle; margin-left: 10px; }
.dcp-verified { border-color: rgba(63, 185, 80, 0.6) !important; }
