#deltum-assistant {
  position: fixed;
  z-index: 2147483000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  font: 400 14px/1.5 system-ui, sans-serif;
  color: #edf6f3;
  color-scheme: dark;
}
#deltum-assistant *, #deltum-assistant *::before, #deltum-assistant *::after { box-sizing: border-box; }
#deltum-assistant button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}
#deltum-assistant button:focus-visible, #deltum-assistant textarea:focus-visible, #deltum-assistant [tabindex]:focus-visible {
  outline: 2px solid #46c6d1;
  outline-offset: 2px;
}
#deltum-assistant .deltum-chat-launcher {
  min-height: 48px;
  padding: 8px 14px 8px 9px;
  border: 1px solid #245258;
  border-radius: 50px;
  background: #031811;
  box-shadow: 0 6px 30px #0008;
  font-weight: 650;
}
#deltum-assistant img { flex: none; border-radius: 50%; }
#deltum-assistant .deltum-chat-panel[hidden] { display: none; }
#deltum-assistant .deltum-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  width: min(370px, calc(100vw - 40px));
  height: min(510px, calc(100dvh - 105px));
  overflow: hidden;
  border: 1px solid #354840;
  border-radius: 19px;
  background: #0c241e;
  box-shadow: 0 18px 65px #0009;
}
#deltum-assistant header {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #34433e;
  background: #1b2521;
}
#deltum-assistant h2 { margin: 0; color: inherit; font: 700 15px/1.2 system-ui, sans-serif; }
#deltum-assistant .deltum-chat-close {
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #27332e;
  font-size: 23px;
}
#deltum-assistant .deltum-chat-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
}
#deltum-assistant .deltum-chat-log p {
  max-width: 92%;
  flex: none;
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: #242e29;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#deltum-assistant .deltum-chat-log .deltum-chat-user { align-self: flex-end; background: #29483f; }
#deltum-assistant .deltum-chat-log .deltum-chat-pending { color: #adc2b9; }
#deltum-assistant .deltum-chat-log .deltum-chat-error { color: #ffd5cb; }
#deltum-assistant form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px;
  border-top: 1px solid #34433e;
}
#deltum-assistant textarea {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  resize: none;
  padding: 8px 9px;
  border: 1px solid #41544b;
  border-radius: 9px;
  background: #101613;
  color: inherit;
  font: inherit;
}
#deltum-assistant textarea::placeholder { color: #a5b8b0; }
#deltum-assistant .deltum-chat-send {
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #a3e5d0;
  color: #14221b;
  font-weight: 700;
}
#deltum-assistant .deltum-chat-send:disabled { opacity: .55; cursor: progress; }
#deltum-assistant .deltum-chat-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
