.assistant-launcher {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 4;
  min-height: 46px;
  border: 1px solid #bacdd6;
  border-radius: 30px;
  padding: 10px 18px;
  color: white;
  background: #082d49;
  box-shadow: 0 4px 18px #082d4933;
  font-size: .88rem;
  font-weight: 700;
}
.assistant-dialog {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  width: min(410px, calc(100% - 32px));
  max-height: min(610px, calc(100dvh - 32px));
  margin: 0;
  padding: 0;
  border: 1px solid #bacdd6;
  border-radius: 16px;
  color: #15364c;
  background: white;
  box-shadow: 0 16px 38px #082d4940;
}
.assistant-dialog[open] {
  display: flex;
  flex-direction: column;
}
.assistant-dialog::backdrop {
  background: #082d4948;
}
.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 17px;
  background: #082d49;
  color: white;
}
.assistant-header h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}
.assistant-close {
  border: none;
  background: transparent;
  color: white;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.4rem;
}
.assistant-note {
  margin: 0;
  padding: 9px 14px;
  font-size: .76rem;
  background: #eef4f7;
}
.assistant-log {
  min-height: 90px;
  height: clamp(105px, 32dvh, 255px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
}
.assistant-log p {
  padding: 9px 11px;
  margin: 0 0 8px;
  border-radius: 10px;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.assistant-answer {
  background: #f0f5f6;
  margin-right: 18px !important;
}
.assistant-answer a {
  color: #006a65;
  text-decoration: underline;
  font-weight: 700;
}
.assistant-user {
  background: #082d49;
  color: white;
  margin-left: 24px !important;
}
.assistant-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 12px;
}
.assistant-topics button {
  border: 1px solid #96b6b4;
  background: white;
  border-radius: 20px;
  padding: 6px 10px;
  color: #064e4b;
  font-size: .75rem;
}
.assistant-topics button:hover {
  background: #e3f3ef;
}
.assistant-form {
  border-top: 1px solid #d5e1e5;
  padding: 8px 12px 12px;
}
.assistant-label {
  font-size: .78rem;
  font-weight: 700;
}
.assistant-form div {
  display: flex;
  gap: 7px;
}
.assistant-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #8298a4;
  border-radius: 6px;
  padding: 8px;
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
}
.assistant-form button {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  background: #082d49;
  color: white;
  font-size: .86rem;
}
body:has(.assistant-launcher) > .footer {
  padding-bottom: 76px;
}
