.pbs-root{
  --pbs-accent:#1a5fb4;          /* основной акцент — поменяйте под сайт */
  --pbs-accent-soft:#e8f0fb;
  --pbs-line:#d8dee6;
  --pbs-bg:#ffffff;
  --pbs-bot-bg:#f4f6f9;
  --pbs-radius:14px;
  max-width:95%;               /* ширина чата на больших экранах */
  margin:0 auto 28px;
  font-family:inherit;
}
.pbs-chat{
  display:flex; flex-direction:column;
  height:640px;                  /* высота чата на десктопе */
  background:var(--pbs-bg);
  border:1px solid var(--pbs-line);
  border-radius:var(--pbs-radius);
  overflow:hidden;
  box-shadow:0 2px 14px rgba(0,0,0,.08);
}
.pbs-log{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px;
  scroll-behavior:smooth; -webkit-overflow-scrolling:touch; }
.pbs-msg{ display:flex; }
.pbs-bot{ justify-content:flex-start; }
.pbs-user{ justify-content:flex-end; }
.pbs-bubble{
  max-width:82%; padding:10px 14px; border-radius:16px;
  font-size:15px; line-height:1.45; white-space:pre-wrap; word-break:break-word;
  text-align: left;
}
.pbs-bot .pbs-bubble{ background:var(--pbs-bot-bg); border-bottom-left-radius:4px; }
.pbs-user .pbs-bubble{ background:var(--pbs-accent-soft); color:#123; border-bottom-right-radius:4px; }
/* строка источника: отделена чертой, окрашена иначе, чем ответ */
.pbs-src{
  margin-top:8px; padding-top:8px; border-top:1px dashed var(--pbs-line);
  font-size:12.5px; color:#5b6470; line-height:1.5;
}
.pbs-src b, .pbs-src .pbs-src-ch{ color:var(--pbs-accent); font-weight:600; }
.pbs-src a{ color:var(--pbs-accent); text-decoration:underline; }

.pbs-err{ color:#b3261e; font-size:14px; }
.pbs-typing .pbs-bubble{ color:#8a94a3; font-style:italic; }
.pbs-chips{ display:flex; flex-wrap:wrap; gap:6px; padding:8px 14px; border-top:1px solid var(--pbs-line); }
.pbs-chip{
  border:1px solid var(--pbs-accent); color:var(--pbs-accent); background:#fff;
  border-radius:999px; padding:5px 12px; font-size:13px; cursor:pointer; transition:background .15s;
}
.pbs-chip:hover{ background:var(--pbs-accent-soft); }
.pbs-inputrow{ display:flex; gap:8px; padding:10px 14px 14px; border-top:1px solid var(--pbs-line); }
.pbs-in{
  flex:1; min-width:0; padding:10px 12px; font-size:16px;   /* 16px — iOS не зумит */
  border:1px solid var(--pbs-line); border-radius:10px; outline:none;
}
.pbs-in:focus{ border-color:var(--pbs-accent); }
.pbs-send{
  width:44px; height:44px; flex:0 0 auto; border:none; border-radius:10px;
  background:var(--pbs-accent); color:#fff; font-size:17px; cursor:pointer;
}
.pbs-send:disabled{ opacity:.55; cursor:default; }

@media (max-width:640px){
  .pbs-chat{ height:72vh; min-height:420px; border-radius:12px; }
  .pbs-bubble{ max-width:90%; font-size:14.5px; }
  .pbs-chip{ font-size:12px; padding:4px 10px; }
}

 