/* Round 7 (2026-10-25). Loaded last. Two fixes, owned here so style.css stays with its other editors.
   (1) Opening an overlay locks the page's scroll (html.ov-lock{overflow:hidden}); without a reserved gutter the page's
   scrollbar vanished and everything slid right by its width. Where scrollbars take room (panels.js measures them and
   marks the root .sb-classic) the root always keeps its gutter, so nothing moves and vw stays the same (the panel's 30vw).
   Overlay scrollbars take no room, so there is nothing to keep (and headless test browsers, which hide scrollbars, get no strip).
   Where scrollbar-gutter is not supported, panels.js pads the root by the measured width while locked.
   (2) The card's close and link buttons stand clear of the card's own scrollbar (its width, measured by panels.js into
   --c-sbw, plus a margin; at least 8px for overlay scrollbars), and read as buttons over scrolling text:
   a solid card-coloured disc with a 1px rim at about 15 percent ink. */
html.sb-classic{scrollbar-gutter:stable}
html.ov-pad{padding-right:var(--ov-pad,0px)}
:root{--c-sbw:0px;--c-clear:max(var(--c-sbw),8px)}
html .card .x,html .card .c-link{right:calc(var(--c-clear) + 6px);background-color:var(--raised);border:1px solid color-mix(in srgb,var(--ink) 15%,transparent);box-shadow:0 0 0 3px var(--raised)}
html .card .c-link{right:calc(var(--c-clear) + 54px)}
html .c-copied{right:calc(var(--c-clear) + 104px)}
/* the phone sheet's header strip, shown once the text scrolls, leaves the scrollbar uncovered too */
@media (max-width:959px){html .card::before{right:var(--c-sbw)}}
