.site-assistant-launcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1200;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.site-assistant-launcher:hover {
    filter: brightness(1.05);
}
.site-assistant-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 5rem;
    z-index: 1200;
    width: min(380px, calc(100vw - 2rem));
    max-height: min(520px, calc(100vh - 7rem));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dee2e6;
}
.site-assistant-panel[hidden] {
    display: none !important;
}
.site-assistant-header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.site-assistant-header-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}
.site-assistant-close {
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    padding: 0.15rem 0.35rem;
}
.site-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.9rem;
}
.site-assistant-msg {
    max-width: 92%;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    line-height: 1.45;
    word-break: break-word;
}
.site-assistant-msg--bot {
    align-self: flex-start;
    background: #f1f3f5;
    color: #212529;
}
.site-assistant-msg--user {
    align-self: flex-end;
    background: #0d6efd;
    color: #fff;
}
.site-assistant-links {
    margin-top: 0.5rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
}
.site-assistant-links-title {
    display: block;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}
.site-assistant-links a {
    display: block;
    color: #0d6efd;
    text-decoration: none;
    margin-bottom: 0.2rem;
}
.site-assistant-links a:hover {
    text-decoration: underline;
}
.site-assistant-form {
    border-top: 1px solid #dee2e6;
    padding: 0.65rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    background: #fff;
}
.site-assistant-input {
    flex: 1;
    resize: none;
    min-height: 2.25rem;
    max-height: 6rem;
    font-size: 0.9rem;
}
.site-assistant-send {
    flex-shrink: 0;
}
.site-assistant-status {
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0 1rem 0.5rem;
}
.site-assistant-status--error {
    color: #dc3545;
}
.site-assistant-typing {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0 1rem;
}
