/* Kodea assistant chat bubble – matches site.css (green #24543f, Inter Tight) */
#kodea-chat { position: fixed; right: 20px; bottom: 20px; z-index: 40; font-family: "Inter Tight", system-ui, sans-serif; }
.kc-launcher { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border: 0;
  border-radius: 999px; background: #24543f; color: #fff; font: 600 15px/1 "Inter Tight", system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(20,30,25,.25); cursor: pointer; }
.kc-launcher:hover { background: #1a3f2f; }
.kc-dot { width: 9px; height: 9px; border-radius: 50%; background: #7fd39b; box-shadow: 0 0 0 3px rgba(127,211,155,.25); }
.kc-open .kc-launcher { display: none; }

.kc-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 8px; box-shadow: 0 16px 48px rgba(20,30,25,.28); overflow: hidden; }
.kc-panel[hidden] { display: none; }
.kc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px;
  background: #24543f; color: #fff; }
.kc-head strong { display: block; font-size: 16px; }
.kc-sub { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.kc-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.kc-notice { margin: 0; padding: 8px 16px; font-size: 12px; color: #5b605d; background: #f3f5f3; border-bottom: 1px solid #e4e6e4; }
.kc-notice a { color: #24543f; }
.kc-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.kc-msg { max-width: 86%; padding: 10px 13px; border-radius: 10px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.kc-bot { align-self: flex-start; background: #f3f5f3; color: #1d1f1e; border-bottom-left-radius: 3px; }
.kc-me { align-self: flex-end; background: #24543f; color: #fff; border-bottom-right-radius: 3px; }
.kc-typing { align-self: flex-start; color: #5b605d; font-size: 14px; font-style: italic; padding: 4px 2px; }
.kc-book { align-self: flex-start; padding: 9px 14px; border-radius: 4px; background: #24543f; color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; }
.kc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.kc-chips button { border: 1px solid #c9d3cd; background: #fff; color: #24543f; border-radius: 999px; padding: 7px 12px;
  font: 500 13px/1.2 "Inter Tight", system-ui, sans-serif; cursor: pointer; text-align: left; }
.kc-chips button:hover { background: #f3f5f3; }
.kc-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e4e6e4; }
.kc-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #c9d3cd; border-radius: 6px;
  font: 400 16px "Inter Tight", system-ui, sans-serif; }
.kc-form input:focus { outline: 2px solid #24543f; outline-offset: 0; border-color: #24543f; }
.kc-send { min-height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: #24543f; color: #fff;
  font: 600 15px "Inter Tight", system-ui, sans-serif; cursor: pointer; }
.kc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 640px) {
  #kodea-chat { right: 12px; bottom: 12px; }
  .kc-launcher-text { display: none; }
  .kc-launcher { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .kc-launcher .kc-dot { width: 14px; height: 14px; }
  #kodea-chat.kc-open { left: 0; right: 0; bottom: 0; top: 0; }
  .kc-open .kc-panel { width: 100vw; height: 100dvh; border-radius: 0; }
}
