.bb-embed-reader {
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 8px;
    overflow: hidden;
    font-family: inherit;
    background: #fff;
    max-height: var(--embed-height, none);
    display: flex;
    flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */
.bb-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: #fff;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bb-embed-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bb-embed-nav button {
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    color: #555;
    transition: background 0.1s, border-color 0.1s;
}

.bb-embed-nav button:hover:not(:disabled) {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.25);
}

.bb-embed-nav button:disabled {
    opacity: 0.25;
    cursor: default;
}

.bb-embed-ref {
    font-size: 14px;
    font-weight: 600;
    color: #1a1512;
    white-space: nowrap;
}

.bb-embed-version {
    display: flex;
    gap: 4px;
}

.bb-embed-vbtn {
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 4px 9px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #888;
    transition: all 0.12s;
}

.bb-embed-vbtn.active {
    background: var(--bb-embed-accent, #9e7640);
    border-color: var(--bb-embed-accent, #9e7640);
    color: #fff;
    box-shadow: 0 1px 3px rgba(158,118,64,0.3);
}

.bb-embed-vbtn:hover:not(.active) {
    border-color: #aaa;
    color: #333;
}

/* ── Body ────────────────────────────────────────────────────── */
.bb-embed-body {
    flex: 1;
    overflow-y: var(--embed-overflow, visible);
    padding: 20px 24px 12px;
}

.bb-embed-verse {
    margin: 0 0 0.45rem;
    font-size: 1.0125rem;
    line-height: 1.8;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 3px;
    padding: 1px 4px;
    max-width: 68ch;
    transition: background 0.1s;
}

.bb-embed-verse:hover {
    background: rgba(158,118,64,0.07);
}

.bb-embed-verse.bb-embed-verse-highlight {
    background: var(--bb-embed-accent-light, rgba(158,118,64,0.12));
    border-left: 2px solid var(--bb-embed-accent, #9e7640);
    border-radius: 0 3px 3px 0;
    padding-left: 10px;
}

.bb-embed-vnum {
    font-size: 0.62em;
    vertical-align: super;
    margin-right: 0.25em;
    color: var(--bb-embed-accent, #9e7640);
    font-style: normal;
    font-family: sans-serif;
    font-weight: 600;
}

.bb-embed-verse-absent {
    margin: 0 0 0.45rem;
    font-size: 1.0125rem;
    line-height: 1.8;
    color: #aaa;
    padding: 1px 4px;
    max-width: 68ch;
}

.bb-embed-loading,
.bb-embed-empty {
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    padding: 8px 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.bb-embed-footer {
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 10px 24px;
    background: #fff;
    flex-shrink: 0;
    text-align: right;
}

.bb-embed-open {
    font-size: 11.5px;
    color: #aaa;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.bb-embed-open:hover { color: var(--bb-embed-accent, #9e7640); }

/* ── Fixed bottom drawer ─────────────────────────────────────── */
.bb-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,0.25);
}

.bb-drawer-backdrop.bb-drawer-backdrop-open {
    display: block;
}

.bb-xref-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 700px;
    margin: 0 auto;
    z-index: 99999;
    background: #faf8f3;
    border-top: 1px solid rgba(0,0,0,0.10);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 55vh;
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

.bb-xref-drawer.bb-drawer-open {
    transform: translateY(0);
}

.bb-drawer-handle {
    width: 36px;
    height: 4px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.bb-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.bb-drawer-ref {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--bb-embed-accent, #9e7640);
}

.bb-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #bbb;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.bb-drawer-close:hover { color: #555; }

.bb-drawer-body {
    overflow-y: auto;
    padding: 12px 20px;
    flex: 1;
}

.bb-drawer-item {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    max-width: 60ch;
}

.bb-drawer-item:last-child { border-bottom: none; }

.bb-drawer-itemref {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
}

.bb-drawer-snip {
    font-size: 13.5px;
    color: #444;
    line-height: 1.55;
}

a.bb-drawer-item:hover .bb-drawer-itemref {
    color: var(--bb-embed-accent, #9e7640);
}

.bb-drawer-footer {
    padding: 10px 20px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.bb-drawer-link {
    font-size: 12.5px;
    color: var(--bb-embed-accent, #9e7640);
    text-decoration: none;
    font-weight: 500;
}

.bb-drawer-link:hover { text-decoration: underline; }

.bb-drawer-loading,
.bb-drawer-empty {
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    padding: 4px 0;
}

