.lu-assistant-launch, .lu-assistant {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  z-index: 20;
}
.lu-assistant-launch {
  bottom: calc(16px + env(safe-area-inset-bottom));
  background: var(--red);
  color: white;
  border: 1px solid #ed636d;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 20px #0007;
}
.lu-assistant {
  bottom: calc(70px + env(safe-area-inset-bottom));
  width: min(380px, calc(100% - 32px));
  max-height: calc(100dvh - 94px - env(safe-area-inset-bottom));
  overflow: auto;
  padding: 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 12px;
  box-shadow: 0 10px 36px #0009;
}
.lu-assistant-head, .lu-input-row, .lu-prompts { display: flex; align-items: center; gap: 7px; }
.lu-assistant-head { position: static; justify-content: space-between; }
.lu-assistant-head h2 { font-size: 21px; letter-spacing: -.035em; }
.lu-assistant button, .lu-assistant input {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 7px 9px;
  font-size: 14px;
}
.lu-assistant .lu-assistant-close { min-width: 38px; min-height: 38px; font-size: 18px; }
.lu-assistant-log { max-height: min(245px, 32dvh); overflow-y: auto; margin: 10px 0; }
.lu-assistant-log p { margin: 6px 0; padding: 8px 10px; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.lu-answer { background: var(--panel); border-left: 2px solid var(--red); }
.lu-question { text-align: right; }
.lu-answer a, .lu-human { display: block; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.lu-answer a { margin-top: 5px; }
.lu-prompts { flex-wrap: wrap; margin-bottom: 10px; }
.lu-assistant label, .lu-human { font-size: 13px; }
.lu-assistant input { flex: 1; min-width: 0; font-size: 16px; }
.lu-assistant [type=submit] { background: var(--red); color: white; }
.lu-human { margin-top: 10px; }
