/* Bold Brief — side assistant. Sits above the custom cursor (70), below the cookie bar (90). */
.ba { --ba-ease: cubic-bezier(.22, 1, .36, 1); position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--sans, Arial, sans-serif); }
.ba-launch {
  display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%;
  background: var(--lime); color: var(--ink); box-shadow: 0 14px 30px -10px #0008, 0 0 0 0 #c4f43166;
  transition: transform .3s var(--ba-ease); animation: baPulse 2.6s 3s 3;
}
.ba-launch:hover { transform: scale(1.06); }
.ba-launch svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ba.is-open .ba-launch svg { display: none; }
.ba.is-open .ba-launch:before { content: "×"; font: 400 34px/1 var(--sans, Arial, sans-serif); }
.ba-teaser {
  position: relative; max-width: 230px; padding: 12px 16px; border: 0; border-radius: 16px 16px 4px 16px;
  background: #141512; color: #f3f3ed; font: 600 14px/1.35 var(--sans, Arial, sans-serif); text-align: left;
  box-shadow: 0 16px 30px -14px #000a; animation: baIn .5s var(--ba-ease);
}
.ba-teaser[hidden] { display: none; }

.ba-panel {
  display: flex; flex-direction: column; width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px));
  overflow: hidden; border-radius: 22px; background: #f3f3ed; color: var(--ink);
  box-shadow: 0 30px 60px -20px #000a, 0 0 0 1px #0000000d; animation: baIn .45s var(--ba-ease);
}
.ba-panel[hidden] { display: none; }
.ba-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #121310; color: #f3f3ed; }
.ba-av { width: 40px; height: 40px; border-radius: 12px; }
.ba-titles { flex: 1; display: grid; gap: 2px; }
.ba-titles b { font-size: 15px; }
.ba-titles span { font-size: 12px; color: #c4f431; }
.ba-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #ffffff14; color: inherit; font-size: 22px; line-height: 1; }

.ba-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; overscroll-behavior: contain; }
.ba-msg { max-width: 86%; margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: baIn .35s var(--ba-ease); }
.ba-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 0 #0000000f; }
.ba-me { align-self: flex-end; background: var(--ink); color: #f3f3ed; border-bottom-right-radius: 4px; }
.ba-typing { display: flex; gap: 4px; padding: 14px; }
.ba-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9a9f90; animation: baDot 1s infinite; }
.ba-typing i:nth-child(2) { animation-delay: .15s; }
.ba-typing i:nth-child(3) { animation-delay: .3s; }
.ba-summary { margin: 4px 0 0; padding: 12px 14px; border: 1px dashed #b9bcae; border-radius: 12px; background: #fff; font: 500 12.5px/1.6 var(--sans, Arial, sans-serif); white-space: pre-wrap; }

.ba-foot { padding: 12px 14px 14px; border-top: 1px solid #0000000f; background: #f3f3ed; }
.ba-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-chip { padding: 9px 13px; border: 1px solid #191a1733; border-radius: 99px; background: #fff; color: var(--ink); font: 600 13px/1.2 var(--sans, Arial, sans-serif); transition: background .2s, border-color .2s; }
.ba-chip:hover, .ba-chip:focus-visible { background: var(--lime); border-color: var(--lime); }
.ba-ask { display: flex; gap: 8px; }
.ba-ask input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #191a1733; border-radius: 14px; background: #fff; color: var(--ink); font: 400 15px var(--sans, Arial, sans-serif); }
.ba-ask input:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.ba-go { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--ink); color: var(--lime); font-size: 20px; }
.ba-acts { display: grid; gap: 8px; }
.ba-btn { display: grid; place-items: center; height: 46px; border-radius: 14px; font: 700 14px/1 var(--sans, Arial, sans-serif); text-decoration: none; }
.ba-wa { background: #25d366; color: #0b2b17; }
.ba-us { border: 0; background: var(--ink); color: #f3f3ed; }
.ba-us:disabled { opacity: .6; }
.ba-kvkk { margin: 10px 2px 0; color: #66695d; font-size: 11.5px; line-height: 1.4; }
.ba-kvkk a { color: inherit; text-decoration: underline; }
.ba button:focus-visible, .ba a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

@keyframes baIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes baDot { 50% { opacity: .3; transform: translateY(-2px); } }
@keyframes baPulse { 70% { box-shadow: 0 14px 30px -10px #0008, 0 0 0 16px #c4f43100; } }
@media (max-width: 640px) {
  .ba { right: 14px; bottom: 14px; }
  .ba-launch { width: 56px; height: 56px; }
  .ba-panel { height: min(560px, calc(100dvh - 100px)); }
}
@media (prefers-reduced-motion: reduce) {
  .ba-launch, .ba-teaser, .ba-panel, .ba-msg { animation: none; }
}
