.page-scroller{overflow-anchor:none;overscroll-behavior:contain}
.page-scroller:focus-visible{outline:2px solid #689780;outline-offset:-2px}
/* Keep native selection/drag handles, but let Marginalia own the touch menu.
   Scope this to reading surfaces so composer and notebook editing stay native. */
.text-layer,.text-layer *,.message.assistant:not(.error):not(.streaming) .message-body,.message.assistant:not(.error):not(.streaming) .message-body *{-webkit-touch-callout:none}
.text-layer,.message.assistant:not(.error):not(.streaming) .message-body{-webkit-user-select:text;user-select:text}
.selection-menu,.selection-menu *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.selection-menu{width:max-content}
#pdf-pages{width:100%;max-width:none;margin:0 auto}
#pdf-pages .pdf-page{width:100%;min-width:0;max-width:none;margin:0 0 28px}
#pdf-pages .pdf-page img{position:absolute;inset:0;width:100%;height:100%}
.page-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);font:15px var(--serif)}
.page-placeholder p{margin:0}
.page-placeholder button{border:1px solid var(--line);border-radius:6px;padding:8px 14px;font:12px var(--sans);color:var(--ink)}
.loaded .page-placeholder{display:none}
.pdf-page-label{position:absolute;bottom:-21px;left:0;right:0;text-align:center;font-size:9px;color:var(--muted);user-select:none}
@media(min-width:1650px){#pdf-pages{max-width:920px}}
