.jabo-chat-shell {
    position: fixed;
    right: 22px;
    bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 18px));
    z-index: 2600;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.jabo-chat-hint {
    width: min(320px, calc(100vw - 32px));
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 240, 228, 0.94));
    border: 1px solid rgba(176, 138, 83, 0.28);
    box-shadow: 0 18px 42px rgba(25, 18, 14, 0.18);
    color: #201913;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.jabo-chat-hint.is-visible {
    animation: jaboChatHintBrief 2.2s ease forwards;
    visibility: visible;
}

.jabo-chat-hint.is-hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    visibility: hidden;
}

@keyframes jaboChatHintBrief {
    0% {
        opacity: 0;
        transform: translateY(12px);
        visibility: visible;
    }
    12%,
    72% {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
        visibility: hidden;
    }
}

.jabo-chat-hint strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.jabo-chat-hint span {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(32, 25, 19, 0.82);
}

.jabo-chat-launcher {
    width: 58px;
    height: 58px;
    min-height: 58px;
    min-width: 58px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #11151d, #2d241d 54%, #af8550);
    color: #fff;
    box-shadow: 0 20px 40px rgba(17, 18, 22, 0.36);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.jabo-chat-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(17, 18, 22, 0.42);
    filter: brightness(1.02);
}

.jabo-chat-launcher-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 17px;
}

.jabo-chat-launcher-text {
    display: none;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.jabo-chat-launcher-text strong {
    font-family: "Manrope", sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.jabo-chat-launcher-text small {
    font-family: "Manrope", sans-serif;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.76);
}

.jabo-chat-panel {
    width: min(390px, calc(100vw - 24px));
    height: min(640px, calc(100vh - 110px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(176, 138, 83, 0.24);
    background:
        radial-gradient(circle at top right, rgba(176, 138, 83, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 238, 230, 0.98));
    box-shadow: 0 28px 56px rgba(17, 18, 22, 0.24);
    backdrop-filter: blur(10px);
}

.jabo-chat-shell.is-open .jabo-chat-panel {
    display: flex;
}

.jabo-chat-shell.is-open .jabo-chat-launcher {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.jabo-chat-header {
    min-height: 78px;
    padding: 18px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(20, 23, 28, 0.98), rgba(41, 34, 28, 0.96));
    color: #fff;
}

.jabo-chat-header strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.22rem;
    line-height: 1;
}

.jabo-chat-header small {
    display: block;
    margin-top: 5px;
    font-family: "Manrope", sans-serif;
    font-size: 0.76rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.75);
}

.jabo-chat-header-copy {
    min-width: 0;
}

.jabo-chat-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jabo-chat-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.jabo-chat-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.jabo-chat-messages {
    flex: 1;
    min-height: 0;
    padding: 16px 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jabo-chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 92%;
}

.jabo-chat-message.is-user {
    align-self: flex-end;
    align-items: flex-end;
}

.jabo-chat-message.is-assistant {
    align-self: flex-start;
    align-items: flex-start;
}

.jabo-chat-bubble {
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(30, 22, 16, 0.08);
}

.jabo-chat-message.is-user .jabo-chat-bubble {
    background: linear-gradient(135deg, #1b2027, #2f251f 58%, #966e3f);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.jabo-chat-message.is-assistant .jabo-chat-bubble {
    background: #fff;
    color: #241d17;
    border: 1px solid rgba(36, 29, 23, 0.08);
    border-bottom-left-radius: 6px;
}

.jabo-chat-message-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: "Manrope", sans-serif;
    font-size: 0.93rem;
    line-height: 1.5;
}

.jabo-chat-time {
    font-family: "Manrope", sans-serif;
    font-size: 0.68rem;
    color: rgba(36, 29, 23, 0.48);
    padding: 0 4px;
}

.jabo-chat-message-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jabo-chat-inline-action,
.jabo-chat-chip {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(176, 138, 83, 0.24);
    background: rgba(176, 138, 83, 0.1);
    color: #3b2d1f;
    font-family: "Manrope", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.jabo-chat-inline-action:hover,
.jabo-chat-chip:hover {
    transform: translateY(-1px);
    background: rgba(176, 138, 83, 0.16);
    border-color: rgba(176, 138, 83, 0.4);
}

.jabo-chat-card-grid {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.jabo-chat-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(32, 25, 19, 0.08);
    background: linear-gradient(180deg, rgba(248, 244, 236, 0.7), rgba(255, 255, 255, 0.96));
}

.jabo-chat-card img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
}

.jabo-chat-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jabo-chat-card-copy strong {
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    color: #201913;
}

.jabo-chat-card-copy p {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 0.79rem;
    line-height: 1.45;
    color: rgba(36, 29, 23, 0.74);
}

.jabo-chat-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
    font-family: "Manrope", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: #2f251f;
}

.jabo-chat-card-link {
    border: 0;
    border-radius: 999px;
    min-height: 32px;
    padding: 0 12px;
    background: linear-gradient(135deg, #171c24, #3c2b20 60%, #a57b49);
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.jabo-chat-quick-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.jabo-chat-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(176, 138, 83, 0.14);
    background: rgba(255, 255, 255, 0.58);
}

.jabo-chat-footer-actions {
    margin-top: 10px;
}

.jabo-chat-composer {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 8px;
}

.jabo-chat-composer textarea {
    resize: none;
    min-height: 52px;
    max-height: 120px;
    border-radius: 16px;
    border: 1px solid rgba(36, 29, 23, 0.14);
    background: #fff;
    padding: 14px 14px;
    font-family: "Manrope", sans-serif;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #241d17;
    outline: none;
}

.jabo-chat-composer textarea:focus {
    border-color: rgba(176, 138, 83, 0.45);
    box-shadow: 0 0 0 3px rgba(176, 138, 83, 0.1);
}

.jabo-chat-send {
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #131820, #35271f 58%, #a27946);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.jabo-chat-human {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(13, 101, 58, 0.18);
    background: linear-gradient(135deg, #eaf8f0, #f5fff9);
    color: #145835;
    font-family: "Manrope", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.jabo-chat-bubble.is-typing {
    min-width: 62px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jabo-chat-bubble.is-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(36, 29, 23, 0.45);
    animation: jaboChatPulse 0.9s infinite ease-in-out;
}

.jabo-chat-bubble.is-typing span:nth-child(2) {
    animation-delay: 0.12s;
}

.jabo-chat-bubble.is-typing span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes jaboChatPulse {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@media (max-width: 720px) {
    .jabo-chat-shell {
        right: 12px;
        left: auto;
        bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 10px));
        width: auto;
        align-items: flex-end;
    }

    .jabo-chat-hint {
        display: none;
    }

    .jabo-chat-launcher {
        width: 58px;
        min-width: 58px;
        min-height: 58px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        gap: 0;
    }

    .jabo-chat-launcher-text {
        display: none;
    }

    .jabo-chat-launcher-icon {
        width: 100%;
        height: 100%;
        border: 0;
        background: transparent;
        font-size: 18px;
    }

    .jabo-chat-panel {
        width: min(390px, calc(100vw - 24px));
        height: min(74vh, 640px);
        border-radius: 22px;
    }
}
