/* Question bank list page polish (owner request 2026-11-13). Loaded last; scoped to index-mode.
   Same type pair and blue accent as the question pages, readable sizes, neutral tiles with a
   difficulty marker and answered/saved marks, a progress summary, and a prominent Start button.
   Dark mode keeps its star background. Fonts come from site-polish.css (/fonts). */

html[data-theme="light"] body.index-mode{--bk-ink:#1b1d21;--bk-muted:#5b616b;--bk-line:#dde1e7;--bk-surface:#fff;--bk-soft:#f4f5f8;--bk-accent:#324dc7;--bk-accent-soft:#e8ecfc;--bk-on-accent:#fff;--bk-good:#1f9d55;--bk-bad:#d93636;--bk-star:#b7791f}
html[data-theme="dark"] body.index-mode{--bk-ink:#eef0f4;--bk-muted:#aab2bf;--bk-line:rgba(255,255,255,.14);--bk-surface:rgba(255,255,255,.045);--bk-soft:rgba(255,255,255,.07);--bk-accent:#8ab4ff;--bk-accent-soft:rgba(138,180,255,.16);--bk-on-accent:#0b0f17;--bk-good:#34c778;--bk-bad:#f05252;--bk-star:#f6c453}

/* ---------- Type: one family for the interface, the question serif for headings. */
html:root body.index-mode,html:root body.index-mode button,html:root body.index-mode input,html:root body.index-mode select,html:root body.index-mode label,html:root body.index-mode .bank-browser *{font-family:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important}
html:root body.index-mode h1,html:root body.index-mode .bank-filters h2,html:root body.index-mode .bank-session strong{font-family:"STIX Two Text",Georgia,serif!important;letter-spacing:-.01em}
html:root body.index-mode .bank-browser{color:var(--bk-ink)}

/* ---------- Readable sizes (nothing under 12px). */
html:root body.index-mode .bank-session strong{font-size:20px!important;font-weight:700!important}
html:root body.index-mode .bank-session small{font-size:13px!important;color:var(--bk-muted)!important}
html:root body.index-mode .bank-search{font-size:13px!important;font-weight:500!important;color:var(--bk-muted)!important}
html:root body.index-mode .bank-search input{min-height:44px!important;font-size:15px!important;padding:0 14px!important;border-radius:10px!important}
html:root body.index-mode .bank-selection button{min-height:36px!important;padding:0 14px!important;border-radius:999px!important;font-size:13.5px!important;font-weight:500!important}
html:root body.index-mode .bank-selection>span{font-size:12.5px!important;color:var(--bk-muted)!important}
html:root body.index-mode .bank-group-head button span{font-size:15px!important;font-weight:500!important}
html:root body.index-mode .bank-group-head button small{font-size:13px!important;color:var(--bk-muted)!important;font-variant-numeric:tabular-nums}
html:root body.index-mode .bank-group-head button i{font-size:16px!important;font-style:normal;color:var(--bk-muted)}
html:root body.index-mode .bank-skill .bank-group-head button span{font-size:14px!important;font-weight:400!important}
html:root body.index-mode .bank-more{min-height:36px;padding:0 16px!important;border-radius:999px!important;font-size:13.5px!important;font-weight:500!important}
html:root body.index-mode .bank-filters h2{font-size:20px!important;font-weight:700!important}
html:root body.index-mode .bank-filters legend{font-size:12.5px!important;font-weight:600!important;color:var(--bk-muted)!important;letter-spacing:.02em;text-transform:none!important}
html:root body.index-mode .bank-check{font-size:14px!important;min-height:30px;align-items:center}
html:root body.index-mode .bank-check small{font-size:12.5px!important;color:var(--bk-muted)!important;font-variant-numeric:tabular-nums}
html:root body.index-mode .bank-filters summary,html:root body.index-mode .bank-past-filter label,html:root body.index-mode .bank-past-filter small{font-size:13px!important}
html:root body.index-mode .bank-past-badge{font-size:10.5px!important;letter-spacing:.06em}
html:root body.index-mode .bank-filters select{min-height:40px;font-size:14px!important;border-radius:10px!important}
html:root body.index-mode .bank-shuffle{font-size:13.5px!important}
html:root body.index-mode .label{font-size:12px!important;letter-spacing:.12em}
html:root body.index-mode .study-theme-toggle{font-size:13px!important}

/* ---------- One accent (blue), bigger checkboxes. */
html:root body.index-mode input[type="checkbox"]{accent-color:var(--bk-accent)!important}
html:root body.index-mode .bank-check input,html:root body.index-mode .bank-group-head>input,html:root body.index-mode .bank-shuffle input{width:17px!important;height:17px!important;flex:none}
html:root body.index-mode .bank-past-filter{border-color:var(--bk-line)!important;background:var(--bk-soft)!important;box-shadow:none!important}
html:root body.index-mode .bank-past-filter legend,html:root body.index-mode .bank-past-badge{color:var(--bk-accent)!important}
html[data-theme="dark"] body.index-mode .bank-filters select{background:rgba(255,255,255,.06)!important;color:var(--bk-ink)!important;border:1px solid var(--bk-line)!important;color-scheme:dark}
html:root body.index-mode .bank-search input:focus,html:root body.index-mode .bank-filters select:focus{outline:2px solid var(--bk-accent)!important;outline-offset:1px}

/* ---------- Start Practice: the main action. */
html:root body.index-mode .bank-start{min-height:46px!important;padding:0 26px!important;border:0!important;border-radius:999px!important;background:var(--bk-accent)!important;color:var(--bk-on-accent)!important;font-size:15.5px!important;font-weight:600!important;box-shadow:0 6px 18px rgba(50,77,199,.22)!important;cursor:pointer;transition:transform .1s ease,filter .15s ease}
html:root body.index-mode .bank-start:hover:not(:disabled){filter:brightness(1.07)}
html:root body.index-mode .bank-start:active:not(:disabled){transform:scale(.98)}
html:root body.index-mode .bank-start:disabled{opacity:.45;box-shadow:none!important;cursor:not-allowed}
html:root body.index-mode .bank-start small{font-weight:500;opacity:.85;margin-left:6px;font-size:13.5px}

/* ---------- Progress summary. */
.v2-progress{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 18px;padding:14px 18px;border:1px solid var(--bk-line);border-radius:14px;background:var(--bk-surface)}
.v2-progress-text{display:flex;flex-direction:column;gap:2px;min-width:170px}
.v2-progress-text strong{font-size:15px;font-weight:600;color:var(--bk-ink)}
.v2-progress-text span{font-size:13px;color:var(--bk-muted)}
.v2-progress-bar{flex:1 1 180px;height:8px;border-radius:999px;background:var(--bk-soft);overflow:hidden;display:flex}
.v2-progress-bar i{display:block;height:100%}
.v2-progress-bar .ok{background:var(--bk-good)}.v2-progress-bar .tried{background:var(--bk-bad);opacity:.75}
.v2-continue{min-height:38px;padding:0 16px;border:1px solid var(--bk-line);border-radius:999px;background:transparent;color:var(--bk-ink);font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.v2-continue:hover{border-color:var(--bk-accent);color:var(--bk-accent)}

/* ---------- Tiles: neutral, readable, with a difficulty marker and status marks. */
html:root body.index-mode .bank-tiles{grid-template-columns:repeat(auto-fill,72px)!important;gap:8px!important}
html:root body.index-mode .bank-tile{width:72px!important;height:66px!important;min-height:66px!important;border:1px solid var(--bk-line)!important;border-radius:10px!important;background:var(--bk-surface)!important;color:var(--bk-ink)!important;box-shadow:none!important;transition:border-color .12s ease,box-shadow .12s ease,transform .12s ease;overflow:hidden}
html:root body.index-mode .bank-tile::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--bk-diff,#9aa0aa)}
html:root body.index-mode .bank-tile.difficulty-easy{--bk-diff:#2f9e6e}
html:root body.index-mode .bank-tile.difficulty-medium{--bk-diff:#d9902b}
html:root body.index-mode .bank-tile.difficulty-hard{--bk-diff:#d2485c}
html:root body.index-mode .bank-tile.difficulty-challenge{--bk-diff:#7c5cd6}
html:root body.index-mode .bank-tile.difficulty-impossible{--bk-diff:#1b1d21}
html[data-theme="dark"] body.index-mode .bank-tile.difficulty-impossible{--bk-diff:#e5e7eb}
html:root body.index-mode .bank-tile:hover{border-color:var(--bk-accent)!important;box-shadow:0 4px 12px rgba(16,24,40,.1)!important;transform:translateY(-1px)}
html:root body.index-mode .bank-tile.is-selected{outline:2px solid var(--bk-accent)!important;outline-offset:1px!important}
html:root body.index-mode .bank-tile>input{right:5px!important;top:5px!important;width:15px!important;height:15px!important}
html:root body.index-mode .bank-tile>:is(button,a[data-open]){padding:6px 6px 5px 10px!important;align-items:flex-start!important;justify-content:space-between!important;color:inherit!important;text-decoration:none}
html:root body.index-mode .bank-tile small{font-size:10px!important;font-weight:600!important;line-height:1.2!important;color:var(--bk-diff)!important;padding-right:18px!important;letter-spacing:.01em}
html[data-theme="dark"] body.index-mode .bank-tile small{filter:brightness(1.35)}
html:root body.index-mode .bank-tile b{font-size:19px!important;font-weight:700!important;line-height:1.15!important;font-variant-numeric:tabular-nums;color:var(--bk-ink)!important}
html:root body.index-mode .bank-tile span{font-size:10px!important;line-height:1.2!important;color:var(--bk-muted)!important}
html:root body.index-mode .bank-tile em{display:none!important}
/* Status marks (added by bank-polish.js from the tile's own status). */
html:root body.index-mode .bank-tile.v2-correct{border-color:var(--bk-good)!important;background:color-mix(in srgb,var(--bk-good) 9%,var(--bk-surface))!important}
html:root body.index-mode .bank-tile.v2-tried{border-color:var(--bk-bad)!important;background:color-mix(in srgb,var(--bk-bad) 8%,var(--bk-surface))!important}
.v2-tile-mark{position:absolute;right:5px;bottom:4px;font-size:12px;font-weight:700;line-height:1;pointer-events:none}
.v2-correct .v2-tile-mark{color:var(--bk-good)}.v2-tried .v2-tile-mark{color:var(--bk-bad)}
.v2-tile-star{position:absolute;right:22px;top:4px;font-size:11px;line-height:1;color:var(--bk-star);pointer-events:none}

/* ---------- Leftovers. */
html:root body.index-mode nav.bank-selection[aria-label="Jump to a question domain"]{display:none!important}/* domains are already the list below and a filter */
@media (min-width:901px){html:root body.index-mode .desktop-tip{display:none!important}}
html:root body.index-mode .v2-empty-tier{display:none!important}
html:root body.index-mode .bank-group-head{min-height:46px}

@media (max-width:700px){
 html:root body.index-mode .bank-tiles{grid-template-columns:repeat(auto-fill,minmax(68px,1fr))!important}
 html:root body.index-mode .bank-tile{width:auto!important}
 .v2-progress{gap:12px;padding:12px 14px}
 html:root body.index-mode .bank-start{width:100%}
}
@media (prefers-reduced-motion:reduce){html:root body.index-mode .bank-tile,html:root body.index-mode .bank-start{transition:none!important;transform:none!important}}

/* ================= Second pass: calmer layout and friendlier controls ================= */

/* Session card: one clear place to start. */
html:root body.index-mode .bank-session{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;flex-wrap:wrap;margin:0 0 16px!important;padding:16px 18px!important;border:1px solid var(--bk-line)!important;border-radius:14px!important;background:var(--bk-surface)!important}
html:root body.index-mode .bank-session-actions{display:flex!important;align-items:center!important;gap:16px!important;flex-wrap:wrap}
html:root body.index-mode .bank-start{white-space:nowrap!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px}
html:root body.index-mode .bank-start small{color:inherit!important;margin:0!important;font-size:14px!important;font-weight:500!important;opacity:.9}
html:root body.index-mode .bank-shuffle{display:inline-flex!important;align-items:center;gap:8px;color:var(--bk-muted)!important;cursor:pointer}

/* Search. */
html:root body.index-mode .bank-search{display:block!important;margin:0 0 12px!important}
html:root body.index-mode .bank-search input{display:block;width:100%;margin-top:6px!important;border:1px solid var(--bk-line)!important;background:var(--bk-surface)!important;color:var(--bk-ink)!important}

/* Quick filters. */
.v2-quick{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.v2-quick-label{font-size:12.5px;font-weight:600;color:var(--bk-muted);margin-right:2px}
.v2-quick button{min-height:34px;padding:0 14px;border:1px solid var(--bk-line);border-radius:999px;background:var(--bk-surface);color:var(--bk-ink);font-size:13.5px;font-weight:500;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,color .12s ease}
.v2-quick button:hover{border-color:var(--bk-accent)}
.v2-quick button[aria-pressed="true"]{background:var(--bk-accent);border-color:var(--bk-accent);color:var(--bk-on-accent)}

/* Secondary actions read as quiet links, not a second row of buttons. */
html:root body.index-mode .bank-selection{display:flex!important;align-items:center!important;gap:4px!important;flex-wrap:wrap;margin:0 0 12px!important}
html:root body.index-mode .bank-selection button{min-height:30px!important;padding:0 10px!important;border:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--bk-accent)!important;font-size:13px!important;font-weight:500!important;cursor:pointer}
html:root body.index-mode .bank-selection button:hover{text-decoration:underline}
html:root body.index-mode .bank-selection>span{display:none!important}

/* Legend. */
.v2-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 12px;padding:0 2px;font-size:12.5px;color:var(--bk-muted)}
.v2-legend-item{display:inline-flex;align-items:center;gap:6px}
.v2-legend-item i{width:4px;height:14px;border-radius:2px;background:var(--bk-diff,#9aa0aa)}
.v2-legend-item.difficulty-easy{--bk-diff:#2f9e6e}.v2-legend-item.difficulty-medium{--bk-diff:#d9902b}.v2-legend-item.difficulty-hard{--bk-diff:#d2485c}.v2-legend-item.difficulty-challenge{--bk-diff:#7c5cd6}.v2-legend-item.difficulty-impossible{--bk-diff:var(--bk-ink)}
.v2-legend-item b{font-weight:700}
.v2-legend-ok b{color:var(--bk-good)}.v2-legend-bad b{color:var(--bk-bad)}.v2-legend-star b{color:var(--bk-star)}
.v2-legend-ok{margin-left:8px}

/* Domain and skill rows: cards with a chevron and a progress meter. */
html:root body.index-mode .bank-domain{margin:0 0 10px!important;border:1px solid var(--bk-line)!important;border-radius:14px!important;background:var(--bk-surface)!important;box-shadow:none!important;overflow:hidden}
html:root body.index-mode .bank-domain>.bank-group-head{padding:4px 14px!important}
html:root body.index-mode .bank-domain>.bank-group-head button span{font-size:16px!important;font-weight:600!important}
html:root body.index-mode .bank-group-head{display:flex!important;align-items:center!important;gap:10px!important}
html:root body.index-mode .bank-group-head button{flex:1;display:flex!important;align-items:center!important;gap:12px!important;min-height:44px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--bk-ink)!important;text-align:left;cursor:pointer}
html:root body.index-mode .bank-group-head button span{flex:1}
html:root body.index-mode .bank-group-head button i{font-size:0!important;width:18px;height:18px;flex:none;position:relative}
html:root body.index-mode .bank-group-head button i::before{content:'';position:absolute;left:5px;top:3px;width:7px;height:7px;border-right:1.8px solid var(--bk-muted);border-bottom:1.8px solid var(--bk-muted);transform:rotate(45deg);transition:transform .15s ease}
html:root body.index-mode .bank-group-head button[aria-expanded="true"] i::before{transform:rotate(-135deg);top:7px}
html:root body.index-mode .bank-skill{border-top:1px solid var(--bk-line)!important;background:transparent!important;margin:0!important;border-radius:0!important}
html:root body.index-mode .bank-skill>.bank-group-head{padding:0 14px 0 28px!important}
html:root body.index-mode .bank-skill-content{padding:4px 14px 16px 28px!important}
.v2-domain-meter{flex:none;width:90px;height:6px;border-radius:999px;background:var(--bk-soft);overflow:hidden}
.v2-domain-meter i{display:block;height:100%;background:var(--bk-good);border-radius:999px}

/* Tiles: room for the longest label. */
html:root body.index-mode .bank-tiles{grid-template-columns:repeat(auto-fill,84px)!important}
html:root body.index-mode .bank-tile{width:84px!important}

/* Filters panel: a clean card with dividers. */
html:root body.index-mode .bank-filters{border:1px solid var(--bk-line)!important;border-radius:14px!important;background:var(--bk-surface)!important;box-shadow:none!important;padding:16px!important}
html:root body.index-mode .bank-filters fieldset{border:0!important;border-top:1px solid var(--bk-line)!important;margin:12px 0 0!important;padding:12px 0 0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
html:root body.index-mode .bank-filters h2+fieldset{border-top:0!important;margin-top:4px!important;padding-top:0!important}
html:root body.index-mode .bank-filters legend{display:block;padding:0!important;margin-bottom:6px}
html:root body.index-mode .bank-check{display:flex!important;gap:10px!important;padding:3px 0!important;cursor:pointer}
html:root body.index-mode .bank-check span{flex:1}
html:root body.index-mode .bank-filters>button[data-bank-action="reset"]{width:100%;min-height:38px;margin-top:14px;border:1px solid var(--bk-line)!important;border-radius:999px!important;background:transparent!important;color:var(--bk-ink)!important;font-size:13.5px!important;font-weight:500!important;cursor:pointer}
html:root body.index-mode .bank-filter-toggle{min-height:44px;border:1px solid var(--bk-line)!important;border-radius:12px!important;background:var(--bk-surface)!important;color:var(--bk-ink)!important;font-size:14.5px!important;font-weight:600!important}

@media (max-width:700px){
 html:root body.index-mode .bank-tiles{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))!important}
 html:root body.index-mode .bank-session-actions{width:100%}
 .v2-domain-meter{width:56px}
 html:root body.index-mode .bank-skill>.bank-group-head{padding-left:18px!important}
 html:root body.index-mode .bank-skill-content{padding-left:18px!important}
}
html:root body.index-mode .bank-group-head button span.v2-domain-meter{flex:none!important;width:90px!important}
html:root body.index-mode .bank-check.v2-empty-tier{display:none!important}
@media (max-width:700px){html:root body.index-mode .bank-group-head button span.v2-domain-meter{width:56px!important}}
.v2-progress-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.v2-progress-actions button{min-height:36px;padding:0 14px;border:1px solid var(--bk-line);border-radius:999px;background:transparent;color:var(--bk-ink);font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:border-color .12s ease,color .12s ease,background-color .12s ease}
.v2-progress-actions button:hover{border-color:var(--bk-accent);color:var(--bk-accent)}
.v2-progress-actions .v2-primary{background:var(--bk-accent-soft);border-color:transparent;color:var(--bk-accent)}
.v2-progress-actions .v2-quiet{border-color:transparent;color:var(--bk-muted);font-weight:500;padding:0 8px}

/* ================= Third pass: "cool paper" light theme and a designed layout =================
   Owner picked the cool-paper white (2026-11-13). Light: tinted page, near-white cards that lift
   with soft shadows instead of outlines, two text colors. Dark keeps its stars and surfaces and
   gets the same structure. */
html[data-theme="light"] body.index-mode{--bk-page:#F2F4F8;--bk-surface:#FCFDFE;--bk-soft:#EDF0F5;--bk-line:#E1E5EC;--bk-ink:#1B1D21;--bk-muted:#5B616B;--bk-shadow:0 1px 2px rgba(16,24,40,.05),0 6px 20px rgba(16,24,40,.06);--bk-card-border:#E7EAF0;background:var(--bk-page)!important}
html[data-theme="dark"] body.index-mode{--bk-shadow:none;--bk-card-border:var(--bk-line)}
html[data-theme="light"] .study-glass-motion{display:none!important}/* the marble swirl */

/* Two text colors. */
html[data-theme="light"] body.index-mode h1,html[data-theme="light"] body.index-mode h2,html[data-theme="light"] body.index-mode strong,html[data-theme="light"] body.index-mode .bank-browser{color:var(--bk-ink)!important}
html:root body.index-mode .intro .label{color:var(--bk-muted)!important;font-weight:600!important}
html:root body.index-mode h1{font-size:34px!important;font-weight:700!important;margin:2px 0 0!important}

/* Header bar with a real wordmark. */
html:root body.index-mode header.nav{position:sticky;top:0;z-index:20;background:var(--bk-surface)!important;background-image:none!important;border:0!important;border-bottom:1px solid var(--bk-card-border)!important;box-shadow:0 1px 0 rgba(16,24,40,.02)!important;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme="dark"] body.index-mode header.nav{background:rgba(8,9,12,.72)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
html:root body.index-mode header.nav>div{display:flex!important;align-items:center!important;gap:14px!important;min-height:56px!important;padding-top:0!important;padding-bottom:0!important}
html:root body.index-mode header.nav .brand{display:inline-flex!important;align-items:center!important;gap:10px!important;margin-right:auto!important;font-size:17px!important;font-weight:700!important;letter-spacing:-.01em;color:var(--bk-ink)!important;text-decoration:none!important}
html:root body.index-mode header.nav .brand .mark{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:9px!important;background:var(--bk-accent)!important;color:var(--bk-on-accent)!important;font-size:17px!important;border:0!important;box-shadow:none!important}
html:root body.index-mode header.nav .home{font-size:14px!important;font-weight:500!important;color:var(--bk-muted)!important;text-decoration:none!important}
html:root body.index-mode header.nav .home:hover{color:var(--bk-ink)!important}
html:root body.index-mode header.nav .study-theme-toggle{min-height:34px!important;padding:0 14px!important;border:0!important;border-radius:999px!important;background:var(--bk-soft)!important;background-image:none!important;color:var(--bk-ink)!important;font-size:13px!important;font-weight:500!important;box-shadow:none!important}

/* Cards lift off the page. */
html:root body.index-mode .v2-progress,html:root body.index-mode .bank-domain,html:root body.index-mode .bank-filters{border:1px solid var(--bk-card-border)!important;background:var(--bk-surface)!important;box-shadow:var(--bk-shadow)!important}

/* Hero: progress + Start in one block. */
html:root body.index-mode .v2-progress{display:block;padding:20px 22px!important;border-radius:16px!important;margin-bottom:18px}
.v2-hero-top{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
html:root body.index-mode .v2-progress-text strong{font-size:19px;font-weight:700;letter-spacing:-.01em}
html:root body.index-mode .v2-progress-text span{font-size:13.5px}
html:root body.index-mode .v2-progress-bar{height:10px;flex:1 1 200px}
html:root body.index-mode .v2-hero-top .bank-session-actions{display:flex!important;align-items:center!important;gap:16px!important;margin-left:auto}
html:root body.index-mode .v2-progress-actions{margin-top:16px;padding-top:14px;border-top:1px solid var(--bk-line)}
html:root body.index-mode .v2-progress-actions button{border:0;background:var(--bk-soft)}
html:root body.index-mode .v2-progress-actions button:hover{background:var(--bk-accent-soft);color:var(--bk-accent)}
html:root body.index-mode .v2-progress-actions .v2-primary{background:var(--bk-accent-soft);color:var(--bk-accent)}
html:root body.index-mode .v2-progress-actions .v2-quiet{background:transparent}
html:root body.index-mode .v2-match-count{margin-left:auto;font-size:13px!important;color:var(--bk-muted)!important}
html:root body.index-mode .bank-session.v2-merged{display:none!important}

/* Toolbar: search with an icon, then soft filled chips. */
.v2-toolbar{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:0 0 10px}
html:root body.index-mode .v2-toolbar .bank-search{flex:1 1 320px;margin:0!important;font-size:0!important}
html:root body.index-mode .v2-toolbar .bank-search input{margin-top:0!important;min-height:46px!important;padding:0 14px 0 42px!important;border:1px solid var(--bk-card-border)!important;border-radius:12px!important;background-color:var(--bk-surface)!important;box-shadow:var(--bk-shadow)!important;background-repeat:no-repeat!important;background-position:14px center!important;background-size:18px 18px!important;font-size:15px!important}
html[data-theme="light"] body.index-mode .v2-toolbar .bank-search input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B616B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")!important}
html[data-theme="dark"] body.index-mode .v2-toolbar .bank-search input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AAB2BF' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")!important}
html:root body.index-mode .v2-toolbar .v2-quick{margin:0;min-height:46px}
html:root body.index-mode .v2-quick button{border:0;background:var(--bk-soft);min-height:36px}
html:root body.index-mode .v2-quick button:hover{background:var(--bk-accent-soft);color:var(--bk-accent)}
html:root body.index-mode .v2-quick button[aria-pressed="true"]{background:var(--bk-accent);color:var(--bk-on-accent)}
html:root body.index-mode .bank-more{border:0!important;background:var(--bk-soft)!important;color:var(--bk-ink)!important}

/* Tiles sit on the card as soft chips. */
html[data-theme="light"] body.index-mode .bank-tile{background:#F6F8FB!important;border-color:#E3E7EE!important}
html[data-theme="light"] body.index-mode .bank-tile:hover{background:#fff!important}

/* Custom checkboxes (replacing the browser default squares). */
html:root body.index-mode .bank-browser input[type="checkbox"]{-webkit-appearance:none;appearance:none;display:inline-grid;place-content:center;width:18px!important;height:18px!important;margin:0;border:1.5px solid #B4BBC7;border-radius:5px;background:var(--bk-surface);cursor:pointer;transition:background-color .12s ease,border-color .12s ease;flex:none}
html[data-theme="dark"] body.index-mode .bank-browser input[type="checkbox"]{border-color:rgba(255,255,255,.35);background:transparent}
html:root body.index-mode .bank-browser input[type="checkbox"]:hover{border-color:var(--bk-accent)}
html:root body.index-mode .bank-browser input[type="checkbox"]:checked,html:root body.index-mode .bank-browser input[type="checkbox"]:indeterminate{background:var(--bk-accent);border-color:var(--bk-accent)}
html:root body.index-mode .bank-browser input[type="checkbox"]:checked::after{content:'';width:5px;height:9px;margin-top:-2px;border-right:2px solid var(--bk-on-accent);border-bottom:2px solid var(--bk-on-accent);transform:rotate(45deg)}
html:root body.index-mode .bank-browser input[type="checkbox"]:indeterminate::after{content:'';width:9px;height:2px;border-radius:1px;background:var(--bk-on-accent)}
html:root body.index-mode .bank-browser input[type="checkbox"]:focus-visible{outline:2px solid var(--bk-accent);outline-offset:2px}
html:root body.index-mode .bank-tile>input[type="checkbox"]{width:15px!important;height:15px!important;border-radius:4px}
html:root body.index-mode .bank-tile>input[type="checkbox"]:checked::after{width:4px;height:7px}

/* Styled dropdown and disclosure. */
html:root body.index-mode .bank-filters select{-webkit-appearance:none;appearance:none;width:100%;padding:0 38px 0 12px!important;border:1px solid var(--bk-card-border)!important;background-color:var(--bk-surface)!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:14px 14px!important;color:var(--bk-ink)!important;font-weight:500!important;cursor:pointer}
html[data-theme="light"] body.index-mode .bank-filters select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B616B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}
html[data-theme="dark"] body.index-mode .bank-filters select{background-color:rgba(255,255,255,.06)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AAB2BF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}
html:root body.index-mode .bank-filters summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:0 12px;border-radius:10px;background:var(--bk-soft);color:var(--bk-ink);font-weight:500;cursor:pointer}
html:root body.index-mode .bank-filters summary::-webkit-details-marker{display:none}
html:root body.index-mode .bank-filters summary::after{content:'';width:7px;height:7px;margin-right:3px;border-right:1.8px solid var(--bk-muted);border-bottom:1.8px solid var(--bk-muted);transform:rotate(45deg);transition:transform .15s ease}
html:root body.index-mode .bank-filters details[open] summary::after{transform:rotate(-135deg)}
html:root body.index-mode .bank-past-filter{border:0!important;border-top:1px solid var(--bk-line)!important;background:transparent!important;padding:12px 0 0!important}
html:root body.index-mode .bank-past-filter legend,html:root body.index-mode .bank-past-badge{color:var(--bk-muted)!important}
html:root body.index-mode .bank-past-badge{display:none}
html:root body.index-mode .bank-filters>button[data-bank-action="reset"]{border:0!important;background:var(--bk-soft)!important}

@media (max-width:700px){
 html:root body.index-mode .v2-hero-top .bank-session-actions{margin-left:0;width:100%}
 html:root body.index-mode .v2-match-count{margin-left:0;width:100%}
 html:root body.index-mode h1{font-size:28px!important}
}
/* Hero layout: progress on the left, Start on the right. */
html:root body.index-mode .v2-hero-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:28px;row-gap:12px}
html:root body.index-mode .v2-hero-top .v2-progress-text{grid-column:1;grid-row:1}
html:root body.index-mode .v2-hero-top .v2-progress-bar{grid-column:1;grid-row:2;flex:none;width:100%}
html:root body.index-mode .v2-hero-top .bank-session-actions{grid-column:2;grid-row:1/3;margin-left:0}
html:root body.index-mode header.nav .brand{font-family:"Inter",system-ui,sans-serif!important}
@media (max-width:700px){
 html:root body.index-mode .v2-hero-top{grid-template-columns:minmax(0,1fr)}
 html:root body.index-mode .v2-hero-top .bank-session-actions{grid-column:1;grid-row:3;flex-wrap:wrap}
}
html:root body.index-mode header.nav .home,html:root body.index-mode header.nav .study-theme-toggle{white-space:nowrap!important;flex:none}
@media (max-width:420px){html:root body.index-mode header.nav .brand{font-size:15px!important}html:root body.index-mode header.nav>div{gap:10px!important}}

/* Dark mode: the dropdown's opened list was white with light text. */
html[data-theme="dark"] body.index-mode .bank-filters select{color-scheme:dark}
html[data-theme="dark"] body.index-mode .bank-filters select option{background:#15171c;color:#eef0f4}
html[data-theme="light"] body.index-mode .bank-filters select{color-scheme:light}
html[data-theme="light"] body.index-mode .bank-filters select option{background:#FCFDFE;color:#1B1D21}

/* Question preview popup (shown on tile hover/focus): same type and surfaces as the rest. */
html:root body.index-mode .bank-question-preview{border:1px solid var(--bk-card-border,#E7EAF0)!important;border-radius:14px!important;background:var(--bk-surface)!important;background-image:none!important;color:var(--bk-ink)!important;box-shadow:0 18px 50px rgba(16,24,40,.2)!important;font-family:"Inter",system-ui,sans-serif!important}
html[data-theme="dark"] body.index-mode .bank-question-preview{background:#15171c!important;box-shadow:0 18px 50px rgba(0,0,0,.55)!important}
html:root body.index-mode .bank-question-preview header strong{font-size:15px;font-weight:700}
html:root body.index-mode .bank-question-preview header span{font-size:12.5px!important;opacity:1!important;color:var(--bk-muted)}
html:root body.index-mode .bank-question-preview .bank-preview-copy,html:root body.index-mode .bank-question-preview .dataset,html:root body.index-mode .bank-question-preview .bank-preview-options span{font-family:"STIX Two Text",Georgia,serif!important;font-size:16px;line-height:1.5;color:var(--bk-ink)!important}
html:root body.index-mode .bank-question-preview math{font-family:"STIX Two Math","STIX Two Text",math!important}
html:root body.index-mode .bank-question-preview footer,html:root body.index-mode .bank-question-preview .bank-preview-response{font:500 12.5px/1.5 "Inter",system-ui,sans-serif!important;opacity:1!important;color:var(--bk-muted)!important}

/* ================= Feature audit 2026-11-14 ================= */
/* "Home" on the bank page led straight back to the bank page. */
body.index-mode header.nav a.home{display:none!important}
/* Attempt / result filters always read 0 because answers clear when you return to the list.
   The progress card's "Practice missed" and "Practice unanswered" do this job. */
.bank-filters :is(fieldset,label).v2-dead-filter{display:none!important}
/* Gentle arrivals: a section you open, and the list when you come back to it. */
@keyframes v2-bank-open{from{opacity:0;translate:0 -4px}to{opacity:1;translate:0 0}}
@keyframes v2-bank-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
.v2-open-in{animation:v2-bank-open .2s ease-out both}
body.v2-enter-bank.index-mode .bank-browser{animation:v2-bank-in .24s ease-out both}
.bank-tile.v2-tile-in{animation:v2-bank-open .2s ease-out both}
@media (prefers-reduced-motion:reduce){.v2-open-in,body.v2-enter-bank.index-mode .bank-browser,.bank-tile.v2-tile-in{animation:none!important}}

/* The bank redraws the search box on every keystroke and focus is put straight back. Without
   transitions the box looks untouched instead of blinking its focus ring each time. */
html:root body.index-mode .bank-search,html:root body.index-mode .bank-search input,html:root body.index-mode .v2-toolbar{transition:none!important;animation:none!important}
