.sk-chat[hidden] { display: none !important; }
.sk-chat {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9981;
    width: min(400px, calc(100vw - 32px));
    max-height: min(670px, calc(100dvh - 120px));
    display: flex;
    flex-direction: column;
    background: #111827;
    color: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 18px 65px rgba(0, 0, 0, .5);
    overflow-y: auto;
    overscroll-behavior: contain;
    font: 14px/1.55 "Plus Jakarta Sans", system-ui, sans-serif;
    animation: sk-chat-enter .2s ease-out;
}
.sk-chat * { box-sizing: border-box; }
.sk-chat button, .sk-chat input { font: inherit; }
.sk-chat button { cursor: pointer; }
.sk-chat :is(button, a, input):focus-visible { outline: 2px solid #f0c960; outline-offset: -3px; }
.sk-chat ::selection { background: #d4af37; color: #080c14; }
.sk-chat__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; background: #162032; }
.sk-chat__header h2 { color: #fff; font-size: 18px; letter-spacing: -.02em; margin: 0 0 3px; }
.sk-chat__header p { color: #c0cbdb; margin: 0; font-size: 13px; }
.sk-chat__header button { background: transparent; border: 0; color: #c0cbdb; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 8px; }
.sk-chat__header button:hover { background: #243248; color: white; }
.sk-chat__messages { padding: 20px; overflow-y: auto; overscroll-behavior: contain; min-height: 70px; flex: 1 1 auto; scrollbar-color: #657086 #111827; scrollbar-width: thin; }
.sk-chat__message { white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 18px; }
.sk-chat__message:last-child { margin-bottom: 0; }
.sk-chat__message p { margin: 8px 0 0; }
.sk-chat__message--user { margin-left: 28px; padding: 10px 14px; background: #26334a; border-radius: 12px 12px 3px 12px; }
.sk-chat__topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; flex-shrink: 0; }
.sk-chat__topics button { text-align: left; color: #f0d17d; background: transparent; border: 1px solid #6a5a32; padding: 9px 12px; min-height: 44px; border-radius: 8px; max-width: 100%; overflow-wrap: anywhere; }
.sk-chat__topics button:hover { background: #2b291f; }
.sk-chat__status { margin: 0; padding: 0 20px; color: #f0d17d; font-size: 12px; }
.sk-chat__status:empty { display: none; }
.sk-chat__form { display: flex; gap: 8px; padding: 12px 20px 8px; flex-shrink: 0; }
.sk-chat__form input { flex: 1; min-width: 0; width: 100%; border: 1px solid #455269; background: #080c14; color: white; border-radius: 8px; padding: 12px; font-size: 16px; caret-color: #f0d17d; }
.sk-chat__form input::placeholder { color: #aab7c9; font-size: 13px; }
.sk-chat__form button { display: grid; place-items: center; min-width: 44px; border: none; border-radius: 8px; background: #e6bc4c; color: #111827; }
.sk-chat__form button:hover { background: #f0cf77; }
.sk-chat button:disabled { opacity: .55; cursor: wait; }
.sk-chat__notice { margin: 0; padding: 0 20px 12px; font-size: 11px; line-height: 1.5; color: #aab7c9; flex-shrink: 0; }
.sk-chat__footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #2b374b; padding: 4px 20px; flex-shrink: 0; }
.sk-chat__footer a, .sk-chat__footer button { display: inline-flex; align-items: center; min-height: 44px; background: none; border: none; color: #cbd5e1; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; padding: 0; }
.sk-chat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes sk-chat-enter { from { transform: translateY(8px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 480px) {
    .sk-chat { right: 12px; bottom: 88px; width: calc(100vw - 24px); max-height: calc(100dvh - 104px); }
    #skFloatingFeedbackContainer { right: 12px !important; bottom: max(16px, env(safe-area-inset-bottom)) !important; }
}
@media (max-height: 520px) { .sk-chat { bottom: 12px; max-height: calc(100dvh - 24px); } }
@media (prefers-reduced-motion: reduce) { .sk-chat { animation: none; } }
