.help-assistant-sidebar-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  background: transparent;
  color: var(--text-secondary, #64748b);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.help-assistant-sidebar-trigger:hover { color: #0f8f86; }
.help-assistant-sidebar-trigger span:first-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
}

.is-sidebar-collapsed .help-assistant-sidebar-trigger span:last-child { display: none; }
.help-assistant-mobile-trigger { display: none; font-weight: 700; }

.help-assistant {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  max-height: min(630px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(25, 48, 76, .18);
  color: #1e293b;
}

.help-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e6edf5;
}
.help-assistant-head strong { display: block; font-size: 16px; }
.help-assistant-head small { display: block; margin-top: 3px; color: #64748b; }
.help-assistant-messages { min-height: 160px; overflow: auto; padding: 16px; overscroll-behavior: contain; }
.help-assistant-intro { margin: 0 0 14px; color: #475569; line-height: 1.45; }
.help-assistant-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-assistant-suggestions button { padding: 8px 10px; border: 1px solid #bde9e4; border-radius: 10px; background: #effcfb; color: #087e76; font: inherit; cursor: pointer; }
.help-assistant-message { max-width: 92%; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: #f2f7fb; line-height: 1.45; overflow-wrap: anywhere; }
.help-assistant-message.is-user { margin-left: auto; background: #e9f8f6; }
.help-assistant-message p { margin: 0; white-space: pre-wrap; }
.help-assistant-message b { display: block; margin-bottom: 5px; }
.help-assistant-message small { display: block; margin-top: 7px; color: #64748b; }
.help-assistant-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #e6edf5; }
.help-assistant-form input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid #d5e1ed; border-radius: 10px; font: inherit; }
.help-assistant-form input:focus-visible { outline: 2px solid #0ea5a0; outline-offset: 1px; }
.help-assistant-form .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.help-assistant-form button { padding: 10px 12px; border: 0; border-radius: 10px; background: #14a99f; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.help-assistant-note { margin: 0; padding: 0 16px 12px; color: #64748b; font-size: 12px; line-height: 1.35; }

@media (max-width: 760px) {
  .help-assistant-mobile-trigger { display: inline-flex; align-items: center; justify-content: center; }
  .help-assistant { right: 12px; bottom: 76px; max-height: calc(100dvh - 90px); }
}
