.mley-pdf-sync { position: relative; flex: 0 0 auto; }
.mley-pdf-sync [hidden], .mley-pdf-sync[hidden] { display: none !important; }
#mley-pdf-sync-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 7px; font: inherit; font-size: .7rem; }
#mley-pdf-sync-toggle svg { flex: 0 0 auto; }
.mley-pdf-sync-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 10;
  width: min(340px, calc(100vw - 100px)); max-height: min(65vh, 520px);
  overflow-y: auto; overscroll-behavior: contain; padding: 14px; box-sizing: border-box;
  background: #fff; color: #233440; border: 1px solid #b9c8cf; border-radius: 10px;
  box-shadow: 0 10px 30px #0003; font-size: .8rem; line-height: 1.5;
  text-align: left; white-space: normal;
}
.mley-pdf-sync-menu p { margin: 8px 0; }
.mley-pdf-sync-menu button { display: block; width: 100%; min-height: 40px; margin: 7px 0 0; text-align: left; white-space: normal; }
.mley-pdf-sync-menu button:disabled { opacity: .6; cursor: not-allowed; }
.mley-pdf-sync-choices { border-top: 1px solid #a0adb755; padding-top: 5px; margin-top: 10px; }
.mley-pdf-sync-notice { font-size: .72rem; opacity: .85; }
.mley-pdf-sync-highlight { outline: 3px solid #20877e !important; outline-offset: 4px; scroll-margin-top: 100px; }
.mley-pdf-sync-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mley-pdf-sync-return-note { padding: 10px 14px; border-left: 3px solid #20877e; margin: 12px 0; font-size: .85rem; }
[data-theme="dark"] .mley-pdf-sync-menu { background: #233440; color: #e1e9ee; border-color: #657985; box-shadow: 0 10px 30px #0008; }
@media (max-width: 600px) { .mley-pdf-sync-label { display: none; } #mley-pdf-sync-toggle { min-width: 36px; justify-content: center; } }
@media (pointer: coarse) { #mley-pdf-sync-toggle { min-width: 44px; min-height: 44px; } }
