:root {
  --navy-950: #0b2342;
  --navy-900: #12335f;
  --navy-800: #194477;
  --blue-600: #176fe5;
  --blue-100: #e9f2ff;
  --sky-500: #159bd7;
  --orange-500: #ec7b25;
  --green-600: #16845b;
  --red-600: #cf3e44;
  --ink: #132238;
  --muted: #637086;
  --line: #dce4ef;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --shadow: 0 8px 24px rgba(17, 48, 86, .08);
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { width: 100%; max-width: 100%; color-scheme: light; background: var(--canvas); overflow-x: clip; }
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { -webkit-tap-highlight-color: rgba(23, 111, 229, .12); }
.skip-link {
  position: fixed;
  z-index: 200;
  left: 12px;
  top: 8px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  color: white;
  background: var(--navy-950);
  border-radius: 10px;
}
.skip-link:focus { width: auto; height: auto; padding: 10px 14px; overflow: visible; clip-path: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(23, 111, 229, .35);
  outline-offset: 2px;
}
.app-shell { width: 100%; min-width: 0; min-height: 100dvh; background: var(--canvas); overflow-x: clip; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  padding: 0 max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(220, 228, 239, .8);
  backdrop-filter: blur(14px);
}
.topbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 17px; font-weight: 750; letter-spacing: .01em; }
.icon-button {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: currentColor;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}
.icon-button:active { transform: scale(.92); background: var(--blue-100); }
.icon-button svg { width: 24px; height: 24px; }
.is-hidden { visibility: hidden; pointer-events: none; }
#main { width: 100%; min-width: 0; min-height: calc(100dvh - 126px); padding: 18px 16px calc(104px + var(--safe-bottom)); overflow-x: clip; }
.page { width: 100%; min-width: 0; max-width: 680px; margin: 0 auto; }
.splash { min-height: 65dvh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.splash img { border-radius: 22px; box-shadow: var(--shadow); }
.splash strong { color: var(--navy-900); font-size: 20px; }

.brand-row { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; }
.brand-row img { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 5px 18px rgba(18, 51, 95, .12); }
.brand-copy { min-width: 0; }
.brand-copy h1 { margin: 0; font-size: clamp(23px, 7vw, 34px); line-height: 1.15; color: var(--navy-950); overflow-wrap: anywhere; }
.brand-copy p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  color: white;
  background: var(--navy-900);
  border-radius: 24px 24px 24px 8px;
  box-shadow: 0 14px 30px rgba(18, 51, 95, .18);
}
.hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 26px solid rgba(255,255,255,.07);
  border-radius: 50%;
  right: -72px;
  top: -78px;
}
.hero small { color: #c9dbf2; }
.hero h2 { margin: 7px 0 6px; max-width: 14em; font-size: 25px; line-height: 1.25; }
.hero p { margin: 0 0 18px; color: #dce9f9; font-size: 14px; }
.hero-actions { display: flex; align-items: center; gap: 12px; }
.hero-progress { min-width: 72px; color: #c9dbf2; font-size: 13px; }
.hero-progress strong { display: block; color: white; font-size: 22px; line-height: 1.1; }

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 120ms ease, filter 150ms ease, background-color 150ms ease;
}
.button:active { transform: scale(.97); filter: brightness(.96); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { color: white; background: var(--blue-600); }
.button-light { color: var(--navy-900); background: white; }
.button-outline { color: var(--blue-600); background: transparent; border-color: var(--blue-600); }
.button-quiet { color: var(--navy-800); background: var(--blue-100); }
.button-danger { color: var(--red-600); background: #fff1f2; }
.button-block { width: 100%; }
.button svg { width: 20px; height: 20px; }
.button.is-loading { pointer-events: none; color: transparent; position: relative; }
.button.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; color: white; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-head { margin: 26px 0 12px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.section-head h2, .section-head h3 { margin: 0; color: var(--navy-950); font-size: 20px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.text-action { min-height: 44px; padding: 0 4px; color: var(--blue-600); background: transparent; border: 0; font-weight: 700; cursor: pointer; }

.bank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bank-card {
  min-height: 154px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(17, 48, 86, .045);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.bank-card:active { transform: scale(.975); border-color: #aacaf1; box-shadow: none; }
.bank-card img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 11px; }
.bank-card strong { font-size: 18px; color: var(--navy-950); }
.bank-card span { margin-top: auto; color: var(--muted); font-size: 13px; }
.bank-card.common { background: #edf5ff; border-color: #c9ddfa; }
.bank-card.common .common-mark { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--navy-900); margin-bottom: 11px; }
.bank-card.common svg { width: 26px; height: 26px; }

.stat-strip { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 15px 8px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.stat strong { display: block; color: var(--navy-900); font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }

.history-card { width: 100%; padding: 18px; text-align: left; color: white; border: 0; border-radius: 18px; background: var(--navy-950); cursor: pointer; display: flex; align-items: center; gap: 14px; }
.history-card:active { transform: scale(.985); }
.history-icon { width: 46px; height: 46px; flex: none; border-radius: 13px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.history-icon svg { width: 24px; height: 24px; }
.history-card strong { display: block; font-size: 18px; }
.history-card span { color: #cbd8ea; font-size: 13px; }
.history-count { margin-left: auto; color: #ffd291; font-size: 17px; font-weight: 750; white-space: nowrap; }

.scope-tabs { margin: 0 -16px 18px; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.scope-tabs::-webkit-scrollbar { display: none; }
.scope-tab { min-height: 44px; padding: 0 16px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; font-weight: 700; cursor: pointer; }
.scope-tab[aria-selected="true"] { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.bank-summary { padding: 18px; color: white; border-radius: 20px; background: linear-gradient(120deg, var(--navy-900), #1b609a); }
.bank-summary strong { font-size: 24px; display: block; }
.bank-summary span { color: #d7e7f8; }
.module-list { display: grid; gap: 11px; }
.module-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 92px;
  padding: 16px 16px 14px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.module-card, .list-row { content-visibility: auto; contain-intrinsic-size: auto 92px; }
.module-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--module-color, var(--blue-600)); }
.module-card:active { transform: scale(.985); }
.module-card strong { font-size: 17px; }
.module-card .count { color: var(--navy-800); font-weight: 700; }
.module-meta { color: var(--muted); font-size: 13px; }
.mini-progress { grid-column: 1 / -1; height: 5px; background: #edf1f6; border-radius: 999px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: var(--module-color, var(--blue-600)); border-radius: inherit; }

.practice-page { min-width: 0; padding-bottom: calc(76px + var(--safe-bottom)); }
.practice-meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.practice-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.practice-meta strong { flex: none; }
.progress-track { height: 5px; margin: 10px 0 20px; background: #e4ebf4; border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--blue-600); transition: width 220ms ease; }
.question-card { min-width: 0; padding: 20px 18px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 4px 18px rgba(17,48,86,.045); overflow: hidden; }
.question-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tag { min-height: 32px; padding: 5px 10px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--navy-800); background: var(--blue-100); font-size: 13px; font-weight: 700; }
.favorite-button { width: auto; padding: 8px 10px; gap: 5px; color: var(--muted); }
.favorite-button.active { color: #b66a00; background: #fff5df; }
.favorite-button span { font-size: 13px; }
.question-stem { margin: 0; max-width: 100%; font-size: clamp(17px, 4.8vw, 19px); line-height: 1.7; font-weight: 650; overflow-wrap: anywhere; word-break: break-word; }
h1, h2, h3 { text-wrap: balance; scroll-margin-top: 72px; }
.material { min-width: 0; max-width: 100%; margin: 0 0 16px; padding: 14px; border-left: 4px solid var(--sky-500); color: #33445d; background: #f2f8fd; border-radius: 4px 12px 12px 4px; overflow-wrap: anywhere; word-break: break-word; }
.question-image { display: block; width: auto; max-width: 100%; max-height: min(58dvh, 520px); height: auto; margin: 12px auto; border-radius: 10px; object-fit: contain; }
.blank-line { display: inline-block; width: clamp(3.5em, 18vw, 6em); max-width: 100%; border-bottom: 2px solid currentColor; vertical-align: -.1em; }
.access-note { margin: -8px 0 14px; padding: 10px 12px; color: #76520c; background: #fff7e3; border: 1px solid #f1d899; border-radius: 11px; font-size: 13px; overflow-wrap: anywhere; }
.options { display: grid; gap: 12px; margin: 20px 0 4px; }
.option {
  width: 100%;
  min-height: 58px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1.5px solid #d6deea;
  border-radius: 14px;
  cursor: pointer;
}
.option > * { min-width: 0; }
.option-text { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.option:active { transform: scale(.99); background: #f7faff; }
.option.selected { border-color: var(--blue-600); background: #edf5ff; }
.option.correct { border-color: var(--green-600); background: #eaf8f1; }
.option.wrong { border-color: var(--red-600); background: #fff0f1; }
.option-key { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #aab5c4; border-radius: 50%; font-weight: 750; }
.option.selected .option-key { color: white; border-color: var(--blue-600); background: var(--blue-600); }
.option.correct .option-key { color: white; border-color: var(--green-600); background: var(--green-600); }
.option.wrong .option-key { color: white; border-color: var(--red-600); background: var(--red-600); }
.answer-panel { margin-top: 18px; padding: 16px; border-radius: 14px; background: #f3f7fc; }
.answer-panel.correct { background: #eaf8f1; }
.answer-panel.wrong { background: #fff1f2; }
.answer-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy-950); }
.answer-panel { min-width: 0; max-width: 100%; overflow: hidden; }
.answer-panel p { margin: 8px 0 0; max-width: 100%; color: #36475e; overflow-wrap: anywhere; word-break: break-word; }
.answer-panel .answer-key { color: var(--blue-600); font-weight: 750; }
.question-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.practice-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + var(--safe-bottom)) max(12px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(74px, .9fr) minmax(118px, 1.65fr) minmax(64px, .78fr);
  gap: 9px;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.practice-bar .button { min-width: 0; min-height: 50px; padding: 0 8px; white-space: nowrap; }
.practice-bar .button svg { width: 18px; height: 18px; }

.list-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px; }
.list-row { width: 100%; min-height: 72px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); background: white; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:active { background: #f5f8fc; }
.list-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--blue-600); background: var(--blue-100); display: grid; place-items: center; }
.list-icon svg { width: 21px; height: 21px; }
.list-content { min-width: 0; flex: 1; }
.list-content strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.list-content span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chevron { color: #9aa7b7; }

.profile-card { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 20px; }
.identity { display: flex; align-items: center; gap: 13px; }
.avatar { width: 56px; height: 56px; border-radius: 17px; object-fit: cover; }
.identity strong { display: block; font-size: 19px; }
.identity span { color: var(--muted); font-size: 13px; }
.entitlement { margin-top: 16px; padding: 14px; color: white; background: var(--navy-900); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.entitlement strong { display: block; }
.entitlement span { color: #cfe0f3; font-size: 12px; }
.entitlement > div { min-width: 0; }
.entitlement > svg { width: 28px; height: 28px; flex: 0 0 28px; }
.redeem-box { margin-top: 14px; display: grid; grid-template-columns: 1fr 96px; gap: 9px; }
.field { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #cbd5e2; border-radius: 12px; }
.field::placeholder { color: #8b96a7; }
.form-stack { display: grid; gap: 13px; }
.form-field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.helper { color: var(--muted); font-size: 12px; }

.analysis-hero { padding: 20px; color: white; background: var(--navy-900); border-radius: 20px; }
.analysis-hero h2 { margin: 0 0 8px; font-size: 21px; }
.analysis-hero p { margin: 0; color: #d6e4f4; }
.weak-list { display: grid; gap: 10px; }
.weak-item { padding: 15px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.weak-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weak-line strong { font-size: 15px; }
.weak-line span { color: var(--red-600); font-weight: 750; }
.empty { padding: 42px 22px; text-align: center; color: var(--muted); background: white; border: 1px dashed #c6d1df; border-radius: 18px; }
.empty svg { width: 46px; height: 46px; color: #91a2b8; }
.empty strong { display: block; margin: 8px 0 4px; color: var(--navy-950); font-size: 18px; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  min-height: calc(68px + var(--safe-bottom));
  padding: 6px max(14px, env(safe-area-inset-right)) var(--safe-bottom) max(14px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-item { min-height: 58px; border: 0; color: #758196; background: transparent; display: grid; place-content: center; justify-items: center; gap: 2px; font-size: 12px; cursor: pointer; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item[aria-current="page"] { color: var(--blue-600); font-weight: 750; }
.nav-item:active { transform: scale(.94); }

.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(86px + var(--safe-bottom)); max-width: calc(100vw - 32px); padding: 11px 16px; color: white; background: rgba(11,35,66,.94); border-radius: 12px; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { width: min(92vw, 520px); max-height: min(82dvh, 700px); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 20px; box-shadow: 0 20px 60px rgba(4,22,44,.28); }
.modal::backdrop { background: rgba(5,22,43,.55); backdrop-filter: blur(3px); }
.modal-head { min-height: 58px; padding: 7px 10px 7px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-head strong { font-size: 18px; }
.modal-body { padding: 18px; overflow: auto; }
.modal-body { overscroll-behavior: contain; }
.modal-notice { margin: 0 0 14px; padding: 11px 13px; color: #9f232e; background: #fff1f2; border: 1px solid #f2b8bd; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.question-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.question-number { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; cursor: pointer; }
.question-number.done { color: white; background: var(--green-600); border-color: var(--green-600); }
.question-number.current { border: 2px solid var(--blue-600); }
.legal-note { margin: 24px 4px 0; color: #7b8798; font-size: 12px; }

@media (min-width: 760px) {
  .app-shell { max-width: 760px; margin: 0 auto; box-shadow: 0 0 0 1px var(--line), 0 0 48px rgba(17,48,86,.08); }
  .topbar { left: auto; right: auto; width: 100%; transform: none; }
  .bottom-nav, .practice-bar { left: 50%; right: auto; width: min(760px, 100%); transform: translateX(-50%); }
  #main { padding-left: 32px; padding-right: 32px; }
  .bank-grid { grid-template-columns: repeat(4, 1fr); }
  .module-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .topbar { height: 54px; padding-left: 10px; padding-right: 10px; }
  #main { padding: 14px 12px calc(92px + var(--safe-bottom)); }
  .brand-row { margin-bottom: 13px; gap: 10px; }
  .brand-row img { width: 46px; height: 46px; }
  .brand-copy p { font-size: 13px; }
  .hero { padding: 18px; border-radius: 20px 20px 20px 7px; }
  .hero h2 { font-size: clamp(21px, 6vw, 24px); }
  .hero p { margin-bottom: 14px; }
  .bank-card { min-height: 136px; padding: 14px; }
  .bank-card img, .bank-card.common .common-mark { width: 44px; height: 44px; }
  .section-head { margin-top: 22px; }
  .question-card { padding: 17px 14px; border-radius: 16px; }
  .question-stem { line-height: 1.62; }
  .option { min-height: 54px; padding: 11px 12px; }
  .practice-bar { padding-left: 8px; padding-right: 8px; grid-template-columns: minmax(70px, .86fr) minmax(112px, 1.5fr) minmax(62px, .72fr); gap: 6px; }
  .practice-bar .button { font-size: 14px; }
}

@media (max-width: 350px) {
  #main { padding-left: 9px; padding-right: 9px; }
  .topbar-title { font-size: 16px; }
  .icon-button { width: 40px; height: 40px; padding: 9px; }
  .topbar { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-progress { display: flex; align-items: center; gap: 8px; }
  .stat { padding: 12px 4px; }
  .stat strong { font-size: 20px; }
  .stat span { font-size: 11px; }
  .bank-grid { gap: 8px; }
  .bank-card strong { font-size: 16px; }
  .question-card { padding: 14px 10px; }
  .option { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 10px 9px; }
  .option-key { width: 30px; height: 30px; }
  .practice-bar { grid-template-columns: minmax(64px, .8fr) minmax(104px, 1.5fr) minmax(58px, .72fr); padding-left: 6px; padding-right: 6px; }
  .practice-bar .button { padding: 0 5px; font-size: 13px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .topbar { height: 48px; }
  #main { padding-top: 10px; }
  .practice-bar .button { min-height: 44px; }
}

@media (hover: hover) {
  .button:hover { filter: brightness(.97); }
  .icon-button:hover, .nav-item:hover { background: var(--blue-100); }
  .bank-card:hover, .module-card:hover { border-color: #a9c9f0; box-shadow: 0 7px 20px rgba(17, 48, 86, .09); }
  .list-row:hover { background: #f5f8fc; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
