.hm-assistant-launch {
  position: fixed;
  z-index: 35;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(74px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  min-height: 46px;
  border: 1px solid #1c6146;
  border-radius: 999px;
  background: #fff;
  color: #123f2f;
  box-shadow: 0 6px 24px #0d372027;
  cursor: pointer;
  font: 700 14px/1.3 system-ui, sans-serif;
}
.hm-assistant-launch svg { width: 22px; height: 22px; }
.hm-assistant-launch:hover { background: #edf6ef; }
.hm-assistant {
  position: fixed;
  inset: auto max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(415px, calc(100vw - 36px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #c8d8cf;
  border-radius: 18px;
  background: #fff;
  color: #152c23;
  box-shadow: 0 24px 80px #10291d40;
  font: 15px/1.55 system-ui, sans-serif;
  overflow: hidden;
}
.hm-assistant::backdrop { background: #091b1540; }
.hm-assistant-shell { display: flex; flex-direction: column; height: min(580px, calc(100dvh - 38px)); }
.hm-assistant-head {
  display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 17px; background: #123d30; color: #fff;
}
.hm-assistant-head span { font-size: 11px; letter-spacing: .1em; color: #d1ead8; }
.hm-assistant-head h2 { font-size: 21px; line-height: 1.25; margin: 3px 0 0; color: #fff; }
.hm-assistant-close {
  width: 44px; height: 44px; padding: 0; border: 1px solid #80aa97; border-radius: 50%;
  background: transparent; color: #fff; font: 28px/1 system-ui, sans-serif; cursor: pointer;
}
.hm-assistant-feed {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: #f6f8f4;
}
.hm-assistant-message {
  flex: none; max-width: 94%; padding: 10px 12px; background: #fff; border: 1px solid #dce6df;
  border-radius: 12px; overflow-wrap: anywhere;
}
.hm-assistant-customer { align-self: flex-end; background: #dceee0; border-color: #c5dfcb; }
.hm-assistant-message blockquote { margin: 9px 0 0; border-left: 2px solid #79a38b; padding-left: 9px; color: #355448; font-size: 13px; }
.hm-assistant-links { display: grid; gap: 5px; margin-top: 8px; }
.hm-assistant a { color: #135940; text-decoration: underline; text-underline-offset: 2px; }
.hm-assistant-starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 14px 0; }
.hm-assistant-starters[hidden] { display: none; }
.hm-assistant-starters button {
  border: 1px solid #b9d0c1; background: #fff; color: #1b503c; border-radius: 16px;
  padding: 7px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.hm-assistant-form { padding: 9px 14px; }
.hm-assistant-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.hm-assistant-form > div { display: flex; gap: 7px; }
.hm-assistant-form input {
  flex: 1; min-width: 0; padding: 9px; border: 1px solid #a6bcb0; border-radius: 8px;
  background: #fff; color: #102a20; font: 16px/1.25 system-ui, sans-serif;
}
.hm-assistant-form button {
  min-width: 55px; min-height: 43px; padding: 7px 11px; border: 0; border-radius: 8px;
  background: #135940; color: #fff; font: 700 14px/1.2 system-ui, sans-serif; cursor: pointer;
}
.hm-assistant-form button:disabled { opacity: .55; cursor: wait; }
.hm-assistant-foot { display: flex; justify-content: space-between; gap: 8px; padding: 0 14px 12px; color: #476053; font-size: 12px; }
.hm-assistant :focus-visible, .hm-assistant-launch:focus-visible { outline: 3px solid #a97419; outline-offset: 2px; }
@media (max-width: 520px) {
  .hm-assistant { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); }
  .hm-assistant-shell { height: min(590px, calc(100dvh - 20px - env(safe-area-inset-bottom))); }
  .hm-assistant-launch { right: 14px; bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-height: 420px) {
  .hm-assistant-starters { max-height: 60px; overflow: auto; }
}
