/* ── Mood 面板 ── */
.mood-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  will-change: transform;
}

/* 电脑端：靠左，固定宽度 */
@media (min-width: 768px) {
  .mood-panel {
    right: auto;
    width: 420px;
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg, 0 8px 28px rgba(31,30,29,0.10));
  }
}

.mood-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 1;
}

.mood-back {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mood-back:hover { background: var(--bg-sunken); }

.mood-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.mood-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
  min-height: 400px;
}

/* ── 意图卡片 ── */
.mood-intent-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mood-intent-drive {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mood-intent-action {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.mood-intent-reason {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mood-intent-score {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
}

.mood-intent-card.rest .mood-intent-action { color: var(--text-secondary); }
.mood-intent-card.reach_out .mood-intent-action { color: var(--accent); }

/* ── 条形图 ── */
.mood-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mood-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mood-bar-label {
  width: 48px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.mood-bar-track {
  flex: 1;
  height: 20px;
  background: var(--bg-sunken);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.mood-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 2px;
}

.mood-bar-baseline {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--text-faint);
  opacity: 0.5;
  border-radius: 1px;
}

.mood-bar-value {
  width: 44px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--text-faint);
  text-align: left;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* 维度颜色 */
.mood-bar-fill.attachment  { background: var(--accent); }
.mood-bar-fill.libido    { background: var(--mood-libido); }
.mood-bar-fill.curiosity   { background: var(--mood-curiosity); }
.mood-bar-fill.social      { background: var(--mood-social); }
.mood-bar-fill.reflection  { background: var(--mood-reflection); }
.mood-bar-fill.stress    { background: var(--mood-stress); }
.mood-bar-fill.duty        { background: var(--mood-duty); }
.mood-bar-fill.fatigue     { background: var(--mood-fatigue); }

/* ── tick 信息 ── */
.mood-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-faint);
}

.mood-footer-item {
  display: flex;
  gap: 6px;
}

.mood-footer-label {
  color: var(--text-secondary);
  min-width: 80px;
}

.mood-disabled {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-faint);
  font-size: 15px;
}

/* ── 念头池 ── */
.mood-thoughts {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mood-thoughts-title {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.mood-thought-item {
  padding: 12px 14px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  margin-bottom: 10px;
}

.mood-thought-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mood-thought-tag {
  font-size: 11px;
  color: var(--text-faint);
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: 4px;
}

.mood-thought-time {
  font-size: 11px;
  color: var(--text-faint);
}

.mood-thought-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
}

.mood-thought-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── 念头强度条 ── */
.mood-thought-bar {
  height: 3px;
  background: var(--bg-sunken);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.mood-thought-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.mood-thought-bar-fill.faded {
  background: var(--text-faint);
  opacity: 0.4;
}
.mood-thought-bar-fill.settled {
  background: var(--mood-reflection);
}

/* ── 维度标签 ── */
.mood-thought-dim {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
  opacity: 0.85;
}
.mood-thought-dim.attachment  { background: var(--accent); }
.mood-thought-dim.libido      { background: var(--mood-libido); }
.mood-thought-dim.curiosity   { background: var(--mood-curiosity); }
.mood-thought-dim.social      { background: var(--mood-social); }
.mood-thought-dim.reflection  { background: var(--mood-reflection); }
.mood-thought-dim.stress      { background: var(--mood-stress); }
.mood-thought-dim.duty        { background: var(--mood-duty); }
.mood-thought-dim.fatigue     { background: var(--mood-fatigue); }

.mood-thought-tag.fixation {
  color: var(--danger);
  border-color: var(--danger);
}

.mood-thoughts-empty {
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
  padding: 20px 0;
}

/* ── Tab 栏 ── */
.mood-tab-bar {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.mood-tab {
  padding: 6px 14px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.mood-tab:hover { background: var(--bg-sunken); color: var(--text-primary); }
.mood-tab.active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

/* ── 记忆统计卡片 ── */
.memory-stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.memory-stat-card {
  flex: 1;
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.memory-stat-card.muted { opacity: 0.55; }

.memory-stat-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.memory-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── 记忆桶列表 ── */
.memory-bucket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.memory-bucket-item {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 12px 14px;
  border-left: 3px solid transparent;
}
.memory-bucket-item.perm { border-left-color: var(--accent); }
.memory-bucket-item.dyn  { border-left-color: var(--mood-curiosity); }
.memory-bucket-item.feel { border-left-color: var(--mood-libido); opacity: 0.85; }
.memory-bucket-item.archive { border-left-color: var(--mood-duty); opacity: 0.6; }

.memory-bucket-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.memory-bucket-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-bucket-meta {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.mem-badge {
  font-size: 11px;
  color: var(--text-faint);
}
.mem-badge.resolved {
  font-size: 10px;
  background: var(--bg-sunken);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-faint);
}

.mem-layer-tag {
  font-size: 10px;
  color: var(--text-faint);
  background: var(--bg-sunken);
  padding: 1px 5px;
  border-radius: 3px;
}

.memory-bucket-domain {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.memory-bucket-bar {
  height: 4px;
  background: var(--bg-sunken);
  border-radius: 2px;
  margin-bottom: 6px;
}

.memory-bucket-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.memory-bucket-actions {
  display: flex;
  gap: 4px;
}

.mem-act-btn {
  border: none;
  background: var(--bg-sunken);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s;
}
.mem-act-btn:hover { background: var(--border); color: var(--text-primary); }
.mem-act-btn:disabled { opacity: 0.4; cursor: default; }

/* ── 感受时间线 ── */
.mood-readonly-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.thought-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thought-timeline-item {
  padding: 14px;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  position: relative;
}

.thought-timeline-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.thought-time {
  font-size: 11px;
  color: var(--text-faint);
}

.thought-tag {
  font-size: 10px;
  color: var(--text-faint);
  background: var(--bg-sunken);
  padding: 1px 6px;
  border-radius: 3px;
}

.thought-timeline-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* 折叠卡片：每条固定高度，点一下展开、再点一下收起 */
.thought-timeline-item.collapsed { cursor: pointer; }
.thought-timeline-item.collapsed .thought-timeline-text {
  height: 56px;
  overflow: hidden;
}
.thought-timeline-item.collapsed.has-more .thought-timeline-text {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
          mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.thought-timeline-item.expanded .thought-timeline-text {
  height: auto;
  overflow: visible;
}

.thought-timeline-end {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 16px;
}

/* ── 6.2c 念头池 ── */

.thought-pool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.thought-pool-item {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 10px 12px;
  transition: opacity 0.3s;
}

.thought-pool-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.thought-pool-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-right: 4px;
}

.thought-pool-intensity {
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
}

.thought-dim-badge {
  display: inline-block;
  font-size: 10px;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  opacity: 0.85;
}

.thought-kind-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}
.thought-kind-tag.fixation {
  background: var(--rose);
  color: #fff;
}

.thought-status-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
}
.thought-status-tag.expressed { background: var(--info); color: #000; }
.thought-status-tag.faded { background: var(--text-faint); color: #aaa; }
.thought-status-tag.settled { background: var(--mood-reflection); color: #fff; }

.thought-pool-bar {
  height: 3px;
  background: var(--bg-hover);
  border-radius: 2px;
  margin: 4px 0 6px;
  overflow: hidden;
}

.thought-pool-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

.thought-pool-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
}

/* 念头内嵌在情绪 tab 底部 */
.thoughts-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.thoughts-section-head {
  font-size: 12px;
  color: var(--text-faint);
  padding: 0 0 10px;
}

/* ── 6.5 此刻状态 banner ── */
.mood-status-banner {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  padding: 8px 0 14px;
  letter-spacing: 0.02em;
}

/* ── 6.5 内心便签卡片 ── */
.mood-inside-notes { margin-top: 12px; }
.inside-note-card {
  background: var(--card-bg);
  border-left: 2px solid var(--rose-muted);
  border-radius: var(--card-radius);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.inside-note-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.inside-note-text {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── 6.5 感受区标签 ── */
.feels-section-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0 10px;
}

.feels-section-divider {
  height: 1px;
  background: var(--border-light);
  margin: 14px 0;
}

/* ── 6.5 settled 念头 → 感受跳转 ── */
.thought-settle-link {
  font-size: 11px;
  color: var(--mood-reflection);
  cursor: pointer;
  margin-left: auto;
  user-select: none;
}
.thought-settle-link:hover {
  opacity: .7;
}

/* ── 我 tab：自我认知（无横杠分组标题） ── */
.self-section { margin-bottom: 20px; }
.self-section-head {
  font-size: 12px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 0 8px; margin-bottom: 6px;
}
.self-item {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 12px 14px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.self-item:hover { background: var(--bg-sunken); }
.self-item-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.self-item-expand-arrow {
  font-size: 10px; color: var(--text-faint);
  transition: transform 0.2s;
}
.self-item[data-expanded="1"] .self-item-expand-arrow { transform: rotate(90deg); }
.self-item-snippet {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
  white-space: pre-wrap;
}
.self-item-content {
  font-size: 14px; color: var(--text-primary); line-height: 1.7;
  white-space: pre-wrap;
}

/* ── 记忆 tab 分块 ── */
.mem-section { margin-bottom: 20px; }
.mem-section-head {
  font-size: 12px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 0 8px; border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}
.mem-item {
  background: var(--card-bg);
  border-radius: var(--card-radius); padding: 10px 12px; margin-bottom: 6px;
}
.mem-item-top { display: flex; justify-content: space-between; align-items: center; }
.mem-item-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.mem-item-time { font-size: 11px; color: var(--text-faint); }
.mem-item-snippet {
  font-size: 12px; color: var(--text-secondary); line-height: 1.4;
  margin-top: 4px; opacity: .85;
  transition: opacity 0.25s, max-height 0.3s, margin 0.3s;
  overflow: hidden;
}
.mem-item-snippet.snippet-hidden {
  opacity: 0; max-height: 0; margin-top: 0;
}
.mem-item-bar { height: 2px; background: var(--bg-hover); border-radius: 1px; margin: 6px 0; }
.mem-item-bar-fill { height: 100%; border-radius: 1px; background: var(--text-faint); }
.mem-item-foot { display: flex; justify-content: space-between; align-items: center; }
.mem-item-tags { display: flex; gap: 4px; }
.mem-tag { font-size: 10px; color: var(--text-faint); background: var(--bg-hover); padding: 1px 5px; border-radius: 3px; }
.mem-item-actions { display: flex; gap: 2px; }
.mem-compress-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-faint); font-size: 12px; padding: 2px 6px;
  border-radius: 3px; cursor: pointer;
}
.mem-compress-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }

/* ── 分区折叠 ── */
.mem-section-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 0 8px; cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}
.mem-section-head:hover { color: var(--text-secondary); }
.mem-section-arrow { font-size: 10px; transition: transform .2s; }
.mem-section-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}
.mem-section-body.hidden { grid-template-rows: 0fr; }

/* 卡片展开 */
.mem-expand-trigger { cursor: pointer; }
.mem-item-full {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}
.mem-item-full.hidden {
  grid-template-rows: 0fr;
  margin-top: 0; padding-top: 0; border-top-color: transparent;
}
.mem-item-content {
  font-size: 12px; line-height: 1.5; color: var(--text-secondary);
  white-space: pre-wrap; max-height: 200px; overflow-y: auto;
}

/* 梦条目 */
.dream-item { border-left: 2px solid var(--rose-muted); padding-left: 10px; }

/* 梦分页"加载更早" */
.dream-load-more {
  display: block; margin: 14px auto 4px; padding: 8px 18px;
  background: var(--card-bg); color: var(--text-secondary);
  border: 1px solid var(--border-muted); border-radius: 999px;
  font-size: 13px; cursor: pointer;
}
.dream-load-more:hover { color: var(--rose-muted); border-color: var(--rose-muted); }

/* Brain API 配置卡片 */
.brain-config {
  margin: 0 0 16px; padding: 10px 12px;
  background: var(--card-bg); border-radius: var(--card-radius);
  border: 1px solid var(--border-light);
}
.brain-config-head {
  font-size: 12px; color: var(--text-faint); cursor: pointer; user-select: none;
  display: flex; justify-content: space-between; align-items: center;
}
.brain-config-head:hover { color: var(--text-secondary); }
.brain-config-arrow { font-size: 10px; transition: transform .2s; }
.brain-config.open .brain-config-arrow { transform: rotate(180deg); }
.brain-config-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}
.brain-config.open .brain-config-body { grid-template-rows: 1fr; }
.brain-config-body > :first-child { min-height: 0; }
.brain-config-section { padding-top: 8px; }
.brain-config-label {
  font-size: 10px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.brain-config-input {
  width: 100%; box-sizing: border-box; background: var(--bg-sunken); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 12px; padding: 5px 8px; border-radius: 4px;
  margin-bottom: 6px;
}
.brain-config-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.brain-config-save {
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 12px; padding: 4px 12px; border-radius: 4px; cursor: pointer;
}
.brain-config-save:hover { background: var(--bg-hover); }
.brain-config-msg { font-size: 11px; }
.brain-config-msg.ok { color: var(--success); }
.brain-config-msg.err { color: var(--danger); }

/* 筛选卡片选中态 */
.memory-stat-card[data-filter] { cursor: pointer; transition: opacity .2s; }
.memory-stat-card[data-filter].active { opacity: 1; border-bottom: 2px solid var(--text-secondary); }
.memory-stat-card[data-filter]:not(.active) { opacity: .55; }
.memory-stat-card[data-filter]:hover { opacity: .8; }

/* ── 加载指示条 ── */
.mood-loading-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: mood-loading-shimmer 1.2s ease-in-out infinite;
  border-radius: 1px;
  margin-bottom: 8px;
}
@keyframes mood-loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Health 面板（1c）── */

.health-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.health-section:last-child { border-bottom: none; }

.health-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* 健康灯 */
.health-lights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-stage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.health-stage-name {
  width: 90px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.health-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.health-light-ok  { background: var(--success); }
.health-light-fail { background: var(--danger); }
.health-light-none { background: var(--border); }

.health-stage-count {
  color: var(--text-secondary);
  font-size: 12px;
}

/* 失败列表 */
.health-fails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-fail-item {
  font-size: 12px;
  padding: 8px 10px;
  background: var(--bg-sunken);
  border-radius: 6px;
  border-left: 3px solid var(--danger);
}

.health-fail-stage {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.health-fail-detail {
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
  max-height: 48px;
  overflow: hidden;
}

.health-fail-time {
  color: var(--text-tertiary, #999);
  font-size: 11px;
  margin-top: 3px;
}

/* ── Permanent 分区记忆卡 ── */

.memory-stat-card.perm {
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* Action receipts and complete lists share the existing quiet Mood styling. */
.mood-activity-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mood-activity-item > div { display:flex; justify-content:space-between; gap:12px; }
.mood-activity-item strong { font-family:var(--font-sans); font-size:var(--text-sm); font-weight:500; color:var(--text-primary); }
.mood-activity-item p { font-family:var(--font-serif); font-size:var(--text-sm); color:var(--text-secondary); margin:6px 0; line-height:var(--leading); }
.mood-activity-item p:empty { display:none; }
.mood-activity-item small, .mood-activity-status { font-family:var(--font-sans); font-size:var(--text-xs); color:var(--text-faint); }
.mood-pagination { display:flex; flex-direction:column; align-items:center; gap:12px; padding:12px 0 24px; font-family:var(--font-sans); font-size:var(--text-xs); color:var(--text-faint); }
.mood-pagination button:disabled { opacity:.6; cursor:wait; }

@media (max-width: 480px) {
  .mood-header { gap: 8px; padding: 12px; }
  .mood-back { width: 28px; flex-shrink: 0; }
  .mood-tab-bar { gap: 2px; }
  .mood-tab { padding: 6px 8px; white-space: nowrap; }
}
