:root {
  color-scheme: light;
  --ink: #15160f;
  --paper: #fbf7ee;
  --paper-soft: rgba(251, 247, 238, 0.86);
  --paper-dim: #f1e9d6;
  --muted: #6d6455;
  --line: rgba(21, 22, 15, 0.11);
  --line-strong: rgba(21, 22, 15, 0.2);
  --forest: #1f6b45;
  --forest-deep: #0e2b1d;
  --forest-mid: #163f2a;
  --forest-soft: #e2ecda;
  --gold: #b1863f;
  --gold-bright: #d9b567;
  --gold-soft: #f1e2bd;
  --gold-ink: #9a7220; /* 纸底可读金（VIP报告同款白底金，≈4:1）；亮金 d9b567 只配深绿底 */
  --rose: #ad5c6a;
  --shadow-lg: 0 30px 70px -20px rgba(14, 32, 22, 0.35);
  --shadow-md: 0 18px 40px -14px rgba(14, 32, 22, 0.28);
  --shadow-sm: 0 8px 20px -8px rgba(14, 32, 22, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  /* 阻止 iOS 横竖屏切换时自动放大文字 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 禁止横向滚动/晃动：任何轻微溢出都不再让整屏左右抖。
     ⚠️ 用 clip 不用 hidden——hidden 会让 overflow-y 计算成 auto、html/body 变成滚动容器，
     把复盘顶栏的 position:sticky 钉不住。clip 只裁剪、不建滚动容器。hidden 兜底老浏览器。 */
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(31, 107, 69, 0.1), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(177, 134, 63, 0.12), transparent 55%),
    linear-gradient(180deg, #fdfbf4 0%, #f7f1e2 46%, #efe6d0 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* 基准字号收紧（原生浏览器默认16px偏大）：只影响没单独设 font-size 的元素，比如条目说明文字、编辑/删除按钮 */
  font-size: 15px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    background-color 220ms var(--ease),
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    color 220ms var(--ease);
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.shell {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
  /* 底部留白给固定导航条让位（桌面端现在也有导航） */
  padding: 22px 18px 116px;
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 12px;
  align-items: stretch;
  padding-bottom: 14px;
}

.masthead > div,
.date-chip {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.masthead > div {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 26px 28px;
  background:
    radial-gradient(600px 260px at 88% -30%, rgba(217, 181, 103, 0.22), transparent 60%),
    linear-gradient(150deg, var(--forest-deep) 0%, var(--forest-mid) 62%, #1c4a30 100%);
  color: #f6f1e2;
  border-color: rgba(217, 181, 103, 0.28);
  animation: cover-in 640ms var(--ease) both;
}

.masthead > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.masthead .issue-mark {
  position: absolute;
  top: 22px;
  right: 26px;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 226, 0.5);
}

.masthead h1 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 52px;
  line-height: 0.96;
  letter-spacing: -0.01em;
}

/* ===== 表头：紧凑单卡（品牌+标题+金句），不再放日期框 ===== */
.masthead.compact {
  grid-template-columns: 1fr;
  padding-bottom: 10px;
}
.masthead.compact > div {
  min-height: 0;
  padding: 18px 20px;
}
.masthead.compact .issue-mark {
  top: 16px;
  right: 18px;
  font-size: 11px;
}
.masthead.compact .kicker {
  margin: 0 0 6px;
}
.masthead.compact h1 {
  margin: 2px 0 0;
  font-size: 23px;
}
.masthead.compact .hero-quote {
  margin: 10px 0 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.55;
}

.hero-quote {
  max-width: 540px;
  margin: 14px 0 0;
  color: rgba(246, 241, 226, 0.78);
  font-family: var(--font-serif);
  font-style: normal; /* 中文没有真斜体，italic 会被机械斜切发糊 */
  letter-spacing: 0.02em;
  font-size: 15px;
  line-height: 1.6;
}

.kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.masthead .kicker {
  color: var(--gold-bright);
}

.date-chip {
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  animation: cover-in 640ms 60ms var(--ease) both;
}

.date-chip span,
label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.date-chip input,
label input,
label textarea,
label select,
.input-panel > textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  /* 16px 是 iOS 底线：更小的话，聚焦输入框时 Safari 会自动放大整页（那个"放大缩小"的烦人现象） */
  font-size: 16px;
  padding: 11px 13px;
  outline: none;
}

.date-chip input:focus,
label input:focus,
label textarea:focus,
label select:focus,
.input-panel > textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(177, 134, 63, 0.15);
}

textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.6;
}

/* ---------- Tabs ---------- */

.mode-tabs {
  position: sticky;
  top: 12px;
  z-index: 3;
  display: flex;
  gap: 3px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 247, 238, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow-sm);
  animation: cover-in 640ms 120ms var(--ease) both;
}

.mode-tabs button,
.range-toggle button {
  min-height: 40px;
  flex: 1;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 16px;
  white-space: nowrap;
}

.range-toggle {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  flex: 0 0 auto;
}

.mode-tabs button.active,
.range-toggle button.active,
.category-picker button.active {
  background: var(--forest-deep);
  color: var(--gold-soft);
  box-shadow: var(--shadow-sm);
}

/* 只用透明度进场，不带 transform——transform 会让 .tab-surface 变成包含块、
   把里面 position:sticky 的复盘顶栏"钉不住"（sticky 失效的经典坑）。 */
.tab-surface {
  animation: surface-in 380ms var(--ease) both;
}
@keyframes surface-in { from { opacity: 0; } to { opacity: 1; } }

.stats-layout { margin-top: 6px; }

.capture-grid,
.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 12px;
}

.input-panel,
.goal-panel {
  min-width: 0;
  padding: 22px;
  border-radius: 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

/* 录入页的口述面板：以前是整块深绿实底，跟下面浅色的「确认后保存」割裂、
   而且大面积深色上放输入框看着累。改成同一套宣纸底，只用一道金色左边线区分"这是输入区"。 */
.voice-panel {
  position: relative;
  overflow: hidden;
  background: var(--paper-soft);
  color: var(--ink);
  border-color: var(--line);
  border-left: 4px solid var(--gold);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
}

/* 段标题中英并排（中文为主 + 英文小字贴右），比"英文叠中文上面"省一行、更高级。
   覆盖三种同款结构：复盘/时间投向(.section-head)、人生目标投入(.goal-hero-head)、我的页(.goals-head)。 */
.section-head > div:first-child,
.goal-hero-head > div:first-child,
.goals-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.section-head > div:first-child h2,
.goal-hero-head > div:first-child h2,
.goals-head > div:first-child h2 { order: 1; margin: 0; }
.section-head > div:first-child .kicker,
.goal-hero-head > div:first-child .kicker,
.goals-head > div:first-child .kicker { order: 2; margin: 0; opacity: 0.68; font-size: 10px; }
.section-head > div:first-child .kicker::before,
.goal-hero-head > div:first-child .kicker::before,
.goals-head > div:first-child .kicker::before { display: none; }

/* 复盘：数据条进场动效（配合 runReviewReveal 的 0→目标切换，从0缓缓长出来） */
.goal-stack > i,
.bar-track > i,
.dev-bar-track > i,
.dev-comp-track > i {
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 主页"接下来已定"：跟小柳定的明天/后天三件事，免得只显示今天、看不见以为丢了 */
.future-plans { margin: 14px 0 0; }
.future-plans .fp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 9px; }
.future-plans .fp-head b { font-family: var(--font-serif); font-size: 15px; font-weight: 800; color: var(--ink); }
.future-plans .fp-head small { color: var(--muted); font-size: 11px; font-weight: 600; text-align: right; }
.fp-day { display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(31,107,69,0.045); cursor: pointer; }
.fp-day:active { opacity: 0.65; }
.fp-day-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fp-when { font-family: var(--font-serif); font-size: 14px; font-weight: 800; color: var(--forest); }
.fp-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.fp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fp-list li { display: flex; align-items: center; gap: 8px; }
.fp-list li i { font-style: normal; font-size: 13px; opacity: 0.65; }
.fp-list li span { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fp-list li em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.fp-list li .fp-mg { font-size: 11px; font-weight: 700; color: var(--gold-ink); }
/* 未来三件事：编辑入口 + 行内编辑器 */
.fp-day { cursor: default; }
.fp-edit { flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper); color: var(--forest); font-weight: 700; font-size: 12.5px; padding: 4px 13px; border-radius: 999px; cursor: pointer; }
.fp-edit:active { opacity: 0.65; }
.fp-day.is-editing { background: rgba(251, 247, 238, 0.6); }
.fp-day.is-editing .fp-day-top small { color: var(--muted); font-size: 11px; font-weight: 600; }
.fp-day .mit-inputs { display: grid; gap: 8px; margin-bottom: 12px; }
.fmit-est { flex: 0 0 auto; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink); padding: 0 8px; max-width: 108px; }
.fmit-actions { display: flex; gap: 10px; }
.fmit-actions .primary { flex: 1; }
/* 日历里"未来已定三件事"那天：可点 + 金点标记 */
.jcal-day.has-plan { opacity: 1; cursor: pointer; }
.jcal-day.has-plan > i { background: var(--gold); opacity: 1; }

/* 复盘顶栏（复盘 + 今天/本周/本月/全部）钉在顶部：滑到哪都知道在看哪个范围、随时切换 */
.review-topbar {
  position: sticky; top: 0; z-index: 6;
  margin: -22px -18px 10px;
  padding: calc(env(safe-area-inset-top) + 12px) 18px 10px;
  background: var(--paper-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

/* 三件事·完成率走势：每天一根柱（高＝完成率），柱色＝当天偏差 */
.mit-trend { margin: 12px 0 4px; padding: 12px 13px; border-radius: 12px; background: rgba(31,107,69,0.04); border: 1px solid var(--line); }
.mt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mt-head b { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.mt-head span { font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; }
.mt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mt-svg { display: block; height: auto; }
.mt-svg .mt-val { fill: var(--forest-deep); font-size: 10.5px; font-weight: 800; font-family: Inter, sans-serif; }
.mt-svg .mt-xlab { fill: var(--muted); font-size: 9.5px; font-weight: 700; font-family: Inter, sans-serif; }
.mt-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 11px; }
.mt-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.mt-legend i { width: 9px; height: 9px; border-radius: 2px; }

.section-head h2,
.input-panel h2,
.goal-panel h2,
.empty-state h2 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  letter-spacing: 0;
}

.section-head h2,
.input-panel h2,
.goal-panel h2 {
  font-size: 20px;
  line-height: 1.25;
}

.panel-copy,
.body-copy,
.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.voice-panel .panel-copy {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-serif);
  font-style: italic;
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.sample-row button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.sample-row button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.capture-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 46px;
  gap: 7px;
  margin: 14px 0;
}

.capture-status span,
.capture-status button {
  min-height: 46px;
  border-radius: 14px;
}

.capture-status span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(21, 22, 15, 0.03);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.capture-status strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 15px;
}

.capture-status button {
  position: relative;
  border: none;
  background: var(--forest);
  color: #fbf7ee;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(31, 107, 69, 0.4);
  animation: pulse-ring 2.6s ease-in-out infinite;
}

.voice-panel > textarea {
  /* 整天口述要装下一大段，框做高些，别把最早的上文折叠看不见 */
  min-height: 208px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 14px;
}

.voice-panel textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(177, 134, 63, 0.15);
}

.input-panel label,
.goal-editor label {
  display: block;
  margin-top: 13px;
}

.draft-ready {
  margin-top: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(31, 107, 69, 0.18);
  border-radius: 12px;
  background: var(--forest-soft);
  color: var(--forest-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  animation: rise 320ms var(--ease) both;
}

.action-row,
.duration-row,
.row-actions,
.range-toggle {
  display: flex;
  gap: 8px;
}

.action-row {
  flex-wrap: wrap;
  margin-top: 12px;
}

.text-button,
.primary,
.save-button,
.gap-body button,
.row-actions button,
.duration-row button,
.action-row button {
  flex: 1 1 112px;
  min-height: 40px;
  border-radius: 12px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
}

.primary,
.text-button {
  border: none;
  background: var(--forest-deep);
  color: var(--gold-soft);
}

.primary:hover,
.text-button:hover {
  background: #123422;
}

.category-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.category-picker button {
  min-height: 46px;
  border-radius: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.category-picker button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--forest-deep);
}

.category-picker span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* 🔴 窄屏（小 iPhone / 微信里放大字号）上，input[type=time] 的固有宽度会顶破 1fr 列——
   grid 子项默认 min-width:auto，撑破了容器右边。列改 minmax(0,1fr)、子元素显式 min-width:0。 */
.time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 11px;
}

.time-grid label,
.time-grid label input {
  min-width: 0;
  max-width: 100%;
}

/* 时间输入：时间大、日期小（改记录多数是挪时间，不是改日期）
   ⚠️ 日期框字号必须留在 16px，iOS 聚焦小于 16px 的输入框会自动放大整页；只能靠高度/配色弱化 */
.time-grid label input.time-primary {
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  letter-spacing: 0.01em;
}

.time-grid label input.date-secondary {
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  margin-top: 5px;
  padding: 2px 8px;
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.draft-ready.is-editing {
  border-color: rgba(177, 134, 63, 0.32);
  background: rgba(217, 181, 103, 0.12);
  color: #6f5320;
}

/* 口述胶囊：收起态。两个模式并排，点哪个展开哪个。 */
.voice-capsule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 12px;
}

.voice-capsule button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(177, 134, 63, 0.35);
  background: linear-gradient(150deg, rgba(31, 107, 69, 0.06), rgba(177, 134, 63, 0.09));
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 800;
}

/* 首页版：日期条下面就摆着，不用先按＋才找得到入口 */
.voice-capsule.home {
  margin: 2px 0 16px;
}

.voice-capsule button:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.voice-capsule button i {
  font-style: normal;
  font-size: 16px;
}

.voice-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.voice-panel-head h2 { margin-top: 1px; }

.voice-collapse {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.voice-collapse:hover { border-color: var(--forest); color: var(--forest); }

/* 整天口述：模式切换 + 草稿卡片列表 */
.voice-mode-toggle {
  width: 100%;
  margin: 14px 0 2px;
}

/* 草稿列表比面板本身更需要横向空间：用负边距把面板的内边距借回来一部分，
   否则四层嵌套下来输入框只剩 268px，看着又挤又贴边。 */
.voice-draft-list #importVoiceSegments {
  /* 🔴 .voice-draft-list 是竖向 flex，通用按钮规则里的 flex:1 1 112px 会让
     flex-basis 落在主轴=高度上，把按钮撑成 112px 高。这里必须显式取消。 */
  flex: 0 0 auto;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 20px -10px rgba(31, 107, 69, 0.5);
}

.voice-draft-list #importVoiceSegments:disabled {
  background: var(--line);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}

.voice-draft-list {
  margin: 16px -8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-draft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.voice-draft-toolbar-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

/* 「全选 / 全不选」是三个字，默认会被挤成两行 */
.voice-draft-toolbar-actions .text-button {
  min-height: 32px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12.5px;
}

/* 草稿行：折叠态只有两行（时间/时长/分类 + 标题），点开才展开表单。
   拆出七八段时，折叠态一屏能看完，不用翻十几屏。 */
.vd-row {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--gold));
  overflow: hidden;
  animation: rise 220ms var(--ease) both;
}

.vd-row.is-off {
  opacity: 0.45;
}

.vd-row.is-open {
  background: #fff;
  border-color: rgba(177, 134, 63, 0.42);
  box-shadow: var(--shadow-sm);
}

.vd-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
}

.vd-head input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0;
}

.vd-summary {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  color: inherit;
}

.vd-line1 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.vd-line1 b {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.vd-line1 b em {
  font-style: normal;
  font-size: 10px;
  color: var(--gold);
  vertical-align: super;
}

.vd-line1 i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.vd-line1 u {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  color: #fbf7ee;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.vd-line2 {
  display: block;
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-caret {
  flex: 0 0 auto;
  align-self: center;
  width: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.vd-conflict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 5px 12px 9px;
  color: var(--rose);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}

.vd-conflict > span {
  min-width: 0;
}

/* 一键对齐：绝大多数"重叠"只差十来分钟，手动改时间要点开卡片、改两个框，太重了 */
.vd-fix {
  flex: 0 0 auto;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(173, 92, 106, 0.45);
  background: rgba(173, 92, 106, 0.08);
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.vd-fix:hover {
  background: rgba(173, 92, 106, 0.16);
  border-color: var(--rose);
}

.vd-edit {
  padding: 0 11px 12px;
  animation: rise 200ms var(--ease) both;
}

/* 草稿卡里已经套了三层内边距，输入框只剩 268px。开始/结束并排能省掉一半高度，
   控件也整体收小——这里是"核对"不是"填表"，多数时候一眼扫过就过了。 */
/* 🔴 又是 grid 的 min-width:auto：1fr 1fr 挡不住输入框的固有宽度，
   第二栏会被卡片的 overflow:hidden 切掉半截。必须 minmax(0,1fr) + 输入框 min-width:0。 */
.vd-edit .time-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.vd-edit .time-grid label,
.vd-edit .time-grid label input {
  min-width: 0;
}

.vd-edit .time-grid label input.date-secondary {
  font-size: 16px;
  padding: 2px 4px;
}

.vd-edit .time-grid label input.time-primary {
  min-height: 42px;
  margin-top: 5px;
  font-size: 18px;
}

.vd-edit .time-grid label input.date-secondary {
  min-height: 30px;
  margin-top: 4px;
  padding: 2px 6px;
  font-size: 16px;
}

.vd-edit label {
  margin-top: 10px;
  font-size: 11px;
}

.vd-edit input,
.vd-edit select,
.vd-edit textarea {
  min-height: 40px;
  margin-top: 5px;
  padding: 8px 11px;
}

.vd-edit select { min-height: 42px; }

.vd-edit textarea {
  min-height: 54px;
}

/* 时长快选：从"换行铺两排"改成一行横向滚动，篇幅小很多，滑一下就到 180m */
.duration-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  gap: 7px;
  margin-top: 10px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.duration-row::-webkit-scrollbar { display: none; }

.duration-row button {
  flex: 0 0 auto;
  min-height: 38px;
  scroll-snap-align: start;
  background: rgba(31, 107, 69, 0.06);
  color: var(--forest-deep);
  border-color: rgba(31, 107, 69, 0.14);
}

.duration-row .dur-now {
  flex: 0 0 auto;
  padding: 0 14px;
}

.duration-row button:hover {
  background: rgba(31, 107, 69, 0.12);
}

.save-button {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--forest) 0%, #164f34 100%);
  color: #fbf7ee;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 30px -12px rgba(31, 107, 69, 0.5);
}

.save-button:hover {
  box-shadow: 0 22px 36px -12px rgba(31, 107, 69, 0.58);
}

.confirm-panel {
  padding-bottom: 20px;
}

.confirm-panel .category-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.confirm-panel .category-picker button {
  min-height: 42px;
  gap: 4px;
  padding: 0 6px;
}

.confirm-panel .duration-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.confirm-panel .duration-row button {
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
}

/* 「结束＝现在」按钮：金色，跨两列更醒目 */
.duration-row .dur-now {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: none;
  color: var(--forest-deep);
  font-weight: 800;
}

.confirm-panel .duration-row .dur-now {
  grid-column: span 2;
}

.confirm-panel textarea {
  min-height: 74px;
}

.storage-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.storage-facts span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 1px solid rgba(31, 107, 69, 0.14);
  border-radius: 12px;
  background: rgba(31, 107, 69, 0.06);
  color: var(--forest-deep);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Member-code gate ---------- */

/* 开屏：整屏满绿，内容直接铺上去（不再是"卡中卡"） */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 320px at 82% -12%, rgba(217, 181, 103, 0.18), transparent 62%),
    linear-gradient(160deg, var(--forest-deep) 0%, var(--forest-mid) 60%, #1c4a30 100%);
}

.gate-card {
  width: min(440px, 100%);
  padding: clamp(28px, 6vw, 44px);
  border: none;
  background: none;
  box-shadow: none;
  color: #f6f1e2;
  animation: cover-in 640ms var(--ease) both;
}

.gate-card .kicker {
  color: var(--gold-bright);
}

.gate-card h1 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
}

.gate-quote {
  margin: 14px 0 26px;
  color: rgba(246, 241, 226, 0.72);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
}

.gate-field {
  display: block;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gate-field input {
  width: 100%;
  margin-top: 8px;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(217, 181, 103, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #f6f1e2;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  outline: none;
  text-transform: uppercase;
}

.gate-field input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(217, 181, 103, 0.16);
}

.gate-field input::placeholder {
  color: rgba(246, 241, 226, 0.4);
  letter-spacing: 0.08em;
}

.gate-error {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(173, 92, 106, 0.22);
  border: 1px solid rgba(229, 154, 169, 0.4);
  color: #f4d7dd;
  font-size: 13px;
  font-weight: 600;
}

.gate-enter {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--forest-deep);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 30px -12px rgba(217, 181, 103, 0.6);
}

.gate-enter:hover {
  transform: translateY(-2px);
}

.gate-hint {
  margin: 18px 0 0;
  color: rgba(246, 241, 226, 0.5);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Quick log (2-tap) ---------- */

.quick-log {
  padding: 20px;
  margin-bottom: 12px;
  border-radius: 20px;
  border: 1px solid rgba(217, 181, 103, 0.3);
  background:
    radial-gradient(500px 200px at 90% -20%, rgba(217, 181, 103, 0.16), transparent 60%),
    linear-gradient(160deg, var(--forest-deep) 0%, #16351f 100%);
  color: #f6f1e2;
  box-shadow: var(--shadow-md);
  animation: rise 420ms var(--ease) both;
}

.quick-log-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.quick-log-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
}

.quick-log .kicker {
  color: var(--gold-bright);
}

.quick-span {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 181, 103, 0.32);
  background: rgba(217, 181, 103, 0.1);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.quick-tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 76px;
  padding: 12px 6px 10px;
  border: 1px solid rgba(246, 241, 226, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  color: #f6f1e2;
  transition: transform 160ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.quick-tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.quick-tile:active {
  transform: scale(0.96);
}

.quick-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent);
}

.quick-tile b {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.quick-tile small {
  color: rgba(246, 241, 226, 0.55);
  font-size: 10.5px;
  font-weight: 600;
}

.quick-hint {
  margin: 14px 0 0;
  color: rgba(246, 241, 226, 0.56);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Week strip ---------- */

.week-strip {
  margin-bottom: 16px;
}

.week-strip-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.week-nav {
  min-height: 26px;
  min-width: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--forest-deep);
  font-size: 16px;
  line-height: 1;
}

.week-nav:hover {
  background: rgba(31, 107, 69, 0.1);
}

.week-strip-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week-day {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 2px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.week-day small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.week-day-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(var(--forest) calc(var(--coverage, 0%)), var(--line) 0);
}

.week-day-ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--paper-soft);
}

.week-day-ring em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
}

.week-day.is-today .week-day-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  z-index: 2;
  box-shadow: 0 0 0 2px var(--paper-soft);
}

.week-day.active {
  border-color: var(--forest-deep);
  background: var(--forest-deep);
  box-shadow: var(--shadow-sm);
}

.week-day.active small {
  color: rgba(246, 241, 226, 0.68);
}

.week-day.active .week-day-ring::before {
  background: var(--forest-deep);
}

.week-day.active .week-day-ring em {
  color: var(--gold-soft);
}

/* ---------- Ledger view toggle / day tools / week ledger ---------- */

.ledger-view-toggle {
  flex: 0 0 auto;
}

.day-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.day-tools-hint {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-serif);
}

.day-tools .text-button {
  flex: 0 0 auto;
  min-width: 120px;
}

.week-ledger {
  display: grid;
  gap: 20px;
}

.week-day-group {
  display: grid;
  gap: 10px;
}

.week-day-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  font-family: var(--font-serif);
}

.week-day-group-head:hover {
  border-color: var(--line-strong);
}

.week-day-group.current .week-day-group-head {
  border-color: var(--forest-deep);
  background: var(--forest-soft);
}

.week-day-group-head strong {
  font-size: 13.5px;
}

.week-day-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
}

/* ---------- Floating action button ---------- */

.fab {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--forest-deep);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 20px 38px -12px rgba(177, 134, 63, 0.62), var(--shadow-md);
  transition:
    transform 260ms var(--ease),
    background 260ms var(--ease),
    color 260ms var(--ease);
}

.fab:hover {
  transform: translateY(-2px) scale(1.04);
}

.fab.is-close {
  background: var(--forest-deep);
  color: var(--gold-soft);
  transform: rotate(90deg);
  font-size: 26px;
}

.fab.is-close:hover {
  transform: rotate(90deg) scale(1.04);
}

/* ---------- Ledger / timeline ---------- */

.timeline {
  display: grid;
  gap: 11px;
}

.ledger-row,
.gap-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 11px;
  opacity: 0;
  animation: rise 480ms var(--ease) forwards;
}

.timeline > :nth-child(1) { animation-delay: 40ms; }
.timeline > :nth-child(2) { animation-delay: 90ms; }
.timeline > :nth-child(3) { animation-delay: 140ms; }
.timeline > :nth-child(4) { animation-delay: 190ms; }
.timeline > :nth-child(5) { animation-delay: 240ms; }
.timeline > :nth-child(6) { animation-delay: 290ms; }
.timeline > :nth-child(n + 7) { animation-delay: 320ms; }

.time-rail {
  display: grid;
  align-content: space-between;
  min-height: 74px;
  padding: 10px 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-right: 1px dashed var(--line-strong);
}

/* 跨夜条目：起止时间和别的日子不一样，得标出日期，别让人误以为是"今天这个点" */
.time-rail em {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.02em;
}

.cross-day-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(173, 92, 106, 0.1);
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
}

.entry-body,
.gap-body,
.clean-line,
.empty-state {
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  background: var(--paper-soft);
  border-left: 4px solid var(--accent, var(--forest));
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.ledger-row:hover .entry-body {
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}

.gap-body {
  border-left-color: var(--gold);
  background: repeating-linear-gradient(
    -45deg,
    rgba(177, 134, 63, 0.06),
    rgba(177, 134, 63, 0.06) 8px,
    rgba(177, 134, 63, 0.1) 8px,
    rgba(177, 134, 63, 0.1) 16px
  );
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.gap-body strong {
  font-family: var(--font-serif);
  color: #7a5424;
}

/* 条目默认两行（标题 / 分类·时长）。编辑删除藏在「⋯」后面，一屏能多看几段。 */
.entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.entry-top strong {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.35;
}

.row-more {
  flex: 0 0 auto;
  min-height: 0;
  margin: -4px -4px 0 0;
  padding: 0 8px;
  height: 26px;
  line-height: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 8px;
}

.row-more:hover,
.ledger-row.is-open .row-more {
  background: rgba(21, 22, 15, 0.06);
  color: var(--ink);
}

.entry-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.entry-body p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  animation: rise 180ms var(--ease) both;
}

.row-actions button {
  flex: 1;
  min-height: 36px;
}

.row-actions button {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  font-weight: 600;
}

.row-actions button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.clean-line,
.empty-state {
  border-left-color: var(--forest);
  color: var(--muted);
}

/* ---------- Stats · 图表切换 + 饼图 ---------- */

.chart-switch {
  display: inline-flex;
  margin: 12px 0 6px;
}

/* ---------- 我的 · 个人信息 ---------- */

/* 统一栈间距：块与块之间一律 14px。别再让各块自带 margin 拼接——
   谁少写一个 margin-bottom 就会贴死一处（方法论卡和同步面板就是这么粘上的）。 */
.my-stack {
  display: grid;
  gap: 14px;
}

.my-stack > * {
  margin: 0 !important;
}

.profile-card {
  /* 🔴 改成块级：里面的 个人信息 / 生日 / 人生目标 要竖着堆，不能横排（旧的 flex 会把它们挤成一行） */
  display: block;
  padding: 18px;
  margin-bottom: 12px;
  border-radius: 20px;
  border: 1px solid rgba(217, 181, 103, 0.28);
  background: linear-gradient(150deg, var(--forest-deep) 0%, var(--forest-mid) 68%, #1c4a30 100%);
  color: #f6f1e2;
  box-shadow: var(--shadow-sm);
  animation: rise 420ms var(--ease) both;
}

/* 深绿卡里的分隔线/次要字用浅色，别用给浅底设计的深色 */
.profile-card .profile-meta,
.profile-card .profile-goals,
.profile-card .pf-goals {
  border-top-color: rgba(217, 181, 103, 0.2);
}

.profile-card .pm-label { color: rgba(246, 241, 226, 0.6); }
.profile-card .pm-val,
.profile-card .pm-empty { color: rgba(246, 241, 226, 0.9); }
.profile-card .goals-list li { color: #f6f1e2; }
.profile-card .profile-code { color: rgba(246, 241, 226, 0.82); }

/* 编辑态字段在深绿底上：标签浅色，输入框仍是浅底深字 */
.profile-card.is-editing .kicker,
.profile-card.is-editing h2 { color: #f6f1e2; }
.profile-card.is-editing .pf-field { color: rgba(246, 241, 226, 0.72); }
.profile-card .text-button { color: var(--gold-bright); border-color: rgba(217, 181, 103, 0.45); }
.profile-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--forest-deep);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 19px;
}
.profile-info h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
}
.profile-info p {
  margin: 4px 0 0;
  color: rgba(246, 241, 226, 0.68);
  font-size: 12px;
}
.profile-code {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(217, 181, 103, 0.16);
  border: 1px solid rgba(217, 181, 103, 0.3);
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- 人生目标：折叠只读 / 展开编辑 ---------- */

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

.goals-head h2 {
  margin-top: 1px;
}

/* 折叠态的「编辑」是次要动作，做成小幽灵按钮；
   .text-button 默认是深绿实底的主按钮样式，直接用会比标题还抢眼 */
.goals-head .text-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.goals-head .text-button:hover {
  border-color: var(--forest);
  background: transparent;
  color: var(--forest);
}

.goals-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.goals-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
}

.goal-editor {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.goal-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-edit-row input {
  flex: 1;
  min-width: 0;
}

.goal-remove {
  flex: 0 0 auto;
  width: 38px;
  min-height: 44px;
  padding: 0;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.goal-remove:hover {
  border-color: rgba(173, 92, 106, 0.4);
  color: var(--rose);
}

.goal-add {
  width: 100%;
  margin-top: 10px;
  min-height: 42px;
  border-style: dashed;
  background: transparent;
  color: var(--forest);
  font-weight: 700;
}

.goal-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.goals-actions {
  margin-top: 14px;
}

.goals-actions .primary {
  flex: 1;
}

/* ===== 中期目标（半年~三年）：卡片 + 时间线进度条 ===== */
.midgoals-list {
  display: grid;
  gap: 12px;
  margin-top: 13px;
}
.midgoal {
  padding: 13px 14px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.5);
}
.midgoal .mg-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.midgoal .mg-top b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}
.midgoal .mg-dl {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-ink);
  white-space: nowrap;
}
/* 时间线：随日子推进不断靠近截止（填充=已过去的时间比例） */
.mg-bar {
  position: relative;
  height: 8px;
  margin: 10px 0 7px;
  border-radius: 999px;
  background: var(--forest-soft);
  overflow: hidden;
}
.mg-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--gold-bright));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.mg-bar > i.over {
  background: linear-gradient(90deg, var(--gold), var(--rose));
}
.mg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.mg-foot .over {
  color: var(--rose);
  font-weight: 700;
}
/* 编辑态：名字一行 + 截止日一行 */
.midgoal-edit-row {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.45);
}
.mg-edit-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mg-edit-line input {
  flex: 1;
  min-width: 0;
}
.mg-dl-edit {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.mg-dl-edit input[type="date"] {
  flex: 1;
  min-width: 0;
}

/* ===== 复盘·目标三层：长期/中期/短期 尺度标签 + 中期投入行 ===== */
.tier-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--paper);
  border-radius: 7px;
  padding: 2px 7px;
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1.5px);
}
.tier-tag.t-long { background: var(--forest); }
.tier-tag.t-mid { background: var(--gold); }
.tier-tag.t-short { background: var(--muted); }
.midgoal-review .midgoals-list { margin-top: 12px; }
/* 复盘里的中期卡：只讲这段投了多少 + 投在哪几件事 */
.mg-rev { padding: 13px 14px; }
.mg-rev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mg-rev-top b { font-size: 15px; font-weight: 800; color: var(--ink); }
.mg-rev-sum { flex: 0 0 auto; font-size: 16px; font-weight: 800; color: var(--forest); font-variant-numeric: tabular-nums; }
.mg-rev-sum.zero { color: var(--muted); }
.mg-things { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.mg-thing { font-size: 12.5px; color: #4a4436; }
.mg-thing b { color: var(--forest); font-weight: 800; }
.mg-none { font-size: 12.5px; color: var(--muted); }

/* 会员价格牌（只网页显示）：纯展示 ¥888/年，不带支付 */
.member-price { margin-top: 12px; padding: 15px 16px; border: 1px solid rgba(217, 181, 103, 0.45); border-radius: 16px; background: linear-gradient(150deg, rgba(217, 181, 103, 0.13), rgba(31, 107, 69, 0.06)); }
.member-price .mp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-price h3 { margin: 2px 0 0; font-family: var(--font-serif); font-size: 16px; font-weight: 800; color: var(--ink); }
.mp-amt { flex: 0 0 auto; display: flex; align-items: baseline; gap: 3px; color: var(--gold-ink); }
.mp-amt b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.mp-amt small { font-size: 13px; font-weight: 700; }
.mp-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.mp-note b { color: var(--forest); font-weight: 800; }

/* 「我的」页最底部：方法论介绍页入口（也是可以直接转给学员的一页） */
.method-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 17px 18px;
  border-radius: 18px;
  border: 1px solid rgba(217, 181, 103, 0.35);
  background: linear-gradient(150deg, rgba(31, 107, 69, 0.07), rgba(177, 134, 63, 0.1));
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.method-link-text {
  flex: 1;
  min-width: 0;
}

.method-link b {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
}

.method-link small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.method-link-arrow {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}

.voice-tip {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.stat-pie {
  margin: 8px 0 6px;
  animation: rise 420ms var(--ease) both;
}
.stat-pie svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.stat-pie text {
  font-family: var(--font-serif);
}

/* ---------- Stats · 战略目标投入（置顶，打开统计第一眼就看到）---------- */

.goal-hero {
  margin: 2px 0 18px;
  padding: 15px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(31, 107, 69, 0.07), rgba(177, 134, 63, 0.07));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: rise 380ms var(--ease) both;
}

.goal-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.goal-hero-head h2 {
  margin: 1px 0 0;
  font-size: 18px;
}

.goal-hero-score {
  text-align: right;
  line-height: 1.15;
}

.goal-hero-score strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--forest);
}

.goal-hero-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.goal-stack {
  display: flex;
  height: 12px;
  margin: 12px 0 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(21, 22, 15, 0.07);
}

.goal-stack i {
  display: block;
  height: 100%;
  transition: width 560ms var(--ease);
}

.goal-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.goal-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 30px;
  font-size: 13.5px;
}

.goal-line.is-zero {
  opacity: 0.45;
}

.goal-line.is-muted .goal-name {
  color: var(--muted);
  font-weight: 600;
}

.goal-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
}

.goal-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-line strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
}

.goal-line em {
  min-width: 38px;
  text-align: right;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.goal-hero-empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- Stats · 横向条状（一屏看清时间投向）---------- */

.stats-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 12px;
}
.stats-total strong {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
}
.stats-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stack-bar {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stack-bar i {
  display: block;
  height: 100%;
}

.stats-bars {
  display: grid;
  gap: 14px;
}
.bar-row.is-zero {
  opacity: 0.38;
}
.bar-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.bar-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent);
}
.bar-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13.5px;
}
.bar-pct {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.bar-val {
  min-width: 58px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(21, 22, 15, 0.07);
  overflow: hidden;
}
.bar-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 999px;
  transition: width 520ms var(--ease);
}

/* ---------- Stats · 旧饼图（保留样式但已不用）---------- */

.donut {
  position: relative;
  width: 264px;
  max-width: 70vw;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 10px auto 0;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
  animation: donut-in 620ms var(--ease) both;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 10px rgba(0, 0, 0, 0.05);
}

.donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
}

.legend-list,
.goal-panel {
  display: grid;
  gap: 10px;
}

.legend-row,
.goal-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.legend-row i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.legend-row strong,
.goal-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.goal-panel {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.goal-row {
  grid-template-columns: minmax(0, 110px) 1fr auto;
}

.goal-row span {
  font-weight: 700;
  font-family: var(--font-serif);
}

.goal-row div {
  height: 8px;
  background: rgba(31, 107, 69, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.goal-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--gold-bright));
  border-radius: 8px;
  transition: width 620ms var(--ease);
}

/* ---------- Nav / toast ---------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  /* 🔴 桌面端也要有导航（记录/统计/报告/我的）：原来 display:none 只在手机媒体查询里打开，
     浏览器打开就一个 tab 都没有。默认就显示，桌面下面再做成居中悬浮条。 */
  display: grid;
  /* 四个 tab：记录 / 日记 / 复盘 / 我的 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  border: none;
  border-top: 1px solid var(--line);
  /* 实底、贴死最下面：不透明背景，滑动时内容不会从下方穿过（消除"镂空"感）*/
  background: var(--paper);
  box-shadow: 0 -10px 26px -14px rgba(14, 32, 22, 0.22);
}

.bottom-nav button {
  min-height: 54px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.bottom-nav span {
  display: block;
  margin-bottom: 2px;
  color: var(--forest-deep);
  font-size: 17px;
}

.bottom-nav button.active {
  background: var(--forest-deep);
  color: var(--gold-soft);
}

.bottom-nav button.active span {
  color: var(--gold-bright);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 9;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--forest-deep);
  color: var(--gold-soft);
  border: 1px solid rgba(217, 181, 103, 0.3);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  animation: toast-in 320ms var(--ease) both;
}

.toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(217, 181, 103, 0.25);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cover-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes donut-in {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 107, 69, 0.35);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(31, 107, 69, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 720px) {
  .shell {
    /* 内容整体往中间收一点：外边距加大，卡片不再贴着屏幕边 */
    padding: 14px 26px 116px;
  }

  .masthead {
    grid-template-columns: 1fr;
  }

  .masthead > div {
    min-height: 150px;
    padding: 22px;
  }

  .masthead h1 {
    font-size: 42px;
  }

  .hero-quote {
    max-width: 320px;
    font-size: 14px;
  }

  .date-chip {
    min-width: 0;
    padding: 14px 16px;
  }

  .mode-tabs {
    display: none;
  }

  .fab {
    right: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .range-toggle {
    overflow-x: auto;
    max-width: 100%;
  }

  .range-toggle button {
    padding: 0 11px;
    font-size: 12px;
  }

  .week-day-ring {
    width: 28px;
    height: 28px;
  }

  .capture-grid,
  .stats-layout {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .capture-status {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
  }

  .input-panel,
  .goal-panel {
    /* 外边距加大了，这里相应收窄，保证卡片里的可用宽度没被吃掉 */
    padding: 15px;
    border-radius: 18px;
  }

  .section-head {
    display: grid;
  }

  /* .entry-top 手机上要保持 flex：标题在左、「⋯」贴右边。
     以前这里跟 section-head 一起被改成 grid（那时右边是会换行的"分类·时长"文字），
     现在右边是个按钮，grid 会把它挤到下一行居中，很难看。 */

  .section-head h2,
  .input-panel h2,
  .goal-panel h2 {
    font-size: 19px;
  }

  .voice-panel > textarea {
    min-height: 128px;
  }

  .category-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 10 个分类：手机上两列会摞成五行太长，三列刚好装下全名 */
  .confirm-panel .category-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .confirm-panel .category-picker button {
    min-height: 42px;
    gap: 5px;
    padding: 0 6px;
    font-size: 12.5px;
  }

  .confirm-panel .duration-row {
    display: flex;
    gap: 8px;
  }

  .confirm-panel .duration-row button {
    min-height: 38px;
    padding: 0 12px;
  }

  .confirm-panel textarea {
    min-height: 104px;
  }

  .bottom-nav {
    display: grid;
  }

  .ledger-row,
  .gap-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .time-rail {
    font-size: 11.5px;
  }

  .goal-row {
    grid-template-columns: 86px 1fr auto;
    font-size: 13px;
  }
}


/* ---------- Report · 周报/月报（柳比歇夫四步里的「做分析」）---------- */

.report-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 14px;
}

.report-nav button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.report-nav button:disabled {
  opacity: 0.32;
  cursor: default;
  transform: none;
}

.report-nav span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* AI 点评卡：不同结论给不同色温，一眼知道这周是好是坏 */
.review-card {
  margin-bottom: 16px;
  padding: 17px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  animation: rise 380ms var(--ease) both;
}

.review-card h3 {
  margin: 2px 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.review-card.tone-good { border-color: rgba(31, 107, 69, 0.32); background: linear-gradient(150deg, rgba(31, 107, 69, 0.09), rgba(255, 255, 255, 0.6)); }
.review-card.tone-warn { border-color: rgba(177, 134, 63, 0.36); background: linear-gradient(150deg, rgba(217, 181, 103, 0.14), rgba(255, 255, 255, 0.6)); }
.review-card.tone-bad  { border-color: rgba(173, 92, 106, 0.34); background: linear-gradient(150deg, rgba(173, 92, 106, 0.11), rgba(255, 255, 255, 0.6)); }

/* 小柳点评的金句块（复盘卡 + 时间日记通用）：金边引用条，跟日签一个调性 */
.review-quote, .jnarr-quote {
  margin: 12px 0 4px; padding: 10px 14px;
  border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0;
  background: rgba(177, 134, 63, 0.09);
  font-family: var(--font-serif); font-weight: 700; font-size: 14.5px;
  color: var(--forest-deep); line-height: 1.6;
}
/* 时间日记点评：精致段落 + 凌晨自动生成小标 */
.jnarr-body p { margin: 0 0 9px; line-height: 1.72; font-size: 14.5px; color: var(--ink); }
.jnarr-body p:last-child { margin-bottom: 0; }
.jnarr-auto { margin-left: 8px; font-size: 10px; font-weight: 800; color: var(--gold-ink); background: rgba(154, 114, 32, 0.12); padding: 2px 8px; border-radius: 999px; letter-spacing: 0.02em; }

.review-evidence {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.review-action {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(21, 22, 15, 0.05);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.review-action span {
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.review-plan {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  margin-bottom: 9px;
  border-radius: 12px;
  background: rgba(177, 134, 63, 0.1);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}
.review-plan span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.review-card .text-button {
  margin-top: 11px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.review-card.is-empty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card.is-empty b { display: block; font-family: var(--font-serif); font-size: 14.5px; font-weight: 800; }
.review-card.is-empty small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.review-card.is-empty .primary { flex: 0 0 auto; min-height: 40px; padding: 0 15px; border-radius: 12px; font-size: 13px; }
.review-card.is-loading p { margin: 0; color: var(--muted); font-size: 13.5px; }

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

.report-figures div {
  padding: 13px 10px;
  border-radius: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.report-figures strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.report-figures span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

/* 环比数字：在报告顶部三宫格里单独占一行，别跟"净投入"挤同一行折行 */
.report-figures .delta {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.delta { font-style: normal; font-weight: 800; }
.delta.up { color: var(--forest); }
.delta.down { color: var(--rose); }

.report-block {
  margin-bottom: 16px;
  padding: 16px 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.report-block h3 {
  margin: 0 0 11px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
}

.report-block h3 b { color: var(--forest); }
.report-block .goal-stack { margin-top: 0; }

.report-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.report-swing { display: grid; gap: 8px; }

.swing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(21, 22, 15, 0.04);
}

.swing span { color: var(--muted); font-size: 12px; font-weight: 600; }
.swing b { font-family: var(--font-serif); font-size: 14.5px; font-weight: 800; }
.swing strong { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14px; }
.swing.up strong { color: var(--forest); }
.swing.down strong { color: var(--rose); }

/* 🔴 grid 子项默认 min-width:auto，里面的 flex 行会被长标题撑破、溢出到卡片外面。
   grid-template-columns 用 minmax(0,1fr) + 行本身 min-width:0，才会真的去挤压标题。 */
.report-events {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.report-event {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 34px;
  font-size: 13.5px;
}

.report-event i {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--gold-soft);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.report-event span {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-event strong { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.report-event em { min-width: 36px; text-align: right; font-style: normal; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- 首页改版：第一屏＝主题 + 两张录入卡，别的都往后站 ---------- */

/* 表头最后一行：今天已经记下来的时间。一进来第一眼就是"我今天被记录了多少"，
   这是"这 App 是干啥的"的答案，比任何说明文字都直接。 */
.today-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 181, 103, 0.22);
}

.today-pulse div {
  min-width: 0;
}

.today-pulse strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

/* 累计数字里的 .cnt（滚动的那部分）和单位 h */
.today-pulse strong .cnt {
  font: inherit;
  color: inherit;
}

.today-pulse strong i {
  font-style: normal;
  font-size: 0.62em;
  font-weight: 700;
  margin-left: 1px;
  opacity: 0.8;
}

.today-pulse span {
  display: block;
  margin-top: 3px;
  color: rgba(246, 241, 226, 0.62);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 两张录入卡：首页的主行动，做大做清楚 */
.capture-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px; /* 首页各块统一 14px 间距（原来 18px 跟 MIT/fold 不齐） */
}

.capture-card {
  display: block;
  min-width: 0;
  padding: 16px 14px 15px;
  border-radius: 18px;
  text-align: left;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.capture-card:hover {
  border-color: rgba(31, 107, 69, 0.34);
  box-shadow: var(--shadow-md);
}

.cc-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 11px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--forest-deep), var(--forest-mid));
  color: var(--gold-bright);
}

.cc-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.capture-card b {
  display: block;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
}

.capture-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
}

/* 视图切换 + 时间段导航合成一行：切"按天"右边就是那一天，切"按周"右边就是那一周 */
.ledger-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.ledger-bar .range-toggle {
  padding: 4px;
}

.ledger-bar .range-toggle button {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12.5px;
}

.period-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.period-nav b {
  min-width: 0;
  padding: 0 4px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.period-nav button {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.period-nav button:hover {
  background: rgba(21, 22, 15, 0.06);
  color: var(--ink);
}

@media (max-width: 720px) {
  .today-pulse strong { font-size: 18px; }
  .today-pulse span { font-size: 10px; }
  .capture-card { padding: 14px 12px 13px; }
  .capture-card b { font-size: 14.5px; }
  .capture-card small { font-size: 11px; }
  .period-nav b { font-size: 13px; }
}

/* 空档提示行：只在真有空档时出现，做成轻量提示，不要再来一块大绿按钮 */
.day-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(177, 134, 63, 0.09);
  border: 1px solid rgba(177, 134, 63, 0.2);
}

.day-tools-hint {
  color: #7a5424;
  font-size: 12.5px;
  font-weight: 700;
}

.day-tools .text-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(177, 134, 63, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #7a5424;
  font-size: 12px;
  font-weight: 700;
}

.day-tools .text-button:hover {
  background: rgba(177, 134, 63, 0.16);
}

/* 「上一段结束到现在还有 X 没记」——替掉原来那颗没人看得懂的「＋」 */
.running-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 4px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(217, 181, 103, 0.14);
  border: 1px solid rgba(217, 181, 103, 0.26);
}

/* 🔴 这条在浅金底上，字必须用深色——原来用的是近白(0.86 cream)，浅底上根本看不见 */
.running-hint span {
  min-width: 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.running-hint b {
  font-family: var(--font-serif);
  font-weight: 800;
  color: #8a6516;
}

.running-hint button {
  border-color: rgba(138, 101, 22, 0.5) !important;
  color: #8a6516 !important;
}

.running-hint button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(217, 181, 103, 0.5);
  background: transparent;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
}

/* ================= code25：首页认人 + 时间轴折叠 + 时间日记 ================= */

/* ---------- 表头 greet 版：先认人，再报数 ---------- */
.masthead.greet {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 12px;
}

.masthead.greet > div {
  min-height: 0;
  padding: 18px 20px 16px;
}

.greet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.greet-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(217, 181, 103, 0.9), rgba(177, 134, 63, 0.75));
  color: #17301f;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 900;
}
/* 品牌 logo 头像：透明标直接显示，不加绿圆/绿方块，完整不裁切 */
.greet-avatar.brand, .profile-avatar.brand {
  background: none; overflow: visible; padding: 0; border-radius: 0; box-shadow: none;
  display: grid; place-items: center;
}
.greet-avatar.brand img, .profile-avatar.brand img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block;
}
/* 🔴 mp-clean.js（主站共享脚本）在小程序里用 .yzy-mp .brand{display:none!important} 统一藏站点 logo/表头，
   但问好卡、个人信息卡的品牌头像是"内容"不是"表头"——更高特异性 + !important 把它们救回来。 */
.yzy-mp .greet-avatar.brand, .yzy-mp .profile-avatar.brand { display: grid !important; }
/* 登录门的 logo：透明金标，无底、无圆角 */
.gate-logo {
  width: 92px; height: auto; display: block; margin: 0 auto 16px;
}

/* 🔴 flex 子项默认 min-width:auto，长名字会把整行顶破卡片。 */
.greet-text {
  min-width: 0;
}

.masthead.greet .greet-text h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.greet-text p {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(246, 241, 226, 0.66);
}

.greet-text p b {
  color: var(--gold-bright);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* 最近七天：记了就点亮。柳比歇夫 56 年一天没停，这排点就是这件事的最小刻度。 */
.streak-dots {
  display: flex;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 54px;
}

.streak-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(246, 241, 226, 0.18);
}

.streak-dots i.on {
  background: var(--gold-bright);
}

.streak-dots i.now {
  box-shadow: 0 0 0 2px rgba(217, 181, 103, 0.3);
}

.masthead.greet .today-pulse {
  margin-top: 14px;
  padding-top: 13px;
}

.masthead.greet .hero-quote {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 181, 103, 0.16);
  max-width: 100%;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(246, 241, 226, 0.58);
}

/* ---------- 口述胶囊：图标换成跟首页同一套 SVG ---------- */
.voice-capsule button i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--forest);
}

.voice-capsule button i svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ---------- 首页时间轴：默认折叠 ---------- */
.ledger-fold {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ledger-fold-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

/* 标题一行、摘要一行——挤在一行里"2 段空档"永远第一个被截掉，那正是最该看见的信息 */
.lf-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-width: 0;
}

.ledger-fold-head:hover {
  transform: none;
  background: rgba(31, 107, 69, 0.04);
}

.ledger-fold-head b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 800;
}

.lf-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.lf-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* 🔴 只转箭头。整个 .lf-arrow 一起 rotate(180deg) 会把"收起"两个字也倒过来。 */
.lf-arrow i {
  font-style: normal;
  line-height: 1;
  transition: transform 220ms var(--ease);
}

.ledger-fold.is-open .lf-arrow i {
  transform: rotate(180deg);
}

.ledger-fold-body {
  padding: 2px 13px 14px;
  border-top: 1px solid var(--line);
  animation: fold-in 260ms var(--ease) both;
}

.ledger-fold-body .ledger-bar {
  margin: 13px 0 12px;
}

@keyframes fold-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 时间日记：月历找日子 + 流水账读那天 ---------- */
/* 日记已是独立 tab，顶部不再需要那条分隔线和大留白（原来它挂在复盘最底下才要） */
.journal {
  margin-top: 0;
  padding-top: 0;
}

.journal-head {
  margin-bottom: 14px;
}

.jcal {
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
  margin-bottom: 16px; /* 跟下面"这天三件事"分开，别粘在一起 */
}

.jcal-week,
.jcal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.jcal-week {
  margin-bottom: 6px;
}

/* ===== 日记底部：今日投入去向 ===== */
.day-goal-spend { margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(31, 107, 69, 0.04); }
.day-goal-spend h4 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--ink); }
.dgs-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.dgs-item { font-size: 12.5px; color: #4a4436; display: inline-flex; align-items: center; gap: 5px; }
.dgs-item b { color: var(--forest); font-weight: 800; }
.dgs-tag { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; color: var(--paper); border-radius: 5px; padding: 1px 5px; }
.dgs-tag.long { background: var(--forest); }
.dgs-tag.mid { background: var(--gold); }
.dgs-un, .dgs-un b { color: var(--muted); }

/* ===== 每日碎碎念（他自己留存的日记） ===== */
.diary { margin-top: 16px; padding: 15px; border: 1px solid rgba(217, 181, 103, 0.4); border-radius: 16px; background: linear-gradient(160deg, rgba(217, 181, 103, 0.09), rgba(31, 107, 69, 0.04)); }
.diary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.diary-head-l { min-width: 0; }
.diary-head h4 { margin: 0; font-family: var(--font-serif); font-size: 16px; font-weight: 800; color: var(--ink); }
.diary-motto { display: block; margin-top: 2px; font-size: 11px; color: var(--gold-ink); font-weight: 700; letter-spacing: 0.5px; }
/* 顶部日期标识：一眼知道这篇是哪天的 */
.diary-day { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--forest); background: rgba(31, 107, 69, 0.1); border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
/* 文末署名：名字 · 年月日周几 · 保存时分 */
.diary-sign { margin-top: 14px; text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }
.diary-input { width: 100%; box-sizing: border-box; min-height: 96px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px; line-height: 1.6; font-weight: 500; color: var(--ink); resize: none; overflow-y: hidden; }
.diary-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(177, 134, 63, 0.12); }
/* 可选的地点：填了文末就署"于杭州"，多年后回看很有意思 */
.diary-place { width: 100%; box-sizing: border-box; margin-top: 9px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 16px; font-weight: 500; color: var(--ink); }
.diary-place:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(177, 134, 63, 0.1); }
.diary-actions { display: flex; gap: 10px; margin-top: 11px; }
.diary-actions .diary-save { flex: 1; }
/* AI 润色：精致一点的金色胶囊，不用 emoji */
.diary-polish { flex: 0 0 auto; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(177, 134, 63, 0.5); background: rgba(217, 181, 103, 0.12); color: var(--gold-ink); font-weight: 700; font-size: 13.5px; letter-spacing: 0.3px; }
.diary-polish:active { background: rgba(217, 181, 103, 0.22); }
.diary-polish:disabled { opacity: 0.55; }
.diary-polished { margin-top: 13px; padding: 14px; border: 1px solid rgba(177, 134, 63, 0.4); border-radius: 13px; background: rgba(251, 247, 238, 0.7); }
.dp-head { font-size: 11.5px; color: var(--gold-ink); font-weight: 800; letter-spacing: 0.5px; margin-bottom: 9px; }
.dp-text { display: block; font-size: 15px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.dp-actions { display: flex; gap: 10px; margin-top: 13px; }
/* 读模式：碎碎念显示成一篇（保留段落换行）+ 编辑/删除 */
.diary.is-saved { background: linear-gradient(160deg, rgba(217, 181, 103, 0.11), rgba(31, 107, 69, 0.05)); }
.diary-saved { display: block; padding: 2px; font-size: 15px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.diary-saved-actions { display: flex; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed rgba(177, 134, 63, 0.32); }
.diary-edit-btn, .diary-del-btn { flex: 0 0 auto; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.diary-edit-btn { border: 1px solid var(--line); background: var(--paper); color: var(--forest); }
.diary-del-btn { border: 1px solid rgba(173, 92, 106, 0.35); background: transparent; color: var(--rose); }
.diary-card-btn { flex: 0 0 auto; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 800; border: 1px solid var(--gold, #b1863f); background: rgba(217, 181, 103, 0.16); color: #9a7220; margin-right: auto; }
.diary-card-btn:active { background: rgba(217, 181, 103, 0.3); }

.jcal-week span {
  text-align: center;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.jcal-day {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 5px 0 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
}

.jcal-day em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* 点的浓淡＝那天记了几段。一片空白的日子自己会浮出来，不用另做提示。 */
.jcal-day i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(21, 22, 15, 0.09);
}

.jcal-day.lv1 i { background: rgba(31, 107, 69, 0.35); }
.jcal-day.lv2 i { background: rgba(31, 107, 69, 0.62); }
.jcal-day.lv3 i { background: var(--forest); }

.jcal-day.is-today em {
  color: var(--forest);
  font-weight: 800;
}

.jcal-day.active {
  border-color: var(--gold);
  background: rgba(217, 181, 103, 0.16);
}

.jcal-day.active em {
  color: var(--ink);
  font-weight: 800;
}

.jcal-day.future {
  opacity: 0.28;
  cursor: default;
}

.jcal-day.future:hover {
  transform: none;
}

/* 日记页：蒋介石/柳比歇夫那种记法——一行一件事，只有时间和事实。 */
.jpage {
  margin-top: 12px;
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 4px 16px 16px 4px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.jpage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.jph-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* 补记/改：从日记页最底下挪到日期头右边（原来那块空白），贴着主线、更好点 */
.jph-edit {
  flex: 0 0 auto; align-self: center;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(154, 114, 32, 0.5); background: rgba(154, 114, 32, 0.08);
  color: var(--gold-ink); font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.jph-edit:active { transform: scale(0.96); }

.jpage-head b {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 900;
}

.jpage-head span {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.jlines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.jlines li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding: 8px 0 8px 10px;
  border-bottom: 1px dashed rgba(21, 22, 15, 0.09);
  border-left: 2px solid var(--accent);
}

.jlines li:last-child {
  border-bottom: none;
}

.jl-time {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jl-time i {
  font-style: normal;
  opacity: 0.5;
  padding: 0 1px;
}

.jl-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.jl-dur {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jpage-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

/* 🔴 全局有一条把 button 做成深绿实心块、还带 flex:1 1 112px 的规则，
   日记页脚这两个只是"顺手能点一下"的次要动作，不该长成主按钮抢走视线。 */
.jpage-foot button,
.jpage-empty button {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(31, 107, 69, 0.35);
}

.jpage-foot button:hover,
.jpage-empty button:hover {
  transform: none;
  text-decoration-color: var(--forest);
}

.jpage-empty {
  padding: 14px 0 2px;
}

.jpage-empty p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .masthead.greet .greet-text h1 { font-size: 19.5px; }
  .greet-avatar { width: 46px; height: 46px; font-size: 17px; }
  .streak-dots { padding-left: 50px; }
  .jcal { padding: 10px 8px 8px; }
  .jcal-day { padding: 4px 0 5px; }
  .jcal-day em { font-size: 11px; }
  .jpage { padding: 13px 13px 12px; }
  .jlines li { gap: 8px; padding-left: 8px; }
  .jl-title { font-size: 13px; }
}

/* ================= code26：累计时长 + 解析进度 + 日记叙述 + 数据体检 ================= */

/* 表头累计：从开始记到现在一共记了多少时间——量本身就是柳比歇夫式记录的成就 */
.cumulative {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(217, 181, 103, 0.12);
  border: 1px solid rgba(217, 181, 103, 0.22);
  color: rgba(246, 241, 226, 0.82);
  font-size: 12.5px;
  font-weight: 600;
}

.cumulative b {
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 0 1px;
}

/* 整天口述的耗时提示 */
.voice-hint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.voice-hint b {
  color: var(--forest);
  font-weight: 800;
}

/* 拆解进度：等 AI 想那十几秒时给个活的东西看 */
.parse-progress {
  margin: 12px 0 4px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(31, 107, 69, 0.07), rgba(177, 134, 63, 0.08));
  border: 1px solid rgba(31, 107, 69, 0.16);
}

.pp-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pp-top b {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
}

.pp-top em {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pp-spinner {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(31, 107, 69, 0.25);
  border-top-color: var(--forest);
  animation: pp-spin 700ms linear infinite;
}

@keyframes pp-spin { to { transform: rotate(360deg); } }

.pp-bar {
  margin-top: 10px;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 107, 69, 0.12);
  overflow: hidden;
}

.pp-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
  transition: width 900ms var(--ease);
}

/* 时间日记的文字叙述 */
.jnarr-gen {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed rgba(31, 107, 69, 0.4);
  border-radius: 10px;
  background: rgba(31, 107, 69, 0.04);
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 700;
}

.jnarr-gen:hover {
  background: rgba(31, 107, 69, 0.09);
  border-color: var(--forest);
}

.jnarr {
  margin-top: 13px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
}
.jnarr-by {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; color: var(--forest); margin-bottom: 8px;
}
.jnarr-ava {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; background: linear-gradient(150deg, var(--forest-deep), var(--forest));
}

.jnarr.is-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.jnarr p {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  text-align: justify;
}

.jnarr .text-button {
  padding: 0;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--forest);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(31, 107, 69, 0.35);
}

.jnarr .text-button:hover {
  transform: none;
  text-decoration-color: var(--forest);
}

/* 当天数据体检：超 24h / 同段重复的红色警告条 + 一键去重 */
.day-health {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(173, 92, 106, 0.09);
  border: 1px solid rgba(173, 92, 106, 0.32);
}

.dh-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dh-text b {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--rose);
}

.dh-text span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.dh-fix {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--rose);
  background: var(--rose);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.dh-fix:hover {
  background: #98505d;
  border-color: #98505d;
}

/* ================= code27：每天最重要的三件事（MIT）================= */
.mit {
  margin-bottom: 14px;
  padding: 12px 14px 11px;
  border-radius: 15px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.mit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.mit-head b {
  display: inline;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 800;
}

.mit-head small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.mit-edit {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.mit-edit:hover { border-color: var(--gold); color: var(--ink); }

.mit-done-edit {
  flex: 0 0 auto;
  padding: 6px 15px;
  border-radius: 999px;
  border: none;
  background: var(--forest);
  color: #f4efe0;
  font-size: 12.5px;
  font-weight: 800;
}

.mit-done-edit:hover { background: var(--forest-mid); }

.mit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.mit-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

/* 完成项的「计划·实际·偏差」签（可点重选） */
.mit-est.done { border: none; cursor: pointer; }
.mit-est.done .dev { font-weight: 900; }
.mit-est.done .dev.over { color: var(--rose); }
.mit-est.done .dev.under { color: var(--forest); }
.mit-est.done .dev.on { color: var(--gold); }

/* "实际用了多久"：以计划为锚的滑块 + 直接输入。打勾后整行换到下方 */
.mit-actual {
  flex: 1 0 calc(100% - 34px);
  box-sizing: border-box;
  margin: 4px 0 6px 34px; padding: 11px 13px;
  border-radius: 14px; background: rgba(31, 107, 69, 0.06); border: 1px dashed rgba(31, 107, 69, 0.3);
}
.ma-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ma-label { font-size: 12px; font-weight: 800; color: var(--forest); }
.ma-live { display: inline-flex; align-items: baseline; gap: 7px; }
.ma-val { font-size: 15px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.ma-dev { font-size: 12.5px; font-weight: 900; }
.ma-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(31,107,69,.25), var(--gold-soft) 50%, rgba(173,92,106,.3));
  outline: none; margin: 2px 0 4px;
}
.ma-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--forest); border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer;
}
.ma-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--forest); border: 3px solid #fff; cursor: pointer; }
.ma-scale { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: var(--muted); margin-bottom: 9px; }
.ma-scale .ma-plan { color: var(--gold); font-weight: 800; }
.ma-btns { display: flex; gap: 7px; }
.ma-opt {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer;
}
.ma-opt:active { transform: scale(0.96); }
.ma-opt.ma-primary { flex: 1; border: none; background: var(--forest); color: #f4efe0; font-weight: 800; }
.ma-opt.ma-primary .ma-btn-val { font-weight: 900; }
.ma-opt.ma-skip { color: var(--muted); border-style: dashed; }
.ma-type-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ma-type-input {
  width: 92px; height: 40px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ma-unit { font-size: 12px; font-weight: 700; color: var(--muted); }

/* 偏差色（日记/报告通用）：实际>计划=低估(玫红)，实际<计划=高估(绿)，持平(金) */
.dev.over { color: var(--rose); }
.dev.under { color: var(--forest); }
.dev.on { color: var(--gold); }
.jmit-foot { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 11.5px; font-weight: 800; }
.jmit em.plan-only { opacity: 0.62; font-weight: 600; }

.mit-list li p {
  flex: 1;
  margin: 0;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 预计时长小签 */
.mit-est {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(177, 134, 63, 0.14);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

/* 完成时刻：勾掉后显示在右侧 */
.mit-time {
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 编辑行里的预计时长下拉 */
.mit-est-sel {
  flex: 0 0 auto;
  width: 64px;
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.mit-est-sel:focus {
  outline: none;
  border-color: var(--forest);
}

.mit-list li.is-done p {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(31, 107, 69, 0.5);
}

.mit-list li.is-empty p {
  color: rgba(109, 100, 85, 0.6);
  font-weight: 500;
}

/* 勾选圈：森绿描边，勾上就填实 */
.mit-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--forest);
  background: transparent;
  color: transparent;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1;
}

.mit-list li.is-done .mit-check {
  background: var(--forest);
  color: #fff;
}

.mit-list li.is-empty .mit-check {
  border-style: dashed;
  border-color: var(--line-strong);
  color: var(--muted);
}

.mit-check:hover { transform: scale(1.08); }

/* 编辑态：三行输入 */
.mit-inputs {
  display: grid;
  gap: 8px;
}

.mit-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mit-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper-dim);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mit-inputs { gap: 6px; }

.mit-input-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px; /* iOS ≥16 防聚焦放大 */
  font-weight: 600;
}

.mit-input-row input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.1);
}

/* 有中期目标时，每件事下面一行可绑一个（占满第二行；没有中期目标就整块不出现） */
.mit-input-row { flex-wrap: wrap; }
.mit-mg {
  flex: 1 1 100%;
  margin-left: 34px;
  max-width: calc(100% - 34px);
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 600;
}

/* ================= code28：日记三件事块 + 生日卡 + MIT加一件 ================= */

/* 时间日记里"这天最重要的三件事" */
.jmit {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(31, 107, 69, 0.05);
  border: 1px solid rgba(31, 107, 69, 0.16);
}

.jmit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap; /* 标题+统计放不下时，统计自动掉到第二行，别挤成一坨（小程序窄屏尤其） */
  gap: 2px 8px;
  margin-bottom: 8px;
}

.jmit-head b {
  font-family: var(--font-serif);
  font-size: 15.5px; /* 跟下方"8月X日 周X 今天"那行的字号对齐，别显小 */
  font-weight: 900;
  color: var(--forest);
}

.jmit-head span {
  margin-left: auto; /* 同行时靠右；换行后独占一行也靠右 */
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.jmit ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px; /* 松一点，别挤成一团 */
}

.jmit li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px; /* 跟下方流水账一致，别显小 */
  line-height: 1.5;
}

.jmit li i {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--forest);
  font-weight: 800;
}

/* 复盘日记里可点补勾的圆圈（跟今天卡片的 .mit-check 同款，略小） */
.jmit-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--forest);
  background: transparent;
  color: transparent;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.jmit li.is-done .jmit-check { background: var(--forest); color: #fff; }
.jmit-check:active { transform: scale(0.92); }
/* 复盘日记·可点补/改实际用时（滚动条选几小时几分） */
.jmit li { flex-wrap: wrap; }
.jmit-actual {
  flex: 0 0 auto; background: transparent; cursor: pointer;
  border: 1px dashed rgba(177, 134, 63, 0.55); color: #b1863f;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px;
}
.jmit-actual.add { color: var(--muted); border-color: var(--line-strong); }
.jmit-slider { flex-basis: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(31, 107, 69, 0.05); border: 1px solid var(--line); }
.js-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); font-weight: 700; }
.js-top b { font-size: 18px; color: var(--forest); font-family: var(--font-serif); }
.js-range { width: 100%; margin: 10px 0 2px; accent-color: var(--forest); }
.js-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.js-actions { display: flex; gap: 8px; margin-top: 11px; }
.jmit-actok { background: var(--forest); color: #fff; border: none; cursor: pointer; font-size: 12px; font-weight: 700; padding: 7px 18px; border-radius: 9px; }
.jmit-actcancel { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); cursor: pointer; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 9px; }
.jmit-tip {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  opacity: 0.78;
}

/* 三件事全部完成 · 庆祝浮层 */
.celebrate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: rgba(14, 43, 29, 0.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: celeb-in 0.3s ease both;
}
.celebrate.out { animation: celeb-out 0.4s ease both; }
.celebrate-card {
  position: relative; text-align: center; padding: 30px 34px; border-radius: 22px;
  background: linear-gradient(160deg, #fdfbf4, #f4ead0);
  border: 1px solid rgba(177, 134, 63, 0.4);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  animation: celeb-pop 0.5s cubic-bezier(0.2, 1.3, 0.5, 1) both;
}
.celebrate-emoji { font-size: 56px; line-height: 1; }
.celebrate-title { margin-top: 8px; font-family: var(--font-serif); font-size: 26px; font-weight: 900; color: var(--forest); }
.celebrate-sub { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.celebrate-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.celebrate-confetti i {
  position: absolute; top: -6%; width: 9px; height: 14px; border-radius: 2px; opacity: 0.95;
  animation-name: celeb-fall; animation-timing-function: ease-in; animation-fill-mode: both;
}
@keyframes celeb-fall { to { top: 106%; opacity: 0.2; } }
@keyframes celeb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes celeb-out { to { opacity: 0; } }
@keyframes celeb-pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.jmit li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.jmit li.is-done span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(31, 107, 69, 0.5);
}

.jmit li em {
  flex: 0 0 auto;
  font-style: normal;
  color: var(--forest);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 「我的」生日卡 */
.birthday-card .body-copy b {
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.birthday-field {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.birthday-field input {
  display: block;
  margin-top: 6px;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.birthday-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(177, 134, 63, 0.12);
}

/* MIT「加一件」按钮 + 语音提示 */
.mit-add-row {
  margin-top: 7px;
}

.mit-add-btn {
  width: 100%;
  padding: 8px;
  border: 1px dashed rgba(31, 107, 69, 0.38);
  border-radius: 10px;
  background: transparent;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.mit-add-btn:hover {
  background: rgba(31, 107, 69, 0.06);
  border-color: var(--forest);
}

.mit-voice-hint {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

/* 三件事误删后的「撤销」条：8 秒内可把删掉的那件找回来 */
.mit-undo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 2px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(173, 92, 106, 0.08);
  border: 1px solid rgba(173, 92, 106, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  animation: surface-in 0.25s ease both;
}
.mit-undo button {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: var(--rose);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.mit-undo button:active { transform: scale(0.96); }

/* ================= code29：日期/生日就近/三件事语音+滚轮/亲密关系 ================= */

/* 表头右上角今天日期 */
.greet-date {
  position: absolute;
  top: 15px;
  right: 18px;
  color: rgba(246, 241, 226, 0.6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 问候两行：第一行记录第N天，第二行来到世界第X天 */
.greet-lines {
  margin: 4px 0 0;
  display: grid;
  gap: 1px;
}

.greet-lines span {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(246, 241, 226, 0.66);
}

.greet-lines b {
  color: var(--gold-bright);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* 生日就近的小控件（不再单独一张卡） */
.greet-bday {
  margin-top: 7px;
}

.greet-bday-set,
.greet-bday-mini {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(217, 181, 103, 0.4);
  background: rgba(217, 181, 103, 0.1);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.greet-bday-mini {
  padding: 2px 9px;
  font-size: 10.5px;
}

.greet-bday-set:hover,
.greet-bday-mini:hover {
  border-color: var(--gold-bright);
  background: rgba(217, 181, 103, 0.18);
}

.greet-bday-input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(217, 181, 103, 0.5);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #15160f;
  font-size: 16px;
  font-weight: 600;
}

/* 三件事标题右侧的动作组（麦克风 + 编辑/存好） */
.mit-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mit-mic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(31, 107, 69, 0.3);
  background: rgba(31, 107, 69, 0.06);
  color: var(--forest);
}

.mit-mic svg { width: 16px; height: 16px; display: block; }
.mit-mic:hover { border-color: var(--forest); background: rgba(31, 107, 69, 0.12); }

/* 语音说话框 */
.mit-voice {
  margin-bottom: 11px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(31, 107, 69, 0.05);
  border: 1px solid rgba(31, 107, 69, 0.18);
}

.mit-voice textarea {
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}

.mit-voice-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mit-voice-actions .primary {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  background: var(--forest);
  color: #f4efe0;
  border: none;
  font-weight: 800;
  font-size: 13px;
}

.mit-voice-actions button:not(.primary) {
  flex: 0 0 auto;
  padding: 0 14px;
  min-height: 40px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.mit-voice-tip {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

/* 预计时长：按钮 + 滚轮 */
.mit-est-btn {
  flex: 0 0 auto;
  width: 78px;
  height: 38px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mit-est-btn.open {
  border-color: var(--gold);
  background: rgba(177, 134, 63, 0.12);
}

.mit-est-btn.has {
  border-color: rgba(177, 134, 63, 0.5);
  background: rgba(177, 134, 63, 0.12);
  color: var(--gold);
}

/* 滚轮：竖向滚动 + 吸附 + 中间高亮带，点选。
   紧贴「预计时长」按钮下方、右对齐、跟按钮同宽，看着就像是从那个框里滚出来的。 */
.est-wheel {
  position: relative;
  width: 108px;
  margin: 4px 0 8px auto;
  height: 108px;
  border-radius: 12px;
  border: 1px solid var(--gold);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.est-wheel-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 32px;
  background: rgba(177, 134, 63, 0.14);
  border-top: 1px solid rgba(177, 134, 63, 0.4);
  border-bottom: 1px solid rgba(177, 134, 63, 0.4);
  pointer-events: none;
}

.est-wheel-track {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 38px 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 34%, #000 66%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 34%, #000 66%, transparent);
}

.est-wheel-track::-webkit-scrollbar { display: none; }

.est-opt {
  display: block;
  width: 100%;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  scroll-snap-align: center;
}

.est-opt.sel {
  color: var(--gold);
  font-size: 15.5px;
  font-weight: 900;
}

.est-opt:hover { color: var(--ink); }

/* ================= code30：三件事空状态大按钮 + 删除 + 更显眼麦克风 ================= */

/* 空状态：两个大按钮（语音/打字），别一上来三个框 */
.mit-empty .mit-head { margin-bottom: 11px; }

.mit-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.mit-start-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 14px 14px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
}

.mit-start-btn.is-mic {
  border-color: rgba(31, 107, 69, 0.4);
  background: linear-gradient(150deg, rgba(31, 107, 69, 0.08), rgba(177, 134, 63, 0.06));
}

.mit-start-btn:hover {
  border-color: var(--forest);
  box-shadow: var(--shadow-sm);
}

.mit-start-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 5px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--forest-deep), var(--forest-mid));
  color: var(--gold-bright);
  font-size: 17px;
}

.mit-start-ico svg { width: 18px; height: 18px; display: block; }
.mit-start-ico.type { background: rgba(21, 22, 15, 0.06); color: var(--ink); }

.mit-start-btn b {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 800;
}

.mit-start-btn small {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* 麦克风按钮做大一点、更像"可以点" */
.mit-mic {
  width: 34px;
  height: 34px;
  background: linear-gradient(150deg, rgba(31, 107, 69, 0.12), rgba(177, 134, 63, 0.1));
  border-color: rgba(31, 107, 69, 0.4);
}

.mit-mic svg { width: 17px; height: 17px; }

/* 每行删除 ✕ */
.mit-del {
  flex: 0 0 auto;
  width: 28px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.mit-del:hover { color: var(--rose); transform: none; }

@media (max-width: 360px) {
  .mit-start { grid-template-columns: minmax(0, 1fr); }
}

/* ================= code30：我的-个人信息合并模块 + 生日跳转 ================= */
.profile-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-top .profile-info { flex: 1; min-width: 0; }
.profile-top .text-button { flex: 0 0 auto; }

.profile-meta,
.profile-goals {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pm-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.pm-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pm-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.profile-goals .goals-list { margin: 0; }

/* 编辑态字段 */
.pf-field {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.pf-field input {
  display: block;
  margin-top: 6px;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.pf-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(177, 134, 63, 0.12);
}

/* 日期输入在 WebKit(iOS/微信)默认把值居中，跟上面姓名的左对齐不一致——拉平到左对齐 */
.pf-field input[type="date"] { text-align: left; }
.pf-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.pf-field input[type="date"]::-webkit-datetime-edit { text-align: left; }

.pf-goals {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

/* ================= code30：录入卡上方的引导标题 ================= */
.capture-lead {
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.capture-lead b {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.capture-lead small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

/* ================= 桌面端导航（放最后，压过 .bottom-nav 的 width:100%）================= */
@media (min-width: 721px) {
  /* 导航做成居中悬浮条，不横贯整屏 */
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100vw - 40px, 560px);
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
  }

  /* FAB 收到内容列（640px）右侧附近，别甩到屏幕最右 */
  .fab {
    left: 50%;
    right: auto;
    margin-left: min(280px, 46vw);
    bottom: 92px;
  }
}

/* ================= code31：录入卡做成MIT同款 + 个人信息拆两块 ================= */
/* 录入入口卡（跟三件事同款 .mit 外壳）：里面的两张卡不再自带下边距 */
.capture-module { margin-bottom: 14px; }
.capture-module .capture-cards { margin-bottom: 0; }
.capture-module .mit-head { margin-bottom: 11px; }

/* 个人信息编辑面板是浅底 .input-panel，字迹清楚（深绿卡里编辑字看不见的问题就是这么绕开的）*/
.profile-edit .pf-field:first-of-type { margin-top: 8px; }

/* ================= code33：时间分类自定义 ================= */
.cats-panel .cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
}

.cat-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cat-chip b {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cat-editor {
  display: grid;
  gap: 8px;
  margin: 12px 0 6px;
}

.cat-edit-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

/* 颜色块：圆的，去掉原生 input[color] 的外框内边距 */
.cat-color {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.cat-color::-webkit-color-swatch-wrapper { padding: 0; }
.cat-color::-webkit-color-swatch { border: none; border-radius: 50%; }

.cat-edit-row input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.cat-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cat-remove {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}
.cat-remove:disabled { opacity: 0.3; }
.cat-remove:not(:disabled):hover { border-color: var(--rose); color: var(--rose); }

/* ================= code34：首页表头改普通浅色（深绿太抢眼） ================= */
.masthead.greet > div {
  background: var(--paper-soft);
  border-color: var(--line);
  color: var(--ink);
  animation: none;
}
.masthead.greet > div::after { display: none; } /* 去掉深色网点纹理 */
.masthead.greet .greet-date { color: var(--muted); }
.masthead.greet .greet-text h1 { color: var(--ink); }
.masthead.greet .greet-lines span { color: var(--muted); }
.masthead.greet .greet-lines b { color: var(--gold-ink); }
.masthead.greet .today-pulse strong { color: var(--gold-ink); } /* 纸底：亮金 1.83:1 太淡→深金可读 */
.masthead.greet .streak-dots i { background: rgba(21, 22, 15, 0.12); }
.masthead.greet .streak-dots i.on { background: var(--gold); }
.masthead.greet .streak-dots i.now { box-shadow: 0 0 0 2px rgba(177, 134, 63, 0.3); }
.masthead.greet .today-pulse { border-top-color: var(--line); }
.masthead.greet .today-pulse strong { color: var(--gold); }
.masthead.greet .today-pulse strong i { opacity: 0.7; }
.masthead.greet .today-pulse span { color: var(--muted); }
.masthead.greet .hero-quote { color: var(--muted); border-top-color: var(--line); }

/* ================= code35：首页一体化录入（一个框搞定定目标/记时间） ================= */
.home-input { margin-bottom: 16px; }
.home-input > textarea {
  width: 100%; min-height: 96px; padding: 14px 15px; border: 1.5px solid var(--line-strong);
  border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6;
  font-weight: 500; resize: vertical; box-shadow: var(--shadow-sm);
}
.home-input > textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31,107,69,.1); outline: none; }
.home-input > textarea::placeholder { color: rgba(109,100,85,.68); line-height: 1.7; }
.home-hint { margin: 7px 2px 0; color: var(--muted); font-size: 12px; }
.home-hint b { color: var(--forest); font-weight: 800; }
.home-ai { display: inline-flex; margin-top: 8px; padding: 0; border: none; background: none;
  color: var(--forest); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.home-ai[disabled] { opacity: .5; }
.home-planhd { margin: 14px 2px 0; color: var(--forest); font-size: 12.5px; font-weight: 800; }

/* 预览卡（记录 / 目标共用外观） */
.home-cards { display: grid; gap: 12px; margin-top: 12px; }
.home-card { position: relative; padding: 13px 14px 12px; border-radius: 15px; background: var(--paper-soft);
  border: 1px solid rgba(31,107,69,.26); box-shadow: var(--shadow-sm); }
.hc-idx { position: absolute; left: -7px; top: -7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); color: #f4efe0; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.hc-rm { position: absolute; right: 9px; top: 9px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 15px; line-height: 1; }
.hc-title { display: flex; align-items: center; gap: 8px; padding-right: 28px; }
.hc-title b { font-family: var(--font-serif); font-size: 16px; font-weight: 800; }
.hc-tag { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.home-input .pv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.home-input .pv-chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.home-input .pv-edit { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.home-input .pv-edit-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.home-input .time-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.home-input .time-grid input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); font-size: 16px; font-weight: 600; }
.hc-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.hc-cat-grid button { min-width: 0; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 5px; }
.hc-cat-grid button.on { border-color: var(--gold); background: rgba(177,134,63,.14); }
.home-input .hc-goal-grid { display: grid; gap: 8px; }
.home-input .hc-goal-grid select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 16px; padding: 10px 12px; outline: none; }
.home-input .hc-goal-grid select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(177,134,63,.15); }
.home-input .pv-chip.on { border-color: var(--gold); background: rgba(177,134,63,.14); color: var(--ink); }
.hc-cat-grid .sw { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }

/* 定目标预览的行 */
.home-goals { margin-top: 10px; padding: 10px 13px; border-radius: 14px; background: rgba(31,107,69,.05); border: 1px solid rgba(31,107,69,.16); }
.hg-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.hg-row > span:first-child { flex: 0 0 auto; }
.hg-t { flex: 1; min-width: 0; font-family: var(--font-serif); font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hg-m { flex: 0 0 auto; color: var(--muted); font-size: 11.5px; font-weight: 700; }

.home-save { width: 100%; min-height: 48px; margin-top: 12px; border: none; border-radius: 12px;
  background: var(--forest); color: #f4efe0; font-size: 15px; font-weight: 800; box-shadow: var(--shadow-sm); }
.home-save:active { transform: translateY(1px); }

/* 认领横幅（记录↔三件事） */
.home-input .match-banner { margin-top: 13px; padding: 13px 15px; border-radius: 14px;
  background: rgba(31,107,69,.07); border: 1px solid rgba(31,107,69,.3); }
.home-input .match-banner p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
.home-input .match-banner b { color: var(--forest); }
.home-input .mb-actions { display: flex; gap: 9px; }
.home-input .mb-yes { flex: 1; min-height: 42px; border: none; border-radius: 10px; background: var(--forest); color: #f4efe0; font-size: 13.5px; font-weight: 800; }
.home-input .mb-actions button:not(.mb-yes) { flex: 0 0 auto; padding: 0 16px; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 700; }

/* MIT 完成后显示实际时长 */
.mit-est.done { color: var(--forest); }

/* ================= code36：三件事去掉话筒（改点上面大框），只留铅笔编辑 ================= */
.mit-empty-hint { margin: 4px 2px 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.mit-empty-add { border: none; background: none; padding: 0; color: var(--forest); font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 对话式录入：首页「小柳」主角卡（核心引擎，占据首屏焦点）+ 全屏覆盖层 ===== */
.home-chat-hero { margin: 4px 0 16px; }
.hero-card {
  position: relative; overflow: hidden; width: 100%; text-align: left; cursor: pointer;
  display: block; padding: 20px 18px 16px; border-radius: 22px; border: none;
  color: #f4efe0;
  background: linear-gradient(155deg, #143c29 0%, #1f6b45 62%, #235c3f 100%);
  box-shadow: var(--shadow-lg);
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
}
.hero-card:active { transform: scale(0.985); }
.hero-glow {
  position: absolute; top: -70px; right: -50px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,181,103,0.38), transparent 68%); pointer-events: none;
}
.hero-top { display: flex; align-items: center; gap: 12px; position: relative; }
.hero-ava {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--forest-deep);
  background: linear-gradient(150deg, var(--gold-bright), var(--gold));
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.5);
}
.hero-ava svg { width: 26px; height: 26px; }
.hero-name { font-family: var(--font-serif); font-size: 19px; font-weight: 900; color: #fbf7ee; letter-spacing: 0.3px; }
.hero-tag { font-size: 12px; font-weight: 600; color: rgba(244,239,224,0.72); margin-top: 2px; }
.hero-lead { position: relative; margin: 16px 2px 10px; font-size: 13.5px; font-weight: 700; color: var(--gold-bright); }
.hero-caps { position: relative; display: grid; gap: 8px; }
.hero-cap {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(244,239,224,0.12);
}
.hero-cap .cap-ic { grid-row: 1 / 3; font-size: 20px; }
.hero-cap b { font-size: 14px; font-weight: 800; color: #fbf7ee; }
.hero-cap small { font-size: 11.5px; font-weight: 500; color: rgba(244,239,224,0.66); line-height: 1.3; }
.hero-input {
  position: relative; display: flex; align-items: center; gap: 10px; margin-top: 15px;
  padding: 11px 12px 11px 16px; border-radius: 999px; background: rgba(251,247,238,0.96);
}
.hero-ph { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-send {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--forest), var(--forest-deep)); color: #f4efe0; font-size: 17px; font-weight: 700;
}

.chat-overlay {
  position: fixed; inset: 0; z-index: 1000; background: var(--paper);
  animation: chatIn 0.22s var(--ease) both;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-frame { width: 100%; height: 100%; border: none; display: block; }

/* 报告顶部三数字的白话解读 */
.report-figures-note {
  margin: 10px 2px 0; padding: 10px 13px; border-radius: 12px;
  background: rgba(21, 22, 15, 0.04);
  font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.65;
}
.report-figures-note b { color: var(--ink); font-weight: 800; }

/* 报告：三件事计划vs实际偏差（可视化条） */
.report-deviation { margin: 10px 2px 0; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.report-deviation b { font-weight: 900; }
.dev-complete { margin-bottom: 12px; }
.dev-complete-head { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.dev-complete-head b { color: var(--ink); font-weight: 800; }
.dev-comp-track { height: 9px; border-radius: 999px; background: rgba(21,22,15,0.08); overflow: hidden; }
.dev-comp-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--forest), var(--forest-mid)); }
.dev-bars { display: grid; gap: 8px; }
.dev-bar-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.dev-bar-lb { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.dev-bar-track { height: 16px; border-radius: 8px; background: rgba(21,22,15,0.06); overflow: hidden; }
.dev-bar-track i { display: block; height: 100%; border-radius: 8px; transition: width 0.4s var(--ease); }
.dev-bar-row b { font-size: 12.5px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ===== 金句日签分享 ===== */
.hero-quote-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-quote-row .hero-quote { margin: 0; }
.quote-share {
  flex: 0 0 auto; align-self: center;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(177, 134, 63, 0.5);
  background: rgba(177, 134, 63, 0.1); color: var(--gold);
  font-size: 12px; font-weight: 800; white-space: nowrap;
}
.quote-share:active { transform: scale(0.96); }
.qcard-modal {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: rgba(10, 20, 14, 0.72); backdrop-filter: blur(4px);
  padding: 24px; animation: cover-in 0.2s var(--ease) both;
}
.qcard-inner { width: min(340px, 88vw); display: grid; gap: 12px; justify-items: center; }
.qcard-img { width: 100%; border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6); display: block; }
.qcard-tip { margin: 0; color: rgba(246,241,226,0.85); font-size: 12.5px; font-weight: 600; text-align: center; }
.qcard-loading { color: #f6f1e2; font-size: 14px; font-weight: 700; text-align: center; padding: 40px 20px; }
.qcard-btns { display: flex; gap: 10px; }
.qcard-save, .qcard-close {
  padding: 10px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 800; cursor: pointer; text-decoration: none; font-family: inherit;
}
.qcard-save { background: linear-gradient(150deg, var(--gold-bright), var(--gold)); color: #17301f; border: none; }
.qcard-close { background: rgba(255,255,255,0.14); color: #f6f1e2; border: none; }
