/* ═══════════════════════════════════════════════════════════════════
   Community Borrow — browse, listing detail, My Library
   ═══════════════════════════════════════════════════════════════════ */

.bb-borrow-page { padding: 40px 0 80px; background: #FAF7F2; min-height: 80vh; }
.bb-borrow-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.bb-borrow-crumbs { font-size: 13px; color: var(--bb-muted, #64748B); margin-bottom: 20px; }
.bb-borrow-crumbs a { color: inherit; text-decoration: none; }

.bb-borrow-hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.bb-borrow-hero h1 { font-family: var(--bb-font-serif, Georgia, serif); font-size: clamp(26px, 4vw, 36px); color: var(--bb-text, #0F172A); margin: 4px 0 6px; }
.bb-borrow-hero p { color: var(--bb-muted, #64748B); font-size: 15px; margin: 0; max-width: 640px; line-height: 1.55; }
.bb-borrow-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bb-crimson, #601320); }

/* :is(a, button) + two classes outranks the theme's ".bb-redesign button[type=submit]" rule */
:is(a, button).bb-borrow-btn.bb-borrow-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--bb-crimson, #601320); color: #fff !important; border: 1px solid var(--bb-crimson, #601320); padding: 11px 20px; border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: normal; text-transform: none; line-height: 1.2; text-decoration: none; cursor: pointer; }
:is(a, button).bb-borrow-btn.bb-borrow-btn:hover { background: #4A0E18; }
:is(a, button).bb-borrow-btn.bb-borrow-btn[disabled] { background: #94A3B8; border-color: #94A3B8; cursor: not-allowed; }
:is(a, button).bb-borrow-btn.bb-borrow-btn--ghost { background: #fff; color: var(--bb-crimson, #601320) !important; border-color: #CBD5E1; }
:is(a, button).bb-borrow-btn.bb-borrow-btn--ghost:hover { background: #F8FAFC; }
:is(a, button).bb-borrow-btn.bb-borrow-btn--danger { color: #B91C1C !important; }
:is(a, button).bb-borrow-btn.bb-borrow-btn--sm { padding: 6px 12px; font-size: 12.5px; }

/* Filters */
.bb-borrow-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 12px; padding: 14px; margin-bottom: 20px; }
.bb-borrow-filters input[type="search"], .bb-borrow-filters select { width: 100%; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 14px; background: #fff; color: var(--bb-text, #0F172A); }
.bb-borrow-filters label.bb-borrow-check { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--bb-text, #0F172A); white-space: nowrap; }
@media (max-width: 860px) { .bb-borrow-filters { grid-template-columns: 1fr 1fr; } .bb-borrow-filters > :first-child { grid-column: 1 / -1; } }

.bb-borrow-count { font-size: 13px; color: var(--bb-muted, #64748B); margin: 0 0 14px; }

/* Grid of listing cards */
.bb-borrow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.bb-borrow-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.bb-borrow-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.bb-borrow-card__img { aspect-ratio: 3 / 4; background: #F1F5F9; position: relative; }
.bb-borrow-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-borrow-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bb-borrow-card__title { font-weight: 800; font-size: 15px; color: var(--bb-text, #0F172A); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-borrow-card__author { font-size: 13px; color: var(--bb-muted, #64748B); }
.bb-borrow-card__meta { font-size: 12px; color: var(--bb-muted, #64748B); margin-top: auto; padding-top: 8px; }
.bb-borrow-card__price { font-weight: 800; color: var(--bb-crimson, #601320); font-size: 14px; }

.bb-borrow-badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.bb-borrow-badge--active { background: #DCFCE7; color: #166534; }
.bb-borrow-badge--lent { background: #FEF3C7; color: #92400E; }
.bb-borrow-badge--paused { background: #E2E8F0; color: #334155; }
.bb-borrow-badge--blocked { background: #FEE2E2; color: #991B1B; }
.bb-borrow-card__img .bb-borrow-badge { position: absolute; top: 10px; left: 10px; }

.bb-borrow-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #CBD5E1; border-radius: 12px; color: var(--bb-muted, #64748B); }
.bb-borrow-empty p { margin: 0 0 14px; font-size: 14px; }

.bb-borrow-pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.bb-borrow-pager a, .bb-borrow-pager span { padding: 8px 14px; border-radius: 8px; border: 1px solid #CBD5E1; background: #fff; font-size: 13px; font-weight: 700; color: var(--bb-text, #0F172A); text-decoration: none; }
.bb-borrow-pager span { color: var(--bb-muted, #64748B); }

.bb-borrow-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 40px; }
.bb-borrow-how div { background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 12px; padding: 16px; font-size: 13.5px; color: var(--bb-muted, #64748B); line-height: 1.5; }
.bb-borrow-how strong { display: block; color: var(--bb-text, #0F172A); font-size: 14px; margin-bottom: 4px; }

/* Listing detail */
.bb-borrow-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
@media (max-width: 860px) { .bb-borrow-detail { grid-template-columns: 1fr; } }
.bb-borrow-gallery__main { aspect-ratio: 3 / 4; background: #F1F5F9; border-radius: 12px; overflow: hidden; border: 1px solid var(--bb-border, #E2E8F0); }
.bb-borrow-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.bb-borrow-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bb-borrow-gallery__thumbs button { width: 64px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #F1F5F9; }
.bb-borrow-gallery__thumbs button.is-active { border-color: var(--bb-crimson, #601320); }
.bb-borrow-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bb-borrow-panel { background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 12px; padding: clamp(18px, 3vw, 28px); }
.bb-borrow-panel h1 { font-family: var(--bb-font-serif, Georgia, serif); font-size: clamp(24px, 3.4vw, 32px); margin: 8px 0 4px; color: var(--bb-text, #0F172A); }
.bb-borrow-panel .bb-borrow-author { color: var(--bb-muted, #64748B); font-size: 15px; margin: 0 0 16px; }
.bb-borrow-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0 0 20px; }
.bb-borrow-facts dt { color: var(--bb-muted, #64748B); }
.bb-borrow-facts dd { margin: 0; color: var(--bb-text, #0F172A); font-weight: 600; }
.bb-borrow-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-muted, #64748B); margin: 22px 0 10px; }
.bb-borrow-options { display: grid; gap: 8px; }
.bb-borrow-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #CBD5E1; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.bb-borrow-option strong { color: var(--bb-crimson, #601320); }
.bb-borrow-note { font-size: 12.5px; color: var(--bb-muted, #64748B); line-height: 1.5; margin: 12px 0 0; }
.bb-borrow-callout { background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; border-radius: 8px; padding: 12px 14px; font-size: 13.5px; margin-top: 18px; line-height: 1.5; }
.bb-borrow-desc { white-space: pre-line; font-size: 14px; line-height: 1.6; color: var(--bb-text, #0F172A); }

/* Account: shared layout (same as the other account pages) */
.bb-account-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.bb-account-nav-btn { transition: all .15s ease; }
.bb-account-nav-btn:hover { background: #F1F5F9 !important; color: var(--bb-crimson, #601320) !important; }
@media (max-width: 860px) {
  .bb-account-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
  .bb-account-sidebar { position: static !important; }
}
.bb-borrow-account { background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 12px; padding: clamp(20px, 3.5vw, 32px); box-shadow: 0 4px 12px rgba(0,0,0,.03); min-width: 0; }
.bb-borrow-account__head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--bb-border, #E2E8F0); }
.bb-borrow-account__head h1 { font-family: var(--bb-font-serif, Georgia, serif); font-size: 24px; color: var(--bb-text, #0F172A); margin: 0 0 4px; }
.bb-borrow-account__head p { color: var(--bb-muted, #64748B); font-size: 13.5px; margin: 0; }

.bb-borrow-flash { border-radius: 8px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.bb-borrow-flash--ok { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.bb-borrow-flash--warn { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.bb-borrow-flash--error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.bb-borrow-flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }

/* My Library rows */
.bb-library-list { display: grid; gap: 12px; }
.bb-library-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 10px; padding: 12px; }
.bb-library-row img { width: 64px; height: 84px; object-fit: cover; border-radius: 6px; background: #F1F5F9; }
.bb-library-row__title { font-weight: 800; color: var(--bb-text, #0F172A); text-decoration: none; }
.bb-library-row__meta { font-size: 12.5px; color: var(--bb-muted, #64748B); margin-top: 4px; }
.bb-library-row__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bb-library-row__actions form { margin: 0; }
@media (max-width: 600px) {
  .bb-library-row { grid-template-columns: 56px 1fr; }
  .bb-library-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Listing form */
.bb-borrow-form fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.bb-borrow-form legend { font-family: var(--bb-font-serif, Georgia, serif); font-size: 18px; color: var(--bb-text, #0F172A); padding: 0 0 8px; margin-bottom: 14px; border-bottom: 1px solid var(--bb-border, #E2E8F0); width: 100%; }
.bb-borrow-form .bb-field { margin-bottom: 14px; }
.bb-borrow-form .bb-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: var(--bb-text, #0F172A); }
.bb-borrow-form input[type="text"], .bb-borrow-form input[type="tel"], .bb-borrow-form input[type="number"], .bb-borrow-form select, .bb-borrow-form textarea { width: 100%; padding: 10px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 14px; background: #fff; color: var(--bb-text, #0F172A); font-family: inherit; }
.bb-borrow-form .bb-hint { font-size: 12px; color: var(--bb-muted, #64748B); margin-top: 5px; line-height: 1.45; }
.bb-borrow-form .bb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bb-borrow-form .bb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 600px) { .bb-borrow-form .bb-grid-2, .bb-borrow-form .bb-grid-3 { grid-template-columns: 1fr; } }
.bb-borrow-form .bb-checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 8px; color: var(--bb-text, #0F172A); }
.bb-borrow-form .bb-private { display: inline-block; font-size: 10px; font-weight: 800; background: #E0E7FF; color: #3730A3; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }
.bb-photo-keep { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.bb-photo-keep label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--bb-muted, #64748B); }
.bb-photo-keep img { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid #CBD5E1; }

/* Request form on the listing page */
.bb-borrow-request { margin-top: 6px; }
.bb-borrow-form .bb-borrow-choices label.bb-borrow-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; margin: 0; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: normal; color: var(--bb-text, #0F172A); }
.bb-borrow-form .bb-borrow-choices label.bb-borrow-option > span:last-child { color: var(--bb-muted, #64748B); font-size: 13px; text-align: right; }
.bb-borrow-form .bb-borrow-choices label.bb-borrow-option > strong { color: var(--bb-crimson, #601320); }
.bb-borrow-choices label.bb-borrow-option:has(input:checked) { border-color: var(--bb-crimson, #601320); background: rgba(96, 19, 32, .04); }
.bb-borrow-choices input[type="radio"] { margin-right: 6px; accent-color: var(--bb-crimson, #601320); }
.bb-borrow-summary { margin-top: 16px; border-top: 1px dashed #CBD5E1; padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.bb-borrow-summary > div { display: flex; justify-content: space-between; gap: 10px; }
.bb-borrow-summary > div > span:first-child { color: var(--bb-muted, #64748B); }

/* Request cards (My Library, My Borrowings) */
.bb-borrow-subhead { font-family: var(--bb-font-serif, Georgia, serif); font-size: 18px; color: var(--bb-text, #0F172A); margin: 26px 0 12px; }
.bb-borrow-subhead:first-of-type { margin-top: 0; }
.bb-borrow-badge--requested { background: #DBEAFE; color: #1E40AF; }
.bb-borrow-badge--approved { background: #FEF3C7; color: #92400E; }
.bb-borrow-badge--payment_submitted { background: #E0E7FF; color: #3730A3; }
.bb-borrow-badge--paid { background: #DCFCE7; color: #166534; }
.bb-borrow-badge--declined, .bb-borrow-badge--expired, .bb-borrow-badge--cancelled { background: #F1F5F9; color: #475569; }

/* Request detail */
.bb-request-top { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; margin-bottom: 18px; }
.bb-request-top img { width: 84px; height: 112px; object-fit: cover; border-radius: 8px; background: #F1F5F9; }
.bb-request-top h2 { font-family: var(--bb-font-serif, Georgia, serif); font-size: 20px; margin: 6px 0 4px; color: var(--bb-text, #0F172A); }
.bb-request-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bb-border, #E2E8F0); }
.bb-request-actions form { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bb-request-actions input[type="text"] { padding: 9px 10px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 13.5px; min-width: 220px; }
.bb-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--bb-border, #E2E8F0); }
.bb-timeline li { position: relative; padding: 0 0 14px 16px; font-size: 13.5px; color: var(--bb-text, #0F172A); }
.bb-timeline li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bb-crimson, #601320); }
.bb-timeline time { display: block; font-size: 12px; color: var(--bb-muted, #64748B); }

/* Phase 4: loan states, codes, reviews */
.bb-borrow-badge--active { background: #DCFCE7; color: #166534; }
.bb-borrow-badge--returned { background: #E0F2FE; color: #075985; }
.bb-borrow-badge--disputed, .bb-borrow-badge--overdue { background: #FEE2E2; color: #991B1B; }
.bb-borrow-badge--completed { background: #F1F5F9; color: #334155; }
.bb-borrow-code { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 14px; padding: 14px 18px; border: 2px dashed var(--bb-crimson, #601320); border-radius: 10px; background: #fff; }
.bb-borrow-code span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-muted, #64748B); }
.bb-borrow-code strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 30px; letter-spacing: .3em; color: var(--bb-crimson, #601320); }
.bb-borrow-code small { font-size: 12.5px; color: var(--bb-muted, #64748B); }
.bb-borrow-dispute { margin-top: 16px; }
.bb-borrow-dispute summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: #B91C1C; }
.bb-stars { color: #D97706; letter-spacing: .05em; }
.bb-borrow-review { font-size: 14px; margin-bottom: 8px; color: var(--bb-text, #0F172A); }
.bb-star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.bb-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bb-borrow-form .bb-star-input label { display: inline; margin: 0; font-size: 28px; line-height: 1; color: #CBD5E1; cursor: pointer; text-transform: none; letter-spacing: 0; }
.bb-borrow-form .bb-star-input label:hover, .bb-borrow-form .bb-star-input label:hover ~ label,
.bb-borrow-form .bb-star-input input:checked ~ label { color: #D97706; }
.bb-star-input input:focus-visible + label { outline: 2px solid var(--bb-crimson, #601320); outline-offset: 2px; }
.bb-borrow-report { margin-top: 22px; font-size: 13px; }
.bb-borrow-report summary { cursor: pointer; color: var(--bb-muted, #64748B); }

/* Dark theme */
body.bb-dark .bb-borrow-page, body[data-bb-theme="dark"] .bb-borrow-page { background: #151011; }
body.bb-dark :is(.bb-borrow-filters, .bb-borrow-card, .bb-borrow-panel, .bb-borrow-empty, .bb-borrow-how div, .bb-borrow-account, .bb-account-layout aside, .bb-borrow-pager a, .bb-borrow-pager span),
body[data-bb-theme="dark"] :is(.bb-borrow-filters, .bb-borrow-card, .bb-borrow-panel, .bb-borrow-empty, .bb-borrow-how div, .bb-borrow-account, .bb-account-layout aside, .bb-borrow-pager a, .bb-borrow-pager span) { background: #1C1516 !important; border-color: #2E2325 !important; color: #FFF8F0; }
body.bb-dark :is(.bb-borrow-filters input, .bb-borrow-filters select, .bb-borrow-form input, .bb-borrow-form select, .bb-borrow-form textarea),
body[data-bb-theme="dark"] :is(.bb-borrow-filters input, .bb-borrow-filters select, .bb-borrow-form input, .bb-borrow-form select, .bb-borrow-form textarea) { background: #151011; border-color: #3A2C2F; color: #FFF8F0; }
body.bb-dark :is(.bb-borrow-card__title, .bb-borrow-panel h1, .bb-borrow-facts dd, .bb-borrow-desc, .bb-library-row__title, .bb-borrow-account__head h1, .bb-borrow-hero h1, .bb-borrow-how strong),
body[data-bb-theme="dark"] :is(.bb-borrow-card__title, .bb-borrow-panel h1, .bb-borrow-facts dd, .bb-borrow-desc, .bb-library-row__title, .bb-borrow-account__head h1, .bb-borrow-hero h1, .bb-borrow-how strong) { color: #FFF8F0; }

/* Policy page and the "between readers" notice */
.bb-borrow-policy { max-width: 820px; background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 16px; padding: clamp(22px, 4vw, 44px); color: var(--bb-text, #0F172A); }
.bb-borrow-policy h1 { font-family: var(--bb-font-serif, Georgia, serif); font-size: clamp(26px, 4vw, 34px); margin: 6px 0 4px; }
.bb-borrow-policy h2 { font-family: var(--bb-font-serif, Georgia, serif); font-size: 19px; margin: 26px 0 8px; }
.bb-borrow-policy p, .bb-borrow-policy li { font-size: 15px; line-height: 1.7; color: #334155; }
.bb-borrow-policy ul { padding-left: 20px; margin: 0; }
.bb-borrow-policy li { margin-bottom: 6px; }
.bb-borrow-policy__updated { font-size: 13px !important; color: var(--bb-muted, #64748B) !important; margin: 0 0 18px; }
.bb-borrow-policy__summary { background: #FFF7ED; border: 1px solid #FED7AA; border-left: 4px solid var(--bb-crimson, #601320); border-radius: 10px; padding: 16px 18px; font-size: 15px; line-height: 1.65; color: #431407; }
.bb-borrow-policy__tips { background: #F8FAFC; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 12px; padding: 4px 20px 16px; margin-top: 28px; }
.bb-borrow-disclaimer { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-left: 4px solid var(--bb-crimson, #601320); border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 13.5px; line-height: 1.55; color: #334155; }
.bb-borrow-disclaimer i { color: var(--bb-crimson, #601320); margin-top: 3px; }
.bb-borrow-disclaimer a { color: var(--bb-crimson, #601320); font-weight: 700; }

/* Payment ProofMesh result shown to the owner */
.bb-proof { border-radius: 10px; padding: 12px 14px; margin: 10px 0; border: 1px solid; font-size: 13.5px; }
.bb-proof__head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.bb-proof__sub { margin: 4px 0 0; font-size: 13px; opacity: .9; }
.bb-proof__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.bb-proof__item { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; color: #334155; }
.bb-proof__item i { margin-top: 3px; width: 14px; text-align: center; }
.bb-proof__item--ok i { color: #15803D; }
.bb-proof__item--info i { color: #64748B; }
.bb-proof__item--warn i { color: #B45309; }
.bb-proof__item--danger i { color: #B91C1C; }
.bb-proof__item--danger { color: #991B1B; font-weight: 600; }
.bb-proof--pending { background: #F8FAFC; border-color: #CBD5E1; color: #334155; }
.bb-proof--clear { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.bb-proof--review { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.bb-proof--danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

.bb-borrow-policy h3 { font-size: 15.5px; margin: 16px 0 6px; color: var(--bb-text, #0F172A); }

/* My Library: lending earnings summary */
.bb-earnings { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.bb-earnings__item { background: #fff; border: 1px solid var(--bb-border, #E2E8F0); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.bb-earnings__item span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--bb-muted, #64748B); }
.bb-earnings__item strong { font-size: 20px; color: var(--bb-text, #0F172A); }
.bb-earnings__item--main { background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%); border-color: #BBF7D0; }
.bb-earnings__item--main strong { color: #166534; }
