/* Hausura website assistant (uses the site's tokens with fallbacks). */
.ha-launch { position: fixed; z-index: 60; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--live, #38e8ff); color: var(--live-ink, #00222a); font: 600 15px var(--body, system-ui, sans-serif);
  box-shadow: 0 14px 40px -12px rgba(56, 232, 255, .65); }
.ha-launch:hover { transform: translateY(-1px); }
.ha-launch.ha-hidden { display: none; }
.ha-panel { position: fixed; z-index: 61; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--bg-2, #0a1020); color: var(--text, #e8f1ff); border: 1px solid var(--line, #1b2942); border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); overflow: hidden; font: 15px/1.5 var(--body, system-ui, sans-serif); }
.ha-panel[hidden] { display: none; }
.ha-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line, #1b2942); }
.ha-head b { display: block; font-family: var(--display, system-ui); font-size: 16px; }
.ha-head small { color: var(--text-2, #9fb0c8); font-size: 12px; }
.ha-close { flex: none; width: 44px; height: 44px; margin: -6px -8px -6px 0; border-radius: 12px; border: 1px solid var(--line, #1b2942); background: transparent; color: var(--text, #e8f1ff); font-size: 24px; line-height: 1; cursor: pointer; }
.ha-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ha-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; overflow-wrap: anywhere; }
.ha-msg p { margin: 0; } .ha-msg p + p { margin-top: 8px; }
.ha-bot { align-self: flex-start; background: var(--panel, #0e1628); border: 1px solid var(--line, #1b2942); }
.ha-user { align-self: flex-end; background: var(--live, #38e8ff); color: var(--live-ink, #00222a); }
.ha-wait { color: var(--text-2, #9fb0c8); animation: ha-pulse 1.4s ease-in-out infinite; }
@keyframes ha-pulse { 50% { opacity: .45; } }
.ha-sugs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.ha-sugs:empty { display: none; }
.ha-chip { min-height: 36px; border: 1px solid var(--line, #1b2942); background: transparent; color: var(--text-2, #9fb0c8); border-radius: 99px; padding: 6px 11px; font: 500 13px var(--body, system-ui); cursor: pointer; text-align: left; }
.ha-chip:hover { color: var(--text, #e8f1ff); border-color: var(--live, #38e8ff); }
.ha-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line, #1b2942); }
/* 16px input text: iOS Safari zooms the page when a smaller field is focused. */
.ha-input { flex: 1; min-width: 0; height: 44px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line, #1b2942); background: var(--bg, #05070d); color: var(--text, #e8f1ff); font: 16px var(--body, system-ui, sans-serif); }
.ha-send { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--live, #38e8ff); color: var(--live-ink, #00222a); font: 600 14px var(--body, system-ui); cursor: pointer; }
.ha-fine { margin: 0; padding: 0 14px 12px; color: var(--text-3, #64748f); font-size: 11.5px; }
.ha-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ha-launch:focus-visible, .ha-close:focus-visible, .ha-chip:focus-visible, .ha-send:focus-visible, .ha-input:focus-visible { outline: 2px solid var(--live, #38e8ff); outline-offset: 2px; }
@media (max-width: 520px) {
  .ha-launch span { display: none; } .ha-launch { width: 54px; padding: 0; justify-content: center; }
  .ha-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(86vh, 640px); border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 360px) {
  .ha-msg { max-width: 94%; } .ha-head { padding: 12px 14px; } .ha-form { padding: 8px 10px; } .ha-send { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .ha-wait, .ha-launch:hover { animation: none; transform: none; } }
