/* ── 成长树主题 · 暖巢画布 + 绿为点缀 ── */
.layout-worth {
  --worth-accent: #6b9080;
  --worth-accent-light: #8fb39a;
  --worth-accent-deep: #5a7f6c;
  --worth-accent-pale: #c5d9cc;
  --worth-tree-surface: #faf8f5;
  --worth-tree-surface-deep: #f4f0ea;
  --worth-page-glow: rgba(212, 165, 116, 0.2);
  --worth-page-border: rgba(196, 112, 75, 0.1);
  --worth-sprout-glow: rgba(212, 165, 116, 0.28);
  --worth-sprout-core: #c9dbb8;
}

.layout-worth .ios-screen {
  background: var(--screen-bg);
}

.layout-worth .screen-content {
  background: var(--screen-bg);
  padding-top: 106px;
  padding-bottom: 82px;
  scroll-behavior: smooth;
}

.layout-worth .top-header-shell {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 106px;
  min-height: 106px;
}

/* ── 顶栏：孩子选择 + 成长记录（桌面 · 手机 mock 状态栏下） ── */
@media (min-width: 769px) {
  .title-bar.worth-title-bar,
  .worth-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    height: 52px;
    min-height: 52px;
    grid-template-columns: unset;
    z-index: 18;
  }
}

.worth-title-child {
  flex: 1;
  min-width: 0;
}

.worth-title-child .child-pills {
  margin-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.worth-title-child .pill {
  padding: 6px 12px;
  font-size: 13px;
}

.worth-title-record {
  flex-shrink: 0;
  margin-left: auto;
  position: static;
  left: auto;
  right: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

.worth-title-record[aria-disabled="true"] {
  color: var(--text-tertiary);
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.worth-title-record:active {
  opacity: 0.72;
}

.worth-title-record[aria-disabled="true"]:active {
  opacity: 1;
}

.worth-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Entry ── */
@keyframes worthFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes worthBranchDraw {
  from { stroke-dashoffset: 100; opacity: 0.35; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes worthMarkerPop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes worthMarkerPulse {
  0%, 100% { filter: drop-shadow(0 0 2px var(--worth-sprout-glow)); }
  50% { filter: drop-shadow(0 0 8px var(--spark-glow)); }
}

@keyframes worthBranchRevealIntro {
  from { stroke-dashoffset: 100; opacity: 0.45; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes worthMarkerRevealIntro {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

.worth-shell .anim-fade-up { animation: worthFadeUp 0.52s var(--ease-soft) both; }
.worth-shell .anim-delay-1 { animation-delay: 0.08s; }
.worth-shell .anim-delay-2 { animation-delay: 0.16s; }
.worth-shell .anim-delay-3 { animation-delay: 0.26s; }
.worth-shell .anim-delay-4 { animation-delay: 0.36s; }

.worth-tree-svg.is-draw-ready.is-drawn .worth-branch-stem {
  animation: none;
}

.worth-tree-svg.is-draw-ready.is-drawn .worth-marker {
  animation: none;
}

.worth-tree-svg.is-intro-scrubbing.is-draw-ready.is-drawn .worth-branch-stem,
.worth-tree-svg.is-intro-scrubbing.is-draw-ready.is-drawn .worth-marker {
  animation: none;
}

.worth-marker.is-pulse {
  animation: worthMarkerPulse 0.9s var(--ease-soft) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .worth-shell [class*="anim-"],
  .worth-tree-svg.is-draw-ready.is-drawn .worth-branch-stem,
  .worth-tree-svg.is-draw-ready.is-drawn .worth-marker,
  .worth-tree-svg.is-intro-scrubbing.is-draw-ready.is-drawn .worth-branch-stem,
  .worth-tree-svg.is-intro-scrubbing.is-draw-ready.is-drawn .worth-marker,
  .worth-marker.is-pulse {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .worth-branch,
  .worth-branch-stem,
  .worth-branch-label,
  .worth-marker {
    transition: none;
  }

  .worth-branch.is-branch-entering,
  .worth-branch.is-branch-exiting {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .worth-page-wrap {
    align-items: stretch;
    width: 100%;
  }

  .worth-page-wrap .ios-frame-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .layout-worth .screen-content {
    padding-top: calc(50px + env(safe-area-inset-top));
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  /* 顶栏：仅孩子切换；成长记录功能未上线，移动端先隐藏避免与卡片统计区混淆 */
  .worth-title-record {
    display: none;
  }

  .layout-worth .title-bar.worth-title-bar,
  .layout-worth .worth-title-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    justify-content: flex-start;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    grid-template-columns: unset;
  }

  .worth-title-child .child-pills {
    gap: 6px;
  }

  .worth-title-child .pill {
    padding: 5px 11px;
    font-size: 12px;
  }

  .worth-shell {
    padding-top: 10px;
  }

  /* 卡片头：左标题 + 右统计同行 */
  .worth-tree-head {
    padding: 12px 14px 6px;
  }

  .worth-tree-head-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .worth-tree-head-main {
    flex: 1;
    min-width: 0;
  }

  .worth-tree-period {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    padding-top: 0;
    border-top: none;
  }

  .worth-tree-period-label,
  .worth-tree-period-sub {
    text-align: right;
    white-space: nowrap;
  }

  .worth-tree-period-sub::before {
    content: "·";
    margin-right: 4px;
    opacity: 0.6;
  }
}

/* ── Meta（统计时间 → 成长树卡片头） ── */
.worth-tree-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.worth-tree-head-main {
  flex: 1;
  min-width: 0;
}

.worth-tree-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  padding-top: 2px;
}

.worth-tree-period-label,
.worth-tree-period-sub {
  font-family: var(--font-family-data);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  white-space: nowrap;
  text-align: right;
  transition: color 0.28s linear, opacity 0.28s linear;
}

.worth-tree-scrubber.is-intro-playing ~ .worth-tree-legend,
.worth-tree-card:has(.is-intro-playing) .worth-tree-period-label,
.worth-tree-card:has(.is-intro-playing) .worth-tree-period-sub {
  opacity: 0.92;
}

.worth-tree-period-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  opacity: 0.88;
}

/* ── Accumulation banner ── */
.worth-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.worth-banner-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.16);
  color: var(--brand);
  font-size: 14px;
}

.worth-banner-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.worth-banner-sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.worth-progress {
  display: flex;
  gap: 6px;
}

.worth-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(212, 165, 116, 0.18);
  border: 1px solid rgba(212, 165, 116, 0.35);
}

.worth-progress-dot.is-filled {
  background: var(--spark);
  border-color: var(--spark);
  box-shadow: 0 0 8px var(--spark-glow);
}

/* ── Tree insight（headline + 小夏解读合并） ── */
.worth-tree-insight {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 14px 14px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.98), rgba(255, 248, 240, 0.88));
  border: 1px solid rgba(212, 165, 116, 0.14);
  border-left: 3px solid var(--brand-light);
}

.worth-tree-insight-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.xiaoxia-figure-sm {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f6f8;
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.18);
}

.xiaoxia-figure-sm-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.08);
  transform-origin: center 42%;
}

.worth-tree-insight-intro {
  flex: 1;
  min-width: 0;
}

.worth-tree-insight-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  line-height: 1.3;
}

.worth-tree-insight-headline {
  margin: 0;
  font-family: var(--font-family-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.worth-insight-dims-panel {
  margin: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--border-subtle);
}

.worth-insight-dims-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.worth-insight-dims-toggle::-webkit-details-marker {
  display: none;
}

.worth-insight-dims-toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.worth-insight-dims-toggle-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

.worth-insight-dims-chevron {
  margin-left: auto;
  font-size: 9px;
  color: var(--text-tertiary);
  transition: transform 0.2s var(--ease-soft);
}

.worth-insight-dims-panel[open] .worth-insight-dims-chevron {
  transform: rotate(180deg);
}

.worth-insight-dims-panel[open] .worth-insight-dims-toggle-hint {
  display: none;
}

.worth-insight-dims-panel[open] .worth-insight-dims-toggle {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

.worth-insight-dims-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand-light);
  border-radius: inherit;
}

.worth-insight-dims {
  list-style: none;
  margin: 0;
  padding: 6px 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.worth-insight-dim {
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-subtle);
}

.worth-insight-dim.is-empty {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.28);
}

.worth-insight-dim.is-flagged {
  border-color: rgba(212, 132, 124, 0.22);
  background: rgba(251, 240, 238, 0.4);
}

.worth-insight-dim-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 3px;
}

.worth-insight-dim-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.worth-insight-dim-trend {
  font-family: var(--font-family-data);
  font-size: 11px;
  font-weight: 600;
}

.worth-insight-dim-trend.is-up { color: var(--worth-accent); }
.worth-insight-dim-trend.is-flat { color: var(--text-tertiary); }
.worth-insight-dim-trend.is-down { color: var(--notice); }
.worth-insight-dim-trend.is-wait { color: var(--text-tertiary); font-weight: 500; }

.worth-insight-dim-signals {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.worth-insight-dim-summary {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.worth-insight-watch {
  padding-top: 8px;
  border-top: 1px solid rgba(212, 165, 116, 0.12);
}

.worth-insight-watch-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brand);
}

.worth-insight-watch-title i {
  font-size: 10px;
  opacity: 0.85;
}

.worth-insight-watch-list {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.worth-insight-watch-list li {
  margin-bottom: 5px;
}

.worth-insight-watch-list li:last-child {
  margin-bottom: 0;
}

/* ── Growth tree card ── */
.worth-tree-card {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--worth-tree-surface) 0%, var(--worth-tree-surface-deep) 100%);
  border: 1px solid var(--worth-page-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 2px 14px rgba(44, 54, 57, 0.04),
    0 8px 24px rgba(196, 112, 75, 0.05);
}

.worth-tree-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 45% at 50% 0%, rgba(212, 165, 116, 0.08), transparent 58%),
    radial-gradient(ellipse 55% 35% at 50% 100%, rgba(107, 144, 128, 0.04), transparent 50%);
  pointer-events: none;
}

.worth-tree-head {
  position: relative;
  padding: 13px 18px 6px;
}

.worth-tree-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  font-family: var(--font-family-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.section-icon--grow { color: var(--grow); }

.worth-tree-caption {
  margin: 0;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.worth-tree-stage {
  position: relative;
  padding: 0 8px 8px;
}

.worth-tree-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
}

.worth-tree-shadow {
  fill: rgba(44, 54, 57, 0.06);
}

.worth-pot {
  fill: rgba(196, 112, 75, 0.1);
  stroke: rgba(196, 112, 75, 0.22);
  stroke-width: 1;
}

.worth-pot--seedling {
  opacity: 0.85;
}

.worth-trunk {
  fill: url(#worthTrunkGrad);
}

.worth-branch {
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.36s linear;
}

.worth-branch.is-branch-entering,
.worth-branch.is-branch-exiting {
  opacity: 0;
  pointer-events: none;
}

.worth-branch-stem {
  fill: none;
  stroke: rgba(107, 144, 128, 0.32);
  stroke-width: var(--stem-width, 2.2);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke 0.36s linear, stroke-width 0.36s linear, opacity 0.36s linear;
}

.worth-branch.has-signal .worth-branch-stem {
  stroke: var(--grow);
}

.worth-branch.health-strong .worth-branch-stem {
  stroke: #5a8570;
}

.worth-branch.health-good .worth-branch-stem {
  stroke: #6b9080;
}

.worth-branch.health-neutral .worth-branch-stem {
  stroke: rgba(107, 144, 128, 0.72);
}

.worth-branch.health-faded .worth-branch-stem {
  stroke: rgba(107, 144, 128, 0.48);
}

.worth-branch.is-seedling .worth-branch-stem {
  stroke: rgba(107, 144, 128, 0.2);
  stroke-dasharray: 4 5;
  stroke-width: 1.6;
}

.worth-branch.is-active .worth-branch-stem {
  stroke: var(--worth-accent);
  stroke-width: 3.2;
  filter: drop-shadow(0 0 4px var(--worth-page-glow));
}

.worth-branch.is-active .worth-branch-label {
  fill: var(--worth-accent-deep);
  font-weight: 700;
}

.worth-branch.is-dimmed:not(.is-branch-entering):not(.is-branch-exiting) {
  opacity: 0.38;
}

.worth-branch-label {
  font-family: var(--font-family-base);
  font-size: 9px;
  font-weight: 600;
  fill: var(--text-secondary);
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: fill 0.36s linear, opacity 0.36s linear;
}

.worth-await-dot {
  fill: none;
  stroke: rgba(107, 144, 128, 0.28);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.worth-await-label {
  font-family: var(--font-family-base);
  font-size: 7px;
  fill: var(--text-tertiary);
  text-anchor: middle;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.worth-marker {
  cursor: pointer;
  outline: none;
  transition: opacity 0.36s linear;
}

.worth-sprout-glow {
  fill: var(--worth-sprout-glow);
  filter: url(#worthSparkGlow);
}

.worth-sprout-petal {
  fill: rgba(167, 210, 155, 0.7);
  stroke: rgba(90, 133, 112, 0.5);
  stroke-width: 0.6;
}

.worth-sprout-petal--l {
  fill: rgba(155, 200, 145, 0.75);
}

.worth-sprout-petal--r {
  fill: rgba(180, 220, 170, 0.7);
}

.worth-sprout-core {
  fill: var(--worth-sprout-core);
}

.worth-wilt-leaf {
  fill: rgba(201, 168, 154, 0.55);
  stroke: rgba(212, 132, 124, 0.45);
  stroke-width: 0.7;
}

.worth-wilt-stem {
  stroke: rgba(168, 140, 128, 0.5);
  stroke-width: 0.8;
  stroke-linecap: round;
}

.worth-marker--sprout:focus-visible .worth-sprout-glow,
.worth-marker--wilt:focus-visible .worth-wilt-leaf {
  filter: drop-shadow(0 0 4px var(--worth-page-glow));
}

.worth-tree-hint {
  display: none;
}

.worth-tree-scrubber {
  margin: 4px 14px 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(212, 165, 116, 0.16);
  box-shadow: 0 2px 12px rgba(44, 54, 57, 0.05);
}

.worth-scrubber-track {
  position: relative;
  height: 28px;
  margin: 0 6px;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.worth-scrubber-track.is-dragging {
  cursor: grabbing;
}

.worth-scrubber-track:focus-visible {
  outline: 2px solid rgba(107, 144, 128, 0.45);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.worth-scrubber-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: rgba(44, 54, 57, 0.08);
}

.worth-scrubber-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(107, 144, 128, 0.35), var(--grow));
  transition: width 0.12s linear;
  pointer-events: none;
}

.worth-scrubber-track.is-dragging .worth-scrubber-fill {
  transition: none;
}

.worth-tree-scrubber.is-intro-playing .worth-scrubber-fill {
  transition: none;
  background: linear-gradient(
    90deg,
    rgba(107, 144, 128, 0.28) 0%,
    rgba(107, 144, 128, 0.62) 72%,
    var(--grow) 100%
  );
}

.worth-scrubber-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.worth-scrubber-tick {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  border: 1.5px solid var(--surface-card);
  box-shadow: 0 1px 3px rgba(44, 54, 57, 0.12);
}

.worth-scrubber-tick--spark {
  background: linear-gradient(135deg, #e8c9a0, var(--spark));
}

.worth-scrubber-tick--mixed {
  background: linear-gradient(135deg, var(--spark) 0%, rgba(201, 168, 154, 0.85) 100%);
}

.worth-scrubber-tick--notice {
  background: rgba(201, 168, 154, 0.75);
  border-radius: 40% 60% 35% 65%;
  width: 8px;
  height: 6px;
  margin-top: -3px;
}

.worth-scrubber-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 2px solid var(--grow);
  box-shadow: 0 2px 8px rgba(107, 144, 128, 0.35);
  pointer-events: none;
  transition: left 0.12s linear, transform 0.2s linear, box-shadow 0.2s linear;
}

.worth-scrubber-track.is-dragging .worth-scrubber-thumb {
  transition: none;
  transform: scale(1.12);
}

.worth-tree-scrubber.is-intro-playing .worth-scrubber-thumb {
  transition: none;
  transform: scale(1.05);
  border-color: rgba(90, 133, 112, 0.95);
  box-shadow:
    0 0 0 4px rgba(107, 144, 128, 0.1),
    0 3px 12px rgba(107, 144, 128, 0.26);
}

.worth-tree-scrubber.is-intro-playing .worth-scrubber-rail {
  background: rgba(44, 54, 57, 0.06);
}

.worth-tree-scrubber.is-intro-playing .worth-scrubber-tick {
  opacity: 0.78;
  transition: opacity 0.35s linear;
}

.worth-tree-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 4px 18px 10px;
  list-style: none;
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.worth-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.worth-legend-dot--spark {
  background: linear-gradient(135deg, #e8c9a0, var(--spark));
  box-shadow: 0 0 6px var(--spark-glow);
}

.worth-legend-dot--wilt {
  background: rgba(201, 168, 154, 0.65);
  border-radius: 40% 60% 35% 65%;
  width: 9px;
  height: 6px;
}

.worth-branch:focus-visible {
  outline: none;
}

.worth-branch:focus-visible .worth-branch-stem {
  stroke: var(--worth-accent-light);
  filter: drop-shadow(0 0 4px var(--worth-page-glow));
}

/* ── Timeline ── */
.worth-section-head {
  margin-bottom: 10px;
}

.worth-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.section-icon--worth { color: var(--spark); }

.worth-section-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.worth-timeline-section {
  margin-bottom: 16px;
  scroll-margin-top: 112px;
  padding: 0 2px;
}

.worth-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.worth-timeline-card {
  display: block;
  padding: 11px 13px 12px;
  border-radius: var(--radius-md);
  color: inherit;
  cursor: pointer;
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(44, 54, 57, 0.06);
  box-shadow: 0 1px 3px rgba(44, 54, 57, 0.04);
  transition:
    transform 0.2s var(--ease-soft),
    box-shadow 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft),
    opacity 0.25s ease;
}

.worth-timeline-card--spark,
.worth-timeline-card--notice {
  background: rgba(255, 252, 248, 0.94);
  border-left: none;
}

.worth-timeline-card.is-linked {
  border-color: rgba(107, 144, 128, 0.28);
  box-shadow:
    0 0 0 1px rgba(107, 144, 128, 0.14),
    0 2px 10px rgba(107, 144, 128, 0.07);
  transform: translateY(-1px);
}

.worth-timeline-card--notice.is-linked {
  border-color: rgba(201, 168, 154, 0.32);
  box-shadow:
    0 0 0 1px rgba(201, 168, 154, 0.12),
    0 2px 10px rgba(44, 54, 57, 0.05);
}

.worth-timeline-card:not(.is-linked) {
  opacity: 0.94;
}

.worth-shell:has(.worth-branch.is-active) .worth-timeline-card:not(.is-linked),
.worth-shell:has(.worth-marker.is-pulse) .worth-timeline-card:not(.is-linked) {
  opacity: 0.52;
}

@media (hover: hover) {
  .worth-timeline-card:hover {
    transform: translateY(-1px);
    border-color: rgba(44, 54, 57, 0.1);
    box-shadow: 0 2px 8px rgba(44, 54, 57, 0.06);
  }
}

.worth-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.worth-timeline-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.worth-timeline-type::before {
  content: "";
  flex-shrink: 0;
}

.worth-timeline-type--spark::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spark);
  opacity: 0.82;
}

.worth-timeline-type--notice::before {
  width: 7px;
  height: 5px;
  margin-top: -1px;
  border-radius: 40% 60% 35% 65%;
  background: rgba(201, 168, 154, 0.78);
}

.worth-timeline-date {
  font-family: var(--font-family-data);
  font-variant-numeric: tabular-nums;
}

.worth-timeline-dot {
  opacity: 0.4;
}

.worth-timeline-dims {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.worth-timeline-dim {
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(44, 54, 57, 0.05);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
}

.worth-timeline-quote {
  margin: 0 0 4px;
  font-family: var(--font-family-display);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.worth-timeline-impact {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.worth-clip-trigger {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.worth-timeline-card .context-clip-hint {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(44, 54, 57, 0.08);
}

@media (hover: hover) {
  .worth-timeline-card .context-clip-trigger:hover .context-clip-hint {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(212, 165, 116, 0.18);
  }
}

body.context-replay-open .layout-worth .screen-content {
  overflow: hidden;
  padding-bottom: 228px;
}

body.context-replay-open.context-replay--peek .layout-worth .screen-content {
  padding-bottom: 228px;
}

body.context-replay-open.context-replay--expanded .layout-worth .screen-content {
  padding-bottom: 88px;
}

.worth-timeline-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-light), var(--shadow-glow);
}

.worth-cta {
  padding-top: 4px;
}

.worth-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.worth-cta-btn:active {
  transform: scale(0.985);
}

/* Accumulate: slightly smaller tree feel */
.worth-shell.is-accumulate .worth-tree-svg {
  max-height: 230px;
}
