/* 行知 · Soft railway cards · paper surfaces, generous radii, quiet elevation. */
:root {
  --color-paper: #f3f5f1;
  --color-card: #fffefa;
  --color-ink: #243238;
  --color-muted: #77858a;
  --color-signal: #c54c35;
  --color-signal-soft: #f7e9e4;
  --color-green: #39735f;
  --color-green-soft: #e8f1eb;
  --color-backdrop: #e7f1ee;
  --radius-card: 20px;
  --radius-large: 26px;
  --radius-control: 15px;
  --font-display: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-card: 0 12px 30px rgba(33, 48, 48, .085), 0 2px 7px rgba(33, 48, 48, .035);
  --shadow-float: 0 18px 42px rgba(33, 48, 48, .13), 0 3px 10px rgba(33, 48, 48, .05);
}
* { box-sizing: border-box; border: 0 !important; }
*::before, *::after { border: 0 !important; }
html { background: var(--color-paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--color-ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #d5816c; outline-offset: 3px; }
.app-shell { width: min(100%, 680px); min-height: 100svh; margin: 0 auto; padding: 0 23px calc(100px + env(safe-area-inset-bottom)); }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-family: var(--font-display); font-size: 19px; letter-spacing: .08em; line-height: 1; }
.brand small { color: var(--color-muted); font-size: 8px; letter-spacing: .22em; }
.brand-mark { width: 28px; height: 30px; display: flex; align-items: center; justify-content: center; gap: 3px; transform: skew(-15deg); }
.brand-mark i { height: 22px; width: 3px; background: var(--color-signal); display: block; }
.brand-mark i:nth-child(2) { height: 15px; background: var(--color-ink); }
.brand-mark i:nth-child(3) { height: 9px; background: #9da5a4; }
.icon-button { width: 40px; height: 40px; background: transparent; border-radius: 50%; cursor: pointer; }
.icon { font-size: 20px; color: var(--color-muted); }
.eyebrow { color: var(--color-signal); font-size: 10px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.page-title { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(27px, 8vw, 38px); font-weight: 600; letter-spacing: -.045em; line-height: 1.22; }
.page-lede { margin: 8px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.7; }
.home-intro { padding: 17px 0 24px; }
.daily-strip { min-height: 136px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 19px 20px; border-radius: 8px; color: #f8f5ed; background: var(--color-ink); position: relative; overflow: hidden; }
.daily-strip::after { content: ""; position: absolute; right: 81px; top: -29px; width: 104px; height: 205px; transform: rotate(29deg); }
.daily-copy { position: relative; z-index: 1; }
.daily-copy .eyebrow { color: #e8a18e; }
.daily-copy h2 { margin: 9px 0 4px; font-size: 20px; font-weight: 550; letter-spacing: .01em; }
.daily-copy p { margin: 0; color: #bdc3c2; font-size: 11px; }
.daily-count { position: relative; z-index: 1; text-align: right; min-width: 71px; }
.daily-count b { display: block; font: 500 38px/1 var(--font-display); letter-spacing: -.06em; }
.daily-count span { display: block; margin-top: 7px; color: #bdc3c2; font-size: 10px; letter-spacing: .12em; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 27px 0 12px; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.section-head span, .text-link { color: var(--color-muted); font-size: 11px; }
.text-link { background: transparent; padding: 5px 0; cursor: pointer; }
.bank-list { display: grid; gap: 10px; }
.bank-card { width: 100%; min-height: 86px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 14px; border-radius: 7px; background: var(--color-card); text-align: left; cursor: pointer; transition: transform .18s; }
.bank-card:hover { transform: translateY(-1px); }
.bank-code { height: 42px; display: grid; place-items: center; border-radius: 4px; background: #eceeea; color: #586269; font-size: 10px; font-weight: 750; letter-spacing: .05em; }
.bank-card:nth-child(2) .bank-code { background: var(--color-signal-soft); color: var(--color-signal); }
.bank-card:nth-child(3) .bank-code { background: #e9ecef; color: #4c6371; }
.bank-meta strong { display: block; font-size: 14px; font-weight: 650; }
.bank-meta small { display: block; margin-top: 6px; color: var(--color-muted); font-size: 10px; }
.bank-total { text-align: right; }
.bank-total b { display: block; font: 500 19px var(--font-display); }
.bank-total small { color: var(--color-muted); font-size: 10px; }
.bank-arrow { margin-left: 8px; color: #9ca3a2; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.quick-card { min-height: 84px; padding: 13px 12px 11px; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.quick-card .quick-icon { display: block; color: var(--color-signal); font-size: 17px; line-height: 1; }
.quick-card strong { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; }
.quick-card small { display: block; margin-top: 4px; color: var(--color-muted); font-size: 9px; }
.bottom-nav { position: fixed; z-index: 10; left: 50%; bottom: 0; width: min(100%, 680px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(248,247,243,.94); backdrop-filter: blur(16px); transform: translateX(-50%); }
.bottom-nav a { min-height: 49px; display: grid; justify-items: center; align-content: center; gap: 3px; color: #8b9294; font-size: 9px; transition: color .16s; }
.bottom-nav a.active { color: var(--color-signal); }
.nav-icon { font: 22px/1 var(--font-display); }
.page-head { padding: 17px 0 21px; }
.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 3px 0 15px; }
.pill-select, .filter-pill { min-height: 34px; padding: 0 12px; border-radius: 30px; background: var(--color-card); font-size: 11px; }
.pill-select { color: var(--color-ink); }
.filter-pill { color: var(--color-muted); cursor: pointer; }
.filter-pill.active { background: var(--color-ink); color: white; }
.progress-line { height: 3px; margin: 13px 0 19px; overflow: hidden; background: #e4e5e0; }
.progress-line i { display: block; width: 0; height: 100%; background: var(--color-signal); transition: width .25s ease; }
.question-card { padding: 20px 17px; background: var(--color-card); border-radius: 7px; box-shadow: var(--shadow-card); }
.question-top { display: flex; align-items: center; justify-content: space-between; color: var(--color-muted); font-size: 10px; }
.type-badge { color: var(--color-signal); font-weight: 650; }
.question-text { margin: 19px 0 21px; font-size: 17px; line-height: 1.85; font-weight: 560; letter-spacing: .01em; white-space: pre-wrap; }
.option-list { display: grid; gap: 9px; }
.option { width: 100%; min-height: 49px; display: grid; grid-template-columns: 27px 1fr; align-items: start; gap: 10px; padding: 11px 12px; border-radius: 5px; background: transparent; text-align: left; line-height: 1.6; font-size: 13px; cursor: pointer; }
.option .option-key { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #717a7e; font: 10px var(--font-display); }
.option.selected { background: #fcf6f3; }
.option.selected .option-key { background: var(--color-signal); color: white; }
.option.correct { background: var(--color-green-soft); }
.option.correct .option-key { background: var(--color-green); color: white; }
.option.wrong { background: #fbefec; }
.judge-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-row { display: flex; gap: 10px; margin-top: 16px; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; }
.primary-button { flex: 1; background: var(--color-signal); color: white; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }
.secondary-button { padding: 0 15px; background: transparent; }
.feedback { margin-top: 15px; padding: 13px 14px; background: var(--color-green-soft); font-size: 12px; line-height: 1.7; }
.feedback.wrong { background: #fbefec; }
.feedback strong { display: block; margin-bottom: 3px; }
.feedback p { margin: 6px 0 0; color: #59656a; }
.explain-toggle { display: block; margin: 13px auto 0; padding: 6px; background: transparent; color: var(--color-muted); font-size: 11px; cursor: pointer; }
.session-foot { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; color: var(--color-muted); font-size: 10px; }
.session-foot button { background: transparent; color: var(--color-ink); font-size: 11px; cursor: pointer; }
.mode-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.mode-tile { padding: 15px; border-radius: 6px; background: var(--color-card); text-align: left; cursor: pointer; }
.mode-tile.active { }
.mode-tile strong { display: block; font-size: 13px; }
.mode-tile small { display: block; margin-top: 5px; color: var(--color-muted); font-size: 10px; }
.list-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 15px 0; }
.list-card p { margin: 0; font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-card small { display: block; margin-top: 6px; color: var(--color-muted); font-size: 10px; }
.small-action { min-width: 55px; padding: 8px; border-radius: 4px; background: transparent; font-size: 10px; cursor: pointer; }
.empty-state { padding: 30px 18px; border-radius: 6px; color: var(--color-muted); text-align: center; font-size: 12px; line-height: 1.8; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 21px 0; }
.stat-cell { padding: 16px 10px; border-radius: 5px; }
.stat-cell b { display: block; font: 500 24px var(--font-display); }
.stat-cell span { display: block; margin-top: 4px; color: var(--color-muted); font-size: 10px; }
.course-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.course-switch button { min-height: 38px; border-radius: 4px; background: transparent; color: var(--color-muted); font-size: 10px; cursor: pointer; }
.course-switch button.active { background: var(--color-ink); color: white; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 10px 16px; border-radius: 30px; background: #26343a; color: white; font-size: 11px; opacity: 0; transform: translate(-50%, 7px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 700px) { .app-shell { padding-left: 34px; padding-right: 34px; } .topbar { height: 86px; } .question-card { padding: 26px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Tactile feedback stays short; GSAP handles screen and question choreography. */
button { -webkit-tap-highlight-color: transparent; transition: background-color .18s ease, color .18s ease, transform .16s ease, box-shadow .18s ease; }
button:active { transform: scale(.985); }
.option { transition: background-color .18s ease, transform .16s ease; }
.option:active { transform: scale(.99); }
.primary-button:active { box-shadow: inset 0 2px 5px rgba(36, 26, 21, .16); }
.bank-card:active, .quick-card:active, .mode-tile:active { transform: scale(.99); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Learning-focused home: put the next useful action above the library list. */
.home-intro { padding-top: 13px; padding-bottom: 20px; }
.home-intro .page-title { font-size: clamp(30px, 8.3vw, 40px); line-height: 1.2; }
.daily-strip { min-height: 178px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 19px; }
.daily-copy { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.daily-copy h2 { margin-top: 7px; }
.daily-copy p { line-height: 1.5; }
.daily-meter { width: min(100%, 176px); height: 3px; margin-top: auto; overflow: hidden; background: rgba(255,255,255,.2); }
.daily-meter i { display: block; height: 100%; background: #e88d75; transition: width .45s cubic-bezier(.2,.75,.25,1); }
.daily-progress-label { margin-top: 6px; color: #bdc3c2; font-size: 9px; }
.daily-side { z-index: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; }
.daily-count { min-width: 0; }
.daily-count b { font-size: 34px; }
.daily-count span { font-size: 9px; white-space: nowrap; }
.daily-start { min-height: 38px; padding: 0 12px; border-radius: 3px; background: var(--color-signal); color: white; font-size: 11px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.daily-start span { margin-left: 5px; font-size: 14px; }
.bank-card { position: relative; min-height: 76px; grid-template-columns: 39px 1fr auto 15px; gap: 10px; padding: 11px 12px; overflow: hidden; }
.bank-card.is-current { background: #fffdfa; }
.bank-card .bank-code { height: 38px; font-size: 9px; }
.bank-card .bank-meta strong { font-size: 13px; }
.bank-card .bank-meta small { font-size: 9px; }
.bank-card .bank-total b { font-size: 17px; }
.bank-card .bank-arrow { color: #9ca3a2; text-align: center; }
.bank-card.is-current .bank-arrow { color: var(--color-signal); font-size: 13px; }
.section-head { margin-top: 23px; }
.quick-card { min-height: 83px; padding: 11px 9px; }
.quick-card strong { font-size: 11px; }
.quick-card small { font-size: 9px; }

/* Meaningful motion: immediate selection, answer reveal, and navigation feedback. */
.bank-card, .quick-card, .mode-tile, .option, .primary-button, .secondary-button, .daily-start, .bottom-nav a {
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, color .18s ease,
  transform .16s ease, box-shadow .18s ease;
}
.bank-card:active, .quick-card:active, .mode-tile:active, .daily-start:active,
.primary-button:active, .secondary-button:active { transform: scale(.975); }
.option:active { transform: scale(.99); }
.bottom-nav a:active { transform: translateY(-2px); }
.bottom-nav a .nav-icon { transition: transform .18s ease, color .18s ease; }
.bottom-nav a.active .nav-icon { transform: translateY(-2px); }
.option-key { transition: background-color .16s ease, color .16s ease; }
@media (prefers-reduced-motion: reduce) {
  .daily-meter i { transition: none; }
  .bank-card, .quick-card, .mode-tile, .option, .primary-button, .secondary-button,
  .daily-start, .bottom-nav a, .bottom-nav a .nav-icon, .option-key { transition: none !important; }
}

/* One selected library stays in context; switching banks opens a separate picker state. */
.active-bank-line { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 1px 0 15px; padding: 0 11px; background: #ecece7; }
.active-bank-tag { color: var(--color-muted); font-size: 10px; }
.active-bank-line strong { font-size: 12px; font-weight: 650; }
.active-bank-line .text-link { margin-left: auto; color: var(--color-signal); white-space: nowrap; }
.bank-picker { margin-top: 16px; }
.picker-note { margin: 17px 0; color: var(--color-muted); font-size: 10px; line-height: 1.7; }
.bank-picker .bank-card { min-height: 82px; }
.answer-prompt { align-self: center; margin: 0 auto 0 2px; color: var(--color-muted); font-size: 11px; line-height: 1.6; }

/* Clear destination pages: a selected library leads to an explicit learning action. */
.bank-hero { position: relative; margin: 12px 0 22px; padding: 27px 23px 23px; overflow: hidden; border-radius: 7px; background: var(--color-ink); color: #f8f5ed; }
.bank-hero::after { content: ""; position: absolute; right: 70px; top: -55px; width: 92px; height: 240px; transform: rotate(28deg); pointer-events: none; }
.bank-hero-mark { position: absolute; top: 22px; right: 20px; display: grid; min-width: 45px; height: 39px; place-items: center; padding: 0 8px; color: #efaa98; font-size: 11px; letter-spacing: .08em; }
.bank-hero .eyebrow { color: #e8a18e; }
.bank-hero .page-title { margin-top: 11px; font-size: clamp(28px, 7vw, 37px); }
.bank-hero .page-lede { color: #c3c8c6; }
.bank-hero-total { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin-top: 22px; padding-top: 13px; color: #c3c8c6; font-size: 11px; }
.bank-hero-total strong { color: #fffefa; font: 500 28px/1 var(--font-display); }
.bank-actions { display: grid; gap: 10px; }
.bank-action { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 13px; min-height: 78px; padding: 13px 15px; border-radius: 6px; background: var(--color-card); text-align: left; cursor: pointer; }
.bank-action.primary-bank-action { background: #fcf6f3; }
.bank-action-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 4px; background: var(--color-signal-soft); color: var(--color-signal); font-size: 19px; }
.bank-action:not(.primary-bank-action) .bank-action-icon { background: #eceeea; color: var(--color-ink); }
.bank-action strong { display: block; font-size: 14px; }
.bank-action small { display: block; margin-top: 5px; color: var(--color-muted); font-size: 10px; }
.bank-action-arrow { color: var(--color-signal); font-size: 17px; }
.type-launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 16px 0 24px; }
.type-launch { min-height: 117px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; align-items: start; gap: 4px 8px; padding: 14px; border-radius: 6px; background: var(--color-card); text-align: left; cursor: pointer; transition: background-color .18s ease, transform .16s ease; }
.type-launch:hover { background: #fffdfa; }
.type-launch:active { transform: scale(.98); }
.type-launch span { align-self: center; font-size: 12px; font-weight: 650; }
.type-launch strong { grid-column: 1 / -1; align-self: center; font: 500 29px/1 var(--font-display); }
.type-launch small { grid-column: 1 / -1; color: var(--color-muted); font-size: 10px; }
.memo-tools { display: flex; align-items: center; justify-content: space-between; margin: -7px 1px 7px; color: var(--color-muted); font-size: 10px; }
.bank-picker .bank-card { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .type-launch, .bank-action { transition: none !important; } }

/* Global soft-card system: depth, spacing, and rounded surfaces define hierarchy. */
html { background: var(--color-backdrop); }
body { background: var(--color-backdrop); }

button, input, select, textarea { font: inherit; appearance: none; -webkit-appearance: none; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(197, 76, 53, .22), var(--shadow-card);
}
.app-shell {
  width: min(calc(100% - 24px), 720px);
  min-height: calc(100svh - 24px);
  margin: 12px auto;
  padding: 0 23px calc(112px + env(safe-area-inset-bottom));
  border-radius: 28px;
  background: var(--color-paper);
  box-shadow: var(--shadow-float);
}
.topbar {
  position: relative;
  z-index: 2;
  height: 76px;
  margin: 0 -7px 7px;
  padding: 0 13px;
  border-radius: 0 0 20px 20px;
  background: rgba(255, 254, 250, .88);
  box-shadow: 0 7px 20px rgba(33, 48, 48, .055);
}
.brand-mark {
  border-radius: 11px;
  background: #e9efeb;
  transform: none;
}
.icon-button {
  border-radius: 50%;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.icon-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.daily-strip {
  border-radius: var(--radius-large);
  box-shadow: 0 16px 34px rgba(27, 42, 48, .2);
  background: linear-gradient(145deg, #263940, #1f2c33);
}
.daily-strip::after { display: none; }
.daily-start {
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(197, 76, 53, .25);
}
.bank-list { gap: 13px; }
.bank-card {
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.bank-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.bank-card.is-current { background: #fffdfa; box-shadow: 0 12px 28px rgba(197, 76, 53, .11), 0 2px 7px rgba(33,48,48,.035); }
.bank-card::before { display: none; }
.bank-code { border-radius: 13px; box-shadow: inset 0 1px 2px rgba(33,48,48,.035); }
.quick-card, .mode-tile, .type-launch, .bank-action, .stat-cell, .question-card,
.empty-state, .list-card, .active-bank-line, .feedback, .small-action,
.secondary-button, .option, .pill-select, .filter-pill, .course-switch button,
.bank-hero-mark {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.quick-card, .mode-tile, .type-launch, .bank-action, .stat-cell, .question-card,
.empty-state, .list-card, .active-bank-line, .feedback, .option, .secondary-button,
.small-action, .pill-select, .filter-pill, .course-switch button {
  background: var(--color-card);
}
.quick-card, .mode-tile, .type-launch, .bank-action, .bank-card, .option,
.primary-button, .secondary-button, .daily-start, .small-action, .filter-pill,
.course-switch button, .icon-button {
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.quick-card:hover, .mode-tile:hover, .type-launch:hover, .bank-action:hover,
.option:hover, .secondary-button:hover, .small-action:hover, .filter-pill:hover,
.course-switch button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}
.quick-card { min-height: 88px; padding: 14px 12px; border-radius: 18px; }
.quick-card:active, .mode-tile:active, .type-launch:active, .bank-action:active,
.bank-card:active, .option:active, .primary-button:active, .secondary-button:active,
.daily-start:active { transform: scale(.975); }
.bank-hero {
  border-radius: var(--radius-large);
  box-shadow: 0 16px 36px rgba(27, 42, 48, .2);
  background: radial-gradient(ellipse at 96% 5%, rgba(197,76,53,.18), transparent 34%), linear-gradient(145deg, #263940, #1f2c33);
}
.bank-hero::after {
  right: -45px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  filter: blur(2px);
}
.bank-hero-mark {
  border-radius: 14px;
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.bank-hero-total { border-radius: 14px; }
.bank-action { border-radius: 19px; }
.bank-action.primary-bank-action { background: #fff7f3; box-shadow: 0 12px 28px rgba(197,76,53,.12); }
.bank-action-icon { border-radius: 14px; }
.type-launch { border-radius: 18px; }
.type-launch:hover { background: #fffdfa; }
.active-bank-line { min-height: 48px; padding: 4px 14px; background: var(--color-card); }
.active-bank-line .text-link { color: var(--color-signal); }
.memo-tools { min-height: 34px; padding: 0 4px; }
.question-card { padding: 21px 17px; border-radius: 24px; box-shadow: var(--shadow-float); }
.option-list { gap: 11px; }
.option {
  min-height: 54px;
  padding: 13px 14px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(33,48,48,.055);
  background: #fffefa;
}
.option:hover { background: #fffdfa; }
.option.selected { background: #fff4ef; box-shadow: 0 8px 20px rgba(197,76,53,.13); }
.option.correct { background: var(--color-green-soft); box-shadow: 0 8px 20px rgba(57,115,95,.12); }
.option.wrong { background: #fbefec; box-shadow: 0 8px 20px rgba(197,76,53,.12); }
.option .option-key { border-radius: 50%; background: #edf0ed; box-shadow: inset 0 1px 2px rgba(33,48,48,.05); }
.option.selected .option-key { background: var(--color-signal); }
.option.correct .option-key { background: var(--color-green); }
.feedback { padding: 15px 16px; border-radius: 17px; box-shadow: var(--shadow-card); }
.feedback:not(.wrong) { background: var(--color-green-soft); }
.feedback.wrong { background: #fbefec; }
.action-row { gap: 11px; }
.primary-button {
  min-height: 50px;
  border-radius: 15px;
  box-shadow: 0 9px 18px rgba(197,76,53,.22);
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 13px 24px rgba(197,76,53,.27); }
.secondary-button, .small-action {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 14px;
  box-shadow: 0 7px 16px rgba(33,48,48,.07);
}
.secondary-button:hover, .small-action:hover { box-shadow: var(--shadow-float); }
.progress-line { height: 7px; border-radius: 99px; background: #e3e9e5; box-shadow: inset 0 1px 2px rgba(33,48,48,.08); }
.progress-line i { border-radius: inherit; }
.filter-pill, .pill-select, .course-switch button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 99px;
  box-shadow: 0 5px 14px rgba(33,48,48,.06);
}
.filter-pill.active, .course-switch button.active {
  background: var(--color-ink);
  color: #fffefa;
  box-shadow: 0 8px 18px rgba(36,50,56,.18);
}
.course-switch { gap: 9px; }
.stat-cell { padding: 17px 12px; border-radius: 17px; }
.list-card {
  margin-bottom: 10px;
  padding: 15px 14px;
  border-radius: 17px;
  box-shadow: var(--shadow-card);
}
.empty-state { border-radius: 20px; box-shadow: var(--shadow-card); }
.bank-picker .bank-card { min-height: 82px; }
.answer-prompt { padding: 4px 2px; }
.bottom-nav {
  bottom: 12px;
  width: min(calc(100% - 24px), 720px);
  padding: 9px 13px calc(9px + env(safe-area-inset-bottom));
  border-radius: 22px;
  background: rgba(255,254,250,.92);
  box-shadow: 0 14px 34px rgba(33,48,48,.15), 0 2px 8px rgba(33,48,48,.04);
  backdrop-filter: blur(20px);
}
.bottom-nav a { min-height: 52px; border-radius: 15px; }
.bottom-nav a.active { background: var(--color-signal-soft); }
.bottom-nav a.active .nav-icon { transform: none; }
.toast { border-radius: 99px; box-shadow: var(--shadow-float); }
.text-link { border-radius: 99px; }
.session-foot button { border-radius: 99px; padding: 9px 12px; background: var(--color-card); box-shadow: 0 5px 14px rgba(33,48,48,.06); }
.daily-meter { border-radius: 99px; }
.daily-meter i { border-radius: inherit; }

@media (max-width: 520px) {
  .app-shell { width: calc(100% - 16px); min-height: calc(100svh - 16px); margin: 8px auto; padding-left: 16px; padding-right: 16px; border-radius: 24px; }
  .topbar { margin-left: -4px; margin-right: -4px; }
  .bottom-nav { bottom: 12px; width: calc(100% - 16px); border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-card, .mode-tile, .type-launch, .bank-action, .bank-card, .option,
  .primary-button, .secondary-button, .daily-start, .filter-pill, .course-switch button,
  .icon-button, .small-action, .bottom-nav a { transition: none !important; }
}

/* Keep a clear parent-navigation action available while scrolling every subpage. */
.topbar { position: sticky; top: 8px; z-index: 20; }
[hidden] { display: none !important; }
.back-button {
  width: auto;
  min-width: 44px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 99px;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.back-button:hover { transform: translateX(-2px); box-shadow: var(--shadow-float); }
.back-button span:first-child { color: var(--color-signal); font-size: 17px; line-height: 1; }
.back-button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .back-button { transition: none !important; } }
.resume-card {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 13px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff7f3;
  box-shadow: 0 10px 24px rgba(197,76,53,.1);
  text-align: left;
  cursor: pointer;
}
.resume-card strong, .resume-card small { display: block; }
.resume-card strong { font-size: 12px; }
.resume-card small { margin-top: 4px; color: var(--color-muted); font-size: 10px; }
.resume-card b { color: var(--color-signal); font-size: 18px; }
.memorize-question { position: relative; overflow: visible; }
.memo-card-nav {
  position: sticky;
  top: 88px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  margin: -3px -3px 16px;
  padding: 7px;
  border-radius: 18px;
  background: rgba(243,245,241,.96);
  box-shadow: 0 8px 20px rgba(33,48,48,.09), 0 2px 5px rgba(33,48,48,.03);
  backdrop-filter: blur(16px);
}
.memo-card-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 13px;
  background: var(--color-card);
  box-shadow: 0 5px 12px rgba(33,48,48,.07);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.memo-card-nav button:last-child { background: var(--color-signal-soft); color: var(--color-signal); }
.memo-card-nav button:hover { box-shadow: 0 8px 16px rgba(33,48,48,.12); }
.memo-card-nav button:active { transform: scale(.97); }
.memo-card-nav button span { font-size: 15px; vertical-align: -1px; }
.memo-card-count { width: 72px; padding: 0; color: var(--color-muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .memo-card-nav button { transition: none !important; } }
