/* DAXIANG Academy v0.5.9 RC8: shared, role-aware question action bar.
   The source-backed public bank and focus bank share identical markup, with
   server-controlled permissions. Deliberately leaves basket/answer/report JS
   and two-confirm focus removal behavior untouched. */
.bank-action-footer-v0598 {
  padding:12px 16px 11px;
  border-top:1px solid #e1ecf3;
  background:#fff;
}
.bank-action-footer-v0598 .bank-card-actionbar {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  column-gap:8px;
  row-gap:8px;
  width:100%;
  min-height:42px;
  padding:0 0 12px;
  margin:0;
  border-bottom:1px solid #e8f0f5;
  font-size:12.5px;
  line-height:1.35;
  box-sizing:border-box;
}
/* Main action: adding to the existing public/focus basket; not a second basket. */
.bank-action-footer-v0598 .bank-card-actionbar > label.bank-action-select {
  order:1;
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:8px;
  box-sizing:border-box;
  min-height:38px;
  margin:0;
  padding:7px 13px;
  border:1px solid #b7dcec;
  border-radius:9px;
  background:#eaf7fd;
  color:#0e668d;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease;
}
.bank-action-footer-v0598 .bank-action-select input.bank-select {
  width:16px;
  height:16px;
  margin:0;
  accent-color:#0089c1;
  flex-shrink:0;
}
.bank-action-footer-v0598 .bank-action-select:hover,
.bank-action-footer-v0598 .bank-action-select:has(.bank-select:checked) {
  background:#d7f1fc;
  border-color:#63b6dc;
}
.bank-action-footer-v0598 .bank-action-select:focus-within {
  outline:2px solid #067db1;
  outline-offset:2px;
}
/* Answers stay the built-in details/summary control and render underneath. */
.bank-action-footer-v0598 .bank-card-actionbar > details.bank-action-answer {
  order:2;
  flex:0 1 auto;
  align-self:center;
  min-width:0;
  max-width:100%;
  padding:0;
  margin:0;
  border:1px solid #d7e7f0;
  background:#fff;
  border-radius:9px;
  box-sizing:border-box;
}
.bank-action-footer-v0598 .bank-action-answer > summary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  color:#286a8f;
  font-weight:600;
  border-radius:9px;
  white-space:nowrap;
  list-style:none;
  cursor:pointer;
}
.bank-action-footer-v0598 .bank-action-answer > summary::-webkit-details-marker {display:none;}
.bank-action-footer-v0598 .bank-action-answer > summary::after {
  content:'\25be';
  font-size:12px;
  margin-left:7px;
  opacity:.75;
}
.bank-action-footer-v0598 .bank-action-answer[open] {
  order:9;
  flex:1 1 100%;
  width:100%;
  margin-top:2px;
  padding:0 14px 12px;
  background:#f6fbff;
  border-color:#c8e1ef;
}
.bank-action-footer-v0598 .bank-action-answer[open] > summary {
  justify-content:flex-start;
  width:fit-content;
  padding:0;
}
.bank-action-footer-v0598 .bank-action-answer[open] > summary::after {content:'\25b4';}
.bank-action-footer-v0598 .bank-action-answer > summary:hover {background:#f2f8fc;}
.bank-action-footer-v0598 .bank-action-answer > summary:focus-visible {
  outline:2px solid #067db1;
  outline-offset:2px;
}
/* Secondary tools are visually quiet and located on the far right. */
.bank-action-footer-v0598 .bank-card-actionbar > a.bank-action-detail {
  order:3;
  margin-left:auto;
  min-height:38px;
  box-sizing:border-box;
  padding:9px 8px;
  color:#597a8e;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
}
.bank-action-footer-v0598 .bank-card-actionbar > a.bank-action-detail:hover {
  color:#167aa7;
  text-decoration:underline;
  text-underline-offset:3px;
}
/* Report button is dynamically appended by bank-v045.js for all roles. */
.bank-action-footer-v0598 .bank-card-actionbar > button.bank-v045-report-button {
  order:4;
  margin-left:auto;
  min-height:38px;
  padding:7px 11px;
  box-sizing:border-box;
  color:#5f7c8c;
  background:#fff;
  border:1px solid #dae8ef;
  border-radius:9px;
  font:inherit;
  font-weight:600;
  white-space:nowrap;
}
.bank-action-footer-v0598 .bank-card-actionbar:has(a.bank-action-detail) > button.bank-v045-report-button {
  margin-left:0;
}
.bank-action-footer-v0598 .bank-card-actionbar > button.bank-v045-report-button:hover {
  border-color:#8ebdd5;
  background:#f5fbff;
  color:#176d95;
}
/* Destructive but reversible: quiet tertiary command, red only on focus/hover. */
.bank-action-footer-v0598 .bank-card-actionbar > form.focus-remove-inline {
  order:5;
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  margin:0 0 0 auto;
  padding:0;
}
.bank-action-footer-v0598 .bank-card-actionbar:has(a.bank-action-detail) > form.focus-remove-inline,
.bank-action-footer-v0598 .bank-card-actionbar:has(.bank-v045-report-button) > form.focus-remove-inline {
  margin-left:0;
}
.bank-action-footer-v0598 .bank-card-actionbar .focus-remove-inline button {
  min-height:38px;
  padding:7px 11px;
  margin:0;
  color:#94505d;
  background:#fff;
  border:1px solid #eddbdf;
  border-radius:9px;
  font:inherit;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}
.bank-action-footer-v0598 .bank-card-actionbar .focus-remove-inline button:hover {
  color:#9b283f;
  background:#fff3f5;
  border-color:#dca5af;
}
.bank-action-footer-v0598 .bank-card-actionbar .focus-remove-inline button:focus-visible,
.bank-action-footer-v0598 .bank-card-actionbar > button.bank-v045-report-button:focus-visible,
.bank-action-footer-v0598 .bank-card-actionbar > a.bank-action-detail:focus-visible {
  outline:2px solid #087baf;
  outline-offset:2px;
}
/* History-only focus items cannot masquerade as selectable public-bank items. */
.bank-action-footer-v0598 .bank-card-actionbar > .bank-action-legacy-note {
  order:1;
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 10px;
  background:#f4f7f9;
  border:1px solid #e5edf0;
  border-radius:8px;
  color:#687c88;
}
.bank-action-footer-v0598 .bank-question-labels {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 10px;
  margin-top:10px;
  color:#6a8595;
  font-size:11px;
  line-height:1.6;
}
@media(max-width:690px) {
  .bank-action-footer-v0598 {padding:10px 12px;}
  .bank-action-footer-v0598 .bank-card-actionbar {gap:7px;}
  .bank-action-footer-v0598 .bank-card-actionbar > a.bank-action-detail {margin-left:0;}
  .bank-action-footer-v0598 .bank-card-actionbar > button.bank-v045-report-button {margin-left:0;}
  .bank-action-footer-v0598 .bank-card-actionbar > form.focus-remove-inline {margin-left:0;}
  .bank-action-footer-v0598 .bank-card-actionbar > .bank-action-select {min-height:40px;}
}
@media(prefers-reduced-motion:reduce) {
  .bank-action-footer-v0598 .bank-action-select {transition:none;}
}
