#asst-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 9998;
    width: 62px; height: 62px; border-radius: 50%;
    background: linear-gradient(135deg, #0B3B2F 0%, #0E4A3A 100%);
    color: #fff; border: none;
    font-size: 26px; cursor: pointer;
    box-shadow: 0 8px 28px rgba(11,59,47,0.4);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex; align-items: center; justify-content: center;
}
#asst-fab:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(11,59,47,0.5); }
#asst-fab.asst-open { background: #8B1F1F; }

#asst-panel {
    position: fixed; bottom: 100px; right: 24px; z-index: 9999;
    width: 400px; max-width: calc(100vw - 32px); height: 560px;
    max-height: calc(100vh - 140px);
    background: #fff; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid #E2E2DE;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 1; transform: translateY(0);
}
#asst-panel.asst-hidden {
    opacity: 0; transform: translateY(12px); pointer-events: none;
}

.asst-header {
    background: linear-gradient(135deg, #0B3B2F 0%, #0E4A3A 100%);
    color: #fff; padding: 16px 18px;
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px; font-weight: 600;
}
.asst-header-title { display: flex; align-items: center; gap: 8px; }
.asst-dot {
    display: inline-block; width: 8px; height: 8px;
    background: #6FE38F; border-radius: 50%;
    animation: asst-pulse 1.6s infinite;
}
@keyframes asst-pulse { 50% { opacity: 0.4; } }
#asst-close {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    font-size: 20px; cursor: pointer; width: 32px; height: 32px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
#asst-close:hover { background: rgba(255,255,255,0.2); }

.asst-messages {
    flex: 1; overflow-y: auto; padding: 18px 16px;
    background: #FAFAF8; display: flex; flex-direction: column; gap: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
}
.asst-msg {
    max-width: 88%; padding: 11px 15px; border-radius: 16px;
    font-size: 13.5px; line-height: 1.5; word-wrap: break-word;
    animation: asst-fadein 0.25s ease;
}
@keyframes asst-fadein { from { opacity: 0; transform: translateY(6px); } }
.asst-msg.asst-user {
    align-self: flex-end; background: #0B3B2F; color: #fff;
    border-bottom-right-radius: 4px;
}
.asst-msg.asst-assistant {
    align-self: flex-start; background: #fff; color: #1A1A1A;
    border: 1px solid #E2E2DE; border-bottom-left-radius: 4px;
}

.asst-input-row {
    display: flex; padding: 12px; gap: 8px;
    background: #fff; border-top: 1px solid #E2E2DE;
    align-items: center;
}
.asst-input-row input {
    flex: 1; padding: 11px 14px;
    border: 1px solid #C9C9C4; border-radius: 24px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13.5px; outline: none;
    transition: border-color 0.15s;
}
.asst-input-row input:focus { border-color: #0B3B2F; }

.asst-input-row button {
    width: 42px; height: 42px; border-radius: 50%;
    border: none; background: #0B3B2F; color: #fff;
    cursor: pointer; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.15s, transform 0.15s;
}
.asst-input-row button:hover { background: #0E4A3A; }
.asst-input-row button:active { transform: scale(0.94); }
.asst-input-row button.asst-listening {
    background: #B91C1C;
    animation: asst-micpulse 1s infinite;
}
@keyframes asst-micpulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185,28,28,0.6); }
    50% { box-shadow: 0 0 0 10px rgba(185,28,28,0); }
}

@media (max-width: 600px) {
    #asst-fab { bottom: 16px; right: 16px; width: 56px; height: 56px; font-size: 22px; }
    #asst-panel {
        bottom: 84px; right: 12px; left: 12px; width: auto;
        height: 520px; max-height: calc(100vh - 100px);
    }
}
