.ssd-rail{
  position:fixed; right:16px; bottom:16px; z-index:10100; display:flex; flex-direction:column; gap:8px;
}
.ssd-rail .ssd-launch{
  border:none; padding:10px 14px; border-radius:999px; background:#2b50b3; color:#fff; font-weight:600;
  box-shadow:0 10px 28px rgba(0,0,0,.25); cursor:pointer;
}
.ssd-wrap{ position:fixed; inset:0; pointer-events:none; z-index:10099; }
.ssd-panel{
  position:absolute; right:0; top:0; height:100%; width:420px; max-width:96vw;
  background:#fff; border-left:1px solid #eaeaea; box-shadow:-8px 0 40px rgba(0,0,0,.2);
  transform:translateX(100%); transition:transform .22s ease;
  display:flex; flex-direction:column; pointer-events:auto;
}
.ssd-wrap.open .ssd-panel{ transform:translateX(0); }
.ssd-head{ display:flex; align-items:center; gap:8px; padding:12px 14px; background:#2b50b3; color:#fff; }
.ssd-head .t{ font-weight:700; }
.ssd-head .x{ margin-left:auto; background:transparent; border:none; color:#fff; font-size:18px; cursor:pointer; }
.ssd-tabs{ display:flex; gap:6px; padding:8px; border-bottom:1px solid #eee; }
.ssd-tabs .tab{ border:1px solid #e6e6e6; background:#fff; border-radius:999px; padding:6px 12px; cursor:pointer; }
.ssd-tabs .tab.on{ background:#eef2ff; border-color:#c7d2fe; }
.ssd-view{ flex:1; overflow:auto; padding:10px 12px; }
.ssd-view.hide{ display:none; }
#ssd-msgs{ height:calc(100% - 150px); overflow:auto; background:#f9fafb; padding:10px; border-radius:10px; }
#ssd-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
#ssd-chips .chip{ border:1px solid #e0e0e0; background:#fff; border-radius:999px; padding:6px 10px; cursor:pointer; }
.ssd-view .inp{ display:flex; gap:8px; align-items:flex-end; margin-top:8px; }
.ssd-view .inp textarea{ flex:1; min-height:38px; max-height:120px; resize:vertical; padding:8px; border:1px solid #ddd; border-radius:8px; }
.ssd-view .inp button{ border:none; background:#2b50b3; color:#fff; border-radius:8px; padding:10px 14px; cursor:pointer; }
.m{ max-width:85%; margin:10px 0; padding:10px 12px; border-radius:12px; line-height:1.35; background:#fff; box-shadow:0 2px 4px rgba(0,0,0,.05); }
.m.you{ margin-left:auto; background:#e3f2fd; }
.ss-chat-fab,.ss-personal-pill{ display:none !important; }
@media (max-width: 768px){
  .ssd-panel{ width:100%; max-width:none; height:85vh; top:auto; bottom:0; border-left:none; border-top:1px solid #eaeaea; transform:translateY(100%); }
  .ssd-wrap.open .ssd-panel{ transform:translateY(0); }
}