.ai-citation-chip{display:inline-flex;align-items:center;justify-content:center;min-width:1.9em;min-height:1.9em;padding:.1em .35em;border:1px solid #d8cdf5;border-radius:7px;background:#f2edfc;color:#6245b0;font:inherit;font-size:.8em;font-weight:650;line-height:1.2;vertical-align:baseline;cursor:pointer}
.ai-citation-chip:hover{background:#e7ddfa;border-color:#9473d7}
.ai-citation-chip:focus-visible,.ai-source-dialog :focus-visible{outline:3px solid #4f72f5;outline-offset:3px}
.ai-source-dialog{box-sizing:border-box;width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #dadfec;border-radius:20px;box-shadow:0 30px 100px #17254140;color:#172541;overflow:auto}
.ai-source-dialog::backdrop{background:#17254188}
.ai-source-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid #e1e5ef}
.ai-source-dialog h2{margin:0;color:#6245b0;font-size:1.05rem;letter-spacing:normal}
.ai-source-dialog button{min-height:44px;padding:8px 13px;border:1px solid #d8deef;border-radius:8px;background:#fff;color:#26314d;font:inherit;cursor:pointer}
.ai-source-body{padding:22px;overflow-wrap:anywhere}
.ai-source-body h3{margin:0 0 10px;font-size:1.05rem;line-height:1.5;letter-spacing:normal}
.ai-source-body .ai-source-section{margin:0 0 16px;color:#626e85;font-size:.875rem;line-height:1.5}
.ai-source-body blockquote{max-height:43dvh;overflow:auto;white-space:pre-wrap;margin:0 0 20px;padding:16px;border:1px solid #e2dfed;border-radius:12px;background:#f7f7fb;font-size:.9375rem;line-height:1.65;color:#36445e}
.ai-source-body a{display:inline-block;color:#4c51bc;font-size:.9375rem;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
@media(max-width:480px){.ai-source-dialog header,.ai-source-body{padding:16px}.ai-source-body blockquote{padding:12px}}
