#anish-bot-root {
  --ab-navy: #182b48;
  --ab-navy-2: #213b60;
  --ab-paper: #fffdf8;
  --ab-cream: #f5efe5;
  --ab-ink: #211d19;
  --ab-muted: #756e67;
  --ab-line: #e6ded3;
  --ab-orange: #e88a4c;
  --ab-teal: #25a99f;
  --ab-shadow: 0 24px 70px rgba(18, 28, 43, .25), 0 6px 20px rgba(18, 28, 43, .12);
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ab-ink);
  line-height: 1.5;
}

#anish-bot-root *, #anish-bot-root *::before, #anish-bot-root *::after { box-sizing: border-box; }

.ab-launcher {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--ab-navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(20, 42, 72, .3);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ab-launcher:hover { transform: translateY(-3px); background: var(--ab-navy-2); box-shadow: 0 18px 42px rgba(20, 42, 72, .36); }
.ab-launcher:focus-visible, .ab-close:focus-visible, .ab-chip:focus-visible, .ab-send:focus-visible, .ab-input:focus-visible { outline: 3px solid rgba(37,169,159,.38); outline-offset: 3px; }
.ab-launcher svg { width: 29px; height: 29px; }

.ab-teaser {
  position: absolute;
  right: 70px;
  bottom: 7px;
  width: max-content;
  max-width: 260px;
  padding: 11px 14px;
  border: 1px solid var(--ab-line);
  border-radius: 12px;
  background: var(--ab-paper);
  color: var(--ab-muted);
  font-size: 12px;
  box-shadow: 0 10px 28px rgba(18,28,43,.13);
  opacity: 0;
  transform: translateX(7px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.ab-teaser.is-visible { opacity: 1; transform: none; }

.ab-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(408px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 116px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: var(--ab-paper);
  box-shadow: var(--ab-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility .22s;
}

.ab-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.ab-header {
  min-height: 76px;
  padding: 15px 15px 14px 17px;
  color: #fff;
  background:
    radial-gradient(circle at 85% -20%, rgba(37,169,159,.34), transparent 48%),
    var(--ab-navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-avatar {
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--ab-navy);
  background: var(--ab-orange);
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.ab-title { min-width: 0; flex: 1; }
.ab-title strong { display: block; font-family: Georgia, serif; font-size: 18px; line-height: 1.1; }
.ab-title span { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.57); }
.ab-title span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #55d4c9; box-shadow: 0 0 0 3px rgba(85,212,201,.13); }

.ab-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 20px;
}

.ab-close:hover { background: rgba(255,255,255,.13); color: #fff; }

.ab-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: #d8d0c5 transparent;
}

.ab-messages { display: flex; flex-direction: column; gap: 13px; }
.ab-row { display: flex; align-items: flex-end; gap: 8px; }
.ab-row--user { justify-content: flex-end; }
.ab-mini-avatar { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: var(--ab-navy); color: #fff; font-family: Georgia, serif; font-size: 12px; }

.ab-message {
  max-width: 86%;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid var(--ab-line);
  background: #fff;
  color: var(--ab-ink);
  font-size: 13px;
  line-height: 1.58;
}

.ab-row--user .ab-message { border-color: var(--ab-navy); border-radius: 14px 14px 4px 14px; background: var(--ab-navy); color: #fff; }
.ab-message strong { color: var(--ab-navy); }
.ab-row--user .ab-message strong { color: #fff; }
.ab-message p + p { margin-top: 8px; }
.ab-message ul { margin: 8px 0 0 17px; padding: 0; }
.ab-message li + li { margin-top: 4px; }
.ab-message a { color: #116e69; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ab-fit-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; padding: 3px 7px; border-radius: 6px; background: #e5f5f2; color: #126d66; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.ab-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 2px 32px; }
.ab-chip { border: 1px solid var(--ab-line); border-radius: 999px; background: transparent; color: var(--ab-muted); padding: 7px 10px; font: 600 11px/1.2 ui-sans-serif, -apple-system, sans-serif; cursor: pointer; text-align: left; transition: color .14s ease, border-color .14s ease, background .14s ease; }
.ab-chip:hover { color: var(--ab-navy); border-color: #b7c7d6; background: #f0f5f7; }

.ab-typing { display: inline-flex; gap: 4px; align-items: center; min-height: 20px; }
.ab-typing i { width: 5px; height: 5px; border-radius: 50%; background: #9c948b; animation: ab-bounce .9s infinite ease-in-out; }
.ab-typing i:nth-child(2) { animation-delay: .13s; }
.ab-typing i:nth-child(3) { animation-delay: .26s; }
@keyframes ab-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.ab-compose { padding: 11px; border-top: 1px solid var(--ab-line); background: rgba(255,253,248,.96); }
.ab-form { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; align-items: end; }
.ab-input { width: 100%; min-height: 42px; max-height: 108px; resize: none; border: 1px solid #d8d0c6; border-radius: 13px; background: #fff; color: var(--ab-ink); padding: 11px 12px; font: 13px/1.45 ui-sans-serif, -apple-system, sans-serif; }
.ab-input::placeholder { color: #a49c93; }
.ab-input:focus { border-color: var(--ab-teal); outline: 3px solid rgba(37,169,159,.12); }
.ab-send { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 13px; background: var(--ab-orange); color: var(--ab-navy); cursor: pointer; }
.ab-send:hover { background: #f09a60; }
.ab-send:disabled { opacity: .42; cursor: default; }
.ab-disclosure { margin-top: 7px; text-align: center; color: #9b938b; font-size: 9px; letter-spacing: .02em; }

@media (max-width: 600px) {
  #anish-bot-root { right: 12px; bottom: 12px; }
  .ab-launcher { width: 54px; height: 54px; border-radius: 17px; }
  .ab-panel { position: fixed; left: 8px; right: 8px; bottom: 74px; width: auto; height: min(640px, calc(100dvh - 90px)); border-radius: 18px; transform-origin: bottom center; }
  .ab-teaser { right: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-panel, .ab-launcher, .ab-teaser { transition: none; }
  .ab-typing i { animation: none; }
}

@media (forced-colors: active) {
  .ab-launcher, .ab-header, .ab-row--user .ab-message { border: 1px solid ButtonText; }
}
