.source-popover {
    position: fixed;
    z-index: 300;
    display: block;
    width: 304px;
    padding: 14px;
    border-radius: 12px;
    background: #0a0a0d;
    color: #f5f5f7;
    font-family: 'DM Sans', Arial, sans-serif;
    text-align: left;
    pointer-events: none;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .27);
    animation: source-popover-in 140ms cubic-bezier(.2, .75, .25, 1) both;
}
.source-popover.above {
    transform: translate(-50%, -100%);
    transform-origin: 50% 100%;
}
.source-popover.below {
    transform: translate(-50%, 0);
    transform-origin: 50% 0;
}
@keyframes source-popover-in {
    from { opacity: 0; scale: .98; }
    to { opacity: 1; scale: 1; }
}
.source-popover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.source-popover-top strong {
    overflow: hidden;
    color: inherit;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.source-popover-top i {
    flex: 0 0 auto;
    color: rgba(245, 245, 247, .55);
    font-size: 12px;
    font-style: normal;
    line-height: 1.25;
}
.source-popover-stage {
    display: block;
    margin-bottom: 8px;
    color: #5b9bd5;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.source-popover-copy {
    display: block;
    color: rgba(245, 245, 247, .76);
    font-size: 13px;
    line-height: 1.45;
}
.source-popover-verified {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 8px;
    border-radius: 100px;
    background: #0a06e5;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}
.source-popover-verified::before {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}
.source-popover-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(245, 245, 247, .15);
    color: inherit;
    font-size: 12px;
    line-height: 1.4;
}
.source-popover-source > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.source-popover-source > span:last-child { flex: 0 0 auto; }
[data-source-preview][href] { cursor: alias; }

[data-theme='dark'] .source-popover {
    background: #181818;
    color: #f2f2f2;
}
[data-theme='dark'] .source-popover-stage { color: #3c98f2; }
[data-theme='dark'] .source-popover-top i { color: rgba(242, 242, 242, .55); }
[data-theme='dark'] .source-popover-copy { color: rgba(242, 242, 242, .76); }
[data-theme='dark'] .source-popover-source { border-top-color: rgba(242, 242, 242, .15); }

@media (max-width: 420px) {
    .source-popover { width: min(280px, calc(100vw - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
    .source-popover { animation: none; }
}
