.kb-mount { --kb-accent: #7a3e9d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.kb-box { box-sizing: border-box; width: 100%; max-width: 420px; background: #fff; border: 1px solid #e3e0e8; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; overflow: hidden; color: #222; }
.kb-box *, .kb-box *::before, .kb-box *::after { box-sizing: border-box; }
.kb-header { background: var(--kb-accent); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; }
.kb-close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.kb-log { height: 340px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #faf9fc; }
.kb-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.kb-bot { background: #fff; border: 1px solid #e8e5ee; align-self: flex-start; border-bottom-left-radius: 4px; }
.kb-user { background: var(--kb-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.kb-input { padding: 10px 12px 12px; border-top: 1px solid #eee; background: #fff; min-height: 64px; }
.kb-row { display: flex; gap: 8px; }
.kb-field { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #cfcad8; border-radius: 8px; font-size: 14px; font-family: inherit; }
.kb-field:focus { outline: 2px solid var(--kb-accent); outline-offset: 0; border-color: var(--kb-accent); }
.kb-send { background: var(--kb-accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.kb-send:disabled { opacity: .6; cursor: default; }
.kb-submit { width: 100%; margin-top: 10px; }
.kb-skip { background: none; border: 0; color: var(--kb-accent); font-size: 13px; cursor: pointer; margin-top: 6px; padding: 2px 0; text-decoration: underline; }
.kb-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-chip { background: #fff; border: 1px solid var(--kb-accent); color: var(--kb-accent); border-radius: 18px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.kb-chip:hover { background: var(--kb-accent); color: #fff; }
.kb-consent { display: block; font-size: 12.5px; line-height: 1.4; color: #444; }
.kb-err { color: #b3261e; font-size: 12.5px; margin-top: 6px; min-height: 0; }
.kb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kb-floating { position: fixed; right: 20px; bottom: 20px; z-index: 99999; width: 360px; max-width: calc(100vw - 24px); }
.kb-floating.kb-closed { display: none; }
.kb-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 99998; background: var(--kb-accent); color: #fff; border: 0; border-radius: 28px; padding: 13px 20px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
@media (max-width: 480px) { .kb-log { height: 300px; } }
.kb-slots { margin-top: 8px; }
.kb-hint { font-size: 12.5px; color: #555; margin: 6px 0; }
.kb-privacy { display: inline-block; font-size: 12.5px; margin-top: 6px; color: var(--kb-accent); }
.kb-slots .kb-choices { max-height: 120px; overflow-y: auto; }
