@charset "UTF-8";
/* AI assistant theme — ZINCBAZE navy / green technical palette */

#aa-root {
  --aa-brand: #102a48;
  --aa-brand-deep: #0b2037;
  --aa-accent: #1d5d4a;
  --aa-surface: #ffffff;
  --aa-soft: #f5f2ec;
  --aa-line: #dddeda;
  --aa-ink: #152a3e;
  --aa-muted: #4b5a69;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--aa-ink);
}

#aa-root * { box-sizing: border-box; }

/* ---------- launcher ---------- */
#aa-root .aa-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--aa-brand);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px -6px rgba(11, 32, 55, 0.5), 0 0 0 1px rgba(11, 32, 55, 0.08);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
#aa-root .aa-fab:hover { background: var(--aa-brand-deep); transform: translateY(-1px); }
#aa-root .aa-fab:active { transform: translateY(0); }
#aa-root .aa-fab svg { flex: none; }
#aa-root[data-open="true"] .aa-fab { background: var(--aa-accent); }
#aa-root .aa-fab-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- panel ---------- */
#aa-root .aa-panel {
  display: flex;
  flex-direction: column;
  width: 372px;
  height: 540px;
  max-height: calc(100vh - 110px);
  margin-bottom: 12px;
  background: var(--aa-surface);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(11, 32, 55, 0.1), 0 24px 48px -12px rgba(11, 32, 55, 0.35);
  overflow: hidden;
}
#aa-root .aa-panel[hidden] { display: none; }

#aa-root .aa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 13px 16px;
  background: var(--aa-brand-deep);
  color: #fff;
}
#aa-root .aa-head-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#aa-root .aa-head-copy strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
#aa-root .aa-head-copy span {
  font-size: 0.72rem;
  color: rgba(215, 228, 236, 0.78);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#aa-root .aa-close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  flex: none;
  transition: background-color 160ms ease;
}
#aa-root .aa-close:hover { background: rgba(255, 255, 255, 0.22); }

#aa-root .aa-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  background: var(--aa-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 90, 105, 0.35) transparent;
}
#aa-root .aa-list::-webkit-scrollbar { width: 8px; }
#aa-root .aa-list::-webkit-scrollbar-thumb { background: rgba(75, 90, 105, 0.35); border-radius: 999px; }
#aa-root .aa-list::-webkit-scrollbar-track { background: transparent; }

#aa-root .aa-msg { display: flex; }
#aa-root .aa-msg-bot { justify-content: flex-start; }
#aa-root .aa-msg-user { justify-content: flex-end; }

#aa-root .aa-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
#aa-root .aa-msg-bot .aa-bubble {
  background: #fff;
  border: 1px solid var(--aa-line);
  color: var(--aa-ink);
  border-bottom-left-radius: 3px;
}
#aa-root .aa-msg-user .aa-bubble {
  background: var(--aa-brand);
  color: #fff;
  border-bottom-right-radius: 3px;
}
#aa-root .aa-bubble a {
  color: var(--aa-accent);
  text-decoration: underline;
}
#aa-root .aa-msg-user .aa-bubble a { color: #fff; }

#aa-root .aa-typing .aa-bubble { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
#aa-root .aa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aa-muted);
  opacity: 0.45;
  animation: aa-blink 1.1s infinite ease-in-out;
}
#aa-root .aa-dot:nth-child(2) { animation-delay: 0.15s; }
#aa-root .aa-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes aa-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 0.9; transform: translateY(-2px); }
}

#aa-root .aa-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px;
  background: var(--aa-soft);
}
#aa-root .aa-suggestions:empty { display: none; }
#aa-root .aa-sug {
  border: 1px solid rgba(29, 93, 74, 0.3);
  background: rgba(208, 234, 223, 0.5);
  color: var(--aa-ink);
  border-radius: 999px;
  padding: 6px 11px;
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
#aa-root .aa-sug:hover { background: rgba(208, 234, 223, 0.95); border-color: var(--aa-accent); }

#aa-root .aa-foot {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  background: var(--aa-soft);
  border-top: 1px solid var(--aa-line);
}
#aa-root .aa-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #c9cbc6;
  border-radius: 8px;
  background: #fff;
  color: var(--aa-ink);
  font-family: inherit;
  font-size: 0.84rem;
}
#aa-root .aa-input:focus-visible {
  outline: none;
  border-color: var(--aa-accent);
  box-shadow: 0 0 0 3px rgba(29, 93, 74, 0.16);
}
#aa-root .aa-send {
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--aa-accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease;
}
#aa-root .aa-send:hover { background: #21403a; }

@media (max-width: 520px) {
  #aa-root { right: 12px; bottom: 12px; }
  #aa-root .aa-panel { width: calc(100vw - 24px); height: 68vh; }
  #aa-root .aa-fab-label { display: none; }
  #aa-root .aa-fab { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  #aa-root .aa-dot { animation: none; }
  #aa-root .aa-fab { transition: none; }
}
