.citation-preview{position:fixed;z-index:1200;width:380px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:18px 20px 14px;border:1px solid var(--surface-border);border-radius:7px;background:var(--bg-primary);color:var(--text-primary);box-shadow:0 10px 34px rgb(0 0 0 / .16);font-family:inherit;font-size:14px;line-height:1.55;overflow-wrap:anywhere;animation:citation-preview-in .12s ease-out}
.citation-preview-label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--text-secondary);margin-bottom:8px}
.citation-preview>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:600;line-height:1.4}
.citation-preview-excerpt{margin-top:10px;color:var(--text-secondary)}
.citation-preview-hint{margin-top:14px;padding-top:10px;border-top:var(--rule);font-size:11px;color:var(--text-secondary)}
.reference-content blockquote{scroll-margin-block:32px}
.citation-passage-highlight{background-color:rgb(240 70 90 / .16);box-shadow:0 0 0 6px rgb(240 70 90 / .16);border-radius:2px;animation:citation-passage-fade 2.8s ease-out forwards}
@keyframes citation-preview-in{from{opacity:0}to{opacity:1}}
@keyframes citation-passage-fade{0%,45%{background-color:rgb(240 70 90 / .16);box-shadow:0 0 0 6px rgb(240 70 90 / .16)}100%{background-color:transparent;box-shadow:0 0 0 6px transparent}}
@media(max-width:700px){.citation-preview{width:340px;padding:15px 17px 12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.citation-preview,.citation-passage-highlight{animation:none}}
