/* The profile lookup box drawn by /js/profile-lookup.js (renderBox), under the P2P "Send to" field and in the
   Profile tab's preview. Everything is scoped to .ycp-rb, which renderBox puts on its container, and the colours
   are written out so the box looks the same on any page. Names can be Russian or Chinese, which the site font
   doesn't have: those letters fall back to the device's own font. */
.ycp-rb { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #ECEEF4; font-size: 14px; }
.ycp-rb[hidden] { display: none !important; }
.ycp-rb, .ycp-rb * { box-sizing: border-box; }

.ycp-rb .rb { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: #1B2030; border: 1px solid #2C3345; }
.ycp-rb .rb.you { border-color: rgba(245, 185, 74, .35); }
.ycp-rb .rb-av { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #9B7BFF 0%, #5E7BFF 55%, #3A8DF0 100%); color: #fff; font-size: 17px; font-weight: 600; line-height: 1; }
.ycp-rb .rb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ycp-rb .rb-av.ph { background: #222839; }
.ycp-rb .rb-names { flex: 1; min-width: 0; }
.ycp-rb .rb-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: #ECEEF4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ycp-rb .rb-name.redacted { color: #C4C9D6; letter-spacing: .02em; }
.ycp-rb .rb-user { font-size: 12.5px; line-height: 1.4; color: #8A92A5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ycp-rb a.rb-go { flex: none; font-size: 12.5px; color: #A9B8FF; text-decoration: none; white-space: nowrap; }
.ycp-rb a.rb-go:hover { text-decoration: underline; }

.ycp-rb .rb-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45;
  color: #C4C9D6; background: #1B2030; border: 1px solid #2C3345; overflow-wrap: anywhere; }
.ycp-rb .rb-note .rb-i { flex: none; margin-top: 1.5px; }
.ycp-rb .rb-note.warn { color: #F5C977; background: rgba(245, 185, 74, .08); border-color: rgba(245, 185, 74, .25); }
.ycp-rb .rb-note.bad { color: #FF9AA8; background: rgba(229, 86, 107, .08); border-color: rgba(229, 86, 107, .25); }

.ycp-rb .rb-skel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #1B2030; border: 1px solid #2C3345; }
.ycp-rb .rb-skel .c { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #222839; }
.ycp-rb .rb-skel .bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ycp-rb .rb-skel .b { display: block; height: 10px; border-radius: 6px; background: #222839; }
.ycp-rb .rb-skel .b1 { width: 55%; }
.ycp-rb .rb-skel .b2 { width: 30%; }
@media (prefers-reduced-motion: no-preference) {
  .ycp-rb .rb-skel .c, .ycp-rb .rb-skel .b { animation: ycp-rb-pulse 1.2s ease-in-out infinite alternate; }
}
@keyframes ycp-rb-pulse { from { opacity: 1; } to { opacity: .45; } }
