/* Watchtower Chat Widget styles — Beacon Protocol */
#watch-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #155d78;
  border: 2px solid #b98945;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(21, 93, 120, 0.34);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  transition: transform 0.15s ease;
}
#watch-chat-btn:hover { transform: scale(1.06); }
#watch-chat-btn svg { width: 28px; height: 28px; fill: #fff; }

#watch-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 130px);
  background: #111827;
  border: 1px solid #2a3144;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}
#watch-chat-panel.open { display: flex; }

#watch-chat-head {
  background: #155d78;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
#watch-chat-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
}
#watch-chat-close {
  margin-left: auto;
  background: none; border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}

#watch-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f4f5f3;
}
.watch-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.watch-msg.user { align-self: flex-end; background: #155d78; color: #fff; border-bottom-right-radius: 4px; }
.watch-msg.bot { align-self: flex-start; background: #fff; color: #16232b; border: 1px solid #d5dcde; border-bottom-left-radius: 4px; }
.watch-msg.typing { color: #9ca3af; font-style: italic; }

#watch-chat-inputrow {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #111827;
  border-top: 1px solid #2a3144;
}
#watch-chat-input {
  flex: 1;
  background: #fff;
  border: 1px solid #aeb9ba;
  border-radius: 10px;
  padding: 10px 12px;
  color: #16232b;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
#watch-chat-input::placeholder { color: #6a777d; }
#watch-chat-send {
  background: #155d78;
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}
#watch-chat-send:hover { background: #0d4358; }
