.cleo-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 19px;
    border: 1px solid rgba(212, 175, 55, .72);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 18px 45px rgba(8, 19, 31, .28);
    font: 800 14px/1 Manrope, sans-serif;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cleo-chat-launcher:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(8, 19, 31, .34); }
.cleo-chat-launcher-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(212,175,55,.12); }

.cleo-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 111;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    width: min(410px, calc(100vw - 32px));
    height: min(610px, calc(100vh - 125px));
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, .42);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(8, 19, 31, .3);
    opacity: 0;
    transform: translateY(18px) scale(.98);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.cleo-chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.cleo-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 20px; background: var(--ink); color: #fff; }
.cleo-chat-title { display: flex; align-items: center; gap: 12px; }
.cleo-chat-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 900; }
.cleo-chat-title strong, .cleo-chat-title span { display: block; }
.cleo-chat-title span { color: rgba(255,255,255,.68); font-size: 11px; margin-top: 2px; }
.cleo-chat-close { border: 0; background: transparent; color: #fff; font-size: 25px; cursor: pointer; }

.cleo-chat-log { overflow-y: auto; padding: 20px; background: linear-gradient(180deg, #f8f5ee, #fff); }
.cleo-chat-message { max-width: 88%; margin: 0 0 13px; padding: 12px 14px; border-radius: 17px; white-space: pre-line; font-size: 14px; line-height: 1.5; }
.cleo-chat-message.bot { margin-right: auto; border-bottom-left-radius: 5px; background: #fff; color: var(--ink); box-shadow: 0 5px 18px rgba(13,27,42,.08); }
.cleo-chat-message.user { margin-left: auto; border-bottom-right-radius: 5px; background: var(--ink-2); color: #fff; }
.cleo-chat-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: -3px 0 15px; }
.cleo-chat-actions a { padding: 8px 11px; border: 1px solid rgba(23,107,224,.24); border-radius: 999px; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 800; }
.cleo-chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cleo-chat-suggestions button { padding: 8px 11px; border: 1px solid rgba(13,27,42,.15); border-radius: 999px; background: #fff; color: var(--ink); font: 700 12px/1.3 Manrope, sans-serif; cursor: pointer; }
.cleo-chat-thinking { color: var(--muted); font-style: italic; }
.cleo-chat-privacy { padding: 8px 16px 0; background: #fff; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: center; }

.cleo-chat-form { display: flex; gap: 9px; padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.cleo-chat-form input { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid #cfd5dc; border-radius: 999px; color: var(--ink); font: 14px Manrope, sans-serif; outline: none; }
.cleo-chat-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,107,224,.12); }
.cleo-chat-send { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 18px; cursor: pointer; }
.cleo-chat-send:disabled, .cleo-chat-form input:disabled { cursor: wait; opacity: .65; }
.cleo-chat-note { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; color: rgba(255,255,255,.85); font-size: 10px; }

@media (max-width: 600px) {
    .cleo-chat-launcher { right: 14px; bottom: 14px; }
    .cleo-chat-panel { right: 8px; bottom: 76px; width: calc(100vw - 16px); height: min(650px, calc(100vh - 90px)); }
}

@media (prefers-reduced-motion: reduce) {
    .cleo-chat-panel, .cleo-chat-launcher { transition: none; }
}
