/* 幸福计划 · 奶油暖系（v2 · 高级 · 留白 · 蛇形路径 · 弹窗反馈） */

:root {
  /* 主色板 */
  --bg-base: #FAF6EE;
  --bg-card: #FFFFFF;
  --bg-soft: #F2EAD8;
  --bg-deep: #EDE3CC;

  --accent: #C9854A;            /* 收敛一些的琥珀 */
  --accent-warm: #DD9968;       /* 暖橘 */
  --accent-light: #F0D8B8;

  /* 四阶段配色（更柔和） */
  --stage-1: #C9854A;           /* 觉察 · 琥珀 */
  --stage-2: #BFA158;           /* 探索 · 暖金 */
  --stage-3: #8AA56E;           /* 练习 · 草绿 */
  --stage-4: #7A8FA6;           /* 内化 · 烟蓝 */
  --stage-1-tint: #F4E6D0;
  --stage-2-tint: #EFE7C8;
  --stage-3-tint: #DDE5CC;
  --stage-4-tint: #CFD6E0;

  /* 文字 */
  --text-primary: #3D332A;
  --text-secondary: #6F6356;
  --text-muted: #B0A695;
  --text-on-accent: #FFFFFF;

  /* 反馈色 */
  --correct: #79A56F;
  --correct-bg: #EAF1E4;
  --wrong: #C77B6B;
  --wrong-bg: #F4E2DC;

  /* 圆角 */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* 阴影（更轻） */
  --shadow-xs: 0 1px 2px rgba(61, 51, 42, 0.03);
  --shadow-sm: 0 1px 3px rgba(61, 51, 42, 0.04), 0 4px 16px rgba(61, 51, 42, 0.04);
  --shadow-md: 0 2px 8px rgba(61, 51, 42, 0.06), 0 8px 24px rgba(61, 51, 42, 0.05);
  --shadow-lg: 0 12px 40px rgba(61, 51, 42, 0.12);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "宋体", serif;
  --font-sans: "PingFang SC", "苹方", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: contain;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============ 容器 ============ */

.app-container {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-base);
  position: relative;
  padding: 0 24px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px 0;
  position: sticky;
  top: 0;
  background: var(--bg-base);
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: background 200ms ease-out;
}

.icon-btn:active { background: rgba(201, 133, 74, 0.1); }

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-deep);
  border-radius: var(--radius-pill);
  margin: 0 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 360ms cubic-bezier(0.32, 0.72, 0, 1);
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
  letter-spacing: 0.04em;
}

/* ============ 卡片 ============ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  animation: card-in 320ms ease-out;
}

.card-soft { background: var(--bg-soft); }

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

.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 18px 0;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.card-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-primary);
}

.card-body p { margin: 0 0 14px 0; }
.card-body p:last-child { margin-bottom: 0; }
.card-body strong { color: var(--accent); font-weight: 600; }

.card-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 18px 0;
  color: var(--text-secondary);
  font-style: normal;
  font-size: 15px;
}

.card-body ul, .card-body ol {
  padding-left: 20px;
  margin: 12px 0;
}

.card-body li { margin: 6px 0; }

.card-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.card-body th, .card-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bg-deep);
  text-align: left;
}

.card-body th {
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--text-secondary);
}

.card-body hr {
  border: none;
  border-top: 1px dashed var(--bg-deep);
  margin: 24px 0;
}

/* ============ 核心阅读卡 ============ */

.reading-card {
  padding: 32px 24px 28px 24px;
}

.reading-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.reading-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--bg-deep);
}

.reading-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.reading-body h1, .reading-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 24px 0 12px 0;
  letter-spacing: 0.02em;
}

.reading-body h1:first-child, .reading-body h2:first-child { margin-top: 0; }

.reading-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 10px 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.reading-body p { margin: 0 0 16px 0; }
.reading-body strong { color: var(--accent); font-weight: 600; }

.reading-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin: 18px 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-style: normal;
}

.reading-body hr {
  border: none;
  border-top: 1px dashed var(--bg-deep);
  margin: 28px 0;
}

.reading-body ul, .reading-body ol { padding-left: 22px; margin: 14px 0; }
.reading-body li { margin: 6px 0; }

/* ============ 题目区 ============ */

.question {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.question strong { color: var(--accent); }

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  background: var(--bg-card);
  border: 1px solid #ECE2D2;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 180ms ease-out;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  font-family: var(--font-sans);
  line-height: 1.6;
  width: 100%;
}

.option:active { transform: scale(0.985); }

.option.selected {
  border-color: var(--accent);
  background: #FBF4E8;
}

.option.correct {
  border-color: var(--correct);
  background: var(--correct-bg);
}

.option.wrong {
  border-color: var(--wrong);
  background: var(--wrong-bg);
}

.option-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #D8CDB8;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  transition: all 200ms ease-out;
  font-weight: 600;
}

.option.selected .option-mark {
  border-color: var(--accent);
  background: var(--accent);
}

.option.correct .option-mark { border-color: var(--correct); background: var(--correct); }
.option.wrong .option-mark { border-color: var(--wrong); background: var(--wrong); }

.option-mark.square { border-radius: 5px; }

.option-text { flex: 1; }

/* ============ TEXT 输入 ============ */

.text-input {
  width: 100%;
  min-height: 108px;
  padding: 16px 18px;
  border: 1px solid #ECE2D2;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-card);
  resize: vertical;
  line-height: 1.7;
  transition: border-color 180ms ease-out;
}

.text-input:focus,
.fill-input:focus {
  outline: none;
  border-color: var(--accent);
}

.text-input::placeholder,
.fill-input::placeholder {
  color: var(--text-muted);
}

.fill-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ECE2D2;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 180ms ease-out;
}

.fill-input:disabled { background: var(--bg-soft); }

/* ============ 按钮 ============ */

.btn-primary {
  display: block;
  width: 100%;
  padding: 17px;
  background: var(--accent-warm);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-top: 24px;
  transition: all 180ms ease-out;
  letter-spacing: 0.08em;
}

.btn-primary:active:not(:disabled) { transform: scale(0.985); background: var(--accent); }
.btn-primary:disabled {
  background: #E2D8C5;
  color: #FFF;
  cursor: not-allowed;
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 15px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid #ECE2D2;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-top: 10px;
  transition: all 180ms ease-out;
  letter-spacing: 0.05em;
}

.btn-secondary:active { transform: scale(0.985); background: var(--bg-soft); }

/* ============ 日内 header ============ */

.day-header {
  padding: 4px 0 16px 0;
}

.day-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.day-theme {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============ 首页 home（一屏不滚动） ============ */

.home-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
}

.home-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 0 4px;
  height: 56px;
  flex-shrink: 0;
}

.home-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: background 200ms ease-out;
  text-decoration: none;
}

.home-icon-btn:active { background: rgba(201, 133, 74, 0.1); }

.home-brand {
  text-align: center;
  padding: 16px 0 8px 0;
  flex-shrink: 0;
}

.home-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.home-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.home-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 auto;
  line-height: 1.8;
  max-width: 260px;
}

.home-spacer {
  flex: 1;
  min-height: 24px;
}

.home-action {
  padding-bottom: 32px;
  flex-shrink: 0;
}

.task-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.task-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.task-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.task-card-theme {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.task-card-divider {
  width: 28px;
  height: 1px;
  background: var(--bg-deep);
  margin: 0 0 14px 0;
}

.task-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.task-card.done-all {
  text-align: center;
}

.task-card.done-all::before { display: none; }

.home-cta {
  margin: 0 0 20px 0;
}

.home-cta .btn-primary {
  margin-top: 0;
  padding: 18px;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.home-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.home-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--bg-deep);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.home-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 600ms cubic-bezier(0.32, 0.72, 0, 1);
}

.home-progress-text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

@media (max-width: 380px) {
  .home-title { font-size: 34px; }
}

@media (min-height: 760px) {
  .home-title { font-size: 44px; }
  .home-brand { padding: 32px 0 16px 0; }
}

/* ============ 启动页 / 路径地图首屏 ============ */

.pathmap-hero {
  text-align: center;
  padding: 56px 0 28px 0;
}

.pathmap-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.pathmap-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 14px 0;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.pathmap-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ 蛇形路径地图 ============ */

.pathmap-track {
  position: relative;
  padding: 16px 0 60px 0;
}

.stage-divider {
  text-align: center;
  margin: 36px 0 16px 0;
  position: relative;
}

.stage-divider::before,
.stage-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--bg-deep);
}

.stage-divider::before { left: 0; }
.stage-divider::after { right: 0; }

.stage-divider-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.stage-divider-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.stage-divider-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.path-node {
  --node-size: 60px;
  --offset: 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--node-size);
  height: var(--node-size);
  margin: 10px auto;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: all 220ms cubic-bezier(0.32, 0.72, 0, 1);
  transform: translateX(var(--offset));
  cursor: default;
  background: var(--bg-deep);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.path-node.locked { background: transparent; border: 1px dashed var(--bg-deep); color: var(--text-muted); }

.path-node.available {
  background: var(--bg-card);
  color: var(--stage-c, var(--accent));
  border: 1.5px solid var(--stage-c, var(--accent));
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.path-node.available:active { transform: translateX(var(--offset)) scale(0.94); }

.path-node.completed {
  background: var(--stage-c, var(--accent));
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.path-node.completed:active { transform: translateX(var(--offset)) scale(0.94); }

/* 当前可做的节点 → 呼吸光晕 */
.path-node.current {
  animation: node-breathe 2.4s ease-in-out infinite;
}

@keyframes node-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 133, 74, 0.25), var(--shadow-sm); }
  50%       { box-shadow: 0 0 0 10px rgba(201, 133, 74, 0), var(--shadow-sm); }
}

/* 阶段配色 */
.path-node[data-stage="1"] { --stage-c: var(--stage-1); }
.path-node[data-stage="2"] { --stage-c: var(--stage-2); }
.path-node[data-stage="3"] { --stage-c: var(--stage-3); }
.path-node[data-stage="4"] { --stage-c: var(--stage-4); }

.stage-divider[data-stage="1"] .stage-divider-eyebrow,
.stage-divider[data-stage="1"] .stage-divider-name { color: var(--stage-1); }
.stage-divider[data-stage="2"] .stage-divider-eyebrow,
.stage-divider[data-stage="2"] .stage-divider-name { color: var(--stage-2); }
.stage-divider[data-stage="3"] .stage-divider-eyebrow,
.stage-divider[data-stage="3"] .stage-divider-name { color: var(--stage-3); }
.stage-divider[data-stage="4"] .stage-divider-eyebrow,
.stage-divider[data-stage="4"] .stage-divider-name { color: var(--stage-4); }

/* ============ Bottom Sheet 反馈弹窗 ============ */

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 51, 42, 0.42);
  opacity: 0;
  transition: opacity 280ms ease-out;
  z-index: 99;
  pointer-events: none;
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  max-width: 460px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 28px 28px 0 0;
  padding: 12px 24px 32px 24px;
  transform: translateY(110%);
  transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 32px rgba(61, 51, 42, 0.12);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-deep);
  margin: 0 auto 16px auto;
}

.sheet-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 8px auto 18px auto;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-weight: 500;
}

.sheet.correct .sheet-icon { background: var(--correct-bg); color: var(--correct); }
.sheet.wrong .sheet-icon { background: var(--wrong-bg); color: var(--wrong); }
.sheet.neutral .sheet-icon { background: var(--bg-soft); color: var(--accent); }

.sheet-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 12px 0;
}

.sheet.correct .sheet-title { color: var(--correct); }
.sheet.wrong .sheet-title { color: var(--wrong); }

.sheet-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  text-align: left;
  margin: 0 0 24px 0;
  max-height: 40vh;
  overflow-y: auto;
}

.sheet-body ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.sheet-body ul li {
  padding: 8px 0;
  border-top: 1px solid var(--bg-soft);
  font-size: 14px;
  line-height: 1.7;
}

.sheet-body ul li:first-child { border-top: none; }

.sheet-body ul li strong {
  color: var(--accent);
  font-weight: 500;
  margin-right: 4px;
}

.sheet .btn-primary { margin-top: 0; }

/* ============ 完成动画 ============ */

.star-burst {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0;
  font-size: 72px;
  animation: star-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes star-pop {
  0% { opacity: 0; transform: scale(0.3) rotate(-180deg); }
  60% { transform: scale(1.18) rotate(15deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ============ AI 报告 ============ */

.report-section { margin-bottom: 24px; }

.report-section-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 10px 0;
}

.report-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
}

.report-body strong {
  font-family: var(--font-serif);
  font-size: 17px;
  display: block;
  margin: 20px 0 8px 0;
  color: var(--accent);
  font-weight: 500;
}

.report-body p { margin: 0 0 12px 0; }

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 800ms infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.loading-dots {
  display: inline-flex;
  gap: 6px;
}

.loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-bounce 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-5px); }
}

/* ============ 工具 ============ */

.hidden { display: none !important; }

@media (max-width: 380px) {
  .pathmap-title { font-size: 30px; }
  .path-node { --node-size: 54px; font-size: 16px; }
  .app-container { padding: 0 18px; }
}

/* ============ Report Hero ============ */

.report-hero {
  position: relative;
  margin: 8px 0 18px 0;
  padding: 28px 22px 26px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--hero-tint, var(--bg-soft)) 0%, var(--bg-card) 100%);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.report-hero-spark {
  font-size: 22px;
  color: var(--hero-accent, var(--accent));
  margin-bottom: 6px;
  letter-spacing: 0.08em;
  animation: spark-float 3.6s ease-in-out infinite;
}

@keyframes spark-float {
  0%, 100% { opacity: 0.5; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-2px) scale(1.06); }
}

.report-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hero-accent, var(--accent));
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.report-hero-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.report-hero-coreline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  line-height: 1.55;
  padding: 0 8px;
}

/* ============ Echo card（你今天写下来的） ============ */

.echo-card {
  margin-top: 0;
}

.echo-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.echo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.echo-item {
  padding-left: 12px;
  border-left: 2px solid var(--accent-light);
}

.echo-q {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.echo-a {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ============ Report body 增强（4 板块清晰分隔） ============ */

.report-card {
  margin-top: 16px;
}

.report-body strong:first-child,
.report-body p > strong:only-child {
  display: inline-block;
}

/* 让形如「**【今天的你】**」这种 markdown 加粗段落标题更突出 */
.report-body p strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============ btn-ghost ============ */

.btn-ghost {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.btn-ghost:active { color: var(--text-secondary); }

/* ============ 历史报告列表 reports.html ============ */

.reports-header {
  padding: 10px 4px 18px 4px;
}

.reports-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  letter-spacing: 0.01em;
}

.reports-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.report-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--item-accent, var(--accent));
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.report-list-item:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-sm);
}

.report-list-day {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--item-accent, var(--accent));
  letter-spacing: 0.12em;
  background: var(--item-tint, var(--bg-soft));
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  align-self: flex-start;
}

.report-list-main {
  flex: 1;
  min-width: 0;
}

.report-list-eyebrow {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.report-list-theme {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-list-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.report-list-arrow {
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
}

/* ============ Landing 主页 ============ */

.landing-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: max(env(safe-area-inset-top), 8px);
}

.landing-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 24px 0;
}

.landing-top-spacer { flex: 1; }

.landing-brand {
  text-align: center;
  padding: 16px 0 28px 0;
}

.landing-mark {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px auto;
}

.landing-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-light) 0%, var(--accent-warm) 60%, var(--accent) 100%);
  box-shadow: 0 8px 30px rgba(201, 133, 74, 0.25);
  animation: orb-pulse 4s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.landing-spark {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 18px;
  color: var(--accent-warm);
  animation: spark-float 3.6s ease-in-out infinite;
}

.landing-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.32em;
  margin-bottom: 12px;
  text-transform: lowercase;
}

.landing-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
}

.landing-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0;
}

.landing-today {
  margin: 8px 0 22px 0;
}

.landing-today-card {
  position: relative;
  padding: 22px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-tint, var(--bg-soft)) 0%, var(--bg-card) 100%);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--card-accent, var(--accent));
}

.landing-today-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--card-accent, var(--accent));
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.landing-today-day {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.landing-today-theme {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.landing-today-coreline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

.landing-today-done {
  text-align: center;
  border-left: 3px solid var(--correct);
}

.landing-cta-stack { margin-bottom: 22px; }

.landing-cta-stack .btn-primary { margin-top: 0; }
.landing-cta-stack .btn-secondary { margin-top: 10px; }

.landing-meta {
  margin-top: auto;
  padding: 12px 0 24px 0;
}

.landing-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 380px) {
  .landing-title { font-size: 34px; }
}

@media (min-height: 760px) {
  .landing-title { font-size: 48px; }
  .landing-brand { padding: 32px 0 32px 0; }
}

/* ============ Onboarding ============ */

.onboarding-body {
  background: var(--bg-base);
  height: 100vh;
  overflow: hidden;
}

.onboarding-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: max(env(safe-area-inset-top), 12px) 22px max(env(safe-area-inset-bottom), 16px) 22px;
}

.onboarding-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 44px;
}

.onboarding-skip {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 8px 4px;
}

.onboarding-skip:active { color: var(--text-secondary); }

.onboarding-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.onboarding-track {
  display: flex;
  height: 100%;
  transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.onboarding-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 24px 0;
  text-align: center;
}

.onboarding-art {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}

/* 第 1 屏：发光球 + 漂浮 spark */
.onboarding-art-1 .onboarding-orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-light) 0%, var(--accent-warm) 55%, var(--accent) 100%);
  box-shadow: 0 12px 50px rgba(201, 133, 74, 0.3);
  animation: orb-pulse 4s ease-in-out infinite;
}

.onboarding-spark {
  position: absolute;
  font-size: 18px;
  color: var(--accent-warm);
  animation: spark-float 3.6s ease-in-out infinite;
}

.spark-a { top: 30px; left: 35%; animation-delay: 0s; }
.spark-b { top: 50px; right: 30%; animation-delay: 1.2s; font-size: 14px; }
.spark-c { bottom: 32px; left: 32%; animation-delay: 2.4s; font-size: 12px; }

/* 第 2 屏：3 步流程 */
.onboarding-art-2 {
  gap: 14px;
}

.onboarding-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.onboarding-step-no {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.onboarding-step-label {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

/* 第 3 屏：3 个 pill */
.onboarding-art-3 {
  flex-direction: column;
  gap: 12px;
  height: auto;
  padding: 30px 0;
}

.onboarding-pill {
  padding: 11px 22px;
  background: var(--bg-card);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  font-family: var(--font-serif);
  box-shadow: var(--shadow-xs);
}

.onboarding-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.24em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.onboarding-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 16px 0;
  padding: 0 8px;
}

.onboarding-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  padding: 0 16px;
}

.onboarding-cta-wrap {
  width: 100%;
  margin-top: 28px;
  padding: 0 4px;
}

.onboarding-cta-wrap .btn-primary {
  margin-top: 0;
}

.onboarding-bottom {
  padding-top: 8px;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.onboarding-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-deep);
  transition: all 240ms ease-out;
  cursor: pointer;
}

.onboarding-dots .dot.active {
  background: var(--accent-warm);
  width: 22px;
  border-radius: var(--radius-pill);
}

.onboarding-next {
  transition: opacity 220ms ease-out;
}

/* ============ Redeem Sheet ============ */

.redeem-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 30, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 260ms ease-out;
}

.redeem-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.redeem-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 14px 22px max(env(safe-area-inset-bottom), 22px) 22px;
  box-shadow: var(--shadow-lg);
  transform: translateY(110%);
  transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
}

.redeem-sheet.open {
  transform: translateY(0);
}

.redeem-sheet.shake {
  animation: redeem-shake 360ms cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes redeem-shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

.redeem-sheet .sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--bg-deep);
  border-radius: var(--radius-pill);
  margin: 0 auto 14px auto;
}

.redeem-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
}

.redeem-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.redeem-input {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: all 200ms ease-out;
}

.redeem-input:focus {
  background: var(--bg-card);
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 4px rgba(221, 153, 104, 0.12);
}

.redeem-error {
  min-height: 18px;
  font-size: 12px;
  color: var(--wrong);
  text-align: center;
  margin: 8px 0 0 0;
  letter-spacing: 0.04em;
}

.redeem-sheet .btn-primary {
  margin-top: 10px;
}

.redeem-sheet .btn-ghost {
  margin-top: 2px;
}

/* ============ Catalog 目录页 ============ */

.catalog-header {
  padding: 12px 4px 18px 4px;
}

.catalog-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
}

.catalog-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 18px 0;
}

.catalog-overall {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.catalog-overall-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-deep);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.catalog-overall-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 600ms ease-out;
}

.catalog-overall-text {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.catalog-stage {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-bottom: 12px;
  overflow: hidden;
  border-left: 3px solid var(--stage-color, var(--accent));
}

.catalog-stage-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 18px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  color: inherit;
}

.catalog-stage-head-main {
  flex: 1;
  min-width: 0;
}

.catalog-stage-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stage-color, var(--accent));
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.catalog-stage-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.catalog-stage-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.catalog-stage-bar {
  height: 3px;
  background: var(--bg-deep);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 4px;
}

.catalog-stage-bar-fill {
  height: 100%;
  background: var(--stage-color, var(--accent));
  border-radius: var(--radius-pill);
  transition: width 600ms ease-out;
}

.catalog-stage-arrow {
  font-size: 14px;
  color: var(--text-muted);
  align-self: center;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.catalog-stage-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(0.32, 0.72, 0, 1);
}

.catalog-stage.open .catalog-stage-body {
  max-height: 4000px;
  border-top: 1px solid var(--bg-deep);
}

.catalog-day {
  display: block;
  padding: 14px 18px 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--bg-soft);
  transition: background 160ms ease-out;
}

.catalog-day:last-child { border-bottom: none; }
.catalog-day:active { background: var(--bg-soft); }

.catalog-day-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.catalog-day-status {
  flex-shrink: 0;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.status-dot.done {
  background: var(--correct);
  color: #fff;
}

.status-dot.current {
  background: var(--accent-warm);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(221, 153, 104, 0.18);
  animation: dot-glow 2s ease-in-out infinite;
}

@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(221, 153, 104, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(221, 153, 104, 0.10); }
}

.status-dot.available {
  background: var(--bg-deep);
  color: var(--text-muted);
}

.status-dot.locked {
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
}

.catalog-day-main {
  flex: 1;
  min-width: 0;
}

.catalog-day-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.catalog-day-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.catalog-day-theme {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.catalog-day-coreline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

.catalog-day-locked .catalog-day-theme,
.catalog-day-locked .catalog-day-coreline {
  color: var(--text-muted);
}

.catalog-day-locked {
  cursor: default;
}

.catalog-day-current .catalog-day-theme {
  color: var(--accent);
}

/* ============ Catalog Day 0 入门卡（在 4 阶段之上） ============ */

.catalog-onboarding {
  display: block;
  background: linear-gradient(135deg, var(--stage-tint, var(--bg-soft)) 0%, var(--bg-card) 70%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 18px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid var(--stage-color, var(--accent));
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
  position: relative;
}

.catalog-onboarding:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-xs);
}

.catalog-onboarding-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stage-color, var(--accent));
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.catalog-onboarding-theme {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.catalog-onboarding-coreline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 10px;
}

.catalog-onboarding-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stage-color, var(--accent));
}

.catalog-onboarding.catalog-day-done .catalog-onboarding-status {
  color: var(--correct);
}

/* ============ Journal 日记本视图 ============ */

.journal-header {
  padding: 12px 4px 18px 4px;
}

.journal-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
}

.journal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.journal-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.journal-empty-icon {
  font-size: 36px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.journal-day-block {
  margin-bottom: 22px;
}

.journal-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.journal-day-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--day-color, var(--accent));
  letter-spacing: 0.1em;
  padding: 4px 9px;
  background: var(--day-tint, var(--bg-soft));
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.journal-day-theme {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.journal-day-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.journal-day-link:active { color: var(--text-secondary); }

.journal-entry {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
  border-left: 2px solid var(--day-color, var(--accent-light));
}

.journal-entry-q {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.journal-entry-a {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  word-break: break-word;
}
