.ai-reports-shell {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.ai-reports-panel {
    border: 1px solid #273449;
    border-radius: 1rem;
    background: #151e2e;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

.ai-reports-kicker {
    color: #a78bfa;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ai-reports-scope {
    border: 1px solid #334155;
    border-radius: .75rem;
    padding: .65rem 1rem;
    color: #cbd5e1;
    font-weight: 700;
    transition: .18s ease;
}

.ai-reports-scope:hover,
.ai-reports-scope.is-active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, .16);
    color: white;
}

.ai-quality {
    display: inline-flex;
    align-items: center;
    border: 1px solid;
    border-radius: 999px;
    padding: .2rem .55rem;
    font-size: .72rem;
    font-weight: 700;
}

.ai-quality--sufficient {
    border-color: rgba(16, 185, 129, .45);
    background: rgba(16, 185, 129, .10);
    color: #6ee7b7;
}

.ai-quality--partial {
    border-color: rgba(245, 158, 11, .45);
    background: rgba(245, 158, 11, .10);
    color: #fcd34d;
}

.ai-quality--unavailable {
    border-color: rgba(239, 68, 68, .45);
    background: rgba(239, 68, 68, .10);
    color: #fca5a5;
}

.ai-report-card {
    scroll-margin-top: 1rem;
}

.ai-report-viewer {
    border-left: 3px solid #7c3aed;
    background: rgba(124, 58, 237, .06);
}

.ai-report-viewer p,
.ai-report-viewer li {
    color: #cbd5e1;
    line-height: 1.7;
}

.ai-report-viewer h4 {
    color: white;
    font-weight: 800;
}

.ai-help-launcher {
    position: fixed;
    z-index: 85;
    left: 1rem;
    bottom: 1rem;
    display: none;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(167, 139, 250, .55);
    border-radius: 999px;
    padding: .75rem 1rem;
    color: white;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    box-shadow: 0 16px 40px rgba(37, 99, 235, .28);
    font-weight: 800;
}

body.ai-reports-authenticated .ai-help-launcher {
    display: inline-flex;
}

.ai-help-drawer {
    position: fixed;
    z-index: 90;
    left: 1rem;
    bottom: 4.8rem;
    width: min(430px, calc(100vw - 2rem));
    height: min(680px, calc(100vh - 6rem));
    display: none;
    flex-direction: column;
    border: 1px solid #334155;
    border-radius: 1rem;
    overflow: hidden;
    color: #e2e8f0;
    background: #111827;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

.ai-help-drawer.is-open {
    display: flex;
}

.ai-help-drawer.is-fullscreen {
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border: 0;
    border-radius: 0;
}

.ai-help-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.ai-help-message {
    width: fit-content;
    max-width: 90%;
    margin-bottom: .8rem;
    border-radius: .9rem;
    padding: .75rem .9rem;
    white-space: pre-wrap;
    line-height: 1.55;
}

.ai-help-message--user {
    margin-left: auto;
    background: #2563eb;
    color: white;
}

.ai-help-message--assistant {
    border: 1px solid #334155;
    background: #1f2937;
    color: #dbeafe;
}

@media (max-width: 767px) {
    .ai-reports-shell {
        font-size: .94rem;
    }

    .ai-help-launcher {
        left: .75rem;
        bottom: .75rem;
    }
}
