/* Keyword chat in the #report-first opener, under pop-out Boldy. Keep this file; refresh runs must not remove it. */
#report-first .boldy-desk{
  margin: 2px 8px 10px;
  padding: 0 2px 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  color: #111;
  max-width: 100%;
  box-sizing: border-box;
}
.boldy-desk *,
.boldy-desk *::before,
.boldy-desk *::after{ box-sizing: border-box; }

.boldy-desk-prompt{
  margin: 0 4px 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #4a5560;
  font-weight: 500;
}

.boldy-desk-thread{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(56vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 2px 2px 8px;
  scroll-margin-bottom: 8px;
}
.boldy-desk-row{
  display: flex;
  width: 100%;
  max-width: 100%;
}
.boldy-desk-row.is-in{ justify-content: flex-start; }
.boldy-desk-row.is-out{ justify-content: flex-end; }

.boldy-desk .imsg-bubble{
  position: relative;
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.boldy-desk .imsg-bubble.is-in{
  background: #E9E9EB;
  color: #111;
  border-bottom-left-radius: 5px;
  margin: 0 0 2px 6px;
}
.boldy-desk .imsg-bubble.is-out{
  background: #0A84FF;
  color: #fff;
  border-bottom-right-radius: 5px;
  margin: 0 6px 2px 0;
}
.boldy-desk .imsg-bubble.is-typing{
  min-width: 58px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.boldy-desk .imsg-bubble .imsg-text{
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}
.boldy-desk .imsg-bubble.is-out .imsg-text{ color: #fff; }
.boldy-desk .imsg-bubble .imsg-tail{
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.boldy-desk .imsg-bubble.is-in .imsg-tail{
  left: -5.5px;
  right: auto;
  background: #E9E9EB;
  clip-path: path('M14 16 L14 2 C10 8 6 12 0 16 Z');
}
.boldy-desk .imsg-bubble.is-out .imsg-tail{
  left: auto;
  right: -5.5px;
  background: #0A84FF;
  clip-path: path('M0 16 L0 2 C4 8 8 12 14 16 Z');
}

.boldy-desk .imsg-dots{
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  height: 16px;
}
.boldy-desk .imsg-dots span{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e8e93;
  opacity: .35;
  animation: boldy-desk-dot 1.2s infinite ease-in-out;
}
.boldy-desk .imsg-dots span:nth-child(2){ animation-delay: .15s; }
.boldy-desk .imsg-dots span:nth-child(3){ animation-delay: .3s; }
@keyframes boldy-desk-dot{
  0%, 80%, 100%{ opacity: .28; transform: translateY(0); }
  40%{ opacity: 1; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce){
  .boldy-desk .imsg-dots span{ animation: none; opacity: .7; }
}

.boldy-desk .imsg-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}
.boldy-desk .imsg-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #005a8c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid rgba(0,0,0,.08);
  -webkit-tap-highlight-color: transparent;
}
.boldy-desk .imsg-links a:focus-visible{
  outline: 2px solid #0A84FF;
  outline-offset: 2px;
}
.boldy-desk .imsg-bubble.is-out .imsg-links a{
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

.boldy-desk-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 2px 10px;
}
.boldy-desk-chips button{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.16);
  background: #fff;
  color: #111;
  font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.boldy-desk-chips button:focus-visible{
  outline: 2px solid #0A84FF;
  outline-offset: 2px;
}
.boldy-desk-chips button:active{ background: #f2f2f7; }

.boldy-desk-composer{
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: transparent;
  z-index: 2;
}
.boldy-desk.is-kb .boldy-desk-composer{
  position: sticky;
  bottom: var(--kb, 0px);
}
.boldy-desk-field{
  flex: 1 1 auto;
  min-width: 0;
}
.boldy-desk-composer label{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.boldy-desk-composer input,
.boldy-desk-input{
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(17,17,17,.18);
  border-radius: 22px;
  background: #fff;
  color: #111;
  font-size: 16px !important;
  line-height: 1.3;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.boldy-desk-composer input:focus,
.boldy-desk-input:focus{
  outline: 2px solid #0A84FF;
  outline-offset: 1px;
  border-color: #0A84FF;
}
.boldy-desk-send{
  appearance: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #00B8FF;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.boldy-desk-send:focus-visible{
  outline: 2px solid #0A5A8A;
  outline-offset: 2px;
}
.boldy-desk-send:disabled{ opacity: .45; cursor: default; }
.boldy-desk-send svg{ display: block; width: 18px; height: 18px; fill: currentColor; }

.boldy-desk-note{
  margin: 10px 4px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #5a6570;
}

@media (max-width: 430px){
  .boldy-desk .imsg-bubble{ max-width: 88%; }
}
@media (max-width: 320px){
  .boldy-desk{ margin-left: 6px; margin-right: 6px; }
  .boldy-desk .imsg-bubble{ font-size: 16px; }
}

.boldy-desk-thread{ padding-bottom: 12px; }
#report-first .boldy-desk.is-shot,
#report-first .boldy-desk.is-shot .boldy-desk-thread{
  max-height: none !important;
  overflow: visible !important;
}
