:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --ink: #172033;
  --muted: #6b7688;
  --line: #dde4ed;
  --navy: #0f1b2d;
  --navy-2: #16273f;
  --blue: #1f6ff0;
  --cyan: #13a8a0;
  --gold: #c89435;
  --red: #d9534f;
  --green: #2f9e68;
  --shadow: 0 18px 45px rgba(24, 39, 75, .10);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(31, 111, 240, .12), transparent 28rem),
    radial-gradient(circle at 92% 2%, rgba(19, 168, 160, .10), transparent 26rem),
    var(--bg);
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }

.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  padding: 24px 16px;
  background: linear-gradient(165deg, var(--navy), var(--navy-2));
  color: #e8eefb;
  display: flex; flex-direction: column; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark {
  width: 43px; height: 43px; flex: 0 0 43px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-weight: 800; font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #f3b94c, #db7a30);
  box-shadow: 0 8px 22px rgba(240, 174, 72, .28);
}
.brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.brand span { display: block; margin-top: 3px; color: #9fb0ca; font-size: 12px; }
.main-nav { display: grid; gap: 7px; }
.nav-item {
  width: 100%; border: 0; border-radius: 13px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px;
  color: #b9c6dc; background: transparent;
  text-align: left; transition: .2s ease;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.is-active {
  color: #fff; background: linear-gradient(90deg, rgba(31,111,240,.22), rgba(19,168,160,.12));
  box-shadow: inset 3px 0 0 var(--blue);
}
.nav-icon {
  width: 27px; height: 27px; display: grid; place-items: center;
  border-radius: 9px; background: rgba(255,255,255,.08);
  color: #d7e2f3; font-weight: 700; font-size: 14px;
}
.nav-item.is-active .nav-icon { background: rgba(255,255,255,.14); color: #fff; }
.sidebar-foot { margin-top: auto; padding: 14px; background: rgba(255,255,255,.06); border-radius: 16px; }
.exam-countdown-mini { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.exam-countdown-mini span { color: #aab8ce; font-size: 12px; }
.exam-countdown-mini strong { color: #fff; font-size: 28px; }
.text-button { border: 0; background: none; color: #9fb0ca; font-size: 12px; padding: 8px 0 0; }
.text-button:hover { color: #fff; }

/* Main */
.main-content { min-width: 0; padding: 22px 28px 60px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 22px;
}
.topbar-title span { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-title h1 { margin: 4px 0 0; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.25; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; min-width: 250px;
}
.search-box span { color: var(--muted); }
.search-box input { border: 0; outline: none; background: transparent; width: 100%; color: var(--ink); }
.pill-button {
  border: 1px solid rgba(31,111,240,.18); color: #1559bf;
  background: #fff; border-radius: 999px; padding: 10px 15px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(31,111,240,.09);
}
.menu-toggle { display: none; border: 0; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 18px; }

/* Views */
.view { display: none; }
.view.is-active { display: block; animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 26px 0 14px; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }

/* Dashboard */
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.hero-card {
  position: relative; overflow: hidden; min-height: 250px;
  padding: 30px; border-radius: var(--radius);
  color: #fff; background:
    linear-gradient(135deg, rgba(15,27,45,.96), rgba(31,111,240,.9) 58%, rgba(19,168,160,.82));
  box-shadow: var(--shadow);
}
.hero-card::after {
  content: ""; position: absolute; right: -70px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,255,255,.09);
}
.hero-card::before {
  content: ""; position: absolute; right: 80px; bottom: -100px; width: 200px; height: 200px;
  border: 34px solid rgba(255,255,255,.06); border-radius: 50%;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { margin: 6px 0 10px; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; }
.hero-card p { max-width: 520px; color: #d8e4f7; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.primary-button, .ghost-button {
  border-radius: 999px; padding: 11px 17px; font-weight: 700; border: 0;
}
.primary-button { background: #fff; color: var(--navy); box-shadow: 0 10px 25px rgba(0,0,0,.16); }
.ghost-button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.dashboard-side { display: grid; gap: 18px; }
.countdown-card {
  padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.countdown-card .eyebrow { color: var(--gold); }
.big-number { margin-top: 9px; font-size: 52px; font-weight: 900; line-height: 1; color: var(--navy); }
.big-number small { font-size: 17px; font-weight: 600; color: var(--muted); }
.progress-line { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 15px; }
.progress-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat-card { padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.stat-card strong { display: block; font-size: 27px; }
.stat-card span { color: var(--muted); font-size: 12px; }

.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.course-card { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.course-card.econ::before { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background: var(--blue); }
.course-card.mgmt::before { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background: var(--cyan); }
.course-card h3 { margin: 0 0 6px; font-size: 20px; }
.course-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.course-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.chip.hot { color: #a36019; background: #fff5e4; border-color: #f2d4a6; }
.chip.blue { color: #1559bf; background: #eaf2ff; border-color: #bcd6ff; }
.chip.green { color: #1b7650; background: #eaf8f0; border-color: #bce7d0; }
.course-actions { margin-top: 20px; display: flex; gap: 9px; }
.secondary-button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 13px; font-weight: 700; color: var(--ink); }

/* Method */
.method-hero { padding: 26px; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.method-hero h2 { margin: 5px 0 10px; font-size: 28px; }
.method-hero p { color: #c7d3e7; line-height: 1.8; max-width: 760px; }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase-card { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.phase-card.gold { border-top-color: var(--gold); }
.phase-card.green { border-top-color: var(--green); }
.phase-card h3 { margin: 4px 0 8px; font-size: 18px; }
.phase-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.phase-tag { color: var(--blue); font-weight: 800; font-size: 12px; }
.daily-board { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.board-card { padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.board-card h3 { margin: 0 0 14px; }
.timeline { display: grid; gap: 13px; }
.time-block { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--surface-2); border-radius: 13px; }
.time-block b { min-width: 58px; color: var(--blue); font-size: 14px; }
.time-block span { font-size: 13px; line-height: 1.65; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-table th, .plan-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.plan-table th { color: var(--muted); font-weight: 700; background: var(--surface-2); }
.plan-table tr:first-child th:first-child { border-top-left-radius: 10px; }
.plan-table tr:first-child th:last-child { border-top-right-radius: 10px; }

/* Forced 60-day plan */
.plan-progress { max-width: 420px; margin-top: 18px; color: #c7d3e7; font-size: 13px; }
.plan-progress .progress-line { background: rgba(255,255,255,.16); }
.plan-progress .progress-line i { background: linear-gradient(90deg, #f3b94c, #13a8a0); }
.plan-day-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
}
.plan-day-card {
  min-height: 112px; padding: 13px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); text-align: left;
  display: flex; flex-direction: column; gap: 7px; color: var(--ink);
}
.plan-day-card:disabled { cursor: not-allowed; opacity: .56; }
.plan-day-card.is-locked { background: #f1f4f7; box-shadow: none; }
.plan-day-card.is-done { border-color: #bce7d0; background: #f5fbf7; }
.plan-day-card.is-today { border-color: var(--blue); background: #eef5ff; }
.plan-day-card.is-selected { outline: 3px solid rgba(31,111,240,.20); }
.plan-day-card span { color: var(--muted); font-size: 11px; font-weight: 900; }
.plan-day-card strong { font-size: 13px; line-height: 1.45; min-height: 38px; }
.plan-day-card small { margin-top: auto; color: var(--muted); font-size: 11px; font-weight: 800; }
.plan-day-card.is-today small { color: var(--blue); }
.plan-detail-card { padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.plan-detail-note { padding: 11px 13px; border-radius: 12px; background: #eef5ff; color: #1559bf; font-size: 13px; font-weight: 700; }
.plan-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.plan-chapter-link {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 10px;
  color: var(--ink); font-size: 12px; font-weight: 700; text-align: left;
}
.plan-chapter-link:hover { border-color: var(--blue); color: var(--blue); }
.plan-task-list { display: grid; gap: 10px; margin-top: 16px; }
.plan-task {
  display: grid; grid-template-columns: auto 46px minmax(0, 1fr); gap: 12px; align-items: flex-start;
  padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  cursor: pointer;
}
.plan-task.is-readonly { cursor: default; background: #f8fafc; }
.plan-task.is-done { background: #f5fbf7; border-color: #bce7d0; }
.plan-task input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); }
.plan-task-type {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: #eaf2ff; color: #1559bf; font-size: 13px; font-weight: 900;
}
.plan-task.is-done .plan-task-type { color: #1b7650; background: #eaf8f0; }
.plan-task-main { display: grid; gap: 4px; }
.plan-task-main strong { line-height: 1.45; }
.plan-task-main small { color: var(--muted); line-height: 1.65; }
.plan-detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.plan-done-label { color: var(--green); font-size: 13px; font-weight: 800; }

/* Course / chapters */
.course-banner { padding: 24px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #0f1b2d, #1f6ff0); box-shadow: var(--shadow); }
.course-banner.mgmt { background: linear-gradient(135deg, #0f1b2d, #13a8a0); }
.course-banner h2 { margin: 6px 0 7px; font-size: 26px; }
.course-banner p { color: #dbe7f7; font-size: 13px; line-height: 1.7; max-width: 720px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.chapter-mode-toolbar { margin-top: 16px; }
.chapter-toc {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 16px 0 12px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,.72); border: 1px solid var(--line);
}
.chapter-toc-label { color: var(--muted); font-size: 12px; font-weight: 800; margin-right: 4px; }
.chapter-toc-link {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none;
}
.chapter-toc-link:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.chapter-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.chapter-reading-panel {
  min-width: 0; padding: 20px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.filter-button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px;
  color: var(--muted); font-weight: 700; font-size: 13px;
}
.filter-button.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.chapter-card {
  padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; transition: transform .18s ease;
}
.chapter-card:hover { transform: translateY(-2px); }
.chapter-top { display: flex; justify-content: space-between; gap: 10px; }
.chapter-num { font-size: 12px; font-weight: 900; color: var(--blue); letter-spacing: .08em; }
.chapter-title { font-size: 16px; line-height: 1.45; margin: 0; }
.chapter-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.chapter-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.chapter-card.is-done { border: 1px solid rgba(47,158,104,.35); }
.chapter-card.is-done .chapter-num { color: var(--green); }

.chapter-detail-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.chapter-detail-hero .drawer-kicker { display: block; margin-top: 14px; }
.chapter-detail-hero .drawer-title { margin-top: 4px; }
.chapter-detail-actions {
  display: grid; justify-content: end; gap: 8px; align-items: center;
  grid-template-columns: auto auto auto auto;
}
.chapter-detail-actions .chip { justify-self: end; }

/* Quiz */
.quiz-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.filter-panel { padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); height: fit-content; }
.filter-panel h3 { margin: 0 0 14px; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.filter-group select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.question-list { display: grid; gap: 12px; }
.question-card { padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.question-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.question-stem { line-height: 1.7; font-weight: 700; margin: 0 0 12px; }
.option-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.option-item {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
  display: flex; gap: 9px; align-items: flex-start; transition: .16s ease; line-height: 1.55;
}
.option-item:hover { border-color: var(--blue); background: #f5f9ff; }
.option-item.is-selected { border-color: var(--blue); background: #dce9ff; color: #0b3d91; box-shadow: inset 0 0 0 1px rgba(31,111,240,.12); }
.option-item.is-selected .option-letter { color: var(--blue); }
.option-item.is-correct { border-color: var(--green); background: #eaf8f0; }
.option-item.is-wrong { border-color: var(--red); background: #fff0ef; }
.option-letter { color: var(--muted); font-weight: 800; }
.answer-box { display: none; margin-top: 12px; padding: 12px; background: #f6f8fb; border-left: 4px solid var(--green); border-radius: 8px; font-size: 13px; line-height: 1.7; }
.answer-box.show { display: block; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty strong { display: block; color: var(--ink); margin-bottom: 8px; }

/* Chapter inline reading */
.drawer-kicker { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.drawer-title { font-size: 25px; margin: 7px 0 5px; }
.drawer-sub { color: var(--muted); font-size: 13px; }
.point-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.point-list li { padding: 12px 14px; background: var(--surface-2); border-radius: 12px; line-height: 1.6; font-size: 14px; }
.point-list li b { color: var(--navy); }
.drawer-section-title { margin: 20px 0 10px; font-size: 17px; }
.drawer-section-title.hot { color: #a36019; }
.exam-analysis {
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
  display: grid; gap: 7px; font-size: 13px; line-height: 1.6;
}
.exam-analysis-line { color: var(--muted); }
.section-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.section-pill {
  padding: 8px 10px; border-radius: 999px; background: #eaf2ff; color: #1559bf;
  font-size: 12px; font-weight: 800;
}
.star-grid { display: grid; gap: 12px; }
.star-point {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  background: var(--surface); box-shadow: var(--shadow);
}
.star-point.star-3 { border-color: #f2c27d; background: #fffaf0; }
.star-point-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.star-point-head strong { line-height: 1.45; font-size: 15px; }
.star-badge {
  flex: none; padding: 5px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 900; color: #a36019; background: #fff1d7;
}
.star-badge.star-3 { color: #a36019; background: #ffe6b8; }
.star-badge.star-2 { color: #1559bf; background: #eaf2ff; }
.star-badge.star-1 { color: #657084; background: #edf0f5; }
.star-point-section { color: var(--blue); font-size: 12px; font-weight: 800; margin-top: 7px; }
.star-point p { white-space: pre-line; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Star summary */
.star-count { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: auto; }
.star-summary-list { display: grid; gap: 14px; }
.star-summary-card { padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.star-summary-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.star-summary-head h3 { margin: 6px 0 0; font-size: 18px; }
.star-summary-points { display: grid; gap: 10px; }
.star-summary-point { padding: 13px; border: 1px solid #f2c27d; background: #fffaf0; border-radius: 13px; }
.star-summary-title { display: flex; align-items: center; gap: 8px; line-height: 1.45; }
.star-summary-title strong { font-size: 14px; }
.star-summary-point p { white-space: pre-line; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Memory cards */
.memory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.memory-card { padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.memory-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.memory-card-head h3 { margin: 6px 0 0; font-size: 16px; line-height: 1.45; }
.memory-card-body { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); white-space: pre-line; color: var(--muted); font-size: 13px; line-height: 1.75; }
.memory-card.is-open .memory-card-body { display: block; }
.toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }

/* Recite books */
.recite-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.recite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recite-star-card, .recite-memory-wrap, .recite-question-wrap {
  padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.recite-star-card { border-color: #f2c27d; background: #fffaf0; }
.recite-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.recite-type {
  padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900;
  color: #a36019; background: #ffe6b8;
}
.recite-type.question-type { color: #1559bf; background: #eaf2ff; }
.recite-type.memory-type { color: #1b7650; background: #eaf8f0; }
.recite-type.star-type { color: #a36019; background: #ffe6b8; }
.recite-chapter { color: var(--muted); font-size: 12px; font-weight: 700; margin-left: auto; }
.recite-star-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.recite-star-card p { white-space: pre-line; margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.recite-memory-wrap > .memory-card, .recite-question-wrap > .question-card { box-shadow: none; border: 0; padding: 0; margin-bottom: 12px; }
.recite-question-card { background: transparent; box-shadow: none; }
.recite-answer-strip {
  display: grid; gap: 5px; margin: 12px 0; padding: 11px 12px;
  border-radius: 11px; background: #eaf8f0; border: 1px solid #bce7d0;
  color: #1b7650; font-size: 13px; line-height: 1.65;
}
.recite-answer-strip span { color: #2d5f45; }
.secondary-button.is-recited { color: #1b7650; background: #eaf8f0; border-color: #bce7d0; }

/* Toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 82px minmax(0, 1fr); }
  .brand strong, .brand span, .nav-item span:not(.nav-icon), .sidebar-foot { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .main-content { padding: 18px; }
  .hero-grid, .course-grid, .daily-board, .quiz-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-layout .filter-panel { position: static; }
  .chapter-grid, .memory-grid, .recite-grid { grid-template-columns: 1fr; }
  .plan-day-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recite-summary { grid-template-columns: repeat(2, 1fr); }
  .chapter-detail-hero { flex-direction: column; }
  .chapter-detail-actions { grid-template-columns: repeat(2, max-content); justify-content: start; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 35; width: 260px;
    transform: translateX(-100%); transition: .24s ease;
  }
  .sidebar.open { transform: none; }
  .brand strong, .brand span, .sidebar-foot { display: block; }
  .nav-item span:not(.nav-icon) { display: inline; }
  .nav-item { justify-content: flex-start; padding: 12px 13px; }
  .menu-toggle { display: block; }
  .main-content { padding: 14px; }
  .topbar { align-items: flex-start; }
  .topbar-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .search-box { min-width: 0; }
  .hero-card { min-height: 280px; padding: 24px; }
  .phase-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .recite-summary { grid-template-columns: 1fr 1fr; }
  .recite-grid { grid-template-columns: 1fr; }
  .plan-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-task { grid-template-columns: auto 38px minmax(0, 1fr); }
}
