/* Both tools use the same embedded, read-only table and detail dialog. */
.bank-preview { min-width: 0 }
.bank-preview [hidden] { display: none !important }
.bp-bank-strip { margin-bottom: 22px }
.bp-bank-strip .bank-selector label { display: grid; gap: 4px; color: var(--muted); font-size: 12px }
.bp-bank-strip select { min-width: 220px; max-width: 100%; min-height: 40px; font-size: 15px; font-weight: 600; border: 1px solid var(--border); border-radius: 10px; background-color: #faf8ff; padding: 8px 34px 8px 12px }
.bp-content { overflow: hidden }
.bp-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px 12px }
.bp-toolbar h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 }
.bp-search-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 12px 24px 20px }
.bp-search-row .search-field { width: min(100%, 440px); display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 11px; min-height: 40px; padding: 0 12px; background: #fff; color: #9483c0 }
.bp-search-row input { min-width: 0; width: 100%; border: 0; background: transparent; padding: 10px 0; font: inherit; font-size: 13px; outline: none }
.bp-search-row .search-field:focus-within { border-color: #bba9e4; box-shadow: 0 0 0 3px #9175ce10 }
.bp-result-count { font-size: 12px; color: var(--muted) }
.bp-table-wrap { width: 100% }
.bp-content table { width: 100%; border-collapse: collapse; table-layout: fixed }
.bp-content th { padding: 13px 16px; background: #faf8ff; color: var(--muted); text-align: left; font-size: 12px; font-weight: 500; border-block: 1px solid var(--border) }
.bp-content td { padding: 17px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; overflow-wrap: anywhere; font-size: 13px }
.bp-content tr:last-child td { border-bottom: 0 }
.bp-content tbody tr:hover { background: #fdfcff }
.bp-content .bp-index { width: 56px; padding-left: 24px; color: #a4a6b8; font-size: 12px; font-variant-numeric: tabular-nums }
.bp-content .bp-meta-column { width: 112px }
.bp-content .bp-actions { width: 82px; text-align: center }
.bp-question { border: 0; padding: 0; background: transparent; font: inherit; color: var(--text, #353149); text-align: left; cursor: pointer; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.bp-question:hover { color: var(--accent) }
.bp-answer-summary { color: var(--muted); margin: 5px 0 0; line-height: 1.6; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.bp-date { color: var(--muted); white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums }
.bank-preview .tag { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #f2ecfc; color: #8065b8; font-size: 12px }
.bp-mobile-meta { display: none }
.bp-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted) }
.bp-pagination > div { display: flex; align-items: center; gap: 8px }
.bp-pagination .button { min-height: 32px; padding: 5px 10px; font-size: 12px }
.bp-pagination input { width: 43px; min-height: 32px; text-align: center; border: 1px solid var(--border); border-radius: 7px; background: #faf8ff; color: inherit }
.bp-empty { text-align: center; padding: 44px 20px !important; color: var(--muted) }
.bp-empty strong { font-weight: 500; font-size: 14px }
.bp-empty p { font-size: 12px; margin: 8px 0 }
.bp-error { margin: 0 24px 18px; padding: 12px; background: #fff1f3; color: #a23b50; border-radius: 8px; font-size: 13px }
.bp-dialog { width: min(720px, calc(100% - 32px)); max-height: min(86dvh, 850px); padding: 0; border: 1px solid var(--border); border-radius: 18px; color: var(--text, #353149); box-shadow: 0 24px 90px #28203630 }
.bp-dialog::backdrop { background: #24203950; backdrop-filter: blur(3px) }
.bp-dialog > header { display: flex; justify-content: space-between; align-items: center; padding: 17px 24px; border-bottom: 1px solid var(--border) }
.bp-dialog h2 { margin: 0; font-size: 18px }
.bp-dialog article { overflow: auto; max-height: 60dvh; padding: 24px }
.bp-detail-meta { display: flex; flex-wrap: wrap; gap: 8px }
.bp-detail-stem { font-size: 16px; line-height: 1.8; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; margin: 18px 0 22px }
.bp-dialog section { margin-top: 22px }
.bp-dialog h3 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 500 }
.bp-dialog section p { margin: 0; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere }
.bp-detail-options { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0 }
.bp-detail-options li { display: flex; gap: 12px; line-height: 1.8; font-size: 14px; overflow-wrap: anywhere }
.bp-detail-options li > :first-child { color: var(--muted); flex: none }
.bp-detail-id { margin: 24px 0 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere }
.bp-dialog > footer { display: flex; align-items: center; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border) }
.bp-dialog footer > span { margin-right: auto; font-size: 12px; color: var(--muted) }
.bp-dialog:focus { outline: none }
.bank-preview :is(button, input, select, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
@media (max-width: 700px) {
  .bp-bank-strip { margin-bottom: 16px }
  .bp-bank-strip .bank-selector { min-width: 0; width: 100% }
  .bp-bank-strip label { min-width: 0; flex: 1 }
  .bp-bank-strip select { width: 100%; min-width: 0 }
  .bp-toolbar { padding: 18px 16px 8px; gap: 10px }
  .bp-toolbar h2 { font-size: 15px; gap: 6px }
  .bp-toolbar .button { font-size: 12px; padding: 8px 10px }
  .bp-search-row { padding: 10px 16px 16px }
  .bp-search-row .search-field { width: 100% }
  .bp-content .bp-meta-column { display: none }
  .bp-content .bp-index { width: 39px; padding-left: 12px; padding-right: 5px }
  .bp-content .bp-actions { width: 49px; padding-inline: 4px }
  .bp-content td { padding: 15px 9px }
  .bp-content th { padding: 11px 9px }
  .bp-mobile-meta { display: flex; gap: 10px; flex-wrap: wrap; color: #9890aa; font-size: 11px; margin-top: 8px }
  .bp-pagination { padding: 14px 12px; gap: 12px }
  .bp-pagination > div { gap: 5px }
  .bp-pagination .button { font-size: 11px; padding: 5px 7px }
  .bp-dialog > header, .bp-dialog > footer { padding: 14px 16px }
  .bp-dialog article { padding: 18px 16px }
  .bp-error { margin-inline: 16px }
}
