.km-bot { position: fixed; right: 18px; bottom: 18px; z-index: 60; font-family: inherit; }
.km-bot-fab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #0e8f58, #12a86a); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(14,27,54,.28); }
.km-bot-fab:hover { filter: brightness(1.07); }
.km-bot-fab:focus-visible, .km-bot-form button:focus-visible, .km-bot-chip:focus-visible { outline: 3px solid #17428c; outline-offset: 2px; }
.km-bot.is-open .km-bot-fab { display: none; }
.km-bot-panel { width: 360px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 36px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(14,27,54,.35); border: 1px solid #dfe5f1; }
.km-bot-panel[hidden] { display: none; }
.km-bot-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, #0e1b36, #17428c); color: #fff; }
.km-bot-head div { display: flex; flex-direction: column; } .km-bot-head small { color: #c3d2f2; }
.km-bot-head button { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.km-bot-log { list-style: none; margin: 0; padding: 14px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #f6f8fc; }
.km-bot-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.km-bot-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.km-bot-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e3e8f2; border-top-left-radius: 4px; color: #1a2540; }
.km-bot-msg--me { align-self: flex-end; background: #17428c; color: #fff; border-top-right-radius: 4px; }
.km-bot-msg.is-typing { opacity: .6; }
.km-bot-source { display: block; margin-top: 6px; color: #17428c; font-weight: 600; font-size: 13.5px; text-decoration: none; overflow-wrap: anywhere; }
.km-bot-source:hover { text-decoration: underline; }
.km-bot-fb { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #6b7a96; }
.km-bot-fb button { border: 1px solid #dfe5f1; background: #fff; border-radius: 999px; padding: 2px 9px; cursor: pointer; font-size: 14px; }
.km-bot-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.km-bot-contact input { flex: 1; min-width: 120px; padding: 7px 10px; border: 1px solid #cfd8e8; border-radius: 10px; font: inherit; font-size: 14px; }
.km-bot-contact button { padding: 7px 12px; border: 0; border-radius: 10px; background: #0e8f58; color: #fff; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.km-bot-contact-note { width: 100%; color: #b3261e; }
.km-bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #f6f8fc; max-height: 110px; overflow-y: auto; }
.km-bot-chips[hidden] { display: none; }
.km-bot-chip { border: 1px solid #c9d5ee; background: #fff; color: #17428c; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.km-bot-chip:hover { background: #eef3ff; }
.km-bot-form { display: flex; gap: 8px; padding: 10px 12px; background: #f6f8fc; }
.km-bot-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cfd8e8; border-radius: 12px; font: inherit; font-size: 15px; }
.km-bot-form button { padding: 10px 16px; border: 0; border-radius: 12px; background: #0e8f58; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.km-bot-form button:disabled { opacity: .5; cursor: wait; }
.km-bot-note { display: block; padding: 0 14px 10px; background: #f6f8fc; color: #7a89a6; font-size: 11.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
  .km-bot { right: 10px; bottom: 10px; }
  .km-bot.is-open { right: 0; bottom: 0; left: 0; }
  .km-bot-panel { width: 100%; max-width: 100%; height: min(78vh, 560px); border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: no-preference) { .km-bot-panel { animation: kmbot-in .18s ease-out; } @keyframes kmbot-in { from { opacity: 0; transform: translateY(8px); } } }
