:root {
  font-family: Inter, "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #18352d;
  background: #f3f7f1;
  font-synthesis: none;
  --ink: #18352d;
  --muted: #748980;
  --green: #176c58;
  --mint: #dff1e5;
  --cream: #fffaf0;
  --line: #dce7df;
  --orange: #ee8d5a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% -5%, rgba(197, 231, 209, .8), transparent 26rem),
    linear-gradient(180deg, #f5f8f2 0%, #f8faf7 100%);
}
button, input { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 18px 112px;
}

.home-head, .page-head { margin: 0 3px 25px; }
.home-head { display: flex; align-items: center; justify-content: space-between; }
.date-label, .section-kicker {
  margin: 0 0 7px;
  color: #679180;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-head h1, .page-head h1 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.silkworm-mark {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid #cfe1d7;
  border-radius: 50%;
  background: rgba(255,255,255,.64);
  color: var(--green);
  font-size: 23px;
}

.focus-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 29px;
  background: #1b6e5a;
  color: #fff;
  box-shadow: 0 20px 46px rgba(28, 87, 71, .18);
}
.focus-card::after {
  position: absolute;
  top: -65px;
  right: -60px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.04), 0 0 0 52px rgba(255,255,255,.03);
  content: "";
}
.focus-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.soft-label { color: rgba(255,255,255,.67); font-size: 12px; font-weight: 700; }
.focus-top h2 { margin: 7px 0 0; font-size: 39px; letter-spacing: -.06em; }
.focus-top h2 small { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.progress-ring {
  --progress: 0;
  display: grid;
  width: 67px;
  height: 67px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #1b6e5a 58%, transparent 60%), conic-gradient(#f3cb75 calc(var(--progress) * 1%), rgba(255,255,255,.16) 0);
}
.progress-ring span { font-size: 13px; font-weight: 850; }
.progress-track, .thin-track {
  overflow: hidden;
  height: 7px;
  margin-top: 22px;
  border-radius: 99px;
  background: rgba(255,255,255,.15);
}
.progress-track i, .thin-track i { display: block; height: 100%; border-radius: inherit; background: #f3cb75; transition: width .35s ease; }
.focus-meta { display: flex; justify-content: space-between; margin-top: 9px; color: rgba(255,255,255,.7); font-size: 11px; }
.focus-meta b { color: #fff; }
.start-button, .learn-primary, .save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 19px;
  border-radius: 16px;
  font-weight: 800;
}
.start-button {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  margin-top: 22px;
  background: #fffaf0;
  color: #174f42;
}
.start-button span, .learn-primary span { display: grid; font-size: 19px; }
.time-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 13px 0 0; color: rgba(255,255,255,.58); font-size: 11px; }
.time-note svg { font-size: 14px; }

.mix-card, .bank-peek, .chart-card, .curve-card, .settings-card, .policy-card, .progress-hero {
  margin-top: 16px;
  border: 1px solid rgba(205, 220, 210, .9);
  border-radius: 23px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(54, 87, 71, .06);
}
.mix-card { padding: 20px; }
.mix-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mix-title h3, .section-title h3, .bank-peek h3, .curve-card h3, .setting-row h3, .policy-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.02em;
}
.shield-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: var(--mint);
  color: var(--green);
  font-size: 20px;
}
.mix-bar {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: #f3d5bb;
}
.mix-bar i { display: block; height: 100%; border-radius: inherit; background: #6cae8f; }
.mix-legend { display: flex; gap: 22px; margin-top: 10px; font-size: 12px; font-weight: 750; }
.mix-legend span { display: flex; align-items: center; gap: 6px; }
.mix-legend i { width: 8px; height: 8px; border-radius: 50%; }
.review-dot { background: #6cae8f; }
.new-dot { background: #e9ac75; }
.mix-card > p, .curve-card p, .setting-row p, .policy-card p, .page-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.mix-card > p { margin: 15px 0 0; padding-top: 14px; border-top: 1px dashed #d9e4dc; }

.section-block { margin-top: 29px; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }
.section-title > span { color: var(--muted); font-size: 11px; }
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.rhythm div {
  min-width: 0;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.68);
}
.rhythm b { display: block; color: #94a99f; font-size: 10px; }
.rhythm span { display: block; margin-top: 12px; font-size: 13px; font-weight: 850; }
.rhythm small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.rhythm div:nth-child(3) { border-color: #9ec6b3; background: #e2f1e8; }

.bank-peek { display: flex; align-items: center; gap: 14px; padding: 17px; cursor: pointer; }
.bank-orb {
  display: grid;
  width: 57px;
  height: 57px;
  flex: none;
  place-items: center;
  border-radius: 18px;
  background: #f3e3bd;
  color: #7f6030;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 800;
}
.bank-peek > div:nth-child(2) { flex: 1; min-width: 0; }
.bank-peek p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.peek-arrow { display: grid; color: #739185; font-size: 20px; }

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 9px 13px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(215, 225, 217, .9);
  background: rgba(249, 251, 248, .91);
  backdrop-filter: blur(18px);
}
.bottom-nav-inner { display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 500px); gap: 5px; }
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 3px;
  border-radius: 13px;
  background: transparent;
  color: #91a39b;
  font-size: 10px;
}
.nav-icon { display: grid; font-size: 22px; }
.nav-item.active { color: var(--green); font-weight: 800; }
.nav-item.active .nav-icon { position: relative; }
.nav-item.active .nav-icon::after { position: absolute; right: -4px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #ed9a65; content: ""; }

.learn-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 19px 18px 40px;
}
.learn-head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; }
.round-back { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #e7eee8; color: #567269; font-size: 23px; font-weight: 300; }
.learn-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.learn-progress b { color: var(--ink); font-size: 11px; }
.thin-track { height: 5px; margin-top: 6px; background: #dfe7e1; }
.thin-track i { background: #72a98f; }
.round-count { color: #638177; font-size: 11px; font-weight: 750; }
.stage-rail { display: grid; grid-template-columns: repeat(4, 1fr); margin: 23px 0 26px; }
.stage-rail > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9aa9a2; font-size: 10px; }
.stage-rail > div::after { position: absolute; top: 11px; left: 62%; width: 76%; height: 1px; background: #d7e0da; content: ""; }
.stage-rail > div:last-child::after { display: none; }
.stage-rail i {
  z-index: 1;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #cfdbd3;
  border-radius: 50%;
  background: #f4f7f3;
  font-size: 9px;
  font-style: normal;
}
.stage-rail i svg { font-size: 13px; }
.stage-rail .active { color: var(--green); font-weight: 850; }
.stage-rail .active i { border-color: var(--green); background: var(--green); color: #fff; }
.stage-rail .done i { border-color: #a2c6b5; background: #dceee5; color: var(--green); }
.stage-rail .done::after { background: #a2c6b5; }

.learn-body { padding-bottom: 78px; animation: reveal .28s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } }
.mode-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 14px; }
.mode-intro span { flex: none; color: var(--green); font-size: 12px; font-weight: 850; }
.mode-intro p { margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.preview-card, .exercise-card, .exam-card, .closing-card {
  position: relative;
  padding: 23px 20px;
  border: 1px solid #d9e4dc;
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 15px 40px rgba(57, 89, 72, .07);
}
.question-tag { display: flex; align-items: center; justify-content: space-between; color: #6d8c80; font-size: 10px; font-weight: 750; }
.question-tag span:first-child, .exercise-type {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 99px;
  background: #e4f0e8;
  color: #477564;
  font-size: 10px;
  font-weight: 800;
}
.preview-card h1, .exercise-card h1, .exam-card h1, .closing-card h1 {
  margin: 22px 0;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: clamp(20px, 5.7vw, 27px);
  line-height: 1.45;
  letter-spacing: -.025em;
  font-weight: 760;
}
.key-highlight {
  padding: .04em .2em .08em;
  border-radius: .34em;
  background: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 850;
}
.key-highlight.tone-0 { background: #dff1e7; color: #12634e; }
.key-highlight.tone-1 { background: #f7e8c7; color: #775723; }
.key-highlight.tone-2 { background: #e4eaf8; color: #405d92; }
.key-highlight.tone-3 { background: #f6e3df; color: #94513f; }
.option-list .key-highlight { padding: .08em .25em; font-weight: 800; }
.short-answer { padding: 16px; border-left: 3px solid #72a98f; border-radius: 0 13px 13px 0; background: #f0f6f1; }
.short-answer small { color: #7c958b; font-size: 10px; font-weight: 750; }
.short-answer p { margin: 7px 0 0; font-size: 14px; font-weight: 650; line-height: 1.65; }
.keyword-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.keyword-row span { padding: 7px 10px; border: 1px solid #d7e4dc; border-radius: 10px; background: #fff; color: #52786a; font-size: 11px; font-weight: 750; }
.memory-flow { margin-top: 21px; padding-top: 16px; border-top: 1px dashed #dce5df; }
.memory-flow > small { color: #8aa098; font-size: 10px; }
.memory-flow > div { display: flex; align-items: center; gap: 3px; margin-top: 11px; overflow-x: auto; }
.memory-flow span { flex: none; padding: 8px 10px; border-radius: 10px; background: #f5e8cb; color: #725c36; font-size: 10px; font-weight: 750; }
.memory-flow i { display: grid; flex: none; color: #9aaea5; font-size: 13px; }
.source-note { margin: 17px 0 0; color: #9aaba4; font-size: 9px; }
.learn-primary { gap: 7px; margin-top: 17px; background: var(--green); color: #fff; box-shadow: 0 12px 25px rgba(23,108,88,.16); }

.note-trigger {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce6df;
  border-radius: 12px;
  background: rgba(249,252,249,.9);
  color: #68877b;
  font-size: 17px;
}
.preview-card .question-tag { padding-right: 42px; }
.swipe-card {
  touch-action: pan-y;
  user-select: none;
  transition: transform .34s cubic-bezier(.22, .9, .28, 1), box-shadow .25s ease;
  will-change: transform;
}
.swipe-card.dragging { transition: none; box-shadow: 0 25px 48px rgba(48, 87, 68, .13); }
.swipe-card.spring-back { animation: springBack .34s cubic-bezier(.2, 1.35, .4, 1); }
@keyframes springBack { 45% { transform: translateX(7px) scale(.995); } }
.preview-control {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 18;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  width: min(86%, 330px);
  margin: 0;
  padding: 7px;
  border: 1px solid #d6e2da;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(47, 78, 64, .08);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}
.preview-control > button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 15px;
  background: #e9f1eb;
  color: #5f7c71;
  font-size: 19px;
}
.preview-control > button.next { background: var(--green); color: #fff; }
.preview-control > button:disabled { opacity: .28; cursor: default; }
.preview-control > div { min-width: 0; text-align: center; }
.mini-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #e1e9e3; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: #83ad99; }
.preview-control span { display: block; margin-top: 5px; overflow: hidden; color: #8b9d95; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.exercise-type { margin-bottom: -4px; }
.option-list { display: grid; gap: 10px; }
.option-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid #d9e3dc;
  border-radius: 15px;
  background: #fafcf9;
  text-align: left;
}
.option-list button:hover { border-color: #7eaf98; background: #eef7f1; }
.option-list i {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: #e6eee8;
  color: #5b776d;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.option-list span { font-size: 13px; font-weight: 650; }
.judge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.judge-row button { padding: 17px; border: 1px solid #d5e2da; border-radius: 15px; background: #f8fbf8; font-weight: 750; }
.judge-row button:first-child { color: var(--green); }
.judge-row svg { vertical-align: -2px; }
.single-fill { display: flex; gap: 8px; }
.single-fill input, .memory-input, .closing-context input {
  min-width: 0;
  padding: 11px 9px;
  border: 0;
  border-bottom: 2px solid #8fb4a3;
  border-radius: 7px 7px 2px 2px;
  outline: 0;
  background: #eef5f0;
  color: var(--ink);
  text-align: center;
  font-weight: 750;
}
.single-fill input { width: 100%; text-align: left; }
.single-fill button { flex: none; padding: 0 17px; border-radius: 13px; background: #e1efe7; color: var(--green); font-weight: 800; }
.micro-hint { margin: 10px 0 0; color: #8b9e96; font-size: 10px; }
.answer-feedback { margin-top: 17px; padding: 13px 14px; border-radius: 14px; }
.answer-feedback.success { background: #e4f3e9; color: #266e55; }
.answer-feedback.error { background: #fff0e5; color: #985d39; }
.answer-feedback b { font-size: 12px; }
.answer-feedback p { margin: 4px 0 0; font-size: 11px; line-height: 1.5; }
.practice-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px dashed #dbe5de;
}
.result-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  animation: resultPop .32s cubic-bezier(.2, 1.45, .45, 1);
}
.result-mark svg { width: 21px; height: 21px; stroke-width: 2.4; }
.result-mark.correct { background: #dff2e6; color: #237356; }
.result-mark.incorrect { background: #fae7df; color: #b05d44; }
.practice-swipe-card {
  touch-action: pan-y;
  transition: transform .34s cubic-bezier(.22, .9, .28, 1), box-shadow .25s ease;
  will-change: transform;
}
.practice-swipe-card.dragging { transition: none; box-shadow: 0 25px 48px rgba(48, 87, 68, .13); }
.practice-swipe-card.spring-back { animation: springBack .34s cubic-bezier(.2, 1.35, .4, 1); }
.practice-result button {
  padding: 9px 13px;
  border: 1px solid #cfddd4;
  border-radius: 11px;
  background: #f8fbf8;
  color: #547568;
  font-size: 10px;
  font-weight: 800;
}
.practice-result.auto { justify-content: flex-start; gap: 11px; }
.practice-result.auto > span:last-child { color: #789087; font-size: 10px; }
.practice-answer {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #edf4ef;
}
.practice-answer > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.practice-answer small { color: #83968e; font-size: 9px; }
.practice-answer b { color: #285f4d; font-size: 11px; text-align: right; }
.practice-answer p {
  margin: 11px 0 0;
  padding-top: 11px;
  border-top: 1px solid #d8e5dc;
  color: #48685c;
  font-size: 11px;
  line-height: 1.75;
}
.practice-answer p small { display: block; margin-bottom: 5px; font-weight: 800; letter-spacing: .08em; }
@keyframes resultPop {
  from { opacity: 0; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}

.memory-sentence { padding: 18px 15px; border-radius: 17px; background: #f1f6f2; font-family: Georgia, "Songti SC", serif; font-size: 15px; line-height: 3.15; }
.memory-input { width: min(105px, 29vw); margin: 0 4px; height: 38px; line-height: normal; font-family: Inter, "PingFang SC", sans-serif; font-size: 12px; }
.memory-input:focus, .closing-context input:focus, .single-fill input:focus { border-color: var(--green); background: #e5f1e9; box-shadow: 0 3px 0 rgba(23,108,88,.08); }
.exam-tip { margin: 14px 0 0; color: #8a9c95; font-size: 10px; }
.closing-card { text-align: center; }
.closing-badge { display: grid; width: 50px; height: 50px; margin: 0 auto 13px; place-items: center; border-radius: 17px; background: #e2f0e6; color: var(--green); font-size: 25px; }
.closing-card h1 { font-size: 23px; }
.closing-context { padding: 18px 13px; border-radius: 17px; background: #f2f6f2; font-family: Georgia, "Songti SC", serif; font-size: 14px; line-height: 2.8; text-align: left; }
.closing-context input { width: min(120px, 35vw); margin: 0 5px; font-family: Inter, sans-serif; font-size: 12px; }

.celebrate-shell {
  display: flex;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 50px 25px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.celebrate-art {
  display: grid;
  width: 95px;
  height: 95px;
  margin: 0 auto 27px;
  place-items: center;
  border-radius: 34px 52px 38px 48px;
  background: #dcefe3;
  color: var(--green);
  font-size: 42px;
  transform: rotate(-5deg);
}
.celebrate-art span { display: grid; transform: rotate(5deg); }
.celebrate-art.final { background: #f2e3bd; color: #846430; }
.celebrate-shell h1 { margin: 5px 0 13px; font-family: Georgia, "Songti SC", serif; font-size: 34px; line-height: 1.3; letter-spacing: -.04em; }
.celebrate-shell > p { margin: 0 auto 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.progress-track.large { height: 10px; margin: 8px 0 9px; background: #dae5dd; }
.progress-track.large i { background: var(--green); }
.text-button { margin-top: 10px; padding: 12px; background: transparent; color: #71897f; font-size: 12px; }

.page-head { padding-top: 8px; }
.page-head h1 { font-size: 34px; }
.page-head p { margin: 9px 0 0; }
.bank-summary { display: grid; grid-template-columns: repeat(3, 1fr); padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bank-summary div { text-align: center; }
.bank-summary div + div { border-left: 1px solid var(--line); }
.bank-summary b { display: block; font-size: 21px; }
.bank-summary span { color: var(--muted); font-size: 10px; }
.search-box { display: flex; align-items: center; gap: 10px; margin-top: 19px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.75); color: #84978f; }
.search-box svg { flex: none; font-size: 19px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.category-scroll { display: flex; gap: 7px; margin: 13px -18px 16px; padding: 0 18px; overflow-x: auto; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.6); color: #71877e; font-size: 10px; }
.filter-chip.active { border-color: var(--green); background: var(--green); color: #fff; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.category-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.74); text-align: left; }
.category-index { color: #9aac9f; font: 11px Georgia, serif; }
.category-card div { flex: 1; min-width: 0; }
.category-card h3 { overflow: hidden; margin: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.category-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.category-card > span:last-child { display: grid; color: #95a79f; font-size: 14px; }
.section-title.compact { margin: 27px 2px 11px; align-items: center; }
.question-list { display: grid; gap: 8px; scroll-margin-top: 15px; }
.question-row { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.7); }
.question-row[hidden] { display: none; }
.ready-mark { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border-radius: 9px; background: #eceeea; color: #9fa9a2; }
.ready-mark.ready { background: #dff0e5; color: var(--green); }
.ready-mark svg { font-size: 14px; }
.question-row > div { flex: 1; min-width: 0; }
.question-row small { color: #87a096; font-size: 8px; }
.question-row h4 { margin: 4px 0 0; font-size: 11px; line-height: 1.45; }
.question-state { flex: none; color: #8aa096; font-size: 8px; }

.progress-hero { display: flex; align-items: center; gap: 22px; padding: 22px; }
.large-ring {
  width: 100px;
  height: 100px;
  flex: none;
  background: radial-gradient(circle, #fff 58%, transparent 60%), conic-gradient(var(--green) calc(var(--progress) * 1%), #dce6df 0);
}
.large-ring span { color: var(--green); }
.large-ring b { font-size: 23px; }
.progress-hero .soft-label { color: var(--muted); }
.progress-hero h2 { margin: 5px 0; font-size: 27px; }
.progress-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.chart-card { padding: 18px; }
.bar-chart { display: flex; align-items: end; justify-content: space-around; height: 155px; padding-top: 17px; border-bottom: 1px solid var(--line); }
.bar-chart div { display: flex; width: 20px; height: 100%; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.bar-chart i { display: block; width: 10px; min-height: 5px; border-radius: 8px 8px 2px 2px; background: #8eb9a5; }
.bar-chart div:nth-child(5) i { background: var(--orange); }
.bar-chart span { color: var(--muted); font-size: 9px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.stat-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.7); }
.stat-grid span { display: block; color: var(--muted); font-size: 10px; }
.stat-grid b { display: block; margin-top: 7px; font-size: 25px; }
.stat-grid small { color: #81978e; font-size: 11px; }
.curve-card { overflow: hidden; }
.curve-copy { padding: 19px 19px 5px; }
.curve-visual { position: relative; height: 100px; overflow: hidden; }
.curve-visual::before, .curve-visual::after {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 95px;
  border-top: 2px solid #6da58c;
  border-radius: 50%;
  content: "";
  transform: rotate(-7deg);
}
.curve-visual::before { top: 40px; }
.curve-visual::after { top: 69px; border-color: #d9aa78; opacity: .55; }
.curve-visual i { position: absolute; z-index: 2; top: 52px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--green); }
.curve-visual i:nth-child(1) { left: 20%; }
.curve-visual i:nth-child(2) { left: 49%; top: 42px; }
.curve-visual i:nth-child(3) { left: 78%; top: 30px; }
.curve-visual span { position: absolute; right: 15px; bottom: 9px; color: #91a59b; font-size: 8px; }

.settings-card { padding: 6px 18px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; border-bottom: 1px solid #e4ebe6; }
.setting-row p { margin: 5px 0 0; font-size: 10px; }
.stepper { display: flex; align-items: center; gap: 11px; }
.stepper button { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 10px; background: #e6efe9; color: var(--green); font-size: 16px; }
.stepper b { min-width: 21px; text-align: center; }
.setting-result { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 17px 0; }
.setting-result span { color: var(--muted); font-size: 11px; }
.setting-result b { color: var(--green); font-size: 17px; }
.setting-result small { grid-column: 1 / -1; margin-top: 5px; color: #93a49d; font-size: 9px; }
.save-button { margin: 3px 0 15px; background: var(--green); color: #fff; }
.policy-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; }
.policy-card p { margin: 5px 0 0; }
.settings-card.simple { margin-top: 12px; padding: 4px 17px; }
.setting-link { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #e4ebe6; font-size: 11px; }
.setting-link:last-child { border: 0; }
.setting-link span { color: var(--muted); }

.toast-message {
  position: fixed;
  bottom: 92px;
  left: 50%;
  z-index: 80;
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  border-radius: 13px;
  background: #173e34;
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: .22s ease;
  box-shadow: 0 12px 30px rgba(20,54,45,.22);
}
.toast-message.show { opacity: 1; transform: translate(-50%, 0); }
.note-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0;
  background: rgba(20,39,33,.28);
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: blur(3px);
}
.note-overlay.open { opacity: 1; }
.note-sheet {
  width: min(100%, 520px);
  padding: 10px 20px max(24px, env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #fbfcf9;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22,.9,.3,1);
}
.note-overlay.open .note-sheet { transform: translateY(0); }
.note-grip { width: 38px; height: 4px; margin: 0 auto 16px; border-radius: 99px; background: #d7e0da; }
.note-head { display: flex; align-items: flex-start; justify-content: space-between; }
.note-head h3 { margin: 0; font-size: 18px; }
.note-head button { width: 32px; height: 32px; border-radius: 50%; background: #e8eee9; color: #688077; font-size: 20px; }
.note-question { margin: 14px 0 10px; color: #607b70; font-size: 11px; line-height: 1.55; }
.note-sheet textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #d6e2da;
  border-radius: 16px;
  outline: 0;
  background: #f3f7f3;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
}
.note-sheet textarea:focus { border-color: #7cab95; box-shadow: 0 0 0 3px #e3efe8; }
.note-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.note-footer span { color: #8b9d95; font-size: 9px; }
.note-footer button { padding: 11px 16px; border-radius: 12px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; }

.book-shelf { display: grid; gap: 12px; }
.book-card {
  display: grid;
  grid-template-columns: 82px 1fr 20px;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255,255,255,.78);
  text-align: left;
  box-shadow: 0 12px 32px rgba(50,83,68,.07);
}
.book-cover {
  position: relative;
  display: flex;
  width: 82px;
  height: 112px;
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 5px 14px 14px 5px;
  background: linear-gradient(145deg, #194f42, #2a8068);
  color: #f7efd9;
  box-shadow: 7px 9px 18px rgba(23,78,63,.2), inset 5px 0 rgba(255,255,255,.06);
}
.book-cover::after { position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: rgba(255,255,255,.14); content: ""; }
.book-cover span, .book-cover small { font-size: 7px; letter-spacing: .12em; }
.book-cover b { font-family: Georgia, "Songti SC", serif; font-size: 18px; line-height: 1.22; }
.book-info { min-width: 0; }
.book-info h2 { margin: 0; font: 700 20px Georgia, "Songti SC", serif; }
.book-info > p { display: -webkit-box; margin: 8px 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.book-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.book-meta span { padding: 4px 7px; border-radius: 8px; background: #e7f0ea; color: #5a766b; font-size: 8px; }
.book-arrow { display: grid; color: #88a096; font-size: 18px; }
.add-book { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px; border: 1px dashed #c9d9ce; border-radius: 19px; background: rgba(255,255,255,.38); text-align: left; }
.add-book > span { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; background: #e6eee8; color: var(--green); font-size: 20px; }
.add-book b, .add-book small { display: block; }
.add-book b { font-size: 11px; }
.add-book small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.book-detail-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 24px; text-align: center; }
.book-detail-head button { width: 34px; height: 34px; border-radius: 50%; background: #e7eee8; color: #567269; font-size: 26px; }
.book-detail-head span { font-size: 12px; font-weight: 800; }
.book-hero { display: flex; align-items: center; gap: 19px; padding: 5px 6px 20px; border-bottom: 1px solid var(--line); }
.book-cover.small { width: 76px; height: 104px; flex: none; }
.book-hero h1, .chapter-head h1 { margin: 0; font: 700 26px Georgia, "Songti SC", serif; letter-spacing: -.04em; }
.book-hero p, .chapter-head p { margin: 7px 0 10px; color: var(--muted); font-size: 10px; }
.chapter-list { display: grid; gap: 8px; }
.chapter-row { display: grid; grid-template-columns: 30px 1fr 17px; align-items: center; gap: 9px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); text-align: left; }
.chapter-number { color: #9aac9f; font: 11px Georgia, serif; }
.chapter-row h3 { margin: 0; font-size: 12px; }
.chapter-row p { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.chapter-row > span:last-child { display: grid; color: #92a69d; }
.chapter-progress { height: 3px; overflow: hidden; border-radius: 99px; background: #e5ebe7; }
.chapter-progress i { display: block; height: 100%; background: #7baa94; }
.chapter-head { margin: 0 3px 20px; }
.row-note { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #ebf1ec; color: #668176; font-size: 15px; }

.profile-head { display: flex; align-items: center; gap: 14px; margin: 3px 3px 25px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); }
.profile-avatar { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: var(--green); color: #fff; font: 700 19px Georgia, serif; }
.profile-head h1 { margin: 0; font-size: 17px; }
.profile-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.settings-title { margin-top: 30px; }
.logout-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 18px; padding: 13px; border-radius: 14px; background: #f6e9e4; color: #9c5e4c; font-size: 11px; font-weight: 750; }
.logout-button svg { font-size: 17px; }

.login-shell { display: flex; width: min(100%, 480px); min-height: 100vh; margin: 0 auto; padding: 40px 25px; flex-direction: column; justify-content: center; }
.login-brand { display: flex; align-items: center; gap: 8px; color: var(--green); }
.login-brand svg { font-size: 26px; }
.login-brand b { font: 700 20px Georgia, "Songti SC", serif; }
.login-art { position: relative; width: 150px; height: 150px; margin: 48px auto 42px; }
.login-art i { position: absolute; inset: 0; border: 1px solid #b7d3c5; border-radius: 42% 58% 55% 45%; transform: rotate(18deg); }
.login-art i:nth-child(2) { inset: 17px; border-color: #d8b77f; transform: rotate(-13deg); }
.login-art i:nth-child(3) { inset: 34px; border-color: #8cb59f; transform: rotate(31deg); }
.login-art span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font: 700 30px Georgia, "Songti SC", serif; }
.login-shell h1 { margin: 7px 0 14px; font: 700 38px/1.25 Georgia, "Songti SC", serif; letter-spacing: -.05em; }
.login-shell > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.mattermost-login { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 13px; border-radius: 16px; background: #175fc2; color: #fff; text-decoration: none; box-shadow: 0 13px 28px rgba(23,95,194,.2); }
.mm-logo { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: rgba(255,255,255,.16); font-weight: 900; }
.mattermost-login b { flex: 1; font-size: 12px; }
.mattermost-login i { display: grid; font-size: 18px; }
.login-shell > small { margin-top: 13px; color: #97a79f; font-size: 8px; text-align: center; }
.login-error { margin-top: 14px; padding: 10px 12px; border-radius: 11px; background: #fae9e3; color: #9a5b49; font-size: 10px; }

.boot-screen, .error-screen { display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center; color: var(--green); }
.boot-screen > span { display: grid; font-size: 46px; animation: breathe 1.5s ease infinite; }
.boot-screen b { margin-top: 13px; font-family: Georgia, "Songti SC", serif; font-size: 25px; }
.boot-screen small { margin-top: 8px; color: var(--muted); }
@keyframes breathe { 50% { transform: scale(1.09) rotate(4deg); } }
.error-screen { padding: 30px; text-align: center; }
.error-screen h1 { font-size: 21px; }
.error-screen p { color: var(--muted); }
.error-screen button { padding: 12px 17px; border-radius: 13px; background: var(--green); color: #fff; }

@media (min-width: 760px) {
  .app-shell, .learn-shell { padding-top: 40px; }
  .bottom-nav-inner { border-radius: 18px 18px 0 0; }
}

@media (max-width: 360px) {
  .app-shell, .learn-shell { padding-right: 14px; padding-left: 14px; }
  .focus-card { padding: 20px; }
  .rhythm small { display: none; }
  .preview-card, .exercise-card, .exam-card, .closing-card { padding: 20px 16px; }
}
