.source-disclosure { color:var(--theme-ink,#142039); font-size:.8rem; line-height:1.65; }
.source-trigger { display:inline-flex; align-items:center; gap:7px; width:fit-content; padding:7px 0; border:0; background:transparent; font:inherit; cursor:pointer; color:var(--theme-accent,#7534c9); font-weight:650; text-align:left; }
.source-trigger svg { width:15px; height:15px; }
.source-trigger:focus-visible { outline:2px solid var(--theme-accent,#7534c9); outline-offset:3px; border-radius:4px; }
.source-popover, .anchored-popover { position:fixed; inset:auto; margin:0; top:var(--source-top,20%); bottom:var(--source-bottom,auto); left:var(--source-left,5vw); width:min(420px,calc(100vw - 28px)); max-height:var(--source-height,75dvh); overflow:auto; box-sizing:border-box; border:1px solid var(--theme-border,#dce5f1); border-radius:14px; padding:16px 18px; background:var(--theme-panel,white); color:var(--theme-ink,#142039); box-shadow:0 16px 50px #0003; font-size:.82rem; line-height:1.65; }
.source-popover::backdrop, .anchored-popover::backdrop { background:transparent; }
.source-popover-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.source-popover-heading button { display:grid; place-items:center; width:30px; height:30px; padding:0; line-height:1; flex-shrink:0; border:0; border-radius:50%; background:var(--theme-panel-soft,#f5f7fb); color:inherit; font-size:1.25rem; cursor:pointer; }
.source-content { padding:14px 18px; margin:4px 0 12px; border-left:3px solid var(--theme-accent,#7534c9); border-radius:0 10px 10px 0; background:var(--theme-panel-soft,#f5f7fb); max-width:80ch; }
.source-content p { margin:0 0 10px; font-size:inherit; line-height:1.65; }
.source-content p:last-child { margin-bottom:0; }
.source-content ul { list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.source-content a { text-underline-offset:3px; }
.source-content .source-updated { color:var(--theme-muted,#506487); margin-top:12px; font-size:.75rem; }

.source-popover .source-content,.source-permanent .source-content { padding:0; margin:0; border:0; background:transparent; }

.source-popover-heading button svg { width:14px; height:14px; display:block; }
