/* Ask Your Network — shared floating widget styles (extracted from build-collection.css). */
.rr-assist-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 13px 20px; gap: 9px;
  background: linear-gradient(135deg, #0066ff, #c27aff);
  color: #fff; font-size: .92rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.rr-assist-fab i { font-size: 1rem; }
.rr-assist-fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.rr-assist-fab.open { opacity: 0; pointer-events: none; transform: scale(.85); }

.rr-assist-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 1001;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 40px));
  background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.rr-assist-panel.open { opacity: 1; visibility: visible; transform: none; }

.rr-assist-head { padding: 14px 16px; background: linear-gradient(135deg, #0066ff, #c27aff); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.rr-assist-head h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.rr-assist-head .rr-sub { font-size: .72rem; opacity: .9; margin-top: 2px; }
.rr-assist-close { background: rgba(255,255,255,.22); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.rr-assist-close:hover { background: rgba(255,255,255,.34); }

.rr-assist-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafafc; }
.rr-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.rr-msg.user { align-self: flex-end; background: linear-gradient(135deg, #0066ff, #c27aff); color: #fff; border-bottom-right-radius: 4px; }
.rr-msg.bot { align-self: flex-start; background: #fff; color: #1a2332; border: 1px solid #eceef3; border-bottom-left-radius: 4px; }
.rr-msg.bot a { color: #0066ff; font-weight: 600; }
.rr-assist-empty { margin: auto; text-align: center; color: #6b7488; font-size: .88rem; padding: 10px; }
.rr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.rr-chip { border: 1px solid #d5d9e2; background: #fff; color: #26324d; border-radius: 999px; padding: 7px 12px; font-size: .8rem; cursor: pointer; transition: all .15s ease; }
.rr-chip:hover { border-color: #0066ff; color: #0066ff; }

.rr-assist-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eceef3; background: #fff; align-items: flex-end; }
.rr-assist-input textarea { flex: 1; resize: none; border: 1px solid #d5d9e2; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: .9rem; line-height: 1.4; max-height: 90px; }
.rr-assist-input textarea:focus { outline: none; border-color: #0066ff; }
.rr-assist-send { border: none; background: linear-gradient(135deg, #0066ff, #c27aff); color: #fff; width: 38px; height: 38px; border-radius: 12px; cursor: pointer; flex-shrink: 0; }
.rr-assist-send:disabled { opacity: .5; cursor: default; }
.rr-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.rr-typing span { width: 6px; height: 6px; border-radius: 50%; background: #b6bccb; animation: rrBlink 1s infinite; }
.rr-typing span:nth-child(2) { animation-delay: .2s; }
.rr-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes rrBlink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* Ask-your-network: sources (people) picker */
.rr-src { position: relative; padding: 9px 14px; border-bottom: 1px solid #eceef3; background: #fff; display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #4b5563; flex-shrink: 0; }
.rr-src-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d5d9e2; background: #fff; border-radius: 999px; padding: 5px 11px; font-weight: 700; color: #0b1533; cursor: pointer; font-size: .82rem; }
.rr-src-btn:hover { border-color: #0066ff; }
.rr-src-btn .gradient-text { background: linear-gradient(135deg, #0066ff, #c27aff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.rr-src-menu { position: absolute; top: calc(100% + 4px); left: 12px; right: 12px; z-index: 5; background: #fff; border: 1px solid #e6e8ee; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,14,51,.2); overflow: hidden; max-height: 320px; display: flex; flex-direction: column; }
.rr-src-menu[hidden] { display: none; }
.rr-src-opt { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-size: .86rem; border: none; background: none; width: 100%; text-align: left; }
.rr-src-opt:hover { background: #f4f6fb; }
.rr-src-opt.active { color: #0066ff; font-weight: 700; }
.rr-src-search { margin: 8px 12px; padding: 8px 10px; border: 1px solid #d5d9e2; border-radius: 10px; font: inherit; font-size: .85rem; }
.rr-src-people { overflow-y: auto; padding: 2px 6px 6px; }
.rr-src-people label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; cursor: pointer; font-size: .86rem; }
.rr-src-people label:hover { background: #f4f6fb; }
.rr-src-people input { accent-color: #0066ff; }
/* Match the app's canonical avatar: gradient ring + light-gradient/navy monogram */
.rr-src-ava { width: 30px; height: 30px; border-radius: 50%; padding: 2px; flex-shrink: 0; background: linear-gradient(135deg,#0066ff,#c27aff); }
.rr-src-ava-inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #000e33; }
.rr-src-ava-inner img { width: 100%; height: 100%; object-fit: cover; }
.rr-src-ava-inner.monogram {
  color: #000e33;
  background:
    radial-gradient(circle at top left, rgba(0,102,255,0.22), transparent 45%),
    radial-gradient(circle at top right, rgba(194,122,255,0.28), transparent 45%),
    linear-gradient(135deg, #eef4ff 0%, #f5efff 55%, #f8f3ff 100%);
}

/* Inline "add" button placed right after a place the bot mentions */
.rr-inline { white-space: nowrap; }
.rr-inline-add { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; border: none; border-radius: 50%; background: linear-gradient(135deg,#0066ff,#c27aff); color: #fff; font-size: .58rem; cursor: pointer; padding: 0; vertical-align: middle; }
.rr-inline-add:hover { transform: scale(1.12); }
.rr-inline-add[disabled] { background: #cdd3df; cursor: default; transform: none; }
.rr-credits { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e6e8ee; font-size: .78rem; color: #6b7488; }
.rr-credits a { color: #0066ff; font-weight: 600; text-decoration: none; }
.rr-credits a:hover { text-decoration: underline; }
.rr-src-loading { padding: 14px; color: #8891a4; font-size: .82rem; text-align: center; }
.rr-src-apply { margin: 6px 12px 10px; padding: 9px; border: none; border-radius: 10px; background: linear-gradient(135deg,#0066ff,#c27aff); color: #fff; font-weight: 800; cursor: pointer; }

/* Ask-your-network: rec results with add + profile link */
.rr-recs { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.rr-rec { display: flex; align-items: center; gap: 10px; padding: 7px; border: 1px solid #eceef3; border-radius: 12px; background: #fff; }
.rr-rec-thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg,#e7ebf5,#f4f6fb); }
.rr-rec-body { flex: 1; min-width: 0; }
.rr-rec-name { font-weight: 700; font-size: .86rem; color: #0b1533; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-rec-by { font-size: .76rem; color: #6b7488; }
.rr-rec-by a { color: #0066ff; font-weight: 600; text-decoration: none; }
.rr-rec-by a:hover { text-decoration: underline; }
.rr-rec-add { flex-shrink: 0; border: none; border-radius: 999px; padding: 7px 12px; font-size: .78rem; font-weight: 800; color: #fff; background: linear-gradient(135deg,#0066ff,#c27aff); cursor: pointer; }
.rr-rec-add[disabled] { background: #e7ebf3; color: #7b8496; cursor: default; }

/* Tier 1→2 "widen to community" nudge in the chat */
.rr-widen { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #e6e8ee; font-size: .8rem; color: #6b7488; }
.rr-widen-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; border: 1px solid #0066ff; background: #fff; color: #0066ff; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.rr-widen-btn:hover { background: linear-gradient(135deg, #0066ff, #c27aff); color: #fff; border-color: transparent; }
