/* prompts floating above the toolbar: bordered and bold, so they stand out from the text */
#webbook-note-phrase-btn,
#webbook-back-to-text {
    background: var(--webbook-chrome-bg);
    color: var(--webbook-chrome-fg);
    border: 2px solid var(--webbook-chrome-fg);
    border-radius: 2rem;
    min-height: 2.75rem;
    padding: .5rem 1.25rem;
    font-size: var(--size-step-0);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 40%);
}
/* the key that does the same (showShortcutHint), for keyboards only */
.webbook-shortcut-hint {
    padding: .05rem .4rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-family: inherit;
    font-size: .8em;
    font-weight: 400;
}
@media (any-hover: none) {
    .webbook-shortcut-hint {
        display: none;
    }
}
#webbook-note-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#webbook-back-to-text { flex: 0 0 auto; }
#webbook-note-menu:popover-open { padding: .5rem; }
#webbook-note-menu h2 { font-size: 1rem; margin: .25rem .5rem .5rem; }
#webbook-note-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
#webbook-note-menu button { width: 100%; text-align: start; padding: .5rem .75rem; }
.webbook-note-menu-label,
.webbook-note-menu-context { display: block; }
.webbook-note-menu-label { font-weight: 700; }
.webbook-note-menu-context { margin-block-start: .15rem; font-size: .9em; font-weight: 400; }
/* the reader's Back to text replaces a book's own back links while it shows */
.webbook-note-return main :is([role="doc-backlink"], .epubtype_backlink) { display: none; }
