.assistant {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 32px));
  max-height: calc(100dvh - 124px);
  overflow: hidden;
  border: 1px solid #e9e3d8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 50px #10263a33;
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
}
.assistant[hidden] { display: none; }
.assistant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 18px 16px;
  border-bottom: 1px solid #eee7dd;
  background: linear-gradient(#fdf4df, #fff);
}
.assistant-header > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.assistant-header strong { display: block; font-size: 15px; }
.assistant-header span {
  display: block;
  margin-top: 4px;
  color: #22834b;
  font-size: 12px;
}
.assistant-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7e95a2;
  font-size: 24px;
}
.assistant-body { min-height: 0; padding: 16px; overflow-y: auto; }
.assistant-message {
  color: var(--blue);
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 6px;
  background: #fdf0d5;
  white-space: pre-line;
}
.assistant-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.assistant-actions button,
.assistant-actions a,
.assistant-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d7e1e8;
  border-radius: 20px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}
.assistant-actions button:hover,
.assistant-actions a:hover,
.assistant-footer a:hover { background: #f3f7fa; border-color: #9eafbc; }
.assistant-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex-shrink: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid #eee7dd;
  background: #fffbf3;
}
.assistant-footer a { border-radius: 12px; }
.assistant-footer img { flex-shrink: 0; height: 18px; width: 18px; }
.assistant-telegram { filter: brightness(0) saturate(100%) invert(16%) sepia(31%) saturate(2454%) hue-rotate(158deg); }
@media (max-width: 600px) {
  .assistant { right: 16px; bottom: 94px; max-height: calc(100dvh - 114px); }
}
