:root {
  --bg: #f5f5f7;
  --surface: #fbfbfd;
  --panel: #ffffff;
  --panel-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-dark: #0066cc;
  --green: #2f6f5e;
  --warm: #9d6b36;
  --danger: #b42318;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
  --soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ── 语言感知字体 ──
   index.html 根据检测到的语言设置 <html lang>。
   英文/日文/繁中各自用系统最佳字体；简中沿用上面的 PingFang SC。
   iOS 上 -apple-system 即 SF Pro（英文）/ 系统中文字体，这里细化中日繁。 */
:lang(en) {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}
:lang(ja) {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "YuGo Medium", "Noto Sans CJK JP", sans-serif;
}
:lang(zh-Hant) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang HK", "Heiti TC", "Microsoft JhengHei", sans-serif;
}
:lang(zh-CN) {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1160px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(360px, 430px) 1fr;
  align-items: center;
  gap: 64px;
}

.phone-frame {
  position: relative;
  height: min(900px, calc(100vh - 68px));
  min-height: 720px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 16px;
}

.topbar h1,
.desktop-brief h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: 0;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.icon-button,
.close-button {
  border: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 22px;
  font-weight: 900;
  box-shadow: none;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

.icon-button:active,
.tab:active,
.primary-action:active,
.secondary-action:active,
.text-action:active,
.view-back:active {
  transform: scale(0.98);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* 语言按钮稍小一点，和圆形安全按钮区分 */
#langSwitchButton.icon-button {
  width: 38px;
  height: 38px;
  background: transparent;
  color: var(--soft);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
#langSwitchButton.icon-button:active {
  background: rgba(0, 0, 0, 0.05);
}

/* 语言选择列表 */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lang-option:active {
  background: rgba(0, 0, 0, 0.07);
}
.lang-option .lang-check {
  opacity: 0;
  color: var(--accent, #34c759);
  font-size: 18px;
  font-weight: 800;
}
.lang-option.is-active {
  background: rgba(52, 199, 89, 0.1);
}
.lang-option.is-active .lang-check {
  opacity: 1;
}

.tabbar {
  order: 3;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.tab {
  min-width: 0;
  border: 0;
  border-radius: 14px;
  padding: 8px 2px 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.tab.active {
  color: #fff;
  background: var(--ink);
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11px;
  line-height: 1;
}

.tab.active .tab-icon {
  color: var(--ink);
  background: #fff;
}

.view {
  order: 2;
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 14px;
  scrollbar-width: none;
}

.view::-webkit-scrollbar,
.topic-modal-list::-webkit-scrollbar {
  display: none;
}

.view.active {
  display: block;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin: 2px 0 18px;
}

.section-title h2,
.modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title p,
.subsection-title p,
.desktop-brief p,
.gate-card p,
.theory-lead p,
.behavior-lead p,
.outside-lead p,
.control-lead p,
.control-action-card p,
.blame-lead p,
.blame-action-card p,
.harm-lead p,
.boundary-lead p,
.seam-lead p,
.seam-action-card p,
.independence-lead p,
.return-lead p,
.action-lead p,
.repair-lead p,
.trap-lead p,
.trap-card p,
.lesson-card p,
.growth-lead p,
.rescue-lead p,
.guide-card p,
.case-card p,
.path-card p,
.course-card p,
.modal p,
.route-card p,
.intake-lead p,
.desktop-ritual strong {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.82;
}

.subsection-title {
  margin: 26px 0 13px;
}

.subsection-title h3,
.theory-lead h3,
.behavior-lead h3,
.outside-lead h3,
.control-lead h3,
.control-action-card h3,
.blame-lead h3,
.blame-action-card h3,
.harm-lead h3,
.boundary-lead h3,
.seam-lead h3,
.seam-action-card h3,
.independence-lead h3,
.return-lead h3,
.action-lead h3,
.trap-lead h3,
.growth-lead h3,
.rescue-lead h3,
.freedom-lead h3,
.rebirth-lead h3,
.repair-lead h3,
.intake-lead h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.38;
  letter-spacing: 0;
}

.trap-lead,
.theory-lead,
.behavior-lead,
.outside-lead,
.control-lead,
.control-action-card,
.blame-lead,
.blame-action-card,
.harm-lead,
.boundary-lead,
.seam-lead,
.seam-action-card,
.independence-lead,
.return-lead,
.action-lead,
.growth-lead,
.rescue-lead,
.freedom-lead,
.rebirth-lead,
.repair-lead,
.intake-lead,
.gate-card {
  margin-top: 10px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border-radius: 16px;
  font-weight: 850;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}

.primary-action {
  border: 0;
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.secondary-action {
  border: 1px solid var(--line-soft);
  color: var(--ink);
  background: var(--panel);
}

.apple-hero {
  padding: 42px 10px 28px;
  text-align: center;
}

.apple-hero .label {
  color: var(--soft);
  letter-spacing: 0;
}

.apple-hero h2 {
  margin: 12px auto 12px;
  max-width: 8em;
  color: var(--ink);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.apple-hero p {
  max-width: 25em;
  margin: 0 auto;
  color: #515154;
  font-size: 17px;
  line-height: 1.72;
}

.apple-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.apple-actions .primary-action {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
}

.text-action {
  min-height: 44px;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  transition: color 160ms ease, transform 120ms ease;
}

.apple-focus {
  margin-top: 4px;
  padding: 18px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.apple-focus span,
.showcase-card span,
.logic-step span {
  display: block;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.apple-focus strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.apple-focus p {
  margin: 8px auto 0;
  max-width: 24em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.apple-showcase,
.logic-path {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.logic-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 17px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  cursor: pointer;
}

.logic-step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
}

.logic-step h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.logic-step p,
.home-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.logic-step:nth-child(2) span {
  background: var(--blue);
}

.logic-step:nth-child(3) span {
  background: #4d5562;
}

.logic-step:nth-child(4) span {
  background: var(--warm);
}

.home-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0, 113, 227, 0.08);
}

.home-note strong {
  color: #034f95;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.showcase-card {
  min-height: 218px;
  padding: 25px;
  border-radius: 26px;
  background: var(--panel);
}

.showcase-card[data-jump] {
  cursor: pointer;
}

.showcase-card h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.showcase-card p {
  margin: 0;
  color: #515154;
  font-size: 17px;
  line-height: 1.72;
}

.showcase-dark {
  background: var(--ink);
}

.showcase-dark h2,
.showcase-dark p {
  color: var(--surface);
}

.showcase-dark span {
  color: #a1a1a6;
}

.minimal-path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 6px;
}

.minimal-path button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  font-size: 13px;
  font-weight: 850;
}

.path-list,
.lesson-list,
.return-list,
.trap-list,
.topic-grid,
.topic-modal-list,
.self-list,
.guide-list,
.course-list,
.growth-list,
.rebirth-list,
.case-stack,
.intake-grid {
  display: grid;
  gap: 12px;
}

.route-card,
.path-card,
.return-card,
.trap-card,
.guide-card,
.lesson-card,
.topic-card,
.course-card,
.case-card,
.intake-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.route-card h3,
.topic-card h3,
.return-card h3,
.trap-card h3,
.lesson-card h3,
.guide-card h3,
.course-card h3,
.case-card h3,
.path-card h3,
.intake-card h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.38;
  letter-spacing: 0;
}

.home-chip,
.route-tag,
.path-tag,
.course-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.read-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.read-badge.is-unread {
  color: #6e6e73;
  background: #f0f0f2;
}

.read-badge.is-read {
  color: #0057b8;
  background: rgba(0, 113, 227, 0.11);
}

.read-badge.is-read::before {
  content: "✓";
  font-size: 11px;
  line-height: 1;
}

.read-progress {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.read-progress span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.read-progress i {
  display: block;
  width: min(190px, 100%);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececef;
}

.read-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.principle-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 15px;
}

.principle-strip span,
.intake-options span,
.keyword-strip span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.principle-strip span {
  text-align: center;
}

.return-card,
.trap-card,
.guide-card,
.lesson-card,
.topic-card,
.course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.topic-card {
  min-height: 128px;
}

.topic-card p,
.lesson-card p,
.guide-card p,
.course-card p,
.case-card p {
  font-size: 16px;
  line-height: 1.8;
}

.topic-card button,
.return-card button,
.trap-card button,
.guide-card button,
.lesson-card button,
.course-card button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.path-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
}

.path-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.topic-card[data-topic^="theory"] button,
.noContactAction-card button,
.contactDecision-card button {
  background: var(--blue);
}

.topic-card[data-topic^="growth"] button,
.awakening-card button,
.painfulLesson-card button {
  background: var(--warm);
}

.more-topics {
  overflow: hidden;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.more-topics summary {
  list-style: none;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  cursor: pointer;
}

.more-topics summary::-webkit-details-marker {
  display: none;
}

.more-topics summary::after {
  content: "↓";
  float: right;
  color: var(--blue-dark);
  font-weight: 900;
}

.more-topics[open] summary::after {
  content: "↑";
}

.more-topic-list {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.topic-modal .modal-body {
  max-height: min(760px, 86vh);
}

.topic-modal-list {
  margin-top: 16px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 2px;
}

.topic-modal-list .lesson-card,
.topic-modal-list .path-card {
  padding: 18px;
}

.topic-modal-list .lesson-card h3,
.topic-modal-list .path-card h3 {
  font-size: 21px;
  line-height: 1.4;
}

.topic-modal-list .lesson-card p,
.topic-modal-list .path-card p {
  font-size: 17px;
  line-height: 1.86;
}

.intake-card h3 {
  margin-top: 9px;
}

.intake-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.intake-options button {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.intake-options button.is-selected {
  border-color: rgba(0, 113, 227, 0.32);
  color: #0057b8;
  background: rgba(0, 113, 227, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.intake-result {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92));
  box-shadow: var(--soft-shadow);
}

.intake-result.is-medium {
  border-color: rgba(157, 107, 54, 0.18);
  background: linear-gradient(180deg, #fff, rgba(255, 249, 241, 0.9));
}

.intake-result.is-heavy {
  border-color: rgba(180, 35, 24, 0.16);
  background: linear-gradient(180deg, #fff, rgba(255, 246, 244, 0.92));
}

.intake-result h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.38;
}

.intake-result p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.intake-summary,
.intake-next {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.intake-summary strong,
.intake-next strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.intake-summary span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.intake-recommend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.intake-recommend span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #034f95;
  background: rgba(0, 113, 227, 0.1);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.intake-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.intake-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.intake-actions button[data-safety] {
  grid-column: 1 / -1;
  background: var(--danger);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.route-card {
  position: relative;
  padding-right: 44px;
  cursor: pointer;
}

.route-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.journal-form {
  display: grid;
  gap: 13px;
}

.journal-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.journal-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
  font-size: 17px;
  line-height: 1.72;
}

.journal-form textarea:focus {
  border-color: rgba(0, 113, 227, 0.58);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.saved-note {
  margin-top: 13px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.desktop-brief {
  max-width: 590px;
}

.desktop-brief h2 {
  margin-top: 10px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.05;
}

.desktop-brief p {
  margin-top: 22px;
  max-width: 45ch;
  font-size: 19px;
  line-height: 1.82;
}

.desktop-ritual {
  margin-top: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}

.desktop-ritual span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.desktop-ritual strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.55;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.brief-grid div {
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
}

.brief-grid strong {
  display: block;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.brief-grid span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.modal {
  width: min(680px, calc(100vw - 20px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.modal-body {
  position: relative;
  max-height: min(calc(100vh - 28px), calc(100dvh - 28px));
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-body.danger {
  background: var(--panel);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 22px;
}

.modal ol,
.modal ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.modal li {
  margin: 12px 0;
  font-size: 18px;
  line-height: 1.86;
}

.modal-block,
.safety-list {
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  background: var(--panel-soft);
}

.modal h2 {
  max-width: calc(100% - 44px);
  margin-top: 8px;
  font-size: 31px;
  line-height: 1.34;
}

.modal-block h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.38;
}

.action-workbench {
  border: 1px solid rgba(0, 0, 0, 0.045);
  background: linear-gradient(180deg, #fff, #fbfbfd);
}

.workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workbench-head h3 {
  margin-bottom: 0;
}

.modal .privacy-note {
  max-width: 18em;
  color: #8d8d92;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  text-align: right;
}

.action-checklist {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.modal .workbench-encouragement {
  margin-top: 13px;
  color: #5f6f84;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.7;
}

.action-item {
  display: grid;
  gap: 10px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(248, 248, 250, 0.88);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.62;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--blue);
}

.check-row:has(input:checked) {
  border-color: rgba(0, 113, 227, 0.28);
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: inset 3px 0 0 rgba(0, 113, 227, 0.74);
}

.action-explain {
  display: none;
  margin: -2px 0 2px 30px;
  padding: 12px 13px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(240, 247, 255, 0.86)),
    #f5faff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.action-item.is-open .action-explain {
  display: block;
}

.action-explain h4 {
  margin: 0 0 5px;
  color: #1d4f86;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.modal .action-explain p {
  margin: 0;
  color: #36546f;
  font-size: 13px;
  line-height: 1.72;
}

.modal .takeaway-quote {
  display: block;
  margin-top: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 14px;
  color: #034f95;
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(232, 244, 255, 0.9)),
    #e8f4ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(0, 113, 227, 0.09);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.6;
}

.modal p,
.route-card p,
.intake-lead p,
.desktop-ritual strong {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.82;
}

.subsection-title {
  margin: 26px 0 13px;
}

.subsection-title h3,
.theory-lead h3,
.behavior-lead h3,
.outside-lead h3,
.control-lead h3,
.control-action-card h3,
.blame-lead h3,
.blame-action-card h3,
.harm-lead h3,
.boundary-lead h3,
.seam-lead h3,
.seam-action-card h3,
.independence-lead h3,
.return-lead h3,
.action-lead h3,
.trap-lead h3,
.growth-lead h3,
.rescue-lead h3,
.freedom-lead h3,
.rebirth-lead h3,
.repair-lead h3,
.intake-lead h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.38;
  letter-spacing: 0;
}

.trap-lead,
.theory-lead,
.behavior-lead,
.outside-lead,
.control-lead,
.control-action-card,
.blame-lead,
.blame-action-card,
.harm-lead,
.boundary-lead,
.seam-lead,
.seam-action-card,
.independence-lead,
.return-lead,
.action-lead,
.growth-lead,
.rescue-lead,
.freedom-lead,
.rebirth-lead,
.repair-lead,
.intake-lead,
.gate-card {
  margin-top: 10px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border-radius: 16px;
  font-weight: 850;
}

.primary-action {
  border: 0;
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.secondary-action {
  border: 1px solid var(--line-soft);
  color: var(--ink);
  background: var(--panel);
}

.apple-hero {
  padding: 42px 10px 34px;
  text-align: center;
}

.apple-hero .label {
  color: var(--soft);
  letter-spacing: 0;
}

.apple-hero h2 {
  margin: 11px auto 13px;
  max-width: 9.5em;
  color: var(--ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: 0;
}

.apple-hero p {
  max-width: 26em;
  margin: 0 auto;
  color: #515154;
  font-size: 18px;
  line-height: 1.78;
}

.apple-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.apple-actions .primary-action {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
}

.text-action {
  min-height: 44px;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.apple-focus {
  margin-top: 8px;
  padding: 24px 22px;
  border-radius: 24px;
  background: var(--panel);
  text-align: center;
}

.apple-focus span,
.showcase-card span {
  display: block;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.apple-focus strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.25;
}

.apple-focus p {
  margin: 8px auto 0;
  max-width: 24em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.apple-showcase {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.showcase-card {
  min-height: 218px;
  padding: 25px;
  border-radius: 26px;
  background: var(--panel);
}

.showcase-card[data-jump] {
  cursor: pointer;
}

.showcase-card h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.showcase-card p {
  margin: 0;
  color: #515154;
  font-size: 17px;
  line-height: 1.72;
}

.showcase-dark {
  background: var(--ink);
}

.showcase-dark h2,
.showcase-dark p {
  color: var(--surface);
}

.showcase-dark span {
  color: #a1a1a6;
}

.minimal-path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 6px;
}

.minimal-path button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  font-size: 13px;
  font-weight: 850;
}

.path-list,
.lesson-list,
.return-list,
.trap-list,
.topic-grid,
.topic-modal-list,
.self-list,
.guide-list,
.course-list,
.growth-list,
.rebirth-list,
.case-stack,
.intake-grid {
  display: grid;
  gap: 12px;
}

.route-card,
.path-card,
.return-card,
.trap-card,
.guide-card,
.lesson-card,
.topic-card,
.course-card,
.case-card,
.intake-card {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.route-card h3,
.topic-card h3,
.return-card h3,
.trap-card h3,
.lesson-card h3,
.guide-card h3,
.course-card h3,
.case-card h3,
.path-card h3,
.intake-card h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.38;
  letter-spacing: 0;
}

.home-chip,
.route-tag,
.path-tag,
.course-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.principle-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 15px;
}

.principle-strip span,
.intake-options span,
.keyword-strip span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.principle-strip span {
  text-align: center;
}

.return-card,
.trap-card,
.guide-card,
.lesson-card,
.topic-card,
.course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.topic-card {
  min-height: 128px;
}

.topic-card p,
.lesson-card p,
.guide-card p,
.course-card p,
.case-card p {
  font-size: 16px;
  line-height: 1.8;
}

.topic-card button,
.return-card button,
.trap-card button,
.guide-card button,
.lesson-card button,
.course-card button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.path-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
}

.path-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.topic-card[data-topic^="theory"] button,
.noContactAction-card button,
.contactDecision-card button {
  background: var(--blue);
}

.topic-card[data-topic^="growth"] button,
.awakening-card button,
.painfulLesson-card button {
  background: var(--warm);
}

.more-topics {
  overflow: hidden;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.more-topics summary {
  list-style: none;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  cursor: pointer;
}

.more-topics summary::-webkit-details-marker {
  display: none;
}

.more-topics summary::after {
  content: "↓";
  float: right;
  color: var(--blue-dark);
  font-weight: 900;
}

.more-topics[open] summary::after {
  content: "↑";
}

.more-topic-list {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.topic-modal .modal-body {
  max-height: min(760px, 86vh);
}

.topic-modal-list {
  margin-top: 16px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 2px;
}

.topic-modal-list .lesson-card,
.topic-modal-list .path-card {
  padding: 18px;
}

.topic-modal-list .lesson-card h3,
.topic-modal-list .path-card h3 {
  font-size: 21px;
  line-height: 1.4;
}

.topic-modal-list .lesson-card p,
.topic-modal-list .path-card p {
  font-size: 17px;
  line-height: 1.86;
}

.intake-card h3 {
  margin-top: 9px;
}

.intake-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.route-card {
  position: relative;
  padding-right: 44px;
  cursor: pointer;
}

.route-card::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.journal-form {
  display: grid;
  gap: 13px;
}

.journal-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.journal-form textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
  font-size: 17px;
  line-height: 1.72;
}

.journal-form textarea:focus {
  border-color: rgba(0, 113, 227, 0.58);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.saved-note {
  margin-top: 13px;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.desktop-brief {
  max-width: 590px;
}

.desktop-brief h2 {
  margin-top: 10px;
  font-size: 64px;
  font-weight: 900;
  line-height: 1.05;
}

.desktop-brief p {
  margin-top: 22px;
  max-width: 45ch;
  font-size: 19px;
  line-height: 1.82;
}

.desktop-ritual {
  margin-top: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}

.desktop-ritual span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.desktop-ritual strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.55;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.brief-grid div {
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
}

.brief-grid strong {
  display: block;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.brief-grid span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.modal {
  width: min(680px, calc(100vw - 20px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.modal-body {
  position: relative;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-body.danger {
  background: var(--panel);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 22px;
}

.modal ol,
.modal ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.modal li {
  margin: 12px 0;
  font-size: 18px;
  line-height: 1.86;
}

.modal-block,
.safety-list {
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  background: var(--panel-soft);
}

.modal h2 {
  max-width: calc(100% - 44px);
  margin-top: 8px;
  font-size: 31px;
  line-height: 1.34;
}

.modal-block h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.38;
}

.modal p,
.lesson-text p,
#lessonSummary,
#topicSummary {
  font-size: 17px;
  line-height: 1.82;
}

#lessonSummary,
#topicSummary {
  margin-top: 10px;
  color: var(--muted);
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.keyword-strip[hidden] {
  display: none;
}

.lesson-text {
  display: grid;
  gap: 12px;
}

.lesson-text p {
  margin: 0;
  color: var(--muted);
}

.long-read-details {
  padding: 0;
  overflow: hidden;
}

.long-read-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.long-read-details > summary::-webkit-details-marker {
  display: none;
}

.long-read-details > summary h3 {
  margin: 0;
}

.long-read-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.long-read-state b {
  color: var(--soft);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}

.long-read-details .when-open {
  display: none;
}

.long-read-details[open] .when-closed {
  display: none;
}

.long-read-details[open] .when-open {
  display: inline;
}

.long-read-details[open] .long-read-state b {
  transform: rotate(45deg);
}

.long-read-details[open] > summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.long-read-details > .lesson-text {
  padding: 18px 20px 20px;
}

.fact-block {
  background: #f5f8f6;
  border: 1px solid rgba(47, 111, 94, 0.12);
}

.warning-block {
  background: #fff7f4;
  border: 1px solid rgba(180, 65, 38, 0.12);
}

.safety-list {
  display: grid;
  gap: 8px;
}

.guide-modal {
  width: min(640px, calc(100vw - 24px));
}

@media (max-width: 820px) {
  body {
    background: var(--surface);
  }

  .app-shell {
    min-height: 100vh;
    display: block;
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: calc(16px + var(--safe-top)) 18px calc(12px + var(--safe-bottom));
  }

  .desktop-brief {
    display: none;
  }
}

@media (max-width: 430px) {
  .topbar h1 {
    font-size: 24px;
  }

  .apple-hero {
    padding: 30px 4px 24px;
  }

  .apple-hero h2 {
    font-size: 44px;
  }

  .showcase-card {
    min-height: 204px;
    padding: 22px;
  }

  .showcase-card h2 {
    font-size: 36px;
  }

  .minimal-path {
    gap: 6px;
  }

  .minimal-path button {
    font-size: 12px;
  }

  .tab {
    font-size: 11px;
  }

  .tab-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .modal-body {
    max-height: calc(100dvh - 20px - var(--safe-top) - var(--safe-bottom));
    padding: 28px 20px calc(24px + var(--safe-bottom));
  }

  .modal h2 {
    font-size: 26px;
  }

  .workbench-head {
    display: grid;
    gap: 7px;
  }

  .action-explain {
    margin-left: 0;
  }

  .privacy-note {
    max-width: none;
    text-align: left;
  }

  .modal p,
  .lesson-text p,
  #lessonSummary,
  #topicSummary,
  .modal li {
    font-size: 17px;
    line-height: 1.76;
  }

  .intake-options span,
  .intake-options button {
    max-width: 100%;
  }

  .intake-actions {
    grid-template-columns: 1fr;
  }
}

/* ── 设置 / 故事共创 ───────────────────────────────────── */
#settingsButton.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--soft);
  background: transparent;
}

#settingsButton.icon-button:active {
  background: rgba(0, 0, 0, 0.05);
}

.settings-modal {
  width: min(520px, calc(100vw - 20px));
}

.settings-intro,
.contribution-lead {
  margin-top: 8px;
  color: var(--muted);
}

.story-entry,
.settings-row {
  width: 100%;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  text-align: left;
}

.story-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #faf7f2 0%, #f5f1eb 100%);
}

.story-entry-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #715334;
  background: rgba(157, 107, 54, 0.12);
  font-size: 13px;
  font-weight: 850;
}

.story-entry-copy,
.settings-row > span:first-child {
  display: grid;
  gap: 5px;
}

.story-entry-copy strong,
.settings-row strong {
  font-size: 16px;
  line-height: 1.35;
}

.story-entry-copy small,
.settings-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.settings-chevron {
  color: var(--soft);
  font-size: 25px;
  font-weight: 400;
}

.settings-list {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--panel);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  border: 0;
  background: transparent;
}

.settings-footnote {
  margin: 14px 4px 0;
  color: var(--soft);
  font-size: 12px !important;
  line-height: 1.6 !important;
  text-align: center;
}

.contribution-modal {
  width: min(640px, calc(100vw - 20px));
}

.support-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(47, 111, 94, 0.14);
  border-radius: 15px;
  background: rgba(47, 111, 94, 0.06);
}

.support-identity-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 111, 94, 0.1);
}

.support-identity > div {
  display: grid;
  gap: 2px;
}

.support-identity strong {
  font-size: 14px;
  line-height: 1.4;
}

.support-identity small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.support-identity.is-donor {
  border-color: rgba(157, 107, 54, 0.2);
  background: rgba(157, 107, 54, 0.08);
}

.support-identity.is-donor .support-identity-dot {
  background: var(--warm);
  box-shadow: 0 0 0 5px rgba(157, 107, 54, 0.1);
}

.contribution-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 14px;
  background: var(--panel-soft);
}

.contribution-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.contribution-tabs button.is-active {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.06);
}

.contribution-form {
  margin-top: 20px;
}

.contribution-form.is-active {
  display: grid;
  gap: 15px;
}

.contribution-form[hidden] {
  display: none;
}

.contribution-form > label:not(.consent-row) {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.contribution-form input[type="text"],
.contribution-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-size: 15px;
  font-weight: 450;
}

.contribution-form input[type="text"] {
  min-height: 46px;
  padding: 0 13px;
}

.contribution-form textarea {
  min-height: 120px;
  padding: 12px 13px;
  line-height: 1.65;
  resize: vertical;
}

.contribution-form #storyHelp {
  min-height: 88px;
}

.contribution-form #suggestionImpact {
  min-height: 92px;
}

.contribution-form input[type="text"]:focus,
.contribution-form textarea:focus {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.consent-row input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.form-privacy,
.submission-note,
.support-status,
.support-disclaimer {
  margin: 0;
  color: var(--soft);
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.submission-note:not(:empty) {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--green);
  background: rgba(47, 111, 94, 0.07);
}

.cocreation-manifesto {
  padding: 19px;
  border: 1px solid rgba(47, 111, 94, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(47, 111, 94, 0.07), rgba(255, 255, 255, 0.82));
}

.cocreation-manifesto h3 {
  margin: 7px 0 9px;
  font-size: 20px;
  line-height: 1.4;
}

.cocreation-manifesto > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px !important;
  line-height: 1.72 !important;
}

.cocreation-principles {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.cocreation-principles > div {
  display: grid;
  grid-template-columns: minmax(94px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.cocreation-principles strong {
  color: var(--green);
  font-size: 13px;
}

.cocreation-principles span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cocreation-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.cocreation-flow > div {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: var(--panel);
}

.cocreation-flow > div > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.cocreation-flow p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.cocreation-flow strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.cocreation-flow small {
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
}

.cocreation-types {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.cocreation-types legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.cocreation-types label {
  position: relative;
  cursor: pointer;
}

.cocreation-types input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cocreation-types label > span {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.cocreation-types label:has(input:checked) > span {
  border-color: rgba(47, 111, 94, 0.3);
  color: var(--green);
  background: rgba(47, 111, 94, 0.08);
}

.cocreation-types label:has(input:focus-visible) > span {
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}

.cocreation-promise,
.cocreation-priority-note {
  margin: 0;
  padding: 12px 13px;
  border-radius: 12px;
  font-size: 12px !important;
  line-height: 1.65 !important;
}

.cocreation-promise {
  color: var(--green);
  background: rgba(47, 111, 94, 0.07);
}

.cocreation-priority-note {
  color: #715334;
  background: rgba(157, 107, 54, 0.08);
}

.support-card {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(157, 107, 54, 0.14);
  border-radius: 19px;
  background: #faf8f5;
}

.support-card h3 {
  margin: 7px 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

.support-card > p:not(.support-status):not(.support-disclaimer) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.support-options button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 68px;
  padding: 10px 6px;
  border: 1px solid rgba(157, 107, 54, 0.18);
  border-radius: 13px;
  color: #715334;
  background: var(--panel);
}

.support-options button:disabled {
  cursor: default;
  opacity: 0.5;
}

.support-options span {
  font-size: 12px;
  font-weight: 750;
}

.support-options button > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.support-options em {
  padding: 2px 5px;
  border-radius: 999px;
  color: #715334;
  background: rgba(157, 107, 54, 0.1);
  font-size: 9px;
  font-style: normal;
  line-height: 1.3;
}

.support-options strong {
  font-size: 15px;
}

.support-status {
  margin-top: 10px;
  text-align: center;
}

.support-benefits {
  display: grid;
  gap: 7px !important;
  margin: 18px 0 12px !important;
  padding-left: 18px !important;
}

.support-benefits li {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

@media (max-width: 430px) {
  .topbar-actions {
    gap: 5px;
  }

  #settingsButton.icon-button,
  #langSwitchButton.icon-button {
    width: 36px;
    height: 36px;
  }

  .story-entry {
    padding: 15px;
  }

  .story-entry-mark {
    width: 38px;
    height: 38px;
  }

  .support-card {
    padding: 18px;
  }

  .cocreation-manifesto {
    padding: 17px;
  }

  .cocreation-flow {
    grid-template-columns: 1fr;
  }

  .cocreation-flow > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .cocreation-flow > div > span {
    margin: 0;
  }

  .support-options {
    grid-template-columns: 1fr;
  }

  .support-options button {
    display: flex;
    justify-content: space-between;
    min-height: 50px;
    padding: 10px 14px;
  }
}

/* Final simplified flow overrides */
.tabbar {
  gap: 3px;
  padding: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.tab {
  border-radius: 14px;
  padding: 8px 2px 7px;
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11px;
}

.tab.active .tab-icon {
  color: var(--ink);
  background: #fff;
}

.apple-hero {
  padding: 42px 10px 28px;
}

.apple-hero h2 {
  max-width: 8em;
  font-size: 52px;
  line-height: 1.02;
}

.apple-hero p {
  max-width: 25em;
  font-size: 17px;
  line-height: 1.72;
}

.apple-actions {
  margin-top: 24px;
}

.apple-focus {
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.apple-focus strong {
  margin-top: 5px;
  font-size: 24px;
}

.logic-path {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.logic-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 17px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--panel);
  cursor: pointer;
}

.logic-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.logic-step h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.logic-step p,
.home-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.logic-step:nth-child(2) span {
  background: var(--blue);
}

.logic-step:nth-child(3) span {
  background: #4d5562;
}

.logic-step:nth-child(4) span {
  background: var(--warm);
}

.home-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0, 113, 227, 0.08);
}

.home-note strong {
  color: #034f95;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

@media (max-width: 430px) {
  .apple-hero {
    padding: 30px 4px 24px;
  }

  .apple-hero h2 {
    font-size: 44px;
  }

  .tab-icon {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

/* Recover self-confirmation and navigation polish */
.view-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  margin: 0 0 14px;
  padding: 8px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
}

.view-back:active {
  transform: translateY(1px);
}

.topic-modal-list .topic-path-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 18px;
}

.path-main {
  display: grid;
  gap: 8px;
}

.path-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.path-target {
  display: block;
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  color: #034f95;
  background: rgba(0, 113, 227, 0.08);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.6;
}

.path-checks {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.path-checks li {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.path-checks li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.confirm-block {
  border: 1px solid rgba(0, 113, 227, 0.14);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.065), rgba(255, 255, 255, 0.92));
}

.confirm-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.confirm-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.confirm-row span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.65;
}

.confirm-row:has(input:checked) {
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.08);
}

.confirm-feedback {
  margin-top: 13px !important;
  padding: 12px 13px;
  border-radius: 15px;
  color: #034f95 !important;
  background: rgba(0, 113, 227, 0.1);
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.65 !important;
}

.recover-path-list {
  display: grid;
  gap: 12px;
}

.recover-path-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.recover-path-step {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.recover-path-card h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.recover-path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.recover-path-card strong {
  display: block;
  margin-top: 10px;
  color: #034f95;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.recover-path-card ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.recover-path-card li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.recover-path-card li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 430px) {
  .topic-modal-list .topic-path-card {
    grid-template-columns: 1fr;
  }

  .path-tag {
    justify-self: start;
  }
}

/* App Store polish: final readable defaults after legacy overrides */
.modal p,
.lesson-text p,
#lessonSummary,
#topicSummary {
  font-size: 17px;
  line-height: 1.78;
}

.modal .privacy-note {
  font-size: 11px;
  line-height: 1.45;
}

.modal li {
  font-size: 17px;
  line-height: 1.78;
}

.check-row,
.confirm-row {
  line-height: 1.58;
}

@media (max-width: 430px) {
  .modal p,
  .lesson-text p,
  #lessonSummary,
  #topicSummary,
  .modal li {
    font-size: 16px;
    line-height: 1.72;
  }

  .modal-block,
  .safety-list {
    padding: 18px;
  }

  .check-row,
  .confirm-row {
    padding: 12px;
  }
}

/* ══ 今日挽回打卡模块 ══ */
.recover-checkin {
  margin-top: 20px;
}
.checkin-header {
  margin-bottom: 14px;
}
.checkin-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue, #0071e3);
  margin-bottom: 4px;
}
.checkin-header h3 {
  font-size: 22px;
  font-weight: 850;
  color: var(--ink, #1a1a1a);
  line-height: 1.3;
}
.checkin-header p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted, #8e8e93);
  line-height: 1.6;
}
.checkin-safety-note {
  font-size: 12px;
  color: var(--muted, #8e8e93);
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.04);
  margin-bottom: 14px;
}

.checkin-stage-list {
  display: grid;
  gap: 12px;
}

.checkin-stage {
  border: 1px solid var(--line-soft, rgba(0, 0, 0, 0.07));
  border-radius: 18px;
  background: var(--panel, rgba(255, 255, 255, 0.78));
  box-shadow: var(--soft-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
  overflow: hidden;
}
.checkin-stage.is-complete {
  border-color: rgba(0, 113, 227, 0.25);
}

.checkin-stage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.checkin-stage-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--blue, #0071e3);
}
.checkin-stage.is-complete .checkin-stage-num {
  background: rgba(0, 113, 227, 0.3);
}
.checkin-stage-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.checkin-stage-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink, #1a1a1a);
  line-height: 1.3;
}
.checkin-stage-progress-text {
  font-size: 12px;
  color: var(--muted, #8e8e93);
  margin-top: 2px;
}
.checkin-stage-toggle {
  flex: 0 0 auto;
  color: var(--muted, #8e8e93);
  font-size: 14px;
  transition: transform 0.2s ease;
}
.checkin-stage.is-open .checkin-stage-toggle {
  transform: rotate(90deg);
}

/* 进度条 */
.checkin-progress-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 0 18px;
}
.checkin-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--blue, #0071e3);
  transition: width 0.3s ease;
}

/* 折叠内容区 */
.checkin-stage-body {
  display: none;
  padding: 4px 18px 18px;
}
.checkin-stage.is-open .checkin-stage-body {
  display: block;
}

/* 分区标签 */
.checkin-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 16px 0 8px;
}
.checkin-label--goal { color: var(--ink, #1a1a1a); }
.checkin-label--dos { color: var(--blue, #0071e3); }
.checkin-label--donts { color: #c0392b; }
.checkin-label--support { color: #2d8a4e; }

/* 可做 / 不要做 列表 */
.checkin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.checkin-list li {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 10px;
}
.checkin-list--dos li {
  background: rgba(0, 113, 227, 0.05);
  border-left: 3px solid rgba(0, 113, 227, 0.3);
  color: var(--ink, #1a1a1a);
  padding-left: 14px;
}
.checkin-list--donts li {
  background: rgba(192, 57, 43, 0.04);
  border-left: 3px solid rgba(192, 57, 43, 0.2);
  color: var(--ink, #1a1a1a);
  padding-left: 14px;
}
.checkin-support-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted, #6b6b6f);
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(45, 138, 78, 0.04);
}

/* Check 项 */
.checkin-checks {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.checkin-check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line-soft, rgba(0, 0, 0, 0.07));
  border-radius: 14px;
  background: rgba(248, 248, 250, 0.88);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkin-check-row:active {
  background: rgba(0, 113, 227, 0.04);
}
.checkin-check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue, #0071e3);
  cursor: pointer;
}
.checkin-check-row:has(input:checked) {
  border-color: rgba(0, 113, 227, 0.3);
  background: rgba(0, 113, 227, 0.05);
  box-shadow: inset 3px 0 0 rgba(0, 113, 227, 0.5);
}
.checkin-check-row span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1a1a1a);
}
.checkin-check-row:has(input:checked) span {
  color: var(--muted, #8e8e93);
}

/* 完成提示 */
.checkin-complete-msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.06);
  font-size: 14px;
  line-height: 1.6;
  color: var(--blue, #0071e3);
  font-weight: 600;
  display: none;
}
.checkin-stage.is-complete .checkin-complete-msg {
  display: block;
}

/* 重置按钮 */
.checkin-reset {
  display: block;
  margin: 18px auto 0;
  padding: 8px 20px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--muted, #8e8e93);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.checkin-reset:active {
  color: var(--blue, #0071e3);
}

/* ── 四语言语音课程 ─────────────────────────────────────── */
.audio-home-card {
  display: grid;
  gap: 16px;
  margin: 14px 0 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 94, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(80, 145, 124, 0.16), transparent 44%),
    linear-gradient(145deg, #f7fbf9, #eef5f1);
}

.audio-home-copy h3 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.audio-home-copy p,
.audio-course-panel-head p,
.audio-course-safety,
.audio-lesson-course-name {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.audio-home-card .primary-action {
  width: fit-content;
}

.section-course-link {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 16px 17px;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(0, 113, 227, 0.055);
  text-align: left;
}

.section-course-link span {
  display: grid;
  gap: 4px;
}

.section-course-link small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.section-course-link strong {
  font-size: 16px;
  line-height: 1.4;
}

.section-course-link b {
  font-size: 26px;
  font-weight: 500;
}

.audio-course-picker {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.audio-course-choice {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.audio-course-choice:active {
  transform: scale(0.985);
}

.audio-course-choice.is-active {
  border-color: rgba(47, 111, 94, 0.42);
  background: #f4f9f6;
}

.audio-course-choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audio-course-choice small,
.audio-course-choice > span,
.audio-lesson-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.audio-course-choice-top b {
  color: var(--blue);
  font-size: 12px;
}

.audio-course-choice > strong {
  font-size: 17px;
  line-height: 1.42;
}

.audio-progress-track {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.075);
}

.audio-progress-track em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.audio-course-panel {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--panel);
}

.audio-course-panel-head {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.audio-course-panel-head h3 {
  margin: 7px 0;
  font-size: 21px;
  line-height: 1.38;
}

.audio-course-total-progress {
  display: grid;
  gap: 7px;
}

.audio-course-total-progress strong {
  color: var(--green);
  font-size: 13px;
}

.audio-lesson-list {
  display: grid;
  gap: 8px;
}

.audio-lesson-row {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
}

.audio-lesson-row.is-complete {
  border-color: rgba(47, 111, 94, 0.18);
  background: rgba(47, 111, 94, 0.055);
}

.audio-lesson-number,
.audio-lesson-play {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.audio-lesson-number {
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.audio-lesson-row.is-complete .audio-lesson-number {
  color: #fff;
  background: var(--green);
}

.audio-lesson-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.audio-lesson-copy strong {
  font-size: 15px;
  line-height: 1.45;
}

.audio-lesson-play {
  width: 30px;
  height: 30px;
  padding-left: 2px;
  color: #fff;
  background: var(--ink);
  font-size: 10px;
}

.audio-course-safety {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 13px;
  background: rgba(180, 35, 24, 0.045);
  color: #775653;
  font-size: 13px;
}

.audio-lesson-modal .modal-body {
  width: min(680px, calc(100vw - 24px));
}

.audio-player-card {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 15px;
  border-radius: 18px;
  background: #f1f6f3;
}

.audio-listening-cue {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #47675d;
}

.audio-listening-cue small {
  font-size: 12px;
  font-weight: 760;
}

.audio-listening-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 24px;
  height: 22px;
  border-radius: 8px;
  background: rgba(47, 111, 94, 0.1);
}

.audio-listening-bars i {
  width: 2px;
  height: 5px;
  border-radius: 99px;
  background: var(--green);
  transform-origin: center;
}

.audio-player-card.is-playing .audio-listening-bars i {
  animation: audio-listening-pulse 820ms ease-in-out infinite alternate;
}

.audio-player-card.is-playing .audio-listening-bars i:nth-child(2) {
  animation-delay: -560ms;
}

.audio-player-card.is-playing .audio-listening-bars i:nth-child(3) {
  animation-delay: -280ms;
}

.audio-player-card.is-playing .audio-listening-bars i:nth-child(4) {
  animation-delay: -700ms;
}

@keyframes audio-listening-pulse {
  from { transform: scaleY(0.72); }
  to { transform: scaleY(2.3); }
}

.audio-player-card audio {
  width: 100%;
}

.audio-player-tools {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.audio-speed-control {
  display: grid;
  gap: 8px;
}

.audio-speed-control > span {
  color: var(--ink);
  font-weight: 750;
}

.audio-speed-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.065);
}

.audio-speed-options button {
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

.audio-speed-options button:active {
  transform: scale(0.96);
}

.audio-speed-options button.is-active {
  color: #245d4e;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.11);
}

.audio-lesson-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr;
  gap: 8px;
}

.audio-lesson-actions button {
  min-width: 0;
  padding-inline: 10px;
  font-size: 13px;
}

.audio-lesson-actions button:disabled {
  cursor: default;
  opacity: 0.42;
}

.audio-lesson-actions #audioCompleteLesson.is-complete {
  color: #fff;
  background: var(--green);
  opacity: 1;
}

.audio-transcript-card {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.audio-transcript-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.audio-transcript-heading h3 {
  margin: 0;
  font-size: 18px;
}

.audio-transcript-heading span {
  color: var(--muted);
  font-size: 12px;
}

.audio-transcript {
  display: grid;
  gap: 13px;
}

.audio-transcript p {
  margin: 0;
  color: #3a3a3c;
  font-size: 16px;
  line-height: 1.9;
}

@media (max-width: 420px) {
  .audio-lesson-actions {
    grid-template-columns: 1fr 1fr;
  }

  .audio-lesson-actions #audioCompleteLesson {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* ── 简化首页流程 / 字号设置 / 明显但克制的支持入口 ──────── */
.support-icon-button.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(157, 107, 54, 0.2);
  color: #8a6035;
  background: rgba(157, 107, 54, 0.08);
}

.support-icon-button.icon-button:active {
  background: rgba(157, 107, 54, 0.15);
}

#homeView .apple-hero {
  padding: 32px 10px 24px;
  text-align: center;
}

#homeView .apple-hero h2 {
  max-width: 9em;
  margin: 10px auto 11px;
  color: #222522;
  font-size: 40px;
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

#homeView .apple-hero p {
  max-width: 27em;
  margin: 0 auto;
  color: #5f625f;
  font-size: 16px;
  line-height: 1.75;
}

.home-route-choices {
  display: grid;
  gap: 9px;
}

.home-route-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

.home-route-choice:active {
  transform: scale(0.988);
  background: var(--panel-soft);
}

.home-route-choice > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-route-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.home-route-choice:nth-child(2) .home-route-icon {
  background: #607286;
}

.home-route-choice:nth-child(3) .home-route-icon {
  background: #91663b;
}

.home-route-choice small,
.home-route-choice em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.home-route-choice strong {
  font-size: 17px;
  line-height: 1.38;
}

.home-route-choice b {
  color: var(--soft);
  font-size: 24px;
  font-weight: 400;
}

#homeView .apple-focus {
  margin-top: 12px;
  padding: 17px 18px;
  border-color: rgba(47, 111, 94, 0.12);
  background: rgba(47, 111, 94, 0.045);
  text-align: center;
}

#homeView .apple-focus strong {
  color: #273c35;
  font-size: 21px;
  font-weight: 780;
}

#homeView .apple-focus span {
  color: var(--green);
}

#homeView .logic-path {
  gap: 9px;
  margin-top: 13px;
}

#homeView .logic-step {
  grid-template-columns: 38px 1fr;
  min-height: 78px;
  padding: 14px 16px;
  border-color: rgba(0, 0, 0, 0.065);
  border-radius: 17px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.025);
}

#homeView .logic-step span {
  width: 36px;
  height: 36px;
  background: #344c44;
  font-size: 11px;
  font-weight: 750;
}

#homeView .logic-step:nth-child(2) span {
  background: #4f6f83;
}

#homeView .logic-step:nth-child(3) span {
  background: #6b6579;
}

#homeView .logic-step:nth-child(4) span {
  background: #946b3f;
}

#homeView .logic-step h3 {
  margin-bottom: 3px;
  font-size: 18px;
  font-weight: 780;
}

#homeView .logic-step p {
  color: #737573;
  font-size: 14px;
  line-height: 1.55;
}

#homeView .home-note {
  border: 1px solid rgba(0, 113, 227, 0.08);
  background: rgba(0, 113, 227, 0.045);
}

#homeView .home-note strong {
  color: #305d82;
  font-weight: 780;
}

.home-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  margin-top: 13px;
  padding: 16px;
  border: 1px solid rgba(157, 107, 54, 0.16);
  border-radius: 18px;
  background: linear-gradient(145deg, #fbf8f3, #f7f2eb);
}

.home-support-heart {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #855d35;
  background: rgba(157, 107, 54, 0.11);
  font-size: 23px;
}

.home-support-card > div {
  display: grid;
  gap: 3px;
}

.home-support-card small {
  color: #855d35;
  font-size: 12px;
  font-weight: 800;
}

.home-support-card strong {
  font-size: 14px;
  line-height: 1.5;
}

.home-support-card button {
  grid-column: 2;
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #855d35;
  font-size: 13px;
  font-weight: 800;
}

.font-size-setting {
  display: grid;
  gap: 13px;
  margin-top: 22px;
  padding: 17px;
  border: 1px solid var(--line-soft);
  border-radius: 17px;
  background: var(--panel);
}

.font-size-setting > div:first-child {
  display: grid;
  gap: 4px;
}

.font-size-setting strong {
  font-size: 16px;
}

.font-size-setting small {
  color: var(--muted);
  font-size: 13px;
}

.font-size-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 13px;
  background: var(--panel-soft);
}

.font-size-options button {
  min-height: 40px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.font-size-options button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.font-size-preview {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 16px;
  line-height: 1.65;
}

html[data-font-size="comfortable"] .font-size-preview {
  font-size: 18px !important;
}

html[data-font-size="large"] .font-size-preview {
  font-size: 20px !important;
}

.settings-row-static {
  cursor: default;
}

.settings-system-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(47, 111, 94, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.settings-support-entry {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(157, 107, 54, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: #faf8f5;
  text-align: left;
}

.settings-support-entry > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #855d35;
  background: rgba(157, 107, 54, 0.1);
  font-size: 21px;
}

.settings-support-entry > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.settings-support-entry strong {
  font-size: 15px;
}

.settings-support-entry small {
  color: var(--muted);
  font-size: 12px;
}

.settings-support-entry b {
  color: var(--soft);
  font-size: 23px;
  font-weight: 400;
}

.support-card:focus {
  outline: 2px solid rgba(157, 107, 54, 0.35);
  outline-offset: 3px;
}

.growth-support-card {
  margin-top: 28px;
  padding: 21px;
  border: 1px solid rgba(157, 107, 54, 0.15);
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0%, rgba(157, 107, 54, 0.09), transparent 46%),
    #faf8f4;
}

.growth-support-card .label {
  color: #8a653f;
}

.growth-support-card h3 {
  margin: 8px 0 9px;
  color: #3f3429;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.45;
}

.growth-support-card p {
  margin: 0;
  color: #6d655d;
  font-size: 14px;
  line-height: 1.72;
}

.growth-support-card button {
  min-height: 42px;
  margin-top: 15px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #805b37;
  font-size: 14px;
  font-weight: 780;
}

/* 字号设置：只放大需要阅读和操作的内容，保持导航不拥挤。 */
html[data-font-size="comfortable"] .view p,
html[data-font-size="comfortable"] .modal p,
html[data-font-size="comfortable"] .lesson-text,
html[data-font-size="comfortable"] .modal li,
html[data-font-size="comfortable"] .action-check-row span,
html[data-font-size="comfortable"] .checkin-check-row span,
html[data-font-size="comfortable"] .confirm-list label {
  font-size: 18px !important;
}

html[data-font-size="large"] .view p,
html[data-font-size="large"] .modal p,
html[data-font-size="large"] .lesson-text,
html[data-font-size="large"] .modal li,
html[data-font-size="large"] .action-check-row span,
html[data-font-size="large"] .checkin-check-row span,
html[data-font-size="large"] .confirm-list label {
  font-size: 20px !important;
  line-height: 1.78 !important;
}

html[data-font-size="comfortable"] .section-title h2,
html[data-font-size="comfortable"] .modal h2 {
  font-size: 32px;
}

html[data-font-size="large"] .section-title h2,
html[data-font-size="large"] .modal h2 {
  font-size: 35px;
}

html[data-font-size="comfortable"] .view h3,
html[data-font-size="comfortable"] .modal h3 {
  font-size: 22px;
}

html[data-font-size="large"] .view h3,
html[data-font-size="large"] .modal h3 {
  font-size: 24px;
  line-height: 1.45;
}

html[data-font-size="comfortable"] .home-route-choice strong,
html[data-font-size="comfortable"] .audio-lesson-copy strong,
html[data-font-size="comfortable"] .settings-row strong {
  font-size: 18px;
}

html[data-font-size="large"] .home-route-choice strong,
html[data-font-size="large"] .audio-lesson-copy strong,
html[data-font-size="large"] .settings-row strong {
  font-size: 20px;
}

html[data-font-size="comfortable"] .intake-options button,
html[data-font-size="comfortable"] .primary-action,
html[data-font-size="comfortable"] .secondary-action {
  font-size: 15px;
}

html[data-font-size="large"] .intake-options button,
html[data-font-size="large"] .primary-action,
html[data-font-size="large"] .secondary-action {
  font-size: 17px;
}

@media (max-width: 430px) {
  .support-icon-button.icon-button,
  #settingsButton.icon-button {
    width: 35px;
    height: 35px;
  }

  #homeView .apple-hero h2 {
    font-size: 36px;
  }

  .home-route-choice {
    padding-inline: 13px;
  }
}

/* ── 关系修复课程：克制、温暖的希望金 ──────────────────── */
.section-course-link[data-open-audio-course="repair"] {
  border-color: rgba(181, 132, 36, 0.28);
  background:
    radial-gradient(circle at 92% 8%, rgba(229, 194, 112, 0.24), transparent 42%),
    linear-gradient(145deg, #fffdf8, #fbf2dc);
  box-shadow: 0 12px 28px rgba(145, 102, 27, 0.08);
}

.section-course-link[data-open-audio-course="repair"] small,
.section-course-link[data-open-audio-course="repair"] b {
  color: #9b6c18;
}

.audio-course-choice--repair {
  position: relative;
  overflow: hidden;
  border-color: rgba(181, 132, 36, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 187, 93, 0.2), transparent 44%),
    linear-gradient(145deg, #fffefb, #fbf3e1);
  box-shadow: 0 10px 26px rgba(139, 99, 29, 0.08);
}

.audio-course-choice--repair::after {
  content: "";
  position: absolute;
  top: -34px;
  right: -30px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(197, 150, 54, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(197, 150, 54, 0.04);
  pointer-events: none;
}

.audio-course-choice--repair > * {
  position: relative;
  z-index: 1;
}

.audio-course-choice--repair .audio-course-choice-top small,
.audio-course-choice--repair .audio-course-choice-top b {
  color: #996916;
}

.audio-course-choice--repair .audio-progress-track em,
.audio-course-panel[data-course-theme="repair"] .audio-progress-track em {
  background: linear-gradient(90deg, #a87519, #d7ad54);
}

.audio-course-choice--repair.is-active {
  border-color: rgba(185, 137, 42, 0.62);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 187, 93, 0.26), transparent 46%),
    linear-gradient(145deg, #fffdf7, #f8eccf);
  box-shadow: 0 14px 32px rgba(139, 99, 29, 0.13);
}

.audio-course-panel[data-course-theme="repair"] {
  position: relative;
  overflow: hidden;
  border-color: rgba(181, 132, 36, 0.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 187, 93, 0.16), transparent 34%),
    linear-gradient(180deg, #fffefb, #fffaf0);
  box-shadow: 0 16px 36px rgba(139, 99, 29, 0.08);
}

.audio-course-panel[data-course-theme="repair"] .label,
.audio-course-panel[data-course-theme="repair"] .audio-course-total-progress strong {
  color: #946616;
}

.audio-course-panel[data-course-theme="repair"] .audio-lesson-row {
  border-color: rgba(181, 132, 36, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.audio-course-panel[data-course-theme="repair"] .audio-lesson-row:active {
  background: #fbf1d9;
}

.audio-course-panel[data-course-theme="repair"] .audio-lesson-number {
  color: #946616;
  background: #f8edcf;
}

.audio-course-panel[data-course-theme="repair"] .audio-lesson-play {
  background: linear-gradient(145deg, #b17a18, #d4aa50);
  box-shadow: 0 5px 12px rgba(139, 99, 29, 0.2);
}

.audio-course-panel[data-course-theme="repair"] .audio-lesson-row.is-complete {
  border-color: rgba(181, 132, 36, 0.3);
  background: rgba(244, 226, 181, 0.3);
}

.audio-course-panel[data-course-theme="repair"] .audio-lesson-row.is-complete .audio-lesson-number {
  color: #fff;
  background: linear-gradient(145deg, #a87316, #c99a38);
}

.audio-lesson-modal[data-course-theme="repair"] .modal-body {
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 187, 93, 0.14), transparent 30%),
    #fffdf8;
}

.audio-lesson-modal[data-course-theme="repair"] .label {
  color: #946616;
}

.audio-lesson-modal[data-course-theme="repair"] .audio-player-card {
  border: 1px solid rgba(181, 132, 36, 0.18);
  background: linear-gradient(145deg, #fbf2dc, #fffaf0);
}

.audio-lesson-modal[data-course-theme="repair"] .audio-listening-cue {
  color: #8a621c;
}

.audio-lesson-modal[data-course-theme="repair"] .audio-listening-bars {
  background: rgba(181, 132, 36, 0.12);
}

.audio-lesson-modal[data-course-theme="repair"] .audio-listening-bars i {
  background: #ae791b;
}

.audio-lesson-modal[data-course-theme="repair"] .audio-speed-options {
  background: rgba(181, 132, 36, 0.11);
}

.audio-lesson-modal[data-course-theme="repair"] .audio-speed-options button.is-active {
  color: #8a5e10;
  background: #fffdf8;
}

.audio-lesson-modal[data-course-theme="repair"] #audioCompleteLesson:not(.is-complete),
.audio-lesson-modal[data-course-theme="repair"] #audioCompleteLesson.is-complete {
  color: #fff;
  background: linear-gradient(135deg, #9f6e18, #c99a3b);
  box-shadow: 0 7px 18px rgba(139, 99, 29, 0.2);
}

.audio-lesson-modal[data-course-theme="repair"] .audio-transcript-card {
  border-top-color: rgba(181, 132, 36, 0.22);
}

/* ── 支持者确认：被记得，但不制造会员等级 ─────────────── */
.supporter-recognition {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  margin-top: 18px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(181, 132, 36, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(222, 181, 84, 0.2), transparent 42%),
    linear-gradient(145deg, #fffdf8, #f9efd8);
  box-shadow: 0 12px 28px rgba(139, 99, 29, 0.09);
}

.supporter-recognition[hidden] {
  display: none;
}

.supporter-recognition-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #a87418, #d0a54b);
  box-shadow: 0 7px 16px rgba(139, 99, 29, 0.2);
  font-size: 18px;
}

.supporter-recognition > div {
  display: grid;
  gap: 5px;
}

.supporter-recognition .label {
  color: #946616;
}

.supporter-recognition strong {
  color: #443621;
  font-size: 16px;
  line-height: 1.45;
}

.supporter-recognition p {
  margin: 0;
  color: #77684f;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

html[data-supporter="true"] #settingsButton.icon-button {
  position: relative;
  border-color: rgba(181, 132, 36, 0.34);
  color: #946616;
  background: rgba(247, 233, 198, 0.38);
  box-shadow: 0 0 0 3px rgba(181, 132, 36, 0.06);
}

html[data-supporter="true"] #settingsButton.icon-button::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c79535;
}

.settings-support-entry.is-donor {
  border-color: rgba(181, 132, 36, 0.3);
  background: linear-gradient(145deg, #fffdf8, #f8eed7);
  box-shadow: 0 10px 24px rgba(139, 99, 29, 0.07);
}

.settings-support-entry.is-donor > span:first-child {
  color: #fff;
  background: linear-gradient(145deg, #a87418, #cda048);
}

html[data-supporter="true"] .story-entry-mark {
  color: #fff;
  background: linear-gradient(145deg, #9d6d19, #c99a3d);
}

.growth-support-card.is-donor {
  border-color: rgba(181, 132, 36, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(222, 181, 84, 0.18), transparent 44%),
    linear-gradient(145deg, #fffdf8, #f8eed8);
  box-shadow: 0 13px 30px rgba(139, 99, 29, 0.08);
}

.growth-support-card.is-donor .label {
  color: #946616;
}

.growth-support-card.is-donor button {
  background: linear-gradient(135deg, #966617, #b9862a);
}

.support-card.is-donor {
  border-color: rgba(181, 132, 36, 0.3);
  box-shadow: 0 12px 30px rgba(139, 99, 29, 0.08);
}

.supporter-thanks-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: min(390px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(218, 177, 80, 0.38);
  border-radius: 17px;
  color: #fff;
  background: rgba(72, 55, 28, 0.96);
  box-shadow: 0 18px 48px rgba(55, 39, 14, 0.28);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.supporter-thanks-toast[hidden] {
  display: none;
}

.supporter-thanks-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.supporter-thanks-toast > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #5c431b;
  background: linear-gradient(145deg, #f2d58f, #c99736);
}

.supporter-thanks-toast > div {
  display: grid;
  gap: 2px;
}

.supporter-thanks-toast strong {
  font-size: 14px;
}

.supporter-thanks-toast small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .supporter-thanks-toast {
    transition: none;
  }
}

/* ── 首次开场：Stella 式节奏，归心式视觉 ─────────────── */
.onboarding-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background: var(--bg);
}

.onboarding-modal::backdrop {
  background: var(--bg);
}

.onboarding-shell {
  position: relative;
  width: min(480px, 100%);
  height: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

.onboarding-progress {
  position: fixed;
  z-index: 3;
  top: calc(18px + var(--safe-top));
  left: 50%;
  display: flex;
  width: min(432px, calc(100% - 48px));
  gap: 5px;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.onboarding-progress i {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(29, 29, 31, 0.12);
  transition: background 220ms ease;
}

.onboarding-progress i.is-active {
  background: var(--ink);
}

.onboarding-shell[data-onboarding-step="splash"] .onboarding-progress {
  opacity: 0;
}

.onboarding-panel {
  min-height: 100dvh;
  padding: calc(48px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
}

.onboarding-panel[hidden] {
  display: none;
}

.onboarding-panel.is-active:not(.onboarding-panel--splash) {
  animation: onboarding-panel-in 420ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@keyframes onboarding-panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-panel--splash {
  padding: 0;
}

.onboarding-splash-trigger {
  position: relative;
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: 32px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.onboarding-splash-trigger:focus {
  outline: 0;
}

.onboarding-wordmark {
  font-size: clamp(48px, 14vw, 62px);
  font-weight: 860;
  line-height: 1;
  letter-spacing: -0.075em;
  animation: onboarding-wordmark-in 720ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.onboarding-splash-trigger small {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  animation: onboarding-tagline-in 720ms 180ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.onboarding-splash-trigger > i {
  position: absolute;
  bottom: calc(31px + var(--safe-bottom));
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--green);
  opacity: 0;
  animation: onboarding-cue-in 500ms 650ms ease forwards;
}

@keyframes onboarding-wordmark-in {
  from { opacity: 0; transform: translateY(9px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes onboarding-tagline-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes onboarding-cue-in {
  to { opacity: 1; }
}

.onboarding-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 clamp(62px, 10vh, 96px);
}

.onboarding-step-head > span {
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.onboarding-step-head > small {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.onboarding-question-copy > .label {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
}

.onboarding-question-copy h2 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(31px, 8.7vw, 40px);
  font-weight: 820;
  line-height: 1.16;
  letter-spacing: -0.045em;
  white-space: pre-line;
}

html[lang="ja"] .onboarding-question-copy h2 {
  font-size: clamp(28px, 6.9vw, 33px);
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.onboarding-question-copy > p {
  max-width: 31em;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.onboarding-name-field {
  display: grid;
  gap: 9px;
  margin-top: clamp(38px, 7vh, 58px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.onboarding-name-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.025);
  font: inherit;
  font-size: 17px;
  font-weight: 560;
  outline: 0;
}

.onboarding-name-field input:focus {
  border-color: rgba(29, 29, 31, 0.5);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.055);
}

.onboarding-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 3px 22px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
}

.onboarding-next {
  width: 100%;
}

.onboarding-situations {
  display: grid;
  gap: 8px;
  margin-top: 27px;
}

.onboarding-situations button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 61px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
  transition: transform 100ms ease, border-color 160ms ease, background 160ms ease;
}

.onboarding-situations button:active {
  transform: scale(0.985);
}

.onboarding-situations button > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--soft);
  background: var(--panel-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.onboarding-situations button strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.onboarding-situations button.is-active {
  border-color: var(--ink);
  background: #fff;
}

.onboarding-situations button.is-active > span {
  color: #fff;
  background: var(--ink);
}

.onboarding-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.onboarding-actions .text-action {
  min-height: 48px;
  padding-inline: 12px;
}

.onboarding-actions .primary-action {
  width: 100%;
}

.onboarding-promises {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 19px;
  background: var(--panel);
}

.onboarding-promises > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 11px 15px;
}

.onboarding-promises > div + div {
  border-top: 1px solid var(--line-soft);
}

.onboarding-promises > div > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.onboarding-promises p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.onboarding-promises strong {
  font-size: 14px;
}

.onboarding-promises small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-personal-greeting {
  width: fit-content;
  margin: 14px 0 0 !important;
  padding: 7px 11px;
  border-radius: 999px;
  color: #276451 !important;
  background: rgba(47, 111, 94, 0.08);
  font-size: 13px !important;
  font-weight: 760;
  line-height: 1.4 !important;
}

.home-personal-greeting[hidden] {
  display: none;
}

.settings-replay-onboarding {
  border-top: 1px solid var(--line-soft);
  font: inherit;
}

.settings-replay-onboarding .settings-chevron {
  flex: 0 0 auto;
}

@media (min-width: 700px) {
  .onboarding-modal {
    background: #ececee;
  }

  .onboarding-shell {
    box-shadow: 0 0 70px rgba(0, 0, 0, 0.08);
  }
}

@media (max-height: 720px) {
  .onboarding-panel {
    padding-top: calc(42px + var(--safe-top));
  }

  .onboarding-step-head {
    margin-bottom: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-panel.is-active,
  .onboarding-wordmark,
  .onboarding-splash-trigger small,
  .onboarding-splash-trigger > i {
    animation: none;
  }

  .onboarding-progress i,
  .onboarding-situations button {
    transition: none;
  }
}

/* ── 修复页按需工具箱：减少重复堆叠与长页压力 ───────────── */
.recover-library {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.74);
}

.recover-library > summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 16px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.recover-library > summary::-webkit-details-marker {
  display: none;
}

.recover-library-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #2e6657;
  background: rgba(47, 111, 94, 0.1);
  font-size: 20px;
  font-weight: 700;
}

.recover-library > summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.recover-library > summary small {
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
}

.recover-library > summary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.recover-library > summary b {
  color: var(--soft);
  font-size: 22px;
  font-weight: 450;
  transition: transform 180ms ease;
}

.recover-library[open] > summary b {
  transform: rotate(45deg);
}

.recover-library-body {
  padding: 0 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.065);
}

.recover-library-tabs {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 6px;
  padding: 4px;
  border-radius: 14px;
  background: #ededf0;
}

.recover-library-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 0 7px;
  border: 0;
  border-radius: 11px;
  color: #6e6e73;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.recover-library-tabs button.is-active {
  color: #225c4d;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.1);
}

.recover-library-panel {
  padding: 2px 2px 0;
}

.recover-library-panel[hidden] {
  display: none;
}

.recover-library-panel .subsection-title {
  margin-top: 18px;
}

.recover-library-panel .subsection-title p {
  max-width: 58ch;
}

@media (prefers-reduced-motion: reduce) {
  .audio-player-card.is-playing .audio-listening-bars i {
    animation: none;
  }

  .recover-library > summary b,
  .audio-speed-options button {
    transition: none;
  }
}

/* ── 排版系统 v2：统一层级、字重与阅读节奏 ─────────────── */
:root {
  --type-page: 28px;
  --type-display: 34px;
  --type-section: 20px;
  --type-card: 17px;
  --type-body: 15px;
  --type-reading: 16px;
  --type-caption: 12px;
  --leading-body: 1.68;
  --leading-reading: 1.78;
}

html[data-font-size="comfortable"] {
  --type-page: 30px;
  --type-display: 36px;
  --type-section: 21px;
  --type-card: 18px;
  --type-body: 16.5px;
  --type-reading: 17px;
}

html[data-font-size="large"] {
  --type-page: 32px;
  --type-display: 38px;
  --type-section: 22px;
  --type-card: 19px;
  --type-body: 18px;
  --type-reading: 19px;
}

body,
button,
input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

html[lang="ja"] body,
html[lang="ja"] button,
html[lang="ja"] input,
html[lang="ja"] textarea,
html[lang="ja"] select {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

html[lang="zh-Hant"] body,
html[lang="zh-Hant"] button,
html[lang="zh-Hant"] input,
html[lang="zh-Hant"] textarea,
html[lang="zh-Hant"] select {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

h1,
h2,
h3,
h4,
strong {
  text-wrap: pretty;
}

.topbar h1,
.desktop-brief h2 {
  font-size: 22px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow,
.label,
.home-chip,
.route-tag,
.path-tag,
.course-tag {
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0;
}

.section-title {
  gap: 6px;
  margin: 4px 0 22px;
}

.section-title h2,
.modal h2 {
  font-size: var(--type-page);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.section-title p,
.subsection-title p,
.gate-card p,
.theory-lead p,
.behavior-lead p,
.outside-lead p,
.control-lead p,
.control-action-card p,
.blame-lead p,
.blame-action-card p,
.harm-lead p,
.boundary-lead p,
.seam-lead p,
.seam-action-card p,
.independence-lead p,
.return-lead p,
.action-lead p,
.repair-lead p,
.trap-lead p,
.trap-card p,
.lesson-card p,
.growth-lead p,
.rescue-lead p,
.guide-card p,
.case-card p,
.path-card p,
.course-card p,
.route-card p,
.intake-lead p,
.audio-home-copy p,
.audio-course-panel-head p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

.subsection-title {
  margin: 28px 0 12px;
}

.subsection-title h3,
.theory-lead h3,
.behavior-lead h3,
.outside-lead h3,
.control-lead h3,
.control-action-card h3,
.blame-lead h3,
.blame-action-card h3,
.harm-lead h3,
.boundary-lead h3,
.seam-lead h3,
.seam-action-card h3,
.independence-lead h3,
.return-lead h3,
.action-lead h3,
.repair-lead h3,
.trap-lead h3,
.growth-lead h3,
.rescue-lead h3,
.freedom-lead h3,
.rebirth-lead h3,
.intake-lead h3,
.audio-course-panel-head h3,
.support-card h3,
.growth-support-card h3 {
  margin-bottom: 6px;
  font-size: var(--type-section);
  font-weight: 720;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.route-card h3,
.topic-card h3,
.return-card h3,
.trap-card h3,
.lesson-card h3,
.guide-card h3,
.course-card h3,
.case-card h3,
.path-card h3,
.intake-card h3,
.audio-home-copy h3,
.logic-step h3,
.home-route-choice strong,
.audio-course-choice > strong,
.audio-lesson-copy strong {
  font-size: var(--type-card);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

#homeView .apple-hero {
  padding: 30px 8px 22px;
}

#homeView .apple-hero h2,
.apple-hero h2 {
  max-width: 9em;
  margin: 10px auto 12px;
  font-size: var(--type-display);
  font-weight: 760;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

#homeView .apple-hero p,
.apple-hero p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

#homeView .apple-focus strong,
.apple-focus strong {
  font-size: var(--type-section);
  font-weight: 720;
  line-height: 1.35;
}

#homeView .apple-focus p,
.apple-focus p,
#homeView .logic-step p,
.logic-step p,
.home-note p {
  font-size: 14px;
  line-height: 1.6;
}

.audio-home-card {
  gap: 14px;
  padding: 18px;
}

.route-card,
.path-card,
.return-card,
.trap-card,
.guide-card,
.lesson-card,
.topic-card,
.course-card,
.case-card,
.intake-card {
  padding: 16px;
}

.topic-card {
  min-height: 116px;
}

.modal-body {
  padding: 30px;
}

.modal p,
.lesson-text p,
#lessonSummary,
#topicSummary,
.modal li,
.audio-transcript p {
  font-size: var(--type-reading);
  line-height: var(--leading-reading);
}

.modal-block h3,
.audio-transcript-heading h3 {
  font-size: 18px;
  font-weight: 720;
  line-height: 1.4;
}

.primary-action,
.secondary-action,
.text-action,
.view-back,
.tab {
  font-weight: 700;
}

.onboarding-step-head > span,
.onboarding-question-copy h2,
.onboarding-situations button strong,
.onboarding-promises strong {
  font-weight: 720;
}

.onboarding-question-copy h2 {
  font-size: clamp(30px, 8vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.onboarding-question-copy > p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

html[data-font-size="comfortable"] .view p,
html[data-font-size="comfortable"] .modal p,
html[data-font-size="comfortable"] .lesson-text,
html[data-font-size="comfortable"] .modal li,
html[data-font-size="comfortable"] .action-check-row span,
html[data-font-size="comfortable"] .checkin-check-row span,
html[data-font-size="comfortable"] .confirm-list label {
  font-size: var(--type-reading) !important;
  line-height: var(--leading-reading) !important;
}

html[data-font-size="large"] .view p,
html[data-font-size="large"] .modal p,
html[data-font-size="large"] .lesson-text,
html[data-font-size="large"] .modal li,
html[data-font-size="large"] .action-check-row span,
html[data-font-size="large"] .checkin-check-row span,
html[data-font-size="large"] .confirm-list label {
  font-size: var(--type-reading) !important;
  line-height: var(--leading-reading) !important;
}

html[data-font-size="comfortable"] .section-title h2,
html[data-font-size="comfortable"] .modal h2,
html[data-font-size="large"] .section-title h2,
html[data-font-size="large"] .modal h2 {
  font-size: var(--type-page);
}

html[data-font-size="comfortable"] .view h3,
html[data-font-size="comfortable"] .modal h3,
html[data-font-size="large"] .view h3,
html[data-font-size="large"] .modal h3 {
  font-size: var(--type-section);
  line-height: 1.42;
}

html[data-font-size="comfortable"] .home-route-choice strong,
html[data-font-size="comfortable"] .audio-lesson-copy strong,
html[data-font-size="large"] .home-route-choice strong,
html[data-font-size="large"] .audio-lesson-copy strong {
  font-size: var(--type-card);
}

html[lang="en"] {
  --type-display: 32px;
}

html[lang="ja"] {
  --type-display: 32px;
  --type-page: 27px;
}

html[lang="en"] .section-title h2,
html[lang="ja"] .section-title h2 {
  line-height: 1.26;
  letter-spacing: -0.02em;
}

html[lang="ja"] .onboarding-question-copy h2 {
  font-size: clamp(28px, 6.9vw, 33px);
  line-height: 1.24;
}

@media (max-width: 430px) {
  .phone-frame {
    padding-inline: 16px;
  }

  .modal-body {
    padding: 26px 19px calc(24px + var(--safe-bottom));
  }
}
