.bank-panel .panel-head { flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.bank-panel p { margin: 7px 0 0; font-size: 13px; color: var(--muted, #607580); }
.bank-reconciliation-open { overflow: hidden; }
.bank-backdrop { z-index: 28; left: 0; width: 100vw; max-width: 100vw; }
.bank-dialog { width: min(1150px, calc(100vw - 28px)); max-width: calc(100vw - 28px); min-width: 0; }
.bank-dialog, .bank-dialog * { box-sizing: border-box; }
.bank-dialog [hidden] { display: none !important; }
.bank-dialog .modal-head h2 { min-width: 0; overflow-wrap: anywhere; }
.bank-dialog .modal-head > button { flex: 0 0 38px; }
.bank-dialog .modal-foot { align-items: center; gap: 14px; }
.bank-dialog .modal-foot > small { flex: 1; line-height: 1.7; color: #607580; }
.bank-body { display: grid; gap: 18px; min-width: 0; overflow-wrap: anywhere; }
.bank-intro { color: #536b79; line-height: 1.8; margin: 0; }
.bank-body h3 { font-size: 16px; margin: 4px 0 12px; }
.bank-body h4 { margin: 0 0 10px; font-size: 14px; }
.bank-body label { display: grid; gap: 7px; min-width: 0; font-size: 13px; color: #3d5968; }
.bank-body input:not([type="checkbox"]):not([type="radio"]), .bank-body select, .bank-body textarea { min-width: 0; max-width: 100%; width: 100%; }
.bank-body input[type="checkbox"], .bank-body input[type="radio"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #087c92; }
.bank-body small, .bank-body .muted { line-height: 1.7; color: #607580; }
.bank-body p { line-height: 1.7; }
.bank-message:empty { display: none; }
.bank-message, .bank-notice { padding: 12px 14px; border: 1px solid #cee1ec; border-radius: 9px; color: #245b75; background: #f2f8fc; font-size: 13px; line-height: 1.8; }
.bank-message p { margin: 0; }
.bank-message ul { margin: 8px 0 0; padding-left: 20px; max-height: 240px; overflow: auto; }
.bank-message.error { color: #98362b; border-color: #efcfc8; background: #fff5f3; }
.bank-message.success { color: #246047; border-color: #cce5d7; background: #eff9f3; }
.bank-message.warning, .bank-notice.warning { color: #805a24; border-color: #ead9b8; background: #fff9ee; }
.bank-pending { display: grid; gap: 10px; padding: 15px; border: 1px solid #ead9b8; border-radius: 10px; background: #fff9ee; }
.bank-pending p { margin: 0; font-size: 13px; }
.bank-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 5px; border: 1px solid #dce6eb; border-radius: 10px; background: #f1f6f8; }
.bank-tabs button { min-height: 42px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: #526b78; font: inherit; cursor: pointer; }
.bank-tabs button[aria-selected="true"] { color: #075c6e; background: white; box-shadow: 0 1px 4px #173a4b15; font-weight: 600; }
.bank-body button:focus-visible, .bank-body summary:focus-visible { outline: 2px solid #087c92; outline-offset: 2px; }
[data-bank-pane] { display: grid; gap: 16px; min-width: 0; }
.bank-file-row, .bank-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.bank-file-row > label, .bank-filters > label { flex: 1 1 210px; }
.bank-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bank-mapping { display: grid; gap: 16px; padding: 15px; border: 1px solid #dce6eb; border-radius: 10px; }
.bank-mapping > .bank-form-grid:first-child { grid-template-columns: 1fr 1fr; }
.bank-source-row { padding: 12px 0; }
.bank-source-row + .bank-source-row { border-top: 1px solid #e4ecf0; }
.bank-source-row dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 15px; margin-bottom: 0; }
.bank-source-row dt { color: #607580; font-size: 12px; }
.bank-source-row dd { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; }
.bank-summary, .bank-actions, .bank-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.bank-summary { padding: 13px 15px; border-radius: 8px; background: #edf4f9; color: #335b73; font-size: 13px; }
.bank-pagination { justify-content: flex-end; font-size: 13px; color: #607580; }
.bank-pagination button { min-height: 40px; }
.bank-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.bank-card { padding: 14px; border: 1px solid #dce6eb; border-radius: 10px; min-width: 0; overflow-wrap: anywhere; background: #fff; }
.bank-card.selected { border-color: #087c92; box-shadow: 0 0 0 1px #087c92; }
.bank-card-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.bank-card-heading > strong { font-size: 16px; }
.bank-card p { margin: 8px 0; font-size: 13px; }
.bank-card small { display: block; }
.bank-card .bank-actions { margin-top: 12px; }
.bank-badge { padding: 4px 7px; border-radius: 6px; background: #eef5f8; color: #456475; font-size: 12px; line-height: 1.5; }
.bank-badge.warning { background: #fff5df; color: #805a24; }
.bank-warning { color: #956321 !important; font-size: 13px; }
.bank-empty { grid-column: 1 / -1; padding: 20px 14px; border: 1px dashed #dce6eb; border-radius: 8px; background: #f7fafb; color: #607580; font-size: 13px; }
.bank-selection-card { display: grid; gap: 12px; padding: 16px; border: 1px solid #bed7e1; border-radius: 10px; background: #f9fcfd; scroll-margin-top: 65px; }
.bank-selection-card > p { margin: 0; font-size: 13px; }
.bank-body .bank-confirm { display: flex; align-items: flex-start; gap: 10px; padding: 12px; background: #f5f8fb; border: 1px solid #dce6eb; border-radius: 8px; line-height: 1.8; }
.bank-body .bank-confirm > span { flex: 1; min-width: 0; }
.bank-body .bank-candidate { display: flex; align-items: flex-start; gap: 10px; padding: 14px; margin-top: 10px; border: 1px solid #dce6eb; border-radius: 9px; background: #fff; cursor: pointer; }
.bank-candidate > span { flex: 1; min-width: 0; }
.bank-candidate p { margin: 7px 0; }
.bank-group-progress { position: sticky; top: 65px; z-index: 1; min-width: 0; }
.bank-group-progress .bank-summary { border: 1px solid #bed7e1; box-shadow: 0 3px 12px #173a4b0c; }
.bank-group-progress .text-button { margin-left: auto; }
.bank-selected-group { display: grid; gap: 12px; min-width: 0; }
.bank-selected-group > h4 { margin-bottom: 0; }
.bank-group-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.bank-group-members .bank-card { min-width: 0; }
.bank-group-history { padding: 10px; border: 1px solid #dce6eb; border-radius: 8px; background: #fff; }
.bank-group-history > .bank-group-members { margin-top: 10px; }
.bank-history-item + .bank-history-item { border-top: 1px solid #e4ecf0; padding-top: 12px; }
.bank-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.bank-comparison > article { min-width: 0; padding: 14px; border: 1px solid #dce6eb; border-radius: 8px; background: #fff; }
.bank-history { padding: 14px; border: 1px solid #dce6eb; border-radius: 9px; }
.bank-history summary { cursor: pointer; line-height: 1.8; font-weight: 600; }
.bank-history > :not(summary) { margin-top: 12px; }
.bank-history small { display: block; }
.bank-undo { display: grid; gap: 12px; }
.bank-backdrop [aria-busy="true"] { cursor: progress; }
@media (max-width: 700px) {
  .bank-backdrop { padding: 8px; }
  .bank-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .bank-dialog .modal-head, .bank-dialog .modal-foot, .bank-body { padding: 13px; }
  .bank-dialog .modal-head h2 { font-size: 18px; }
  .bank-dialog .modal-foot { flex-wrap: wrap; }
  .bank-dialog .modal-foot small { flex-basis: 100%; }
  .bank-form-grid, .bank-mapping > .bank-form-grid:first-child, .bank-cards, .bank-comparison, .bank-source-row dl, .bank-group-members { grid-template-columns: 1fr; }
  .bank-mapping, .bank-selection-card { padding: 12px; }
  .bank-tabs button { font-size: 13px; padding-inline: 4px; }
  .bank-actions button, .bank-file-row > button { flex: 1 1 140px; min-height: 42px; }
  .bank-file-row, .bank-filters { align-items: stretch; }
  .bank-filters > label { flex-basis: 100%; }
}
