.question-bank-page { background: #f6f9f2; color: #294238; }
.bank-main { padding: 34px 0 70px; }
.bank-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.bank-heading h1 { font-size: 34px; margin: 6px 0; }
.bank-heading p { color: #718077; margin: 0; }
.bank-heading-actions, .bank-detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.secondary-button { border: 1px solid #cddccd; background: #fff; color: #3f6f57; border-radius: 9px; padding: 10px 15px; font: inherit; font-weight: 650; cursor: pointer; }
.secondary-button:hover { background: #edf5e9; }
.bank-tabs { display: flex; gap: 10px; margin-bottom: 14px; }
.bank-tabs button { border: 1px solid #d7e3d6; background: #fff; color: #52685c; border-radius: 999px; padding: 11px 18px; font: 700 15px/1.2 inherit; cursor: pointer; }
.bank-tabs button.active { background: #3f785e; color: #fff; border-color: #3f785e; }
.bank-tabs span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; margin-left: 7px; border-radius: 99px; background: #edf4e9; color: #587061; }
.bank-tabs button.active span { background: #ffffff2b; color: #fff; }
.bank-help { padding: 16px 18px; margin-bottom: 18px; border: 1px solid #dce8d7; border-radius: 15px; background: #edf6e9; color: #52695d; line-height: 1.7; }
.bank-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.bank-workspace-main { display: grid; gap: 14px; min-width: 0; }
.bank-list-panel, .bank-detail-panel { background: #fff; border: 1px solid #e0e8dd; border-radius: 18px; box-shadow: 0 8px 30px #2e4b3310; }
.bank-import-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 20px; border: 1px solid #dce8d7; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px #2e4b330c; }
.bank-import-copy { min-width: 0; }
.bank-import-copy .eyebrow { margin: 0 0 2px; }
.bank-import-copy h2 { margin: 0; color: #315c46; font-size: 19px; }
.bank-import-copy > p:last-child { margin: 5px 0 0; color: #718077; font-size: 12px; line-height: 1.55; }
.bank-import-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.bank-list-panel { padding: 16px; position: sticky; top: 14px; }
.bank-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bank-panel-title h2 { margin: 0 0 12px; font-size: 19px; }
.bank-panel-title span { color: #809083; font-size: 12px; white-space: nowrap; }
.bank-list { display: grid; gap: 7px; }
.bank-list button { border: 1px solid transparent; background: #f4f7f0; border-radius: 11px; padding: 11px 12px; color: #405a4c; text-align: left; cursor: pointer; }
.bank-list button strong, .bank-list button span { display: block; }
.bank-list button span { margin-top: 3px; color: #849087; font-size: 11px; line-height: 1.45; }
.bank-list button.active { background: #e8f2e3; border-color: #c5dbc2; color: #315c46; }
.bank-list-empty { padding: 24px 8px; color: #7d8b81; text-align: center; font-size: 13px; }
.bank-detail-panel { min-height: 430px; padding: 24px; }
.bank-detail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; }
.bank-detail-header h2 { margin: 0; font-size: 26px; }
.bank-detail-header p { margin: 2px 0 0; color: #819087; font-size: 12px; }
.bank-table-scroll { overflow: auto; border: 1px solid #e3e9df; border-radius: 13px; }
.bank-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.bank-table th, .bank-table td { padding: 11px 12px; border-bottom: 1px solid #edf0e9; text-align: left; vertical-align: top; }
.bank-table th { background: #f5f8f3; color: #748277; font-size: 12px; white-space: nowrap; }
.bank-table td { color: #52645a; font-size: 13px; line-height: 1.55; }
.bank-table tr:last-child td { border-bottom: 0; }
.bank-empty { padding: 100px 20px; color: #718077; text-align: center; }
.bank-empty strong { display: block; color: #3a5848; font-size: 19px; }
.bank-empty p { margin: 8px auto; }
.bank-empty.compact { padding: 45px 20px; }
.bank-danger-zone { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e8ece5; color: #8b817c; font-size: 12px; }
.bank-danger-zone button { border: 1px solid #e8caca; background: #fff8f8; color: #a04a4a; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.bank-dialog { width: min(760px, calc(100vw - 28px)); border: 0; border-radius: 22px; padding: 28px; box-shadow: 0 25px 90px #1e3a2b42; }
.bank-dialog::backdrop { background: #1f332a80; }
.bank-dialog h2 { margin: 0 0 20px; }
.bank-dialog form { display: grid; gap: 15px; }
.bank-dialog label { display: grid; gap: 7px; color: #53665b; font-weight: 700; }
.bank-dialog input, .bank-dialog textarea { width: 100%; border: 1px solid #cadaca; border-radius: 11px; padding: 12px 13px; background: #fbfdf9; color: #2d4338; font: 15px/1.55 inherit; }
.bank-dialog textarea { min-height: 240px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.format-tip { margin: 0; color: #718077; font-size: 13px; line-height: 1.65; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dialog-close { position: absolute; right: 15px; top: 15px; }
.dialog-close button { border: 0; background: transparent; color: #6f7e75; font-size: 25px; cursor: pointer; }
@media (max-width: 820px) {
  .bank-heading, .bank-detail-header, .bank-import-panel { align-items: flex-start; flex-direction: column; }
  .bank-workspace { grid-template-columns: 1fr; }
  .bank-list-panel { position: static; }
  .bank-list { display: flex; overflow: auto; }
  .bank-list button { min-width: 180px; }
  .bank-detail-panel { padding: 16px; }
  .bank-import-actions { justify-content: flex-start; width: 100%; }
}
@media (max-width: 700px) {
  .bank-main { padding: 24px 15px 60px; }
  .bank-heading-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .bank-heading-actions .primary-button { grid-column: 1 / -1; }
  .bank-detail-actions { justify-content: flex-start; }
  .bank-import-actions { display: grid; grid-template-columns: 1fr; }
  .bank-import-actions button { width: 100%; }
  .bank-tabs { overflow: auto; }
  .bank-dialog { padding: 24px 18px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
  .bank-danger-zone { align-items: flex-start; flex-direction: column; }
}
