#bank-profiles { max-width: 1440px; margin: auto; }
body:has(#bank-profiles) .diagnostics-nav { overflow-x: auto; white-space: nowrap; }
body:has(#bank-profiles) .diagnostics-nav > * { flex-shrink: 0; }
#bank-profiles { min-width: 0; overflow-wrap: anywhere; }
.bank-resource-link { color: #174b63; text-decoration: underline; overflow-wrap: anywhere; }
.bank-resource-link:focus-visible { outline: 3px solid #6fb8da; outline-offset: 2px; }
#bank-profiles button, .bank-dialog button { padding: .6rem .9rem; border: 1px solid #d2dae4; background: white; color: #23354b; border-radius: .5rem; cursor: pointer; font: inherit; }
#bank-profiles button:disabled, .bank-dialog button:disabled { opacity: .5; cursor: default; }
#bank-profiles .bank-primary, .bank-dialog .bank-primary { background: #174b63; color: white; border-color: #174b63; }
.bank-toolbar { display: flex; align-items: center; gap: 1rem; justify-content: space-between; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.bank-toolbar h2 { margin: .3rem 0; }
.bank-toolbar input { flex: 1; max-width: 32rem; }
.bank-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
#bank-profiles .bank-directory-card { text-align: left; padding: 1.4rem; display: grid; grid-template-columns: 44px 1fr; gap: .8rem; align-items: center; }
.bank-directory-card img { width: 40px; height: 40px; object-fit: contain; }
.bank-directory-card small { grid-column: 1/-1; color: #526478; }
.bank-monogram { display: grid; place-items: center; width: 40px; height: 40px; background: #eaf1f6; color: #174b63; border-radius: .7rem; font-size: 1.3rem; }
.bank-badge { display: inline-block; padding: .25rem .6rem; border-radius: 2rem; font-size: .78rem; font-weight: 650; background: #edf0f5; color: #536274; }
.bank-status-published { background: #e3f4eb; color: #1c6543; }
.bank-status-draft { background: #fff0cf; color: #75540f; }
.bank-tabs { display: flex; gap: .5rem; border-bottom: 1px solid #d2dae4; padding-bottom: .7rem; overflow-x: auto; }
#bank-profiles .bank-tabs .active { background: #174b63; color: white; }
.bank-tab-content { padding: 1.5rem 0; }
.bank-form { display: grid; gap: 1.1rem; max-width: 850px; }
.bank-field { display: grid; gap: .4rem; color: #23354b; font-size: .9rem; }
.bank-field span { font-weight: 600; }
.bank-form input, .bank-form select, .bank-form textarea, .bank-toolbar input, .bank-toolbar select { border: 1px solid #cbd5e1; border-radius: .45rem; padding: .7rem; font: inherit; background: white; color: #172f46; min-width: 0; width: 100%; box-sizing: border-box; }
.bank-form textarea { resize: vertical; }
.bank-form input:focus-visible, .bank-form textarea:focus-visible, #bank-profiles button:focus-visible { outline: 3px solid #6fb8da; outline-offset: 2px; }
.bank-drop { display: grid; gap: .6rem; padding: 1rem; border: 2px dashed #b4c8d6; border-radius: .7rem; background: #f7fafc; }
.bank-brand-preview { width: 80px; height: 80px; object-fit: contain; }
.bank-brand-preview[hidden] { display: none; }
.bank-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.bank-table-scroll { overflow-x: auto; }
.bank-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bank-table th, .bank-table td { text-align: left; padding: 1rem .7rem; border-bottom: 1px solid #e0e7ef; vertical-align: top; }
.bank-table th { color: #526478; font-size: .8rem; background: #f5f8fa; }
.bank-document { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid #e0e7ef; flex-wrap: wrap; }
.bank-document h3 { margin: 0; }
.bank-muted, .bank-empty { color: #526478; line-height: 1.6; }
.bank-empty { padding: 2rem; text-align: center; }
.bank-error { padding: 1rem; background: #fff0f0; color: #9b2626; border-radius: .5rem; overflow-wrap: anywhere; }
.bank-dialog { width: min(920px, 92vw); max-height: 88vh; overflow: auto; border: 1px solid #cbd5e1; border-radius: 1rem; padding: 1.5rem; color: #172f46; }
.bank-dialog::backdrop { background: #102c4566; }
.bank-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bank-dialog h2 { margin: 0; }
.bank-pdf { width: 100%; height: 65vh; border: 0; }
.bank-link-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: .4rem; margin-bottom: .6rem; }
.bank-history { border-bottom: 1px solid #d2dae4; padding: 1rem 0; }
.bank-history summary { cursor: pointer; }
.bank-diff, .bank-diff-pair pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: .8rem; font-size: .8rem; background: #f5f8fa; max-height: 24rem; overflow: auto; }
.bank-diff-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.bank-diff-pair .bank-before { background: #fff0ef; }
.bank-diff-pair .bank-after { background: #eaf8ee; }
@media(max-width: 680px) { .bank-link-row, .bank-diff-pair { grid-template-columns: 1fr; } .bank-dialog { padding: 1rem; } .bank-tabs { gap: .2rem; } }
.bank-multiple { display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; border:1px solid #cbd5e1; border-radius:.5rem; padding:.75rem; }
.bank-multiple label { display:inline-flex; align-items:center; gap:.4rem; }
.bank-multiple input { width:auto; }
