.kr-chat { position: fixed; z-index: 9999; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); color: #193b43; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; }
.kr-chat *, .kr-chat *::before, .kr-chat *::after { box-sizing: border-box; }
.kr-chat button, .kr-chat textarea { font: inherit; }
.kr-chat button { cursor: pointer; }
.kr-chat button:focus-visible, .kr-chat a:focus-visible { outline: 2px solid #6fa4aa; outline-offset: 2px; }
.kr-chat textarea:focus-visible { outline: 0; border-color: #6fa4aa; }
.kr-chat [hidden] { display: none !important; }
.kr-chat-launch { display: flex; align-items: center; gap: 11px; margin-left: auto; padding: 9px 15px 9px 10px; border: 1px solid #ffffff30; border-radius: 14px; background: #164b5c; color: #fff; box-shadow: 0 8px 28px #12394745; text-align: left; font-weight: 700; }
.kr-chat-launch small { display: block; color: #c6dadd; font-size: 10px; font-weight: 400; letter-spacing: .04em; }
.kr-chat-launch-icon, .kr-chat-head-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid #ffffff80; border-radius: 11px 11px 11px 3px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.kr-chat .kr-ai-badge { background: #0d3a49; box-shadow: inset 0 0 0 1px #ffffff18, 0 3px 8px #092b3540; }
.kr-chat .kr-ai-badge { position: relative; }
.kr-chat .kr-ai-badge span:first-child { position: absolute; top: 4px; right: 5px; margin: 0; color: #e3c36a; font-size: 11px; line-height: 1; }
.kr-chat .kr-ai-badge span:last-child { color: #fff; }
.kr-chat .kr-ai-badge-inline { display: inline-grid; width: 21px; height: 21px; margin-right: 4px; border-radius: 6px 6px 6px 2px; font-size: 8px; vertical-align: middle; }
.kr-chat .kr-ai-badge-inline span:first-child { font-size: 7px; }
.kr-chat-launch-arrow { margin-left: 4px; color: #c0d9dc; font-size: 17px; }
.kr-chat-panel { display: flex; flex-direction: column; width: 380px; height: min(620px, calc(100vh - 116px)); max-height: calc(100dvh - 116px); margin-bottom: 12px; overflow: hidden; background: #fff; border: 1px solid #d5e2e2; border-radius: 16px; box-shadow: 0 18px 56px #0b34444a; }
.kr-chat-head { display: flex; align-items: center; gap: 12px; padding: 17px 18px; background: #164b5c; color: #fff; }
.kr-chat-heading { flex: 1; min-width: 0; }
.kr-chat-heading strong { display: block; font-size: 16px; letter-spacing: .02em; }
.kr-chat-heading span { display: block; margin-top: 2px; color: #c7dadd; font-size: 11px; }
.kr-chat-close { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 25px; line-height: 1; }
.kr-chat-close:hover { background: #ffffff1a; }
.kr-chat-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px; background: #f7f9f8; }
.kr-chat-welcome { margin-bottom: 22px; }
.kr-chat-welcome strong { display: block; margin-top: 6px; color: #173d48; font-size: 17px; }
.kr-chat-welcome p { margin: 6px 0 13px; color: #637a7e; font-size: 12px; line-height: 1.7; }
.kr-chat-prompts { display: grid; gap: 6px; }
.kr-chat-prompts button { width: 100%; padding: 9px 11px; border: 1px solid #d9e6e5; border-radius: 8px; background: #fff; color: #285565; font-size: 12px; line-height: 1.5; text-align: left; }
.kr-chat-prompts button:hover { border-color: #7fa9ae; background: #f0f7f6; }
.kr-chat-prompts button:disabled { opacity: .55; cursor: default; }
.kr-chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 15px; }
.kr-chat-message.is-user { align-items: flex-end; }
.kr-chat-message small { margin: 0 2px 5px; color: #708589; font-size: 11px; }
.kr-chat-bubble { max-width: 92%; padding: 10px 12px; border: 1px solid #e1eae9; border-radius: 3px 12px 12px 12px; background: #fff; color: #28454b; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.kr-chat-message.is-user .kr-chat-bubble { border-color: #164b5c; border-radius: 12px 3px 12px 12px; background: #164b5c; color: #fff; }
.kr-chat-ack { margin: 5px 2px 0; color: #718789; font-size: 11px; }
.kr-chat-sources { max-width: 100%; margin: 6px 0 0; padding-left: 20px; overflow-wrap: anywhere; font-size: 12px; }
.kr-chat-sources a { color: #196779; }
.kr-chat-status { padding: 0 18px; color: #946021; font-size: 12px; }
.kr-chat-status:not(:empty) { padding-top: 8px; }
.kr-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 8px; }
.kr-chat-form textarea { flex: 1; min-width: 0; height: 52px; resize: none; padding: 8px 10px; border: 1px solid #cddddd; border-radius: 9px; color: #193b43; background: #fff; line-height: 1.5; }
.kr-chat-form textarea::placeholder { color: #8a9fa1; }
.kr-chat-send { height: 42px; padding: 0 14px; border: 0; border-radius: 8px; background: #164b5c; color: #fff; font-weight: 600; }
.kr-chat-send:disabled { opacity: .55; cursor: default; }
.kr-chat-privacy { margin: 0; padding: 0 15px 13px; color: #75898a; font-size: 11px; line-height: 1.5; }
@media (max-width: 480px) { .kr-chat { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); pointer-events: none; } .kr-chat > * { pointer-events: auto; } .kr-chat-panel { width: 100%; height: min(620px, calc(100vh - 94px)); max-height: calc(100dvh - 94px - env(safe-area-inset-bottom)); } }
