#blaha-chat-launcher {
  position: fixed; z-index: 80; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 13px 19px; border: 1px solid #b2baaa; border-radius: 999px;
  background: #dfe4d7; color: #1c201b; font: 600 14px Stack, Arial, sans-serif;
  box-shadow: 0 5px 22px #00000033; cursor: pointer;
}
#blaha-chat-launcher svg { width: 21px; height: 21px; }
#blaha-chat-launcher[hidden]{display:none}
#blaha-chat {
  position: fixed; inset: auto 24px 24px auto; width: 400px;
  height: min(650px, calc(100dvh - 48px)); max-width: calc(100vw - 32px);
  max-height: none; margin: 0; padding: 0; border: 1px solid #4f574a;
  border-radius: 12px; background: #edf0e8; color: #20231e;
  box-shadow: 0 20px 80px #00000055; font: 400 14px/1.5 Stack, Arial, sans-serif;
}
#blaha-chat::backdrop { background: #0e0f0d66; }
#blaha-chat[open] { display: flex; flex-direction: column; }
#blaha-chat header {
  padding: 20px; background: #252923; color: #edf0e8;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
#blaha-chat header strong { font-size: 20px; letter-spacing: -.025em; }
#blaha-chat header p { font-size: 12px; margin: 4px 0 0; color: #cfd7c3; }
#blaha-chat .bc-close {
  background: none; color: inherit; border: 0; width: 44px; height: 44px;
  padding: 0; font-size: 28px; cursor: pointer; flex: 0 0 44px;
}
#blaha-chat .bc-log { overflow-y: auto; flex: 1; padding: 20px; overscroll-behavior: contain; }
#blaha-chat .bc-message { margin: 0 0 16px; padding: 13px 15px; line-height: 1.6; background: #e1e6d9; border-radius: 0 10px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
#blaha-chat .bc-user { margin-left: 34px; background: #2d322a; color: #f5f7f3; border-radius: 10px 0 10px 10px; }
#blaha-chat .bc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
#blaha-chat .bc-actions button, #blaha-chat .bc-actions a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 12px;
  border: 1px solid #a0aa97; border-radius: 5px; background: #f5f7f2; color: #252923;
  font: 500 13px/1.35 Stack, Arial, sans-serif; cursor: pointer; text-align: left; text-decoration: none;
}
#blaha-chat .bc-actions a.bc-primary { background: #252923; color: #f5f7f3; border-color: #252923; }
#blaha-chat form { display: flex; align-items: end; gap: 8px; padding: 14px 16px 10px; border-top: 1px solid #cbd0c6; }
#blaha-chat textarea { display: block; flex: 1; width: auto; min-width: 0; min-height: 48px; max-height: 110px; resize: vertical; padding: 11px; border: 1px solid #a6af9d; border-radius: 4px; font: 400 16px/1.45 Stack, Arial, sans-serif; color: #1e211c; background: #fbfbfa; margin: 0; }
#blaha-chat .bc-send { height: 48px; min-width: 48px; padding: 10px; border: 0; border-radius: 4px; background: #252923; color: white; font-size: 22px; cursor: pointer; }
#blaha-chat .bc-note { margin: 0; padding: 0 16px 14px; font-size: 11px; line-height: 1.45; color: #434a3f; }
#blaha-chat :is(button,a,textarea):focus-visible, #blaha-chat-launcher:focus-visible { outline: 3px solid #45842d; outline-offset: 3px; }
@media(hover:hover) { #blaha-chat .bc-actions button:hover, #blaha-chat .bc-actions a:hover { background: #d9dfd0; color: #1c201b; } #blaha-chat-launcher:hover { background: #eef1e9; } }
@media(max-width:760px) {
  #blaha-chat-launcher { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 48px; padding: 11px 15px; }
  #blaha-chat { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: none; height: min(620px, calc(100dvh - 100px - env(safe-area-inset-bottom))); }
  #blaha-chat header { padding: 16px; }
  #blaha-chat .bc-log { padding: 16px; }
}

#blaha-chat .bc-send { font-size: 14px; font-weight: 600; padding: 10px 16px; }
