.kf-chat{display:flex;flex-direction:column;height:100%;min-height:100vh;background:#f7f9fc}.kf-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#fff;border-bottom:1px solid #e8edf3;flex:none}.kf-header-title{display:flex;align-items:center;gap:10px}.kf-logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#2f6bff,#6f9cff);color:#fff;display:grid;place-items:center;font-weight:700}.kf-header-title strong{display:block;font-size:15px}.kf-header-title small{display:block;color:#8a94a6;font-size:12px;margin-top:2px}.kf-status{font-size:12px;color:#2b9357;background:#eaf7ef;padding:4px 9px;border-radius:999px;white-space:nowrap}.kf-status.is-waiting{color:#b26a00;background:#fff3e0}.kf-message-list{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:16px}.kf-welcome{margin:auto;text-align:center;color:#7b8494;padding:24px 12px}.kf-welcome-icon{font-size:34px;margin-bottom:8px}.kf-welcome strong{display:block;color:#374151;font-size:16px;margin-bottom:6px}.kf-welcome p{margin:0;line-height:1.7;font-size:13px}.kf-bubble-row{display:flex;gap:8px;align-items:flex-start}.kf-bubble-row.is-user{flex-direction:row-reverse}.kf-avatar{width:30px;height:30px;flex:none;border-radius:50%;background:#e4ecff;color:#2f6bff;display:grid;place-items:center;font-size:13px;font-weight:600}.kf-bubble-main{max-width:78%}.kf-bubble-meta{display:flex;gap:8px;align-items:center;font-size:11px;color:#9aa3b1;margin:0 2px 5px}.kf-bubble-row.is-user .kf-bubble-meta{justify-content:flex-end}.kf-bubble{background:#fff;padding:10px 12px;border-radius:4px 12px 12px;box-shadow:0 1px 3px #1f29370f;white-space:pre-wrap;word-break:break-word;line-height:1.6}.kf-bubble-row.is-user .kf-bubble{background:#2f6bff;color:#fff;border-radius:12px 4px 12px 12px}.kf-notice,.kf-error{margin:0 14px 8px;padding:8px 10px;border-radius:8px;font-size:12px}.kf-notice{background:#fff8e6;color:#926200}.kf-error{background:#fff0f0;color:#c0392b;display:flex;align-items:center;justify-content:space-between;gap:10px}.kf-error button{border:none;background:#c0392b;color:#fff;border-radius:6px;padding:3px 10px;font-size:12px}.kf-composer{flex:none;border-top:1px solid #eef2f7;background:#fff;padding:10px 12px 14px}.kf-composer-box{display:flex;align-items:flex-end;gap:4px;padding:6px 6px 6px 8px;border:1px solid #e3e9f2;border-radius:16px;background:#fff;box-shadow:0 1px 3px #1018280a;transition:border-color .15s,box-shadow .15s}.kf-composer-box:focus-within{border-color:#8ab4ff;box-shadow:0 0 0 3px #2f6bff1a}.kf-composer-box textarea{flex:1;min-width:0;border:none;outline:none;resize:none;overflow-y:auto;padding:6px 4px;font-size:14px;line-height:1.5;font-family:inherit;color:#1f2937;background:transparent;max-height:120px}.kf-composer-box textarea::placeholder{color:#b3bcc9}.kf-tool-btn,.kf-send-btn{flex:none;display:grid;place-items:center;padding:0;border:none}.kf-tool-btn{width:32px;height:32px;border-radius:50%;background:transparent;color:#98a2b3}.kf-tool-btn:hover{background:#f2f5fa;color:#5b6b82}.kf-send-btn{width:34px;height:34px;border-radius:50%;background:#2f6bff;color:#fff;transition:background .15s}.kf-send-btn:hover:not(:disabled){background:#1f57e6}.kf-send-btn:disabled{background:#bfd7fb;cursor:not-allowed}.kf-send-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:kf-spin .8s linear infinite}@keyframes kf-spin{to{transform:rotate(360deg)}}
