/* Links in messages open through a check (docs/link-safety.md): the link itself, and the sheet. */
/* Doubled class: the chat's own button rules (padding, height) must not reach a link in the text. */
button.jm-link.jm-link{all:unset;display:inline;padding:0;margin:0;min-height:0;min-width:0;border:0;background:none;font:inherit;line-height:inherit;cursor:pointer;color:var(--teal-700,#0f766e);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere;word-break:break-all;border-radius:4px}
.jm-link:hover{text-decoration-thickness:2px}
.jm-link:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.jm-bubble.mine .jm-link,.jc-message.mine .jm-link{color:inherit}
:root[data-theme=dark] .jm-link{color:var(--accent,#3fb8ad)}
.ls-backdrop{position:fixed;inset:0;z-index:1200;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,20,40,.45);padding:12px;animation:ls-fade .16s ease-out}
.ls-sheet{width:min(520px,100%);background:var(--paper,#fff);color:var(--ink,#13233d);border:1px solid var(--line,rgba(16,32,64,.08));border-radius:18px;padding:18px 18px 16px;box-shadow:var(--shadow,0 18px 48px rgba(8,18,40,.28));display:grid;gap:10px;outline:none}
.ls-sheet h2{margin:0;font-size:1.05rem}
.ls-url{margin:0;font-size:.92rem;overflow-wrap:anywhere;word-break:break-all;color:var(--muted,#4b5a74);background:rgba(127,127,127,.12);border-radius:10px;padding:8px 10px;max-height:5.5em;overflow:auto}
.ls-status{margin:0;font-size:.95rem;line-height:1.4;padding-left:22px;position:relative}
.ls-status::before{content:"";position:absolute;left:0;top:.35em;width:12px;height:12px;border-radius:50%;background:currentColor;opacity:.75}
.ls-status[data-tone=wait]{color:var(--muted,#4b5a74)}
.ls-status[data-tone=wait]::before{animation:ls-pulse 1s ease-in-out infinite}
.ls-status[data-tone=good]{color:var(--success,#157a4a)}
.ls-status[data-tone=warn]{color:var(--amber-500,#9a6700)}
.ls-status[data-tone=bad]{color:var(--danger,#b3261e)}
.ls-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.ls-actions .button{min-height:40px}
@media(min-width:720px){.ls-backdrop{align-items:center}}
@media(prefers-reduced-motion:reduce){.ls-backdrop,.ls-status[data-tone=wait]::before{animation:none}}
@keyframes ls-fade{from{opacity:0}to{opacity:1}}
@keyframes ls-pulse{0%,100%{opacity:.35}50%{opacity:.9}}
