.source-modal-open{overflow:hidden}
.source-card-icon{display:inline-block;width:1em;height:1em;margin-inline-end:.3em;vertical-align:-.15em;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.source-dialog{box-sizing:border-box;width:min(620px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);margin:auto;padding:1.4rem;border:1px solid var(--line);border-radius:16px;background:#141624;color:var(--text);box-shadow:0 25px 100px #0008;color-scheme:dark;overflow-y:auto}
.source-dialog::backdrop{background:#070812bd;backdrop-filter:blur(5px)}
.source-dialog[open]{animation:source-open .2s ease-out both}.source-dialog[open]::backdrop{animation:source-dim .2s ease-out both}
.source-dialog.is-closing{animation:source-close .16s ease-in both}.source-dialog.is-closing::backdrop{animation:source-undim .16s ease-in both}
.source-dialog .source-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem}
.source-dialog .source-tag{color:var(--accent,#81f7ee);font:700 .7rem ui-monospace,monospace;letter-spacing:.12em}
.source-dialog .source-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;background:#101321;color:var(--text);cursor:pointer}
.source-close svg{width:20px;height:20px}.source-dialog h2{margin:.5rem 0;font-size:clamp(1.45rem,5vw,2rem);letter-spacing:-.04em;line-height:1.2;overflow-wrap:anywhere}
.source-dialog #source-subtitle{color:var(--muted);font-size:.85rem;margin:0 0 .5rem}.source-dialog #source-publisher{display:block;margin:0 0 1rem;color:var(--accent);font:.75rem ui-monospace,monospace;overflow-wrap:anywhere}
.source-dialog #source-summary{padding:1rem;border:1px solid var(--line);border-radius:10px;background:#0d1320}.source-dialog #source-summary p{font-size:.95rem;line-height:1.7;margin:0;color:var(--text)}.source-dialog #source-summary p+p{margin-top:.8rem}
.source-dialog .source-note{margin:.85rem 0;color:var(--muted);font-size:.78rem;line-height:1.6}
.source-dialog .source-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:.65rem;margin-top:1.1rem}.source-dialog .source-actions>*{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;margin:0;padding:.75rem 1rem;min-height:44px;border:1px solid var(--line);border-radius:9px;font-family:inherit;font-size:.85rem;font-weight:600;text-decoration:none;cursor:pointer}.source-dialog .source-return{background:#172527;color:#b6fff0}.source-dialog #source-original{background:#202135;color:#e4dcff}.source-dialog #source-original svg{width:16px;height:16px;flex-shrink:0}
.source-dialog :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@keyframes source-open{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes source-close{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(10px) scale(.98)}}@keyframes source-dim{from{opacity:0}to{opacity:1}}@keyframes source-undim{from{opacity:1}to{opacity:0}}
@media(max-width:480px){.source-dialog{padding:1rem}.source-dialog .source-actions>*{width:100%}}
@media(prefers-reduced-motion:reduce){.source-dialog[open],.source-dialog[open]::backdrop,.source-dialog.is-closing,.source-dialog.is-closing::backdrop{animation:none}}
