:root {
  --bg: #f5f1e9;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --ink: #25231f;
  --muted: #746f67;
  --line: #e5ddd1;
  --coral: #d95d4f;
  --coral-dark: #a93c34;
  --coral-soft: #f9e7e1;
  --jade: #167e69;
  --jade-soft: #dff2eb;
  --gold: #e9ad3f;
  --gold-soft: #fbf0cf;
  --blue: #5476a4;
  --blue-soft: #e8eef7;
  --danger: #c84555;
  --shadow: 0 20px 55px rgba(68, 50, 30, .09);
  --sidebar: 256px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 3%, rgba(22, 126, 105, .08), transparent 28rem),
    radial-gradient(circle at 30% 100%, rgba(217, 93, 79, .06), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4, p { margin-top: 0; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 26px 20px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0 7px 25px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
}

.brand-seal {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(217, 93, 79, .24);
  font: 800 22px/1 "Songti SC", "Noto Serif CJK SC", serif;
}

.brand strong, .brand small { display: block; }
.brand strong { margin-bottom: 3px; font-size: 15px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 10px; }

.main-nav { display: grid; gap: 6px; margin-top: 24px; }

.nav-item {
  display: grid;
  grid-template-columns: 23px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover { color: var(--ink); background: #f4eee4; transform: translateX(2px); }
.nav-item.active { color: var(--jade); background: var(--jade-soft); }
.nav-item svg:first-child { width: 19px; height: 19px; }

.nav-count {
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 99px;
  color: #fff;
  background: var(--coral);
  font-size: 9px;
  text-align: center;
}

.sidebar-course {
  margin-top: 27px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .62);
}

.sidebar-course-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.sidebar-course-head span { color: var(--muted); font-weight: 700; }
.sidebar-course-head b { color: var(--jade); }

.mini-progress { height: 7px; margin: 12px 0 9px; border-radius: 9px; background: #e8e0d4; overflow: hidden; }
.mini-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--jade); transition: width .4s ease; }
.sidebar-course p { margin: 0; color: var(--muted); font-size: 10px; }

.teacher-mini {
  display: grid;
  grid-template-columns: 39px 1fr 8px;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 13px 9px 4px;
  border-top: 1px solid var(--line);
}

.teacher-avatar, .teacher-portrait {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--jade);
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 800;
}

.teacher-avatar { width: 38px; height: 38px; border-radius: 50%; }
.teacher-mini strong, .teacher-mini small { display: block; }
.teacher-mini strong { font-size: 12px; }
.teacher-mini small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.teacher-mini i { width: 8px; height: 8px; border-radius: 50%; background: #c6bfb4; }
.teacher-mini i.online { background: #21a780; box-shadow: 0 0 0 4px rgba(33, 167, 128, .12); }

.main-area { min-height: 100vh; margin-left: var(--sidebar); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 60px);
  border-bottom: 1px solid rgba(229, 221, 209, .8);
  background: rgba(245, 241, 233, .84);
  backdrop-filter: blur(18px);
}

.mobile-menu { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.breadcrumb span { color: var(--muted); }
.breadcrumb span::after { margin-left: 9px; color: #b7afa4; content: '/'; }
.breadcrumb b { font-weight: 750; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.install-button {
  display: none;
  min-height: 39px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #bcdcd2;
  border-radius: 12px;
  color: var(--jade);
  background: var(--jade-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.install-button.available { display: flex; }
.install-button svg { width: 17px; height: 17px; }

.daily-streak {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .6);
  font-size: 12px;
}

.daily-streak small { color: var(--muted); }

.sound-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
}

.sound-button.off { color: #aaa199; }

.page-view {
  display: none;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
  animation: page-in .32s ease both;
}

.page-view.active { display: block; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.kicker, .section-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.kicker::before { width: 24px; height: 2px; content: ''; background: currentColor; }

.welcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: 35px;
  align-items: end;
  margin-bottom: 30px;
}

.welcome-row h1, .page-heading h1 {
  margin: 14px 0 14px;
  font-size: clamp(37px, 5vw, 61px);
  line-height: 1.03;
  letter-spacing: -.058em;
}

.welcome-row > div > p, .page-heading > p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.teacher-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid #cfe3dc;
  border-radius: 22px 22px 22px 7px;
  background: var(--jade-soft);
}

.teacher-portrait { width: 52px; height: 58px; flex: 0 0 auto; border-radius: 18px 18px 18px 5px; font-size: 26px; }
.teacher-card small { color: var(--jade); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.teacher-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.65; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 22px; }

.metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 93px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 248, .82);
}

.metric-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; font: 750 20px/1 "Songti SC", serif; }
.metric-icon.coral { color: var(--coral-dark); background: var(--coral-soft); }
.metric-icon.jade { color: var(--jade); background: var(--jade-soft); }
.metric-icon.gold { color: #a36b00; background: var(--gold-soft); }
.metric-card b, .metric-card small { display: block; }
.metric-card b { margin-bottom: 4px; font-size: 25px; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 18px; margin-bottom: 44px; }

.continue-card {
  position: relative;
  display: grid;
  min-height: 290px;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding: clamp(27px, 4vw, 40px);
  border-radius: 28px 28px 28px 9px;
  color: #fff;
  background: #283a37;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.continue-card::after {
  position: absolute;
  right: -20px;
  bottom: -55px;
  color: rgba(255,255,255,.055);
  content: attr(data-character);
  font: 800 220px/1 "Songti SC", serif;
}

.continue-card > div { position: relative; z-index: 2; align-self: center; }
.continue-card .continue-label { display: block; margin-bottom: 18px; color: #8bd3c0; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.continue-card h2 { max-width: 550px; margin-bottom: 10px; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.045em; }
.continue-card p { max-width: 560px; margin-bottom: 24px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; }

.lesson-progress-line { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lesson-progress-line span:first-child { width: min(300px, 65%); height: 7px; border-radius: 9px; background: rgba(255,255,255,.14); overflow: hidden; }
.lesson-progress-line i { display: block; height: 100%; border-radius: inherit; background: #6cc3aa; }
.lesson-progress-line small { color: rgba(255,255,255,.67); }

.light-button, .primary-button, .outline-button, .text-button {
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.light-button { min-height: 48px; padding: 0 20px; border-radius: 14px 14px 14px 4px; color: #203c35; background: #f3c86e; }
.light-button:hover, .primary-button:hover { transform: translateY(-2px); }
.continue-number { position: relative; z-index: 2; align-self: start; color: rgba(255,255,255,.16); font: 800 72px/1 serif; }

.study-method { padding: 25px; border: 1px solid var(--line); border-radius: 28px 28px 9px 28px; background: var(--paper); }
.study-method h3 { margin: 8px 0 20px; font-size: 21px; letter-spacing: -.03em; }
.study-method ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.study-method li { display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: center; }
.study-method li > b { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: var(--jade); background: var(--jade-soft); font-size: 11px; }
.study-method strong, .study-method small { display: block; }
.study-method strong { font-size: 12px; }
.study-method small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.04em; }
.text-button { padding: 8px 0; color: var(--jade); background: none; font-size: 12px; }

.lesson-preview-list { display: grid; gap: 10px; }

.lesson-preview {
  display: grid;
  grid-template-columns: 54px 1fr auto auto;
  gap: 15px;
  align-items: center;
  min-height: 82px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .78);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.lesson-preview:hover { transform: translateX(3px); border-color: #cfc2b2; background: #fff; }
.lesson-preview-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; color: var(--coral-dark); background: var(--coral-soft); font: 800 24px/1 "Songti SC", serif; }
.lesson-preview h3 { margin: 0 0 4px; font-size: 15px; }
.lesson-preview p { margin: 0; color: var(--muted); font-size: 11px; }
.lesson-preview .status { padding: 5px 9px; border-radius: 99px; color: var(--muted); background: #eee8de; font-size: 9px; font-weight: 800; }
.lesson-preview .status.done { color: var(--jade); background: var(--jade-soft); }
.lesson-preview .status.current { color: var(--coral-dark); background: var(--coral-soft); }
.lesson-preview > small { color: var(--muted); font-size: 10px; }

.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin-bottom: 12px; }

.level-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 24px; }
.level-summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 20px 20px 20px 7px; color: var(--ink); background: rgba(255,253,248,.82); text-align: left; cursor: pointer; transition: .18s ease; }
.level-summary-card:hover, .level-summary-card.active { border-color: #6aa996; background: #f4fbf8; transform: translateY(-2px); }
.level-summary-card > span { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.level-summary-card > span b { color: var(--coral-dark); font-size: 18px; }
.level-summary-card > span small, .level-summary-card > small { color: var(--muted); font-size: 9px; }
.level-summary-card > strong { display: block; margin-top: 15px; font-size: 24px; }
.level-summary-card > strong small { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.level-summary-card > p { min-height: 50px; margin: 9px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.level-summary-card > div { height: 5px; margin-bottom: 8px; border-radius: 9px; background: #e8e1d7; overflow: hidden; }
.level-summary-card > div i { display: block; height: 100%; border-radius: inherit; background: var(--jade); }

.level-filter { position: sticky; top: 76px; z-index: 20; display: flex; gap: 7px; margin: 0 0 27px; padding: 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(247,243,236,.93); backdrop-filter: blur(12px); overflow-x: auto; }
.level-filter button { min-height: 36px; flex: 1 0 auto; padding: 0 15px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.level-filter button.active { color: #fff; background: var(--jade); }

.course-levels { display: grid; gap: 42px; }
.course-level-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.course-level-heading > div { display: flex; align-items: center; gap: 11px; }
.course-level-heading span { padding: 6px 9px; border-radius: 8px; color: var(--coral-dark); background: var(--coral-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.course-level-heading h2 { margin: 0; font-size: 25px; }
.course-level-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.course-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }

.course-card {
  position: relative;
  min-height: 252px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 25px 25px 25px 8px;
  background: rgba(255, 253, 248, .84);
  overflow: hidden;
}

.course-card::after { position: absolute; right: -5px; bottom: -35px; color: rgba(217, 93, 79, .05); content: attr(data-character); font: 800 150px/1 "Songti SC", serif; }
.course-card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.course-number { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: var(--coral); font-weight: 850; }
.course-card.completed .course-number { background: var(--jade); }
.course-card.checkpoint { border-color: #d6b56e; background: linear-gradient(145deg, rgba(255,250,235,.95), rgba(255,253,248,.86)); }
.course-card.checkpoint .course-number { background: #b98116; }
.course-duration { color: var(--muted); font-size: 10px; }
.course-level-tag { position: relative; z-index: 2; display: inline-block; margin-top: 17px; color: var(--jade); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.course-card h2 { position: relative; z-index: 2; margin: 7px 0; font-size: 23px; letter-spacing: -.035em; }
.course-card > p { position: relative; z-index: 2; min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.course-card-footer { position: absolute; right: 27px; bottom: 23px; left: 27px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-card-footer small { color: var(--muted); font-size: 10px; }

.outline-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--jade); background: #fff; font-size: 11px; }
.outline-button:hover { border-color: var(--jade); background: var(--jade-soft); }

.lexicon-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.lexicon-metrics article { display: flex; min-height: 82px; gap: 12px; align-items: center; padding: 14px 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.82); }
.lexicon-metrics article > span { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 13px; color: var(--jade); background: var(--jade-soft); font: 800 18px/1 "Songti SC", serif; }
.lexicon-metrics b, .lexicon-metrics small { display: block; }
.lexicon-metrics b { margin-bottom: 3px; font-size: 23px; }
.lexicon-metrics small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }

.lexicon-toolbar { position: sticky; top: 76px; z-index: 20; display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: rgba(247,243,236,.94); backdrop-filter: blur(12px); }
.lexicon-toolbar label { display: grid; grid-template-columns: 30px 1fr; align-items: center; min-height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lexicon-toolbar label > span { color: var(--muted); font-size: 19px; text-align: center; }
.lexicon-toolbar input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.lexicon-toolbar > div { display: flex; gap: 5px; overflow-x: auto; }
.lexicon-toolbar > div button { flex: 0 0 auto; padding: 0 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.lexicon-toolbar > div button.active { color: #fff; background: var(--jade); }
.lexicon-result-line { display: flex; justify-content: space-between; gap: 15px; margin: 15px 2px 10px; color: var(--muted); font-size: 10px; }
.lexicon-result-line b { color: var(--ink); }
.lexicon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.lexicon-grid > .empty-state { grid-column: 1 / -1; }
.lexicon-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; min-height: 118px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,248,.82); }
.lexicon-card.known { border-color: #a8cebf; background: #f6fcf9; }
.lexicon-index { color: #b2aaa0; font-size: 9px; font-weight: 800; }
.lexicon-word b { display: inline-block; margin-right: 9px; font: 800 24px/1.2 "Songti SC", serif; }
.lexicon-word > span { color: var(--jade); font-size: 11px; }
.lexicon-word p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.lexicon-level { align-self: start; padding: 4px 6px; border-radius: 7px; color: var(--coral-dark); background: var(--coral-soft); font-size: 8px; font-weight: 850; }
.lexicon-audio { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; color: var(--jade); background: var(--jade-soft); cursor: pointer; }
.lexicon-known { grid-column: 2 / -1; justify-self: start; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }
.lexicon-card.known .lexicon-known { border-color: transparent; color: var(--jade); background: var(--jade-soft); }
.load-more-button { display: block; min-width: 180px; min-height: 44px; margin: 20px auto; padding: 0 20px; border: 1px solid var(--line); border-radius: 13px; color: var(--jade); background: #fff; font-weight: 800; cursor: pointer; }
.data-attribution { margin: 25px auto 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.data-attribution a { color: var(--jade); }

.review-content { min-height: 350px; }
.empty-state { padding: 60px 24px; border: 1px dashed #d4c9ba; border-radius: 25px; background: rgba(255,255,255,.44); text-align: center; }
.empty-symbol { display: grid; width: 76px; height: 76px; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--jade); background: var(--jade-soft); font: 800 32px/1 "Songti SC", serif; }
.empty-state h2 { margin-bottom: 9px; }
.empty-state p { max-width: 500px; margin: 0 auto; color: var(--muted); line-height: 1.6; }

.review-list { display: grid; gap: 12px; }
.review-item { display: grid; grid-template-columns: 43px 1fr auto; gap: 14px; align-items: start; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.review-item > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; color: var(--coral-dark); background: var(--coral-soft); font: 800 20px/1 "Songti SC", serif; }
.review-item h3 { margin: 2px 0 6px; font-size: 14px; }
.review-item p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.review-item small { color: var(--jade); font-size: 11px; }
.review-item button { border: 0; color: #a9a198; background: none; cursor: pointer; }

.lesson-view { width: min(1060px, calc(100% - 48px)); }

.lesson-hero {
  position: relative;
  min-height: 250px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 31px 31px 31px 10px;
  color: #fff;
  background: #293a38;
  overflow: hidden;
}

.lesson-hero::after { position: absolute; right: 16px; bottom: -55px; color: rgba(255,255,255,.06); content: attr(data-character); font: 800 230px/1 "Songti SC", serif; }
.lesson-hero-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.back-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; color: rgba(255,255,255,.7); background: none; font-size: 11px; font-weight: 750; cursor: pointer; }
.back-button:hover { color: #fff; }
.lesson-duration { padding: 7px 10px; border-radius: 99px; color: #b6dacd; background: rgba(255,255,255,.08); font-size: 10px; }
.lesson-hero h1 { position: relative; z-index: 2; margin: 32px 0 7px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.05em; }
.lesson-level-badge { position: relative; z-index: 2; display: inline-block; margin-top: 28px; padding: 7px 10px; border-radius: 9px; color: #f4d58c; background: rgba(255,255,255,.1); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lesson-level-badge + h1 { margin-top: 12px; }
.lesson-hero > p { position: relative; z-index: 2; max-width: 650px; margin-bottom: 24px; color: rgba(255,255,255,.68); line-height: 1.6; }
.lesson-goals { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; }
.lesson-goals span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; color: rgba(255,255,255,.76); background: rgba(255,255,255,.05); font-size: 10px; }

.lesson-tabs {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 18px 0 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 248, .91);
  backdrop-filter: blur(15px);
}

.lesson-tab { min-height: 42px; padding: 0 8px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.lesson-tab.active { color: #fff; background: var(--jade); }
.lesson-tab.done::after { margin-left: 5px; color: var(--jade); content: '✓'; }
.lesson-tab.active.done::after { color: #fff; }

.lesson-content { min-height: 500px; }
.content-panel { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 27px 27px 27px 8px; background: rgba(255,253,248,.88); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.panel-heading h2 { margin: 6px 0 7px; font-size: 30px; letter-spacing: -.04em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.step-number { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 14px; color: var(--jade); background: var(--jade-soft); font-weight: 850; }

.objectives-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 27px 0; }
.objective { min-height: 120px; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.objective b { display: grid; width: 26px; height: 26px; place-items: center; margin-bottom: 15px; border-radius: 8px; color: #fff; background: var(--coral); font-size: 11px; }
.objective p { margin: 0; font-size: 13px; line-height: 1.45; }

.teacher-note { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; border-radius: 18px 18px 18px 6px; background: var(--gold-soft); }
.teacher-note span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #fff; background: var(--gold); font: 800 20px/1 "Songti SC", serif; }
.teacher-note strong { display: block; margin-bottom: 5px; color: #8d620e; font-size: 12px; }
.teacher-note p { margin: 0; color: #685934; font-size: 12px; line-height: 1.6; }

.panel-footer { display: flex; justify-content: flex-end; margin-top: 28px; }
.primary-button { min-height: 48px; padding: 0 20px; border-radius: 14px 14px 14px 5px; color: #fff; background: var(--coral); }
.primary-button:hover { background: var(--coral-dark); }
.primary-button.jade { background: var(--jade); }

.vocab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.vocab-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .18s ease, transform .18s ease; }
.vocab-card:hover { transform: translateY(-2px); border-color: #cdbfae; }
.vocab-top { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; }
.vocab-hanzi { min-width: 55px; color: var(--coral-dark); font: 800 31px/1 "Songti SC", serif; }
.vocab-reading b, .vocab-reading span { display: block; }
.vocab-reading b { margin-bottom: 4px; color: var(--jade); font-size: 13px; }
.vocab-reading span { font-size: 12px; }
.audio-group { display: flex; gap: 5px; }
.audio-button { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--jade); background: var(--paper); cursor: pointer; }
.audio-button:hover { border-color: var(--jade); background: var(--jade-soft); }
.audio-button.slow { color: var(--muted); font-size: 13px; }
.vocab-example { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee8df; }
.vocab-example b { display: block; margin-bottom: 4px; font-family: "Songti SC", serif; font-size: 14px; }
.vocab-example span, .vocab-example small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }

.dialogue-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.dialogue-toolbar button, .voice-select { min-height: 39px; border: 1px solid var(--line); border-radius: 12px; color: var(--jade); background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.dialogue-toolbar button { padding: 0 13px; }
.voice-select { max-width: 270px; padding: 0 10px; }
.dialogue-lines { display: grid; gap: 12px; }
.dialogue-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: start; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.dialogue-speaker { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px 15px 15px 5px; color: #fff; background: var(--jade); font: 750 13px/1 "Songti SC", serif; }
.dialogue-line:nth-child(even) .dialogue-speaker { background: var(--coral); }
.dialogue-text b { display: block; margin-bottom: 5px; font: 750 20px/1.35 "Songti SC", serif; }
.dialogue-text span, .dialogue-text small { display: block; }
.dialogue-text span { margin-bottom: 4px; color: var(--jade); font-size: 12px; }
.dialogue-text small { color: var(--muted); font-size: 11px; }

.grammar-list { display: grid; gap: 17px; }
.grammar-card { padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.grammar-card h3 { margin-bottom: 11px; font-size: 19px; letter-spacing: -.025em; }
.formula { display: inline-block; margin-bottom: 14px; padding: 9px 12px; border-radius: 10px; color: var(--coral-dark); background: var(--coral-soft); font: 750 13px/1.3 "Songti SC", sans-serif; }
.grammar-card > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.example-table { display: grid; gap: 6px; margin: 14px 0; }
.example-row { display: grid; grid-template-columns: minmax(120px, .8fr) 1fr 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 11px; background: #f8f5ef; }
.example-row b { font: 750 14px/1.3 "Songti SC", serif; }
.example-row span { color: var(--jade); font-size: 10px; }
.example-row small { color: var(--muted); font-size: 10px; }
.mistake-note { margin-top: 15px; padding: 13px; border-left: 3px solid var(--coral); color: #7c453d; background: #fff5f1; font-size: 11px; line-height: 1.55; }
.mistake-note strong { margin-right: 4px; }

.quiz-shell { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; }
.quiz-main { min-width: 0; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 27px; }
.quiz-progress span { height: 7px; flex: 1; border-radius: 9px; background: #e7dfd3; }
.quiz-progress span.current, .quiz-progress span.done { background: var(--jade); }
.quiz-progress span.wrong { background: var(--coral); }
.quiz-question-label { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.quiz-question { margin: 8px 0 23px; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; letter-spacing: -.03em; }
.choice-list { display: grid; gap: 9px; }
.quiz-listen-button { display: grid; width: min(330px, 100%); grid-template-columns: 43px 1fr; gap: 1px 10px; align-items: center; margin: -4px 0 17px; padding: 11px 15px; border: 1px solid #b8d6cc; border-radius: 15px; color: var(--jade); background: var(--jade-soft); text-align: left; cursor: pointer; }
.quiz-listen-button > span { display: grid; width: 39px; height: 39px; grid-row: 1 / 3; place-items: center; border-radius: 50%; color: #fff; background: var(--jade); }
.quiz-listen-button b { align-self: end; font-size: 12px; }
.quiz-listen-button small { align-self: start; color: var(--muted); font-size: 9px; }
.choice-button { position: relative; min-height: 57px; padding: 13px 15px 13px 48px; border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: left; cursor: pointer; }
.choice-button::before { position: absolute; top: 50%; left: 14px; display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #d5cabd; border-radius: 7px; color: var(--muted); content: attr(data-index); transform: translateY(-50%); font-size: 9px; }
.choice-button:hover:not(:disabled) { border-color: #b9ab9a; }
.choice-button.correct { border-color: var(--jade); color: #0d6752; background: var(--jade-soft); }
.choice-button.wrong { border-color: var(--danger); color: #9c2938; background: #fde8ea; }

.arrange-zone { display: grid; gap: 17px; }
.arrange-answer { min-height: 64px; padding: 12px; border: 1px dashed #cfc3b3; border-radius: 15px; background: #faf7f1; }
.token-bank { display: flex; flex-wrap: wrap; gap: 8px; }
.word-token { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; font-family: "Songti SC", sans-serif; }
.word-token.chosen { border-color: var(--jade); color: var(--jade); background: var(--jade-soft); }
.arrange-actions { display: flex; gap: 8px; }
.arrange-actions button { min-height: 39px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }

.input-answer { width: 100%; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; outline: none; background: #fff; font-size: 17px; }
.input-answer:focus { border-color: var(--jade); box-shadow: 0 0 0 4px rgba(22,126,105,.08); }
.input-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; }

.quiz-feedback { display: none; margin-top: 17px; padding: 16px; border-radius: 15px; background: var(--jade-soft); }
.quiz-feedback.visible { display: block; }
.quiz-feedback.bad { background: #fde8ea; }
.quiz-feedback strong { display: block; margin-bottom: 5px; color: var(--jade); }
.quiz-feedback.bad strong { color: var(--danger); }
.quiz-feedback p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.quiz-action-row { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

.quiz-aside { padding: 18px; border-radius: 18px; background: #f7f1e7; align-self: start; }
.quiz-aside .teacher-avatar { margin-bottom: 12px; }
.quiz-aside strong { display: block; margin-bottom: 6px; font-size: 12px; }
.quiz-aside p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.quiz-score { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.quiz-score b { display: block; font-size: 24px; }
.quiz-score small { color: var(--muted); font-size: 9px; text-transform: uppercase; }

.completion { padding: 42px 24px; text-align: center; }
.completion-seal { display: grid; width: 86px; height: 86px; place-items: center; margin: 0 auto 23px; border: 6px solid #f5d58e; border-radius: 50%; color: #fff; background: var(--gold); box-shadow: 0 0 0 7px var(--gold-soft); font: 800 31px/1 "Songti SC", serif; }
.completion h2 { font-size: 32px; }
.completion > p { max-width: 520px; margin: 0 auto 23px; color: var(--muted); line-height: 1.6; }
.completion-stats { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; }
.completion-stats span { min-width: 100px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.completion-stats b, .completion-stats small { display: block; }
.completion-stats small { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; }

.tutor-fab {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 35;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 17px 0 7px;
  border: 0;
  border-radius: 99px;
  color: #fff;
  background: #293a38;
  box-shadow: 0 13px 32px rgba(27,45,41,.26);
  cursor: pointer;
}

.tutor-fab > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #254038; background: #80ceb7; font: 800 17px/1 "Songti SC", serif; }
.tutor-fab b { font-size: 12px; }
.tutor-fab i { width: 7px; height: 7px; border-radius: 50%; background: #b7b4ae; }
.tutor-fab.online i { background: #6ee0b9; }

.tutor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  width: min(420px, 100%);
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--paper);
  box-shadow: -20px 0 55px rgba(48,37,24,.15);
  transform: translateX(105%);
  transition: transform .26s ease;
}

.tutor-drawer.open { transform: translateX(0); }
.tutor-drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.tutor-drawer > header > div { display: flex; align-items: center; gap: 11px; }
.tutor-drawer header strong, .tutor-drawer header small { display: block; }
.tutor-drawer header strong { font-size: 14px; }
.tutor-drawer header small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.tutor-drawer header > button { border: 0; color: var(--muted); background: none; font-size: 27px; cursor: pointer; }
.tutor-context { padding: 10px 20px; color: var(--jade); background: var(--jade-soft); font-size: 10px; font-weight: 750; }

.chat-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 12px; padding: 20px; overflow-y: auto; }
.chat-message { max-width: 86%; padding: 12px 14px; border-radius: 15px; white-space: pre-wrap; font-size: 12px; line-height: 1.6; }
.chat-message.assistant { align-self: flex-start; border-radius: 15px 15px 15px 4px; background: #f0ebe3; }
.chat-message.user { align-self: flex-end; border-radius: 15px 15px 4px 15px; color: #fff; background: var(--jade); }
.chat-message.loading { color: var(--muted); font-style: italic; }

.chat-suggestions { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; }
.chat-suggestions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fff; font-size: 9px; cursor: pointer; }
.chat-form { display: grid; grid-template-columns: 1fr 44px; gap: 8px; padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 50px; max-height: 130px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; outline: 0; resize: vertical; background: #fff; font-size: 12px; }
.chat-form textarea:focus { border-color: var(--jade); }
.chat-form button { display: grid; width: 44px; height: 44px; place-items: center; align-self: end; border: 0; border-radius: 13px; color: #fff; background: var(--coral); cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: wait; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 55; visibility: hidden; background: rgba(29,26,22,.24); opacity: 0; transition: .25s ease; }
.drawer-backdrop.open { visibility: visible; opacity: 1; }

.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29,26,22,.45);
  backdrop-filter: blur(5px);
}
.install-guide {
  position: relative;
  width: min(390px, 100%);
  padding: 30px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(32,25,17,.24);
  text-align: center;
}
.install-close { position: absolute; top: 10px; right: 13px; border: 0; color: var(--muted); background: none; font-size: 26px; cursor: pointer; }
.install-seal { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 18px; border-radius: 20px 20px 20px 7px; color: #fff; background: var(--coral); box-shadow: 0 10px 24px rgba(217,93,79,.25); font: 800 31px/1 "Songti SC", serif; }
.install-guide h2 { margin-bottom: 10px; font-size: 24px; }
.install-guide p { margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.primary-install-close { min-height: 44px; padding: 0 20px; border: 0; border-radius: 13px; color: #fff; background: var(--jade); font-size: 12px; font-weight: 800; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 23px; z-index: 80; padding: 12px 16px; border-radius: 12px; color: #fff; background: #25231f; box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translate(-50%, 15px); opacity: 0; pointer-events: none; transition: .23s ease; font-size: 11px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1030px) {
  :root { --sidebar: 220px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .level-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-method ol { grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .study-method li { grid-template-columns: 1fr; text-align: center; }
  .study-method li > b { margin: 0 auto; }
  .course-map { grid-template-columns: 1fr; }
  .lexicon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sidebar { width: 256px; transform: translateX(-105%); box-shadow: 20px 0 45px rgba(34,29,23,.14); transition: transform .24s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu { display: grid; }
  .breadcrumb { margin-right: auto; margin-left: 12px; }
  .welcome-row { grid-template-columns: 1fr; }
  .teacher-card { max-width: 620px; }
  .vocab-grid { grid-template-columns: 1fr; }
  .quiz-shell { grid-template-columns: 1fr; }
  .quiz-aside { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
  .quiz-aside .teacher-avatar { margin: 0; }
  .quiz-aside p { grid-column: 2; }
  .quiz-score { grid-row: 1 / 3; grid-column: 3; margin: 0; padding: 0 0 0 13px; border: 0; border-left: 1px solid var(--line); }
  .lexicon-toolbar { grid-template-columns: 1fr; }
  .lexicon-toolbar > div button { min-height: 34px; }
}

@media (max-width: 600px) {
  .topbar { height: 62px; padding: 0 12px; }
  .breadcrumb span, .daily-streak small { display: none; }
  .topbar-actions { gap: 7px; }
  .install-button { width: 40px; padding: 0; justify-content: center; }
  .install-button span { display: none; }
  .daily-streak { padding: 0 9px; }
  .page-view, .lesson-view { width: min(100% - 22px, 1180px); padding: 30px 0 76px; }
  .welcome-row h1, .page-heading h1 { font-size: 38px; }
  .metric-grid { grid-template-columns: 1fr; gap: 8px; }
  .lexicon-metrics { grid-template-columns: 1fr; }
  .metric-card { min-height: 72px; }
  .metric-icon { width: 42px; height: 42px; }
  .dashboard-grid { gap: 12px; }
  .continue-card { min-height: 330px; grid-template-columns: 1fr; }
  .continue-number { display: none; }
  .study-method ol { grid-template-columns: 1fr; }
  .study-method li { grid-template-columns: 29px 1fr; text-align: left; }
  .study-method li > b { margin: 0; }
  .section-heading { align-items: center; }
  .level-summary-grid { grid-template-columns: 1fr; }
  .level-summary-card > p { min-height: auto; }
  .level-filter { top: 66px; }
  .course-level-heading { align-items: start; flex-direction: column; gap: 6px; }
  .lesson-preview { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .lesson-preview-icon { width: 46px; height: 46px; }
  .lesson-preview > small { display: none; }
  .course-card { padding: 22px; }
  .course-card-footer { right: 22px; left: 22px; }
  .lesson-hero { min-height: 290px; padding: 27px 23px; }
  .lesson-hero h1 { margin-top: 38px; font-size: 37px; }
  .lesson-tabs { top: 62px; display: flex; overflow-x: auto; }
  .lesson-tab { min-width: 105px; }
  .content-panel { padding: 23px 17px; }
  .panel-heading h2 { font-size: 26px; }
  .objectives-grid { grid-template-columns: 1fr; }
  .objective { min-height: auto; }
  .teacher-note { grid-template-columns: 40px 1fr; }
  .teacher-note span { width: 40px; height: 40px; }
  .vocab-top { grid-template-columns: 48px 1fr auto; }
  .vocab-hanzi { min-width: 45px; font-size: 27px; }
  .dialogue-line { grid-template-columns: 42px 1fr; padding: 15px; }
  .dialogue-speaker { width: 40px; height: 40px; font-size: 11px; }
  .dialogue-line > .audio-button { grid-column: 2; }
  .example-row { grid-template-columns: 1fr auto; }
  .example-row span, .example-row small { grid-column: 1; }
  .quiz-aside { grid-template-columns: 40px 1fr; }
  .quiz-score { grid-row: auto; grid-column: 1 / -1; padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .review-item { grid-template-columns: 40px 1fr auto; padding: 15px; }
  .lexicon-result-line { align-items: start; flex-direction: column; gap: 4px; }
  .lexicon-card { grid-template-columns: 28px minmax(0, 1fr) 34px; }
  .lexicon-level { grid-row: 1; grid-column: 1; align-self: start; }
  .lexicon-index { display: none; }
  .lexicon-word { grid-column: 2; }
  .lexicon-audio { grid-column: 3; }
  .lexicon-known { grid-column: 2 / -1; }
  .tutor-fab { right: 14px; bottom: 14px; }
  .completion-stats { flex-direction: column; }
}

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