.klb-chat[hidden], .klb-chat [hidden], .klb-chat-account[hidden], .klb-chat-product[hidden], .klb-chat-account [hidden] { display: none !important; }
.klb-chat {
    --klb-action: #3b7975;
    --klb-hover: #306661;
    --klb-link: #80ccc7;
    --klb-text: #f2f5f5;
    --klb-muted: #b7c1c1;
    --klb-line: #3b4344;
    position: fixed;
    z-index: 850;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    color: var(--klb-text);
    font: 400 14px/1.45 "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: left;
    text-shadow: none;
}
.klb-chat, .klb-chat *, .klb-chat::before, .klb-chat *::after, .klb-chat-product button { box-sizing: border-box; }
.klb-chat .klb-chat-panel :is(h2, p, ol, li, form, label), .klb-chat .klb-chat-panel header { margin: 0; padding: 0; }
.klb-chat .klb-chat-panel button, .klb-chat button.klb-chat-launch, .klb-chat-product button.klb-chat-text-action {
    appearance: none; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
    background: transparent; background-image: none; box-shadow: none; color: inherit;
    font: inherit; line-height: 1.25; text-transform: none; letter-spacing: normal; text-shadow: none;
    vertical-align: middle; cursor: pointer;
}
.klb-chat svg, .klb-chat-product button svg { display: block; flex: 0 0 auto; max-width: none; overflow: visible; pointer-events: none; }
.klb-chat :is(button, a, input, textarea, [tabindex]):focus-visible, .klb-chat-product button:focus-visible {
    outline: 2px solid #8ed4ce; outline-offset: 2px; box-shadow: 0 0 0 2px #132e2c;
}
.klb-chat button.klb-chat-launch {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; padding: 0 17px; border: 1px solid #75aaa7; border-radius: 6px;
    background-color: var(--klb-action); color: white; font-size: 15px; font-weight: 600;
    box-shadow: 0 3px 15px #0005;
}
.klb-chat button.klb-chat-launch:hover, .klb-chat button.klb-chat-send:not(:disabled):hover { background-color: var(--klb-hover); color: white; }
.klb-chat .klb-chat-dot, .klb-chat-account .klb-chat-dot {
    display: inline-block; width: 10px; height: 10px; border: 2px solid #fff; box-sizing: content-box;
    border-radius: 50%; background: #b34d26;
}
.klb-chat-launch .klb-chat-dot { position: absolute; top: -4px; right: -3px; }
.klb-chat-account .klb-chat-dot { margin-left: 4px; vertical-align: middle; }
.klb-chat dialog.klb-chat-panel {
    position: relative; inset: auto; display: flex; flex-direction: column;
    width: min(370px, calc(100vw - 26px)); max-width: none; height: min(540px, calc(100vh - 36px));
    height: min(540px, calc(var(--klb-viewport, 100dvh) - 36px)); max-height: none;
    margin: 0; padding: 0; overflow: hidden; color-scheme: dark; color: var(--klb-text);
    border: 1px solid #4a5354; border-radius: 8px; background: #181b1c; box-shadow: 0 8px 36px #0006;
}
.klb-chat .klb-chat-panel header.klb-chat-head {
    display: flex; flex: none; align-items: center; gap: 6px; min-height: 64px; padding: 7px 8px 8px 15px;
    border: 0; border-top: 3px solid #498e8a; border-bottom: 1px solid var(--klb-line); background: #111314;
}
.klb-chat .klb-chat-heading { flex: 1 1 auto; min-width: 0; }
.klb-chat .klb-chat-brand { display: block; color: var(--klb-muted); font-weight: 600; font-size: 11px; line-height: 15px; }
.klb-chat .klb-chat-panel h2 { margin: 1px 0 0; color: white; font: 600 17px/1.25 "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.015em; }
.klb-chat .klb-chat-presence { display: inline-flex; align-items: center; gap: 5px; max-width: 41%; font-size: 11px; line-height: 1.25; color: var(--klb-muted); }
.klb-chat .klb-chat-presence::before { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #849091; content: ""; }
.klb-chat .klb-chat-presence.is-online::before { background: #74c9ae; }
.klb-chat .klb-chat-panel button.klb-chat-close, .klb-chat .klb-chat-selected button {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; max-width: 44px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: #dce3e3;
}
.klb-chat .klb-chat-panel button.klb-chat-close:hover, .klb-chat .klb-chat-selected button:hover { background: #33393a; color: #fff; }
.klb-chat .klb-chat-log {
    flex: 1 1 0; min-height: 48px; padding: 13px 14px; overflow-y: auto;
    overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #5b6566 transparent;
}
.klb-chat .klb-chat-links { display: flex; flex-wrap: wrap; gap: 6px; }
.klb-chat .klb-chat-panel a { color: var(--klb-link); text-decoration: underline; text-underline-offset: 2px; }
.klb-chat .klb-chat-panel a:hover { color: #b3ebe8; }
.klb-chat .klb-chat-links a, .klb-chat .klb-chat-panel .klb-chat-text-action, .klb-chat button.klb-chat-new {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 5px 10px; border: 1px solid #465050; border-radius: 4px;
    background: #24292a; color: #e6eeee; font: 600 12px/1.3 "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; text-decoration: none;
}
.klb-chat .klb-chat-links a:hover, .klb-chat .klb-chat-panel .klb-chat-text-action:hover, .klb-chat button.klb-chat-new:hover {
    color: white; border-color: #689f9b; background: #2a3636;
}
.klb-chat .klb-chat-panel .klb-chat-text-action { margin-bottom: 7px; }
.klb-chat button.klb-chat-new { align-self: center; margin: 2px 8px 6px; }
.klb-chat .klb-chat-links svg { color: #83c4c0; }
.klb-chat .klb-chat-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.klb-chat .klb-chat-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 88%; align-self: flex-start; }
.klb-chat .klb-chat-list li.is-mine { align-self: flex-end; align-items: flex-end; }
.klb-chat .klb-chat-list .message-text { padding: 8px 11px; border: 1px solid #333a3b; border-radius: 6px 6px 6px 2px; background: #292d2f; color: #f2f5f5; overflow-wrap: anywhere; white-space: pre-wrap; }
.klb-chat .klb-chat-list .is-mine .message-text { border-color: #335b59; border-radius: 6px 6px 2px 6px; background: #244846; color: #fff; }
.klb-chat .klb-chat-list time { padding: 0 2px; color: #b0babb; font-size: 11px; line-height: 1.3; }
.klb-chat .klb-chat-panel form.klb-chat-form { flex: none; padding: 4px 10px 10px; border-top: 1px solid var(--klb-line); background: #202425; }
.klb-chat .klb-chat-status { overflow-wrap: anywhere; padding: 4px 1px; font-size: 12px; color: #e8d3a5; }
.klb-chat .klb-chat-status:empty { display: none; }
.klb-chat .klb-chat-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 7px; }
.klb-chat button.klb-chat-contact-toggle, .klb-chat .klb-chat-channels a {
    display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 3px;
    border-radius: 3px; background: transparent; color: var(--klb-link); font-size: 12px; line-height: 1.35; text-decoration: none;
}
.klb-chat button.klb-chat-contact-toggle:hover, .klb-chat .klb-chat-channels a:hover { color: #b3ebe8; text-decoration: underline; }
.klb-chat button.klb-chat-contact-toggle[aria-expanded=true] .klb-chat-chevron { transform: rotate(180deg); }
.klb-chat .klb-chat-channels { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.klb-chat .klb-chat-contact { display: flex; gap: 8px; padding: 3px 0 8px; }
.klb-chat .klb-chat-contact label { display: block; flex: 1; min-width: 0; font: 400 12px/1.4 "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif; color: #d5dddd; }
.klb-chat .klb-chat-contact input, .klb-chat .klb-chat-compose textarea {
    width: 100%; min-width: 0; max-width: none; height: auto; min-height: 38px; margin: 2px 0 0; padding: 7px 9px;
    border: 1px solid #657171; border-radius: 3px; background: #101213; box-shadow: none;
    color: #fafafa; font: 400 14px/1.45 "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
}
.klb-chat .klb-chat-contact input:focus, .klb-chat .klb-chat-compose textarea:focus { border-color: #76b5b1; }
.klb-chat .klb-chat-compose { display: flex; align-items: flex-end; gap: 6px; padding-top: 2px; }
.klb-chat .klb-chat-compose textarea { display: block; flex: 1; margin: 0; padding: 10px; height: 44px; min-height: 44px; max-height: 100px; resize: vertical; }
.klb-chat .klb-chat-compose textarea::placeholder { color: #aab4b4; opacity: 1; }
.klb-chat .klb-chat-panel label.klb-chat-attach, .klb-chat button.klb-chat-send {
    position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #536060; border-radius: 4px;
    background: #292e2f; color: #e2eaea; cursor: pointer;
}
.klb-chat .klb-chat-panel label.klb-chat-attach:hover { border-color: #81b7b4; background: #303a3a; }
.klb-chat .klb-chat-attach input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.klb-chat .klb-chat-attach:focus-within { outline: 2px solid #8ed4ce; outline-offset: 2px; }
.klb-chat button.klb-chat-send { border-color: #68a29e; background: var(--klb-action); color: white; }
.klb-chat button.klb-chat-send:disabled { border-color: #424a4b; background: #333a3b; color: #a1aaab; opacity: 1; cursor: default; }
.klb-chat .klb-chat-selected { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 4px; padding: 0 2px 0 8px; border: 1px solid #465353; border-radius: 3px; background: #273333; color: #d9e7e6; font-size: 12px; }
.klb-chat .klb-chat-selected span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.klb-chat .klb-chat-selected button { margin-left: auto; width: 34px; min-width: 34px; max-width: 34px; height: 34px; }
.klb-chat button.klb-chat-file-link { max-width: 100%; min-height: 36px; padding: 5px 9px; border: 1px solid #526363; border-radius: 4px; color: var(--klb-link); overflow-wrap: anywhere; text-align: left; text-decoration: underline; }
.klb-chat-product button.klb-chat-text-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 13px; border: 1px solid #53817e; border-radius: 3px; background: #242a2b; color: #b6e2df; font: 600 13px/1.35 "Open Sans","Helvetica Neue",Arial,sans-serif; }
.klb-chat-product button.klb-chat-text-action:hover { border-color: #79aaa7; background: #2c3938; color: #fff; }
.klb-chat.is-preview { right: auto; left: max(16px, env(safe-area-inset-left)); }
@media (max-width: 600px) {
    .klb-chat { right: max(10px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .klb-chat.is-preview { left: max(10px, env(safe-area-inset-left)); }
    .klb-chat button.klb-chat-contact-toggle, .klb-chat .klb-chat-channels a, .klb-chat .klb-chat-links a { min-height: 44px; }
    .klb-chat .klb-chat-contact input, .klb-chat .klb-chat-compose textarea { font-size: 16px; }
    .klb-chat .klb-chat-compose textarea { resize: none; }
}
@media (max-width: 600px), (max-width: 940px) and (max-height: 500px) and (pointer: coarse) {
    html.klb-chat-modal-open, html.klb-chat-modal-open body { overflow: hidden !important; overscroll-behavior: none; }
    .klb-chat.is-open { z-index: 2147483000; }
    .klb-chat dialog.klb-chat-panel {
        position: fixed; inset: var(--klb-view-top, 0px) auto auto var(--klb-view-left, 0px);
        width: var(--klb-view-width, 100vw); max-width: none; height: 100vh; height: var(--klb-viewport, 100dvh); max-height: none;
        margin: 0; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
        border: 0; border-radius: 0; box-shadow: none;
    }
    .klb-chat-panel::backdrop { background: #181b1c; }
}
@media (max-height: 430px) {
    .klb-chat .klb-chat-panel header.klb-chat-head { min-height: 44px; padding: 0 6px 0 12px; }
    .klb-chat .klb-chat-brand { display: none; }
    .klb-chat .klb-chat-panel form.klb-chat-form { flex-shrink: 1; min-height: 48px; max-height: 65%; padding-bottom: 5px; overflow-y: auto; }
    .klb-chat .klb-chat-log { min-height: 30px; }
}
@media print {
    .klb-chat, .klb-chat-account, .klb-chat-product { display: none !important; }
}
