/* Shared floating tools: inherit each page's existing palette. */
#site-page-tools{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));z-index:90;display:flex;flex-direction:column;gap:8px}
#site-page-tools button{appearance:none;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid var(--line,#d5d8cf);border-radius:50%;background:var(--paper,#f7f6f1);color:var(--ink,#1b221e);box-shadow:0 3px 16px #00000012;cursor:pointer;transition:transform .18s,box-shadow .18s}
#site-page-tools button:hover{transform:translateY(-2px);box-shadow:0 5px 20px #0002}#site-page-tools button:focus-visible,#site-page-qr button:focus-visible{outline:2px solid var(--accent,#365d83);outline-offset:4px}
#site-page-tools svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html.page-tools-ready #floating-top{display:none!important}
#site-page-qr{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:32px;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line,#d5d8cf);border-radius:16px;background:var(--paper,#f7f6f1);color:var(--ink,#1b221e);box-shadow:0 24px 90px #0004;text-align:center;font:inherit}
#site-page-qr::backdrop{background:#0007;backdrop-filter:blur(6px)}#site-page-qr h2{font:600 24px/1.4 inherit;font-family:inherit;font-size:24px;line-height:1.4;margin:14px 0 8px}#site-page-qr p{font-size:14px;line-height:1.7;margin:8px 0;color:var(--muted,#61685e)}
#site-page-qr .page-qr-close{position:absolute;right:8px;top:8px;width:40px;height:40px;border:0;background:transparent;color:inherit;font-size:26px;cursor:pointer}#site-page-qr img{display:block;width:240px;max-width:100%;height:auto;margin:20px auto 12px;border-radius:4px;background:white}#site-page-qr .page-qr-url{display:block;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:var(--muted,#61685e)}
@media(max-width:600px){#site-page-tools{right:12px;bottom:calc(18px + env(safe-area-inset-bottom))}#site-page-tools button{width:44px;height:44px}#site-page-qr{padding:28px 22px}}
@media(prefers-reduced-motion:reduce){#site-page-tools button{transition:none}}
@media print{#site-page-tools,#site-page-qr{display:none!important}}

#site-page-qr img[hidden]{display:none}
