/* Question-bank page v2 (2026-10-24). Everything is scoped to .bank-v2, so the compose page, saved sets and the
 * shared filter bar keep their look. Tokens come from the Axiom UI spec (docs/技术方案总览.md §6.0). */
.bank-v2 {
  --bk-ink: #1e2a2e; --bk-muted: #6f7068; --bk-line: #e5e1d6; --bk-soft: #f1eee6; --bk-paper: #faf8f3;
  --bk-accent: #1f6f68; --bk-accent-soft: #edf3ef; --bk-ctl: 34px;
  --bk-mono: "Alibaba PuHuiTi", "Alibaba PuHuiTi 3.0", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;   /* one formal face for Latin and Chinese (the variable keeps its old name); digits are equal-width via tabular-nums, falling back per device */
  --bk-qserif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Songti SC", "Noto Serif SC", serif;   /* question numbers keep their original serif look */
  --bk-serif: var(--bk-mono);   /* titles and numbers use the same plain monospace sans as everything else (teachers found the serif too artistic) */
  --el-font-family: var(--bk-mono);
  font-family: var(--bk-mono); letter-spacing: -.1px;
}
.bank-v2[data-bk-board="IB"] { --bk-accent: #1f6f68; --bk-accent-soft: #edf3ef; }
.bank-v2[data-bk-board="CIE"] { --bk-accent: #2a5bc8; --bk-accent-soft: #edf1fb; }
.bank-v2[data-bk-board="Edexcel"] { --bk-accent: #b4600f; --bk-accent-soft: #faf0e2; }
.bank-v2 button, .bank-v2 input, .bank-v2 select { font-family: inherit; }
.bank-v2 .compose-question-number, .bank-v2 .bk-title { font-family: var(--bk-serif); }

/* ---- header row -------------------------------------------------------------------------- */
.bank-v2 .bk-head { max-width: none; }
.bank-v2 .bk-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 2px 0 10px; min-width: 0; }
.bank-v2 .bk-title { margin: 0; font-size: 22px; font-weight: 600; white-space: nowrap; }
.bank-v2 .bk-spacer { flex: 1 1 0; min-width: 0; }
.bank-v2 .bk-boards { display: flex; gap: 2px; background: var(--bk-soft); border-radius: 999px; padding: 3px; flex: none; }
.bank-v2 .bk-boards button { border: 0; background: transparent; padding: 0 16px; min-height: var(--bk-ctl); border-radius: 999px; color: var(--bk-muted); cursor: pointer; }
.bank-v2 .bk-boards button:hover:not([aria-pressed="true"]) { color: var(--bk-ink); }
.bank-v2 .bk-boards button[aria-pressed="true"] { color: #fff; font-weight: 600; background: var(--bk-ink); }
.bank-v2 .bk-boards [data-b="IB"][aria-pressed="true"] { background: #1f6f68; }
.bank-v2 .bk-boards [data-b="CIE"][aria-pressed="true"] { background: #2a5bc8; }
.bank-v2 .bk-boards [data-b="Edexcel"][aria-pressed="true"] { background: #b4600f; }
.bank-v2 .bank-toolbar-search { flex: 1 1 220px; max-width: 440px; min-width: 140px; }
.bank-v2 .bank-toolbar-search .el-input__wrapper { height: 36px; box-shadow: 0 0 0 1px var(--bk-line) inset; background: #fff; }
.bank-v2 .bk-count { color: var(--bk-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bank-v2 .bank-reset-button { color: var(--bk-accent); }

/* ---- subject cards ----------------------------------------------------------------------- */
.bank-v2 .bk-scope { display: grid; gap: 8px; margin-bottom: 10px; min-width: 0; }
.bank-v2 .bk-ribbon { display: flex; gap: 6px; min-height: 60px; }
.bank-v2 .bk-seg { position: relative; flex: 1 1 0; min-width: 92px; text-align: left; border: 1px solid var(--bk-line); border-top: 4px solid var(--seg, #aaa); background: #fff; border-radius: 10px; padding: 5px 10px 4px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; cursor: pointer; transition: background .15s, opacity .2s; color: var(--bk-ink); }
.bank-v2 .bk-seg:hover { background: var(--bk-soft); }
.bank-v2 .bk-seg .nm { font-size: 12.5px; line-height: 1.2; }
.bank-v2 .bk-seg .bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.bank-v2 .bk-seg .n { font: 600 19px/1 var(--bk-serif); font-variant-numeric: tabular-nums; }
.bank-v2 .bk-seg .part { font-size: 11.5px; color: var(--bk-accent); }
.bank-v2 .bk-seg .ck { color: var(--bk-accent); flex: none; }
.bank-v2 .bk-seg[aria-pressed="true"] { background: var(--bk-accent-soft); border-color: var(--bk-accent); border-top-color: var(--seg, #aaa); }
.bank-v2 .bk-seg[data-focus="true"] { outline: 2px solid var(--bk-accent); outline-offset: 1px; }
.bank-v2 .bk-ribbon.has-sel .bk-seg[aria-pressed="false"] { opacity: .62; }
.bank-v2 .bk-items { background: #fff; border: 1px solid var(--bk-line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; }
.bank-v2 .bk-items .ih { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bank-v2 .bk-items .ih b { font: 600 14px var(--bk-serif); }
.bank-v2 .bk-items .ih input { height: 30px; border: 1px solid var(--bk-line); border-radius: 999px; padding: 0 12px; min-width: 180px; background: var(--bk-paper); }
.bank-v2 .bk-hint { color: var(--bk-muted); font-size: 12px; }
.bank-v2 .bk-link { border: 0; background: none; color: var(--bk-accent); cursor: pointer; padding: 4px 6px; }
.bank-v2 .bk-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }
.bank-v2 .bk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--bk-ctl); padding: 0 12px; border-radius: 999px; border: 1px solid var(--bk-line); background: var(--bk-paper); text-align: left; cursor: pointer; color: var(--bk-ink); }
.bank-v2 .bk-chip:hover { border-color: var(--bk-accent); }
.bank-v2 .bk-chip .c { font-weight: 600; font-size: 12px; color: var(--bk-accent); white-space: nowrap; }
.bank-v2 .bk-chip .c.ahl { color: #a56a14; }
.bank-v2 .bk-chip .n { color: var(--bk-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bank-v2 .bk-chip[aria-pressed="true"] { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }
.bank-v2 .bk-chip[aria-pressed="true"] .c, .bank-v2 .bk-chip[aria-pressed="true"] .n { color: #fff; }
.bank-v2 .bk-chip[data-implied="true"] { border-style: dashed; border-color: var(--bk-accent); }

/* ---- one-row filter strip ---------------------------------------------------------------- */
.bank-v2 .bk-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; padding: 8px 14px; margin-bottom: 10px; }
.bank-v2 .bk-fg, .bank-v2 .bk-strip .axf-grp { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.bank-v2 .bk-fl, .bank-v2 .bk-strip .axf-grp > label { font-size: 12.5px; color: var(--bk-muted); white-space: nowrap; }
.bank-v2 .bk-strip .axf-tabs, .bank-v2 .bk-strip .axf-seg, .bank-v2 .bk-sgm { display: inline-flex; flex-wrap: nowrap; background: var(--bk-soft); border-radius: 999px; padding: 2px; gap: 2px; }
.bank-v2 .bk-strip .axf-tabs button, .bank-v2 .bk-strip .axf-seg button, .bank-v2 .bk-sgm button { border: 0; background: transparent; border-radius: 999px; min-height: calc(var(--bk-ctl) - 6px); padding: 0 10px; color: var(--bk-ink); white-space: nowrap; cursor: pointer; box-shadow: none; }
.bank-v2 .bk-strip .axf-tabs button:hover:not(.on):not(:disabled), .bank-v2 .bk-strip .axf-seg button:hover:not(.on), .bank-v2 .bk-sgm button:hover:not([aria-pressed="true"]) { background: rgba(0, 0, 0, .05); border: 0; color: var(--bk-ink); }
.bank-v2 .bk-strip .axf-tabs button.on, .bank-v2 .bk-strip .axf-seg button.on, .bank-v2 .bk-sgm button[aria-pressed="true"] { background: var(--bk-accent); color: #fff; font-weight: 600; border: 0; box-shadow: none; }
.bank-v2 .bk-strip .axf-tabs button:disabled { opacity: .36; }
.bank-v2 .bk-strip .axf-quick { display: contents; }
.bank-v2 .bk-strip .axf-hint { display: none; }
.bank-v2 .bk-strip .axf-select { height: calc(var(--bk-ctl) - 4px); border: 1px solid var(--bk-line); border-radius: 999px; background: var(--bk-paper); padding: 0 10px; }
.bank-v2 .bk-strip .axf-modules { flex-wrap: wrap; }
.bank-v2 .bk-strip .axf-pill { min-height: calc(var(--bk-ctl) - 2px); border-radius: 999px; }
.bank-v2 .bk-strip .bank-filter-toggle { min-height: calc(var(--bk-ctl) - 2px); border-radius: 999px; padding: 0 12px; }
.bank-v2 .bank-filter-panel { margin-bottom: 10px; }
.bank-v2 .bank-filter-footer { padding: 0 0 10px; }

/* ---- results: image grid ----------------------------------------------------------------- */
.bank-v2 .bank-results[data-view="images"] .question-card-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(var(--bk-cardw, 230px), 100%), 1fr)); gap: 14px; padding: 3px; max-height: none; overflow: visible; }
.bank-v2 .bank-results .question-list-card { display: flex; flex-direction: column; border-left-width: 1px; }
.bank-v2 .bank-thumbnail-window { max-height: none; height: var(--bk-shot, 200px); position: relative; }
.bank-v2 .bank-thumbnail-window::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.bank-v2 .question-list-card.is-active { border-color: var(--board-accent); }
.bank-v2 .bank-card-heading { align-items: baseline; }
.bank-v2 .bank-page .bank-pick .el-checkbox__label { display: none; }
.bank-v2 .bank-list-head { gap: 10px; flex-wrap: wrap; }
@container (min-width: 1100px) { .bank-v2 .bank-results { --bk-cardw: 250px; --bk-shot: 220px; } }
@container (max-width: 640px) { .bank-v2 .bank-results { --bk-cardw: 200px; --bk-shot: 170px; } }
/* card size switch (bk-size): "large" is the default, about 2 cards per row at 4K; "normal" keeps the denser 3-per-row grid above.
   The attribute selector outranks the container rules, so large wins at every width; min(…, 100%) in the grid keeps a narrow list at one column. */
.bank-v2 .bank-results[data-size="large"] { --bk-cardw: 380px; --bk-shot: 300px; --bk-shot-max: 420px; }
.bank-v2 .compose-candidates[data-size="large"] { --bk-cardw: 440px; }
@container (max-width: 640px) { .bank-v2 .bank-results[data-size="large"] { --bk-cardw: 280px; --bk-shot: 220px; --bk-shot-max: 320px; } }
@media (max-width: 1079px) {
  .bank-v2 .bank-results[data-view="images"] .question-card-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .bank-v2 .bank-results[data-view="images"][data-size="large"] .question-card-list { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
}
@media (max-width: 700px) {
  .bank-v2 .bk-title { display: none; }
  .bank-v2 .bk-boards button { padding: 0 12px; }
  .bank-v2 .bk-ribbon { overflow-x: auto; }
  .bank-v2 .bk-seg { flex: 0 0 120px; }
  .bank-v2 .bk-strip { padding: 8px 10px; }
  .bank-v2 .bk-strip .axf-grp, .bank-v2 .bk-fg { flex-wrap: wrap; }
}

/* ---- card tags, topics pill fallback ------------------------------------------------------ */
.bank-v2 .question-card-concepts .question-concept-pill { padding: 1px 8px; border-radius: 6px; font-size: 12px; line-height: 1.35; background: var(--bk-paper); border: 1px solid var(--bk-line); color: #44514e; }
.bank-v2 .question-card-concepts .question-concept-pill.is-ahl { border-color: #d9b36d; background: #fbf2de; }
.bank-v2 .bk-strip .axf-pill.axf-primary { background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }
.bank-v2 .bk-strip .axf-pill.axf-primary .axf-count { color: var(--bk-accent); background: #fff; }

/* ---- checkbox, narrow windows: detail as a slide-over -------------------------------------- */
.bank-v2 .bank-pick .el-checkbox__label { display: none; }
.bank-v2 .bk-close { display: none; width: 34px; height: 34px; flex: none; border: 1px solid var(--bk-line); border-radius: 10px; background: #fff; color: var(--bk-ink); cursor: pointer; place-items: center; padding: 0; line-height: 0; }
.bank-v2 .bk-scrim { display: none; }
@media (max-width: 1079px) {
  .bank-v2 .split-layout-host { container-type: normal; }   /* layout containment would trap the fixed slide-over inside the host */
  .bank-v2 .bank-workspace .bank-preview { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(560px, 94vw); max-height: none; z-index: 2100; border-radius: 16px 0 0 16px; transform: translateX(104%); transition: transform .2s; box-shadow: -12px 0 36px rgba(0, 0, 0, .2); background: #fff; }
  .bank-v2 .bank-workspace .bank-preview.is-open { transform: none; }
  .bank-v2 .bk-scrim { display: block; position: fixed; inset: 0; z-index: 2090; background: rgba(18, 26, 24, .42); }
  .bank-v2 .bk-close { display: grid; }
  .bank-v2 .bank-preview-head { align-items: center; }
}
@media (prefers-reduced-motion: reduce) { .bank-v2 .bank-workspace .bank-preview { transition: none; } }

/* the board is already chosen above: no badge on each card */
.bank-v2:not([data-bk-board=""]) .question-list-card .question-card-top .board-badge { display: none; }

/* =============================== revision 2 (user review, 2026-10-24) =============================== */
/* ---- fonts: the monospace UI face everywhere on the page (components set their own families), serif for titles and numbers ---- */
.bank-v2.bank-page.compose-page :where(*) { font-family: var(--bk-mono); }
.bank-v2.bank-page.compose-page .bk-title,
.bank-v2.bank-page.compose-page .compose-question-number,
.bank-v2.bank-page.compose-page .question-card-top .compose-question-number,
.bank-v2.bank-page.compose-page .bank-preview-title b,
.bank-v2.bank-page.compose-page .bank-panel-title,
.bank-v2.bank-page.compose-page .bk-seg .n,
.bank-v2.bank-page.compose-page .bk-items .ih b,
.bank-v2.bank-page.compose-page .bk-ilab span,
.bank-v2.bank-page.compose-page .bank-sibling,
.bank-v2.bank-page.compose-page .bk-selbar b { font-family: var(--bk-serif); }
.bank-v2.bank-page.compose-page .bank-preview-title b { font-weight: 600; }

/* ---- counts inside the strip buttons ---- */
.bank-v2 .bl { display: inline-flex; align-items: baseline; gap: 5px; }
.bank-v2 .bk-strip .bl .n, .bank-v2 .bk-sgm .bl .n { font-size: 11.5px; color: var(--bk-muted); font-variant-numeric: tabular-nums; }
.bank-v2 .bk-strip .axf-tabs button.on .n, .bank-v2 .bk-strip .axf-seg button.on .n, .bank-v2 .bk-sgm button[aria-pressed="true"] .n { color: rgba(255, 255, 255, .82); }
.bank-v2 .bk-strip button.zero:not(.on):not([aria-pressed="true"]) { opacity: .42; }

/* ---- year histogram ---- */

/* ---- dropdown (source, sort) ---- */
.bank-v2 .bk-dd { position: relative; }
.bank-v2 .bk-dd-btn { min-height: calc(var(--bk-ctl) - 2px); padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--bk-line); background: #fff; display: inline-flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; color: var(--bk-ink); }
.bank-v2 .bk-dd-btn:hover { background: var(--bk-soft); }
.bank-v2 .bk-dd-btn[aria-expanded="true"] { border-color: var(--bk-accent); }
.bank-v2 .bk-dd-btn.on { background: var(--bk-accent-soft); border-color: var(--bk-accent); }
.bank-v2 .bk-dd-btn.on .bk-dd-val { color: var(--bk-accent); font-weight: 600; }
.bank-v2 .bk-dd-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; min-width: 260px; max-width: 92vw; background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; box-shadow: 0 14px 40px rgba(20, 30, 28, .18); padding: 6px; }
.bank-v2 .bk-dd-pop.right { left: auto; right: 0; }
.bank-v2 .bk-ddi .t { white-space: nowrap; }
.bank-v2 .bk-ddi { width: 100%; border: 0; background: transparent; border-radius: 9px; min-height: var(--bk-ctl); padding: 0 10px; display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; text-align: left; cursor: pointer; color: var(--bk-ink); }
.bank-v2 .bk-ddi:hover { background: var(--bk-soft); }
.bank-v2 .bk-ddi .tick { opacity: 0; color: var(--bk-accent); }
.bank-v2 .bk-ddi[aria-selected="true"] { font-weight: 600; }
.bank-v2 .bk-ddi[aria-selected="true"] .tick { opacity: 1; }
.bank-v2 .bk-ddi .n { color: var(--bk-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bank-v2 .bk-ddi:disabled { opacity: .38; cursor: default; }
.bank-v2 .bk-dd-sep { height: 1px; background: var(--bk-line); margin: 4px 6px; }

/* ---- items of the selected subjects: one row per subject ---- */
.bank-v2 .bk-items { padding: 6px 12px 8px; gap: 2px; }
.bank-v2 .bk-irow { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; border-top: 1px solid var(--bk-line); }
.bank-v2 .bk-items .ih + .bk-irow { border-top: 0; }
.bank-v2 .bk-ilab { border-left: 4px solid var(--seg, #aaa); padding: 3px 0 3px 9px; line-height: 1.25; display: flex; flex-direction: column; gap: 2px; }
.bank-v2 .bk-ilab span { font-weight: 600; font-size: 13.5px; }
.bank-v2 .bk-ilab small { font-size: 11.5px; color: var(--bk-muted); }
.bank-v2 .bk-chips { max-height: none; overflow: visible; }
.bank-v2 .bk-chip.more { border-style: dashed; color: var(--bk-muted); background: transparent; }
@media (max-width: 700px) { .bank-v2 .bk-irow { grid-template-columns: 1fr; gap: 4px; } }

/* ---- floating selection bar ---- */
/* NOTE sticky `bottom` is measured from the scroller's content box (the .content padding of 20px is already above the window edge), so 0 here
 * floats the bar 20px above the window while scrolling and lets it rest exactly in its natural place at the end; a positive value pushed it up over the pager.
 * The selection bar sits in the page flow after the list and its pager (like the compose page's save bar): it floats at the bottom of the
 * window while you scroll, but at the end of the page it rests UNDER the pager instead of covering it (it used to be position: fixed). */
.bank-v2 .bk-selbar { position: sticky; bottom: 0; z-index: 50; display: none; align-items: center; gap: 14px; width: max-content; max-width: 100%; margin: 14px auto 0; padding: 8px 10px 8px 20px; border-radius: 999px; background: var(--bk-ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); white-space: nowrap; }
.bank-v2 .bk-selbar.show { display: flex; animation: bk-selbar-in .18s ease-out; }
@keyframes bk-selbar-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bank-v2 .bk-selbar b { font-size: 16px; font-weight: 600; }
.bank-v2 .bk-selbar .sum { color: rgba(255, 255, 255, .8); }
.bank-v2 .bk-selbar button { min-height: var(--bk-ctl); padding: 0 14px; border-radius: 999px; border: 1px solid #4a5b57; background: transparent; color: #fff; cursor: pointer; }
.bank-v2 .bk-selbar button.go { background: var(--bk-accent); border-color: transparent; font-weight: 600; }
.bank-v2 .bk-selbar button:disabled { opacity: .5; cursor: default; }
.bank-v2 .bk-selbar { flex-wrap: wrap; }
.bank-v2 .bk-selbar .txt, .bank-v2 .bk-selbar .sum { white-space: nowrap; }
.bank-v2 .bk-selbar .bk-name { width: 250px; max-width: 100%; height: calc(var(--bk-ctl) - 2px); border: 0; border-radius: 999px; padding: 0 14px; background: rgba(255, 255, 255, .96); color: var(--bk-ink); }
.bank-v2 .bk-selbar .bk-name:focus-visible { outline: 2px solid #9fe0d6; outline-offset: 1px; }
.bank-v2 .bk-selbar .bk-name:disabled { opacity: .6; }
.bank-v2 .bk-selbar button { white-space: nowrap; }
.bank-v2 .bk-selbar button.link { border-color: transparent; color: rgba(255, 255, 255, .7); padding: 0 10px; }
.bank-v2 .bk-selbar button:hover:not(:disabled) { filter: brightness(1.12); }
.bank-v2 .bk-selbar button:focus-visible { outline: 2px solid #9fe0d6; outline-offset: 2px; }
@media (max-width: 700px) { .bank-v2 .bk-selbar { border-radius: 22px; padding: 10px 12px; width: 100%; } .bank-v2 .bk-selbar .bk-name { width: 100%; flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .bank-v2 .bk-selbar.show { animation: none; } }
.bank-v2 .bank-list-head { padding-bottom: 8px; }

/* =========================== left menu: icon rail with names on hover =========================== */
.rail-mark { display: none; }
.rail-tip { position: fixed; z-index: 3000; transform: translateY(-50%); background: #1e2a2e; color: #fff; font-size: 12.5px; line-height: 1.35; padding: 5px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .1s; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.rail-tip.show { opacity: 1; }
@media (min-width: 801px) {
  .axiom-bank-shell .sidebar { width: 200px; overflow: hidden; transition: width .16s; }
  .axiom-bank-shell .sidebar.is-rail { width: 62px; }
  .axiom-bank-shell .sidebar .logo { height: 64px; display: flex; align-items: center; padding: 0 16px; }
  .axiom-bank-shell .sidebar.is-rail .logo { justify-content: center; padding: 0; }
  .axiom-bank-shell .sidebar.is-rail .axiom-wordmark { display: none; }
  .axiom-bank-shell .sidebar.is-rail .rail-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #1f6f68; color: #fff; font: 600 17px 'Iowan Old Style', Palatino, Georgia, serif; }
  .axiom-bank-shell .sidebar .menu-item { white-space: nowrap; }
  .axiom-bank-shell .sidebar.is-rail .menu-item { justify-content: center; width: calc(100% - 16px); margin: 2px 8px; padding: 11px 0; }
  .axiom-bank-shell .sidebar.is-rail .menu-label { display: none; }
  .axiom-bank-shell .sidebar.is-rail .menu-item.active::before { left: -8px; }
}
@media (max-width: 800px) {
  .axiom-bank-shell .sidebar.is-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) { .axiom-bank-shell .sidebar { transition: none; } }

/* =============================== revision 3 (user review, 2026-10-24) =============================== */
/* ---- pill buttons (more filters, fields) ---- */
.bank-v2 .bk-pillbtn { min-height: calc(var(--bk-ctl) - 2px); padding: 0 13px; border-radius: 999px; border: 1px solid var(--bk-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; color: var(--bk-ink); flex: none; transition: background .12s, border-color .12s; }
.bank-v2 .bk-pillbtn svg { flex: none; color: var(--bk-muted); }
.bank-v2 .bk-pillbtn:hover { background: var(--bk-soft); }
.bank-v2 .bk-pillbtn[aria-expanded="true"] { border-color: var(--bk-accent); }
.bank-v2 .bk-pillbtn.on { background: var(--bk-accent-soft); border-color: var(--bk-accent); color: var(--bk-accent); }
.bank-v2 .bk-pillbtn.on svg { color: var(--bk-accent); }
.bank-v2 .bk-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bk-accent); color: #fff; font-size: 11.5px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.bank-v2 .bk-more { position: relative; flex: none; }
.bank-v2 .bk-more-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; min-width: 260px; max-width: min(92vw, 420px); background: #fff; border: 1px solid var(--bk-line); border-radius: 16px; box-shadow: 0 2px 6px rgba(20, 30, 28, .06), 0 18px 44px rgba(20, 30, 28, .16); padding: 14px 16px 16px; animation: bk-pop .13s ease-out; transform-origin: top left; }
.bank-v2 .bk-more-pop.right { left: auto; right: 0; transform-origin: top right; }
.bank-v2 .bk-more-pop .axf-more { padding: 0; border: 0; background: none; }
.bank-v2 .bk-more-pop .axf-more-grid { display: grid; gap: 14px; padding: 0; grid-template-columns: 1fr; }
.bank-v2 .bk-more-pop .axf-field { display: grid; gap: 7px; }
.bank-v2 .bk-more-pop .axf-field > label { color: var(--bk-muted); font-size: 12.5px; }
.bank-v2 .bk-more-pop .axf-seg { background: var(--bk-soft); border-radius: 999px; padding: 2px; gap: 2px; display: inline-flex; flex-wrap: wrap; align-self: start; width: max-content; max-width: 100%; }
.bank-v2 .bk-more-pop .axf-seg button { border: 0; background: transparent; border-radius: 999px; min-height: calc(var(--bk-ctl) - 6px); padding: 0 12px; cursor: pointer; color: var(--bk-ink); }
.bank-v2 .bk-more-pop .axf-seg button:hover:not(.on) { background: rgba(0, 0, 0, .05); border: 0; }
.bank-v2 .bk-more-pop .axf-seg button.on { background: var(--bk-accent); color: #fff; font-weight: 600; box-shadow: none; border: 0; }
.bank-v2 .bk-more-pop .axf-check { display: flex; align-items: center; gap: 8px; color: var(--bk-ink); }
@keyframes bk-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bank-v2 .bk-more-pop, .bank-v2 .bk-dd-pop { animation: none; } }

/* ---- dropdown, second design ---- */
.bank-v2 .bk-dd-btn .caret { color: var(--bk-muted); transition: transform .15s; }
.bank-v2 .bk-dd-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.bank-v2 .bk-dd-pop { padding: 6px; border-radius: 16px; min-width: 232px; box-shadow: 0 2px 6px rgba(20, 30, 28, .06), 0 18px 44px rgba(20, 30, 28, .16); animation: bk-pop .13s ease-out; transform-origin: top left; }
.bank-v2 .bk-dd-pop.right { transform-origin: top right; }
.bank-v2 .bk-dd-head { padding: 9px 10px 4px; font-size: 11.5px; letter-spacing: .02em; color: var(--bk-muted); }
.bank-v2 .bk-ddi { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; border-radius: 10px; padding: 7px 10px; min-height: 36px; transition: background .1s; }
.bank-v2 .bk-ddi.two { min-height: 46px; }
.bank-v2 .bk-ddi .txt { display: grid; gap: 1px; min-width: 0; }
.bank-v2 .bk-ddi .t { white-space: nowrap; }
.bank-v2 .bk-ddi .h { font-size: 11.5px; color: var(--bk-muted); white-space: nowrap; }
.bank-v2 .bk-ddi .tick { opacity: 0; grid-column: 3; }
.bank-v2 .bk-ddi .n { grid-column: 2; }
.bank-v2 .bk-ddi:hover, .bank-v2 .bk-ddi:focus-visible { background: var(--bk-soft); outline: none; }
.bank-v2 .bk-ddi[aria-selected="true"] { background: var(--bk-accent-soft); color: var(--bk-accent); font-weight: 600; }
.bank-v2 .bk-ddi[aria-selected="true"] .h, .bank-v2 .bk-ddi[aria-selected="true"] .n { color: var(--bk-accent); font-weight: 400; opacity: .85; }
.bank-v2 .bk-ddi[aria-selected="true"] .tick { opacity: 1; }
.bank-v2 .bk-ddi:focus-visible { box-shadow: inset 0 0 0 2px var(--bk-accent); }

/* ---- list head: view switch ---- */
.bank-v2 .bk-view { display: inline-flex; background: var(--bk-soft); border-radius: 999px; padding: 2px; flex: none; }
.bank-v2 .bk-view button { border: 0; background: transparent; border-radius: 999px; min-height: calc(var(--bk-ctl) - 4px); padding: 0 13px 0 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--bk-muted); cursor: pointer; }
.bank-v2 .bk-view button svg { flex: none; }
.bank-v2 .bk-view button:hover:not([aria-pressed="true"]) { color: var(--bk-ink); }
.bank-v2 .bk-view button[aria-pressed="true"] { background: #fff; color: var(--bk-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }
.bank-v2 .bk-view button[aria-pressed="true"] svg { color: var(--bk-accent); }
.bank-v2 .bk-view button:focus-visible, .bank-v2 .bk-pillbtn:focus-visible, .bank-v2 .bk-dd-btn:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bank-v2 .bank-list-head { align-items: center; gap: 10px; }

/* =============================== compose page (智能组题), 2026-10-24 =============================== */
/* page tabs */
.bank-v2 .bk-tabs { display: inline-flex; background: var(--bk-soft); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.bank-v2 .bk-tabs button { border: 0; background: transparent; padding: 0 18px; min-height: var(--bk-ctl); border-radius: 999px; color: var(--bk-muted); cursor: pointer; }
.bank-v2 .bk-tabs button:hover:not([aria-selected="true"]) { color: var(--bk-ink); }
.bank-v2 .bk-tabs button[aria-selected="true"] { background: #fff; color: var(--bk-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.bank-v2 .bk-tabs button:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bank-v2.compose-builder .compose-narrow { max-width: none; }

/* year slider without a histogram (compose has no per-year counts) */

/* target row: count, total marks, generate */
.bank-v2 .bk-target { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; padding: 8px 14px; margin-bottom: 10px; }
.bank-v2 .bk-num { width: 92px; height: calc(var(--bk-ctl) - 2px); border: 1px solid var(--bk-line); border-radius: 999px; padding: 0 12px; background: var(--bk-paper); color: var(--bk-ink); font-variant-numeric: tabular-nums; }
.bank-v2 .bk-num:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 1px; border-color: var(--bk-accent); }
.bank-v2 .bk-num::placeholder { color: #a8a699; }
.bank-v2 .bk-target .bk-hint { font-size: 12px; }
.bank-v2 .bk-go.el-button { height: var(--bk-ctl); padding: 0 20px; border-radius: 999px; background: var(--bk-accent); border-color: var(--bk-accent); font-weight: 600; margin: 0; }
.bank-v2 .bk-go.el-button:hover, .bank-v2 .bk-go.el-button:focus-visible { background: var(--bk-accent); border-color: var(--bk-accent); filter: brightness(.92); }

/* result head */
.bank-v2 .compose-result-head { margin: 4px 0 10px; }
.bank-v2 .compose-result-head h3 { margin: 0 0 3px; font: 600 17px var(--bk-serif); }
.bank-v2 .compose-result-meta { color: var(--bk-muted); font-size: 12.5px; }
.bank-v2 .compose-panel-title { font: 600 15px var(--bk-serif); }
.bank-v2 .compose-panel-head { align-items: center; gap: 10px; flex-wrap: wrap; }

/* candidate cards: a grid like the bank, a little wider because of the row actions */
.bank-v2 .compose-candidates { --bk-cardw: 300px; }
.bank-v2 .compose-candidates[data-view="images"] .question-card-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(var(--bk-cardw), 100%), 1fr)); gap: 14px; padding: 3px; max-height: none; overflow: visible; }
.bank-v2 .compose-candidates .question-list-card { border-radius: 14px; }

/* sticky save bar */
.bank-v2 .bk-savebar { position: sticky; bottom: 0; z-index: 40; margin: 16px auto 4px; width: max-content; max-width: 100%; background: var(--bk-ink); color: #fff; border-radius: 999px; padding: 8px 10px 8px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); flex-wrap: wrap; }
.bank-v2 .bk-savebar b { font: 600 16px var(--bk-serif); }
.bank-v2 .bk-savebar .sum { color: rgba(255, 255, 255, .8); white-space: nowrap; }
.bank-v2 .bk-savebar .txt { white-space: nowrap; }
.bank-v2 .bk-savebar .bk-name { width: 250px; max-width: 100%; height: calc(var(--bk-ctl) - 2px); border: 0; border-radius: 999px; padding: 0 14px; background: rgba(255, 255, 255, .96); color: var(--bk-ink); }
.bank-v2 .bk-savebar .bk-name:focus-visible { outline: 2px solid #9fe0d6; outline-offset: 1px; }
.bank-v2 .bk-savebar button { min-height: var(--bk-ctl); padding: 0 14px; border-radius: 999px; border: 1px solid #4a5b57; background: transparent; color: #fff; cursor: pointer; white-space: nowrap; }
.bank-v2 .bk-savebar button.go { background: var(--bk-accent); border-color: transparent; font-weight: 600; }
.bank-v2 .bk-savebar button.link { border-color: transparent; color: rgba(255, 255, 255, .7); padding: 0 10px; }
.bank-v2 .bk-savebar button:hover:not(:disabled) { filter: brightness(1.12); }
.bank-v2 .bk-savebar button:disabled { opacity: .45; cursor: default; }
.bank-v2 .bk-savebar button:focus-visible { outline: 2px solid #9fe0d6; outline-offset: 2px; }
@media (max-width: 700px) { .bank-v2 .bk-savebar { border-radius: 22px; padding: 10px 12px; width: 100%; } .bank-v2 .bk-savebar .bk-name { width: 100%; flex: 1 1 100%; } }

/* ---- round 6: question numbers keep the original serif form; everything else stays plain sans-mono ---- */
.bank-v2.bank-page.compose-page .compose-question-number,
.bank-v2.bank-page.compose-page .question-card-top .compose-question-number,
.bank-v2.bank-page.compose-page .bank-preview-title b,
.bank-v2.bank-page.compose-page .bank-sibling { font-family: var(--bk-qserif); }
.bank-v2 .bk-chip.ahl:not([aria-pressed="true"]) { background: #fbf2de; border-color: #d9b36d; }
.bank-v2 .bk-chip { font-variant-numeric: tabular-nums; }
.bank-v2 { font-variant-numeric: tabular-nums; }

/* =============================== motion (2026-10-26) =============================== */
/* Tokens (--axiom-ease-*, --axiom-duration-*, --axiom-shadow-*) live in index.html :root. Motion explains cause and effect: the
 * selection travels to what you picked, cards rise when they arrive, popovers grow from their trigger. Only transform, opacity and
 * colour animate; hover effects need a mouse; reduced motion keeps every end state and drops the travel. */

/* ---- gliding selection: bankui.js measures the chosen option and moves one shared pill behind the buttons ---- */
.bank-v2 .bk-boards, .bank-v2 .bk-view, .bank-v2 .bk-tabs, .bank-v2 .bk-sgm,
.bank-v2 .bk-strip .axf-tabs, .bank-v2 .bk-strip .axf-seg, .bank-v2 .bk-more-pop .axf-seg,
.axiom-bank-shell .sidebar .menu { position: relative; isolation: isolate; }
[data-ax-glide]::before { content: ""; position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; width: var(--ax-gw, 0); height: var(--ax-gh, 0); transform: translate(var(--ax-gx, 0), var(--ax-gy, 0)); border-radius: var(--ax-glide-radius, 999px); background: var(--ax-glide-bg, var(--bk-accent)); box-shadow: var(--ax-glide-shadow, none); opacity: var(--ax-go, 1); }
[data-ax-glide="on"]::before { transition: transform var(--axiom-duration-spring) var(--axiom-ease-spring), width var(--axiom-duration-spring) var(--axiom-ease-spring), height var(--axiom-duration-spring) var(--axiom-ease-spring), background-color var(--axiom-duration-standard) var(--axiom-ease-standard), opacity var(--axiom-duration-fast) var(--axiom-ease-standard); }
[data-ax-glide] > button, [data-ax-glide] > .menu-item { position: relative; transition: color var(--axiom-duration-standard) var(--axiom-ease-standard), background-color var(--axiom-duration-fast) var(--axiom-ease-standard); }
.bank-v2 .bk-boards { --ax-glide-bg: var(--bk-ink); }
.bank-v2 .bk-boards[data-ax-glide-key="IB"] { --ax-glide-bg: #1f6f68; }
.bank-v2 .bk-boards[data-ax-glide-key="CIE"] { --ax-glide-bg: #2a5bc8; }
.bank-v2 .bk-boards[data-ax-glide-key="Edexcel"] { --ax-glide-bg: #b4600f; }
.bank-v2 .bk-view, .bank-v2 .bk-tabs { --ax-glide-bg: #fff; --ax-glide-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.axiom-bank-shell .sidebar .menu { --ax-glide-bg: #fff; --ax-glide-shadow: 0 1px 2px rgba(46, 58, 52, .08); --ax-glide-radius: 8px; }
/* the menu's accent bar travels with the pill (items sit 10px in, 8px in the rail: the bar is always at the menu's left edge) */
.axiom-bank-shell .sidebar .menu[data-ax-glide]::after { content: ""; position: absolute; left: 0; top: 0; z-index: 1; width: 3px; height: calc(var(--ax-gh, 0px) - 16px); border-radius: 0 3px 3px 0; background: #1f6f68; transform: translateY(calc(var(--ax-gy, 0px) + 8px)); opacity: var(--ax-go, 1); pointer-events: none; }
.axiom-bank-shell .sidebar .menu[data-ax-glide="on"]::after { transition: transform var(--axiom-duration-spring) var(--axiom-ease-spring), height var(--axiom-duration-spring) var(--axiom-ease-spring); }
/* while the pill is drawn, the chosen button itself goes transparent (each selector outranks the rule that painted it) */
.bank-v2 .bk-boards[data-ax-glide] > button[aria-pressed="true"],
.bank-v2 .bk-sgm[data-ax-glide] > button[aria-pressed="true"],
.bank-v2 .bk-strip .axf-tabs[data-ax-glide] > button.on,
.bank-v2 .bk-strip .axf-seg[data-ax-glide] > button.on,
.bank-v2 .bk-more-pop .axf-seg[data-ax-glide] > button.on { background: transparent; }
.bank-v2 .bk-view[data-ax-glide] > button[aria-pressed="true"],
.bank-v2 .bk-tabs[data-ax-glide] > button[aria-selected="true"] { background: transparent; box-shadow: none; }
.axiom-bank-shell .sidebar .menu[data-ax-glide] > .menu-item.active { background: transparent; box-shadow: none; }
.axiom-bank-shell .sidebar .menu[data-ax-glide] > .menu-item.active::before { display: none; }

/* ---- question cards: rise in when a result arrives, lift under the mouse ---- */
@keyframes ax-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* `backwards` (not `both`): once the card has arrived its own transform rules (hover lift, press) apply again */
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card { animation: ax-card-in var(--axiom-duration-considered) var(--axiom-ease-enter) backwards; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(2) { animation-delay: 30ms; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(3) { animation-delay: 60ms; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(4) { animation-delay: 90ms; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(5) { animation-delay: 120ms; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(6) { animation-delay: 150ms; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(7) { animation-delay: 180ms; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(8) { animation-delay: 210ms; }
  .bank-v2 [data-view="images"] .question-card-list > .question-list-card:nth-child(n+9) { animation-delay: 240ms; }
}
.bank-v2 [data-view="images"] .question-list-card { transition: transform var(--axiom-duration-standard) var(--axiom-ease-standard), box-shadow var(--axiom-duration-standard) var(--axiom-ease-standard), border-color var(--axiom-duration-fast) var(--axiom-ease-standard), background-color var(--axiom-duration-fast) var(--axiom-ease-standard); }
.bank-v2 .bank-thumbnail-window img { transform-origin: top center; transition: transform var(--axiom-duration-considered) var(--axiom-ease-enter); }
@media (hover: hover) and (pointer: fine) {
  .bank-v2 [data-view="images"] .question-list-card:hover { transform: translateY(-3px); box-shadow: var(--axiom-shadow-lift); }
  .bank-v2 [data-view="images"] .question-list-card:hover .bank-thumbnail-window img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: no-preference) {
  .bank-v2 [data-view="images"] .question-list-card:active { transform: translateY(-1px) scale(.99); transition-duration: var(--axiom-duration-instant); }
}
.bank-v2 [data-view="images"] .question-list-card.is-active { box-shadow: 0 0 0 1px var(--board-accent), var(--axiom-shadow-raised); }

/* ---- subject cards and item chips ---- */
.bank-v2 .bk-seg { transition: background-color var(--axiom-duration-fast) var(--axiom-ease-standard), border-color var(--axiom-duration-fast) var(--axiom-ease-standard), opacity var(--axiom-duration-standard) var(--axiom-ease-standard), transform var(--axiom-duration-standard) var(--axiom-ease-standard), box-shadow var(--axiom-duration-standard) var(--axiom-ease-standard); }
.bank-v2 .bk-chip { transition: background-color var(--axiom-duration-fast) var(--axiom-ease-standard), border-color var(--axiom-duration-fast) var(--axiom-ease-standard), color var(--axiom-duration-fast) var(--axiom-ease-standard), transform var(--axiom-duration-instant) var(--axiom-ease-standard); }
.bank-v2 .bk-dd-btn, .bank-v2 .bk-pillbtn { transition: background-color var(--axiom-duration-fast) var(--axiom-ease-standard), border-color var(--axiom-duration-fast) var(--axiom-ease-standard), color var(--axiom-duration-fast) var(--axiom-ease-standard), transform var(--axiom-duration-instant) var(--axiom-ease-standard); }
@keyframes ax-pop-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .bank-v2 .bk-seg:hover { transform: translateY(-2px); box-shadow: var(--axiom-shadow-raised); }
}
@media (prefers-reduced-motion: no-preference) {
  .bank-v2 .bk-seg:active { transform: scale(.98); transition-duration: var(--axiom-duration-instant); }
  .bank-v2 .bk-chip:active, .bank-v2 .bk-dd-btn:active, .bank-v2 .bk-pillbtn:active,
  .bank-v2 .bk-boards > button:active, .bank-v2 .bk-view > button:active, .bank-v2 .bk-tabs > button:active, .bank-v2 .bk-sgm > button:active,
  .bank-v2 .bk-strip .axf-tabs > button:active, .bank-v2 .bk-strip .axf-seg > button:active, .bank-v2 .bk-selbar button:active, .bank-v2 .bk-savebar button:active { transform: scale(.96); }
  .bank-v2 .bk-seg .ck, .bank-v2 .bk-ddi[aria-selected="true"] .tick { animation: ax-pop-in var(--axiom-duration-spring) var(--axiom-ease-spring); }
}

/* ---- popovers grow from their trigger; the detail slide-over and its scrim ease in ---- */
.bank-v2 .bk-more-pop, .bank-v2 .bk-dd-pop { animation: bk-pop var(--axiom-duration-fast) var(--axiom-ease-enter); }
@keyframes ax-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1079px) {
  .bank-v2 .bank-workspace .bank-preview { transition: transform var(--axiom-duration-standard) var(--axiom-ease-enter); }
  .bank-v2 .bk-scrim { animation: ax-fade-in var(--axiom-duration-standard) var(--axiom-ease-standard); }
}

/* ---- selection and save bars: arrive on a spring, the count bumps when it changes ---- */
@keyframes ax-bar-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ax-bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.bank-v2 .bk-selbar.show { animation: ax-bar-in var(--axiom-duration-spring) var(--axiom-ease-spring); }
.bank-v2 .bk-selbar .ax-bump { display: inline-block; animation: ax-bump var(--axiom-duration-standard) var(--axiom-ease-standard); }


/* ---- multi-select: neighbouring choices share one stretched pill (bankui.js); choices with a gap fill themselves with a pop ---- */
@keyframes ax-fill-pop { from { opacity: .55; transform: scale(.86); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  [data-ax-multi] > [aria-pressed="true"] { animation: ax-fill-pop var(--axiom-duration-spring) var(--axiom-ease-spring); }
}

/* hover rules above this section that would stick after a tap on touch screens */
@media (hover: none) {
  .bank-v2 .bk-seg:hover:not([aria-pressed="true"]) { background: #fff; }
  .bank-v2 .bk-chip:hover:not([aria-pressed="true"]):not([data-implied="true"]):not(.ahl) { border-color: var(--bk-line); }
  .bank-v2 .bk-dd-btn:hover:not(.on), .bank-v2 .bk-pillbtn:hover:not(.on) { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  [data-ax-glide="on"]::before, .axiom-bank-shell .sidebar .menu[data-ax-glide="on"]::after { transition: opacity var(--axiom-duration-fast) var(--axiom-ease-standard); }
  .bank-v2 [data-view="images"] .question-list-card, .bank-v2 .bank-thumbnail-window img, .bank-v2 .bk-seg { transition-property: background-color, border-color, box-shadow, opacity; }
  .bank-v2 .bk-selbar.show, .bank-v2 .bk-selbar .ax-bump, .bank-v2 .bk-more-pop, .bank-v2 .bk-dd-pop, .bank-v2 .bk-scrim { animation: ax-fade-in var(--axiom-duration-fast) var(--axiom-ease-standard); }
  .bank-v2 .bank-workspace .bank-preview { transition: none; }
  .bank-v2 [data-view="images"] .question-list-card:hover, .bank-v2 .bk-seg:hover { transform: none; }
  .bank-v2 [data-view="images"] .question-list-card:hover .bank-thumbnail-window img { transform: none; }
}

/* ---- year: one small box (bankui.js YearInline) ---- */
.bank-v2 .bk-year { gap: 8px; }
.bank-v2 .bk-yone-box { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.bank-v2 .bk-yone-in { width: 128px; height: calc(var(--bk-ctl) - 4px); border: 1px solid var(--bk-line); border-radius: 999px; padding: 0 12px; font: inherit; font-variant-numeric: tabular-nums; background: #fff; color: var(--bk-ink); }
.bank-v2 .bk-yone-in::placeholder { color: #a5a699; }
.bank-v2 .bk-yone-in:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 1px; border-color: var(--bk-accent); }
.bank-v2 .bk-yone-in.bad { border-color: #c0392b; }
.bank-v2 .bk-yone-in.bad:focus-visible { outline-color: #c0392b; }
.bank-v2 .bk-yone-x { width: 24px; height: 24px; flex: none; border: 0; background: var(--bk-soft); border-radius: 999px; color: var(--bk-muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.bank-v2 .bk-yone-x:hover { color: var(--bk-ink); }
.bank-v2 .bk-yone-x:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bank-v2 .bk-yone-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; width: 128px; box-sizing: border-box; background: #fff; border: 1px solid var(--bk-line); border-radius: 14px; box-shadow: 0 2px 6px rgba(20, 30, 28, .06), 0 18px 44px rgba(20, 30, 28, .16); padding: 4px; animation: bk-pop .13s ease-out; }
.bank-v2 .bk-yone-pop.err { width: 236px; padding: 8px 10px; }
.bank-v2 .bk-yone-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--bk-ink); cursor: pointer; font: inherit; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; }
.bank-v2 .bk-yone-opt:hover, .bank-v2 .bk-yone-opt.on { background: var(--bk-soft); }
.bank-v2 .bk-yone-hint { margin-top: 4px; padding: 5px 8px 3px; border-top: 1px solid var(--bk-line); color: var(--bk-muted); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.bank-v2 .bk-yone-err { color: #b4402f; font-size: 12px; line-height: 1.5; }

/* Detail pane images: the cached list thumbnail stands in until the full image has loaded */
.bk-dimgs { display: block; }
.bk-dimgs img { max-width: 100%; border: 1px solid #e4e7ed; border-radius: 4px; background: #fff; display: block; margin-bottom: 8px; }
.bk-dimgs img.pending { position: absolute; visibility: hidden; width: 1px; height: 1px; margin: 0; border: 0; }
.bk-dimgs img.bk-dthumb { width: 100%; }
