/* Mobile-first polish for the bank → chapter → question flow. */
@media(max-width:700px){
  .container:has(.bank-detail){padding:14px 12px 34px}
  .bank-detail>.panel:first-child{margin:0;padding:18px 16px 24px;border-radius:18px;background:linear-gradient(180deg,#fff 0,#fbfdff 100%)}
  .bank-hero{display:block;padding-bottom:20px}
  .bank-hero .big-icon{width:46px;height:46px;margin-bottom:13px;border-radius:13px}
  .bank-hero .big-icon .ui-icon{width:24px;height:24px}
  .bank-hero .breadcrumbs{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;margin:0 0 12px;padding-bottom:2px;scrollbar-width:none;white-space:nowrap}
  .bank-hero .breadcrumbs::-webkit-scrollbar{display:none}
  .bank-hero .breadcrumbs span{color:#c2ccda}
  .bank-hero .tag{padding:5px 9px;background:#edf4ff;color:var(--brand);font-size:10px}
  .bank-hero h1{margin:10px 0 7px;font-size:24px;line-height:1.38;letter-spacing:-.04em}
  .bank-hero p{font-size:13px;line-height:1.65}
  .bank-detail .section{margin-top:25px}
  .bank-detail .section-head{margin-bottom:12px}
  .bank-detail .section-head h2{font-size:21px;line-height:1.3}
  .bank-detail .section-head p{margin-top:5px;font-size:12px}
  .practice-mode-grid{gap:9px}
  .practice-mode{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;padding:15px 16px;border-radius:14px;background:#fff}
  .practice-mode:before{content:"";position:absolute;top:15px;left:0;width:3px;height:25px;border-radius:0 3px 3px 0;background:#cddbf1}
  .practice-mode.primary-mode{border-color:#a9c7fb;background:linear-gradient(135deg,#f1f6ff,#fff)}
  .practice-mode.primary-mode:before{background:var(--brand)}
  .practice-mode strong{font-size:15px;line-height:1.4}
  .practice-mode span{grid-column:1/-1;margin-top:5px;padding-right:4px;font-size:12px;line-height:1.55}
  .practice-mode b{grid-column:2;grid-row:1;align-self:center;margin:0;color:var(--brand);font-size:12px}
  .chapter-list{gap:9px;margin-top:13px}
  .chapter-row{min-height:70px;padding:12px 12px 12px 14px;border-radius:14px;background:#fff}
  .chapter-row strong{font-size:14px;line-height:1.4}
  .chapter-row .soft{min-width:58px;min-height:44px;padding:0 10px;border-radius:12px}
  .bank-detail>.practice-panel{display:none}

  .practice-topbar-inner{min-height:56px;padding:0 12px}
  .practice-brand{font-size:16px}
  .practice-brand .brand-mark{width:28px;height:28px}
  .practice-main{padding:12px 10px calc(94px + env(safe-area-inset-bottom))}
  .practice-container .quiz-card{padding:16px 14px 24px;border:0;border-radius:17px;box-shadow:0 8px 28px rgba(35,68,118,.06)}
  .practice-container .quiz-meta{display:block;margin-bottom:17px;padding-bottom:13px}
  .practice-container .quiz-index{display:block;overflow:hidden;color:#71839e;font-size:11px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
  .practice-container .quiz-index:has(.quiz-position){display:flex;align-items:center;justify-content:space-between;gap:10px}
  .quiz-index .quiz-context{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .quiz-index .quiz-position{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#edf4ff;color:var(--brand);font-weight:800}
  .practice-container .quiz-stem{font-size:17px;line-height:1.72;font-weight:700}
  .practice-container .options{gap:9px;margin:22px 0 0}
  .practice-container .option{align-items:center;min-height:56px;padding:11px 12px;border-radius:13px;font-size:14px;line-height:1.55}
  .practice-container .letter{width:30px;height:30px}
  .practice-container .explanation{margin-top:16px;padding:14px;border-radius:12px;background:#f3f7ff;font-size:13px;line-height:1.7}
  .practice-actions{grid-template-columns:minmax(92px,.72fr) minmax(0,1.4fr);gap:9px;padding:10px 12px;padding-bottom:calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(23,35,61,.09)}
  .practice-actions button{min-height:48px;border-radius:13px}
  .practice-actions .primary{font-size:15px}
}

@media(max-width:360px){
  .bank-detail>.panel:first-child{padding-right:14px;padding-left:14px}
  .bank-hero h1{font-size:22px}
  .practice-container .quiz-stem{font-size:16px}
  .practice-actions{grid-template-columns:88px minmax(0,1fr)}
}
