.bee-ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 110000;
    background: rgba(6, 12, 26, 0.56);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.bee-ai-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.bee-ai-modal {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 110001;
    width: min(460px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 48px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px) scale(.96);
    transition: opacity .22s ease, transform .22s ease;
}

.bee-ai-modal.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.bee-ai-shell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: min(760px, calc(100vh - 48px));
    background:
        radial-gradient(circle at top left, rgba(255, 212, 0, .32), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #fff9d9 48%, #f4fbff 100%);
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.bee-ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
    background: rgba(255, 255, 255, .7);
    border-bottom: 1px solid rgba(17, 24, 39, .08);
}

.bee-ai-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #111827;
    color: #ffd400;
    font-size: 25px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .2);
}

.bee-ai-header strong {
    display: block;
    font-size: 19px;
    color: #111827;
}

.bee-ai-header span {
    display: block;
    margin-top: 2px;
    color: #4b5563;
    font-size: 13px;
}

.bee-ai-close {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.bee-ai-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.bee-ai-empty {
    padding: 22px;
    border: 1px dashed rgba(17, 24, 39, .18);
    border-radius: 22px;
    background: rgba(255, 255, 255, .58);
    color: #374151;
}

.bee-ai-empty strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

.bee-ai-empty p {
    margin: 0;
    line-height: 1.45;
}

.bee-ai-message {
    display: flex;
    margin-bottom: 12px;
}

.bee-ai-message > div {
    max-width: 86%;
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-wrap;
}

.bee-ai-message-assistant > div {
    background: #fff;
    color: #111827;
    border-top-left-radius: 6px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, .08);
}

.bee-ai-message-user {
    justify-content: flex-end;
}

.bee-ai-message-user > div {
    background: #111827;
    color: #fff;
    border-top-right-radius: 6px;
}

.bee-ai-typing span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 999px;
    background: #9ca3af;
    animation: beeAiTyping 1s infinite ease-in-out;
}

.bee-ai-typing span:nth-child(2) { animation-delay: .12s; }
.bee-ai-typing span:nth-child(3) { animation-delay: .24s; }

@keyframes beeAiTyping {
    0%, 80%, 100% { transform: translateY(0); opacity: .45; }
    40% { transform: translateY(-4px); opacity: 1; }
}

.bee-ai-route-card {
    margin: 12px 0 16px;
    padding: 16px;
    border-radius: 22px;
    background: #111827;
    color: #fff;
    box-shadow: 0 16px 34px rgba(17, 24, 39, .22);
}

.bee-ai-route-card > strong {
    display: block;
    margin-bottom: 8px;
    color: #ffd400;
    font-size: 16px;
}

.bee-ai-route-card p {
    margin: 0 0 12px;
    color: #e5e7eb;
    line-height: 1.45;
}

.bee-ai-route-card ol {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.bee-ai-route-card li {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.bee-ai-route-card li strong,
.bee-ai-route-card li span {
    display: block;
}

.bee-ai-route-card li span {
    margin-top: 3px;
    color: #d1d5db;
    font-size: 13px;
}

.bee-ai-route-card button,
.bee-ai-composer button,
.bee-ai-quick button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.bee-ai-route-card button {
    width: 100%;
    padding: 12px 14px;
    border-radius: 999px;
    background: #ffd400;
    color: #111827;
}

.bee-ai-route-card button:disabled {
    opacity: .7;
    cursor: wait;
}

.bee-ai-quick {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 18px 14px;
}

.bee-ai-quick button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .08);
    color: #111827;
    white-space: nowrap;
}

.bee-ai-composer {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, .82);
    border-top: 1px solid rgba(17, 24, 39, .08);
}

.bee-ai-composer input {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: #111827;
}

.bee-ai-composer input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(255, 212, 0, .28);
}

.bee-ai-composer button {
    padding: 0 18px;
    border-radius: 999px;
    background: #ffd400;
    color: #111827;
}

@media (max-width: 640px) {
    .bee-ai-modal {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .bee-ai-shell {
        height: calc(100vh - 24px);
        border-radius: 22px;
    }
}

.bee-ai-voice-status {
    margin: 0 16px 10px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(17, 24, 39, .07);
    color: #1f2937;
    font-size: 12px;
    line-height: 1.35;
}

.bee-ai-composer {
    gap: 8px;
}

.bee-ai-voice {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 86px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.bee-ai-voice:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, .12);
}

.bee-ai-voice.is-listening {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 214, 66, .35);
}

.bee-ai-voice[hidden] {
    display: none !important;
}

.bee-ai-voice-icon {
    line-height: 1;
}

@media (max-width: 520px) {
    .bee-ai-voice {
        min-width: 48px;
        padding-inline: 10px;
    }

    .bee-ai-voice-label {
        display: none;
    }
}


body.bee-ai-open .planner-trip-toggle {
    z-index: 109990;
}

.bee-ai-message-action p {
    margin: 0 0 10px;
}

.bee-ai-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    background: #111827;
    color: #ffd400;
    font-weight: 800;
    cursor: pointer;
}

.bee-ai-route-note {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 212, 0, .13);
    color: #fff7c2 !important;
    font-size: 13px;
}
