/* CHAT-PANEL v1 — لوحة «خاص» المنبثقة تحت أيقونة الرسايل (بدون لمس app.css) */
.cpanel{position:fixed;z-index:121;width:min(340px,calc(100vw - 16px));max-height:min(70vh,520px);
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line,#e6e8f0);
  border-radius:16px;box-shadow:0 18px 44px rgba(16,24,60,.18),0 2px 6px rgba(16,24,60,.06);
  overflow:hidden;direction:rtl;animation:cpanelIn .16s ease-out}
.cpanel[hidden]{display:none!important}
@keyframes cpanelIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.cpanel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;
  background:var(--brand-600,#4a1fe0);color:#fff}
.cpanel-head b{font-size:15.5px;font-weight:800}
.cpanel-head .cpanel-acts{display:flex;gap:8px;margin:0}
.cpanel-act{width:40px;height:40px;border:0;border-radius:12px;background:rgba(255,255,255,.16);color:#fff;
  display:grid;place-items:center;cursor:pointer;font:inherit;padding:0}
.cpanel-act:active{background:rgba(255,255,255,.3)}
.cpanel-act svg{width:20px;height:20px}
.cpanel-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.cpanel-row{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:60px;
  border-bottom:1px solid var(--line,#eef0f6)}
.cpanel-row:last-child{border-bottom:0}
.cpanel-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none;padding:4px 0}
.cpanel-av{width:42px;height:42px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--brand-500,#5b2eff),var(--brand-700,#3b17b3));color:#fff;font-weight:900;font-size:17px}
.cpanel-nm{display:flex;flex-direction:column;gap:2px;min-width:0}
.cpanel-nm b{font-size:14.5px;font-weight:800;line-height:1.35;color:var(--ink,#0f172a);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.cpanel-nm small{font-size:12px;color:var(--muted,#65708a)}
.cpanel-badge{background:#e11d48;color:#fff;border-radius:999px;font-size:11px;font-weight:800;padding:1px 7px;margin-inline-start:auto}
.cpanel-x{width:40px;height:40px;border:0;border-radius:12px;background:transparent;color:#98a0b3;
  display:grid;place-items:center;cursor:pointer;font:inherit;padding:0;flex:0 0 auto}
.cpanel-x:active{background:#f3f4f8;color:#e11d48}
.cpanel-x svg{width:18px;height:18px}
.cpanel-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:34px 20px 38px;text-align:center}
.cpanel-empty svg{width:70px;height:70px;opacity:.4}
.cpanel-empty p{margin:0;font-size:14.5px;font-weight:700;color:var(--muted-2,#8b93a7)}
