/* New Hope 7 Bible Keywords v4.5.0 */
.nh7-keyword-wrap{display:grid;gap:14px}
.nh7-keyword-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.nh7-keyword-count{font-size:.86rem;color:var(--muted);font-weight:800}
.nh7-keyword-search{width:100%;box-sizing:border-box}
.nh7-keyword-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px}
.nh7-keyword-btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);font:inherit;font-weight:800;text-align:start;cursor:pointer}
.nh7-keyword-btn small{font-size:.72rem;color:var(--muted);font-weight:700;white-space:nowrap}
.nh7-keyword-btn:active{transform:translateY(1px)}
.nh7-keyword-empty{padding:16px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}
.nh7-bible-search-summary{margin:0 0 10px;color:var(--muted);font-size:.88rem;font-weight:750}
.nh7-bible-search-results{display:grid;gap:8px}
html[data-nh7-theme="dark"] .nh7-keyword-btn{background:#0f1d2e;color:var(--nh7-dark-ink);border-color:var(--nh7-dark-line)}
html[data-nh7-theme="dark"] .nh7-keyword-btn small{color:var(--nh7-dark-muted)}
@media(max-width:480px){.nh7-keyword-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nh7-keyword-btn{padding:9px 10px;min-height:44px}}
/* v4.5.1: complete pagination, accessible focus and compact Bible controls. */
.nh7-keyword-btn span{min-width:0;overflow-wrap:anywhere}
.nh7-keyword-btn:focus-visible,#bibleKeywordMore:focus-visible,#bibleSearchMore:focus-visible{outline:3px solid var(--brand,#2563eb);outline-offset:2px}
#bibleKeywordMore[hidden],#bibleSearchMore[hidden]{display:none!important}
.reader .verse-tools{gap:4px;flex-wrap:wrap;max-width:100%;box-sizing:border-box}
.reader .verse-tools>.secondary-btn{padding:6px 9px;min-height:40px;font-size:.82rem}
.reader .nh7-bible-cancel{min-width:40px;font-size:1.25rem!important}

/* v451 compact toolbar: bounded width, no tall shrink-to-fit column. */
.reader .reader-verse .verse-tools:not(.hidden){width:max-content;max-width:calc(100vw - 24px)!important;padding:6px;gap:4px;flex-wrap:wrap;box-sizing:border-box}
.reader .verse-tools>.secondary-btn,.reader .verse-tools>.highlight-control>.secondary-btn{padding:6px 7px;min-height:38px;font-size:.76rem;line-height:1.3}
.reader .nh7-bible-cancel{min-width:34px}
