/* 燕归 · styles */
  *{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
  /* 触摸控件禁止长按选中文字 / 呼出系统菜单——尤其“长按撤销”不再把打卡文字选中（否则 iOS 会因选区取消手势）。
     可读文本（输入框 / 日记 / 小确幸备注）不在此列，仍可复制。 */
  button, .subj-head, .shop-card, .node, .mini, .pill{
    -webkit-user-select:none; -moz-user-select:none; user-select:none; -webkit-touch-callout:none;
  }
  /* a11y(p2): 由 a/span/div 改成 <button> 的可点控件复位为原外观（放在具体规则之前，让各自 font-size/color 仍生效） */
  .focus-quick,.dm-clear,.linkish{font:inherit; background:none; border:none; cursor:pointer; padding:0; -webkit-appearance:none; appearance:none;}
  .linkish{color:var(--accent-d); font-weight:600;}
  .shop-card,.mo-node,.pill{font:inherit; text-align:inherit; background:none; border:0; padding:0; color:inherit; -webkit-appearance:none; appearance:none;}
  button.pill{cursor:pointer;}
  /* 内联线性图标（沿用 nav sprite，随 currentColor 变色）：控件外壳去 emoji 用 */
  .ic-14,.ic-16,.ic-18,.ic-20{vertical-align:-2px; flex:0 0 auto;}
  .ic-14{width:14px; height:14px;}
  .ic-16{width:15px; height:15px; margin-right:4px;}
  .ic-18{width:18px; height:18px;}
  .ic-20{width:20px; height:20px;}
  /* 键盘焦点兜底环（暖调 accent；具体控件可再覆盖）——补全站可见 focus，含 role=button 的 div */
  :where(button,[role="button"],a,input,textarea,select,summary,[tabindex]):focus-visible{ outline:2px solid var(--accent-d); outline-offset:2px; }
  html,body{margin:0;padding:0;}
  body{
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif;
    background:var(--bg); color:var(--ink); line-height:1.5;
    padding-bottom:calc(72px + env(safe-area-inset-bottom));
  }
  header{position:sticky; top:0; z-index:20; background:var(--grad-mist);
    padding:calc(8px + env(safe-area-inset-top)) max(16px, calc((100% - var(--shell-max))/2)) 10px; box-shadow:var(--shadow);}
  .h-row{display:flex; justify-content:space-between; align-items:center;}
  .h-date{font-size:12.5px; color:var(--muted);}
  .hd-week{color:var(--muted-faint); margin-left:6px; font-weight:400;}
  .h-dday{font-size:12.5px; color:#fff; background:var(--accent-cta); border-radius:20px; padding:3px 10px; font-weight:700;}
  .h-right{display:inline-flex; align-items:center; gap:var(--sp-2);}
  .sync-dot{width:9px; height:9px; border-radius:50%; background:var(--dot-off); display:inline-block; flex:0 0 auto;}
  .sync-dot.ok{background:var(--sync-ok);}
  .sync-dot.off{background:var(--muted-faint);}
  .sync-dot.warn{background:var(--sync-warn);}
  .score-big{font-size:var(--t-2xl); font-weight:700; letter-spacing:-1px; margin-top:0; line-height:1.15;}
  .score-big small{font-size:var(--t-base); font-weight:500; color:var(--muted); margin-left:6px;}
  /* 情绪优先：0 分时藏分数、大字改陪伴叙事 */
  .score-big .companion-line{display:none;}
  .score-big.companion .score-num{display:none;}
  .score-big.companion .companion-line{display:block; font-size:19px; font-weight:800; line-height:1.3; letter-spacing:normal;}
  .score-big, .hero-bal .hb-num, .focus-timer, .stat .n, .h-stats b, .day-sum b, .ms-next-gap{ font-variant-numeric:tabular-nums; font-feature-settings:'ss01'; }
  .score-big, .hero-bal .hb-num, .focus-timer, .stat .n{ letter-spacing:-.02em; }
  .h-stats{display:flex; gap:14px; margin-top:4px; font-size:12.5px; color:var(--muted); flex-wrap:wrap;}
  .h-stats b{color:var(--ink); font-weight:700;}
  /* 单位后缀降权：数值醒目、单位安静（分/天…统一走此类） */
  .unit{color:var(--muted); font-weight:400;}
  .encourage{margin-top:7px; font-size:12.5px; color:var(--good-ink); background:var(--tile-raise); border-radius:10px; padding:6px 10px; line-height:1.4;}
  main{padding:12px 14px 24px; max-width:var(--shell-max); margin:0 auto; overflow-x:clip;}
  section{display:none;} section.active{display:block;}
  @keyframes fade{from{opacity:0; transform:translateY(4px);} to{opacity:1;transform:none;}}
  /* 区块标题系统：模块级 .section-title(<h2>) / 子级 .subgroup-title(<h3>)；.section-head 承载右侧安静动作 .section-actions */
  .section-head{display:flex; justify-content:space-between; align-items:center; gap:10px; margin:22px 4px 10px;}
  .section-title{font-size:var(--t-md); font-weight:700; color:var(--ink); margin:0; line-height:1.3; display:flex; align-items:center; gap:7px;}
  .group-sub{font-size:var(--t-xs); font-weight:400; color:var(--muted); margin:3px 0 0; line-height:1.4;}
  .subgroup-title{font-size:var(--t-sm); font-weight:700; color:var(--muted); margin:18px 4px 8px; line-height:1.3; display:flex; justify-content:space-between; align-items:center; gap:var(--sp-2);}
  .subgroup-title:first-child{margin-top:0;}
  .sg-sub{font-weight:400; color:var(--muted-faint); font-size:var(--t-xs);}
  .sg-hint{font-weight:600; color:var(--muted); font-size:11px; background:var(--chip); border:1px solid var(--line); border-radius:9px; padding:1px 8px; white-space:nowrap;}   /* 左滑提示胶囊：带方向、点明可编辑/删除(4c) */
  .section-actions{display:flex; gap:6px; align-items:center; flex:0 0 auto;}
  .tl-total{font-size:var(--t-sm); font-weight:700; color:var(--accent-d);}
  .card{background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); overflow:hidden; margin-bottom:8px;}
  /* first-step big button */
  .first-step{width:100%; border:none; border-radius:16px; padding:14px 16px; color:#fff;
    background:var(--grad-cta); box-shadow:var(--shadow); margin-bottom:6px;
    display:flex; align-items:center; gap:10px; text-align:left; position:relative; overflow:hidden;}
  .first-step:active{transform:scale(.99);}
  .first-step .fs-inner{position:relative; flex:1; display:flex; flex-direction:column; line-height:1.15; min-width:0;}
  .first-step .fs-kicker{font-size:11.5px; font-weight:700; letter-spacing:.3px;}
  .first-step .fs-main{font-size:var(--t-lg); font-weight:800; margin-top:2px;}
  .first-step .fs-right{position:relative; display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex:0 0 auto;}
  .first-step .fs-pts{font-size:12.5px; font-weight:800; background:rgba(0,0,0,.22); border-radius:12px; padding:3px 10px; white-space:nowrap;}
  .soft-hint{font-size:var(--t-xs); color:var(--muted); text-align:center; margin:2px 0 10px;}
  .soft-hint a{color:var(--accent-d); font-weight:600;}
  /* 入夜低谷免罚软卡（打卡页，仅 0 分且入夜出现） */
  .restday-nudge{background:var(--tile-raise); border:1px solid var(--line); border-radius:16px; padding:14px 16px; margin-bottom:12px; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:10px;}
  .restday-nudge .rn-text{font-size:13.5px; line-height:1.65; color:var(--ink);}
  .restday-nudge .rn-text b{color:var(--accent-d);}
  .restday-nudge .rn-go{align-self:flex-start; border:1px solid var(--line); border-radius:12px; padding:9px 16px; font-size:var(--t-base); font-weight:700; background:var(--btn-ghost-bg); color:var(--accent-d); cursor:pointer;}
  .chips{display:flex; flex-wrap:wrap; gap:9px; padding:12px;}
  .chip{position:relative; border:1.5px solid var(--line); background:var(--field); border-radius:16px; padding:10px 13px; display:flex; align-items:center; gap:6px; font-size:var(--t-base); color:var(--ink); transition:transform .1s;}
  .chip:active{transform:scale(.97);}
  .chip.on{background:var(--good-bg); border-color:var(--accent);}
  .chip.on .cn{color:var(--good-ink);}
  .chip .ci{font-size:var(--t-md); line-height:1;}
  .chip .cn{font-weight:600;}
  .chip .cx{position:absolute; top:-9px; right:-7px; background:var(--accent-cta); color:#fff; font-size:11px; font-weight:700; border-radius:12px; padding:1px 7px; box-shadow:0 1px 4px rgba(0,0,0,.18);}
  .care-hint{font-size:var(--t-xs); color:var(--muted); margin:0 4px 8px;}
  .care-chips{display:flex; flex-wrap:wrap; gap:9px; margin-bottom:8px;}
  /* 模块领地化：「照顾自己」专属柔光角落（淡主色暖底把它立成与学习同等的一块领地）*/
  .care-zone{background:var(--good-bg); border:1px solid var(--accent-line); border-radius:var(--r-card); padding:13px 13px 4px; margin-bottom:8px;}
  .care-zone .care-hint{margin:0 2px 10px;}
  .care-zone .care-chips{margin-bottom:9px;}
  .care-zone .add-block{margin:2px 0 9px;}
  /* 回看类列表容器（替代死类 .plain-card）：沉入的 L1 列表（surface-sunken + 一级阴影），行自带内边距/分隔线 */
  .list-card{background:var(--surface-sunken); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow-1); overflow:hidden; margin-bottom:8px;}
  .care-chip{position:relative; display:flex; align-items:center; gap:7px; border:1.5px dashed var(--line); background:var(--field); border-radius:22px; padding:9px 13px; font-size:var(--t-base); color:var(--ink); transition:transform .1s;}
  .care-chip:active{transform:scale(.97);}
  .care-chip.on{border-style:solid; border-color:var(--accent); background:var(--chip-sel);}
  .care-chip .cdot{width:18px; height:18px; border-radius:50%; border:2px solid var(--accent-line); display:flex; align-items:center; justify-content:center; font-size:10px; color:#fff;}
  .care-chip.on .cdot{background:var(--accent-cta); border-color:var(--accent-cta);}
  .care-chip .cn{font-weight:600;}
  .ov-wrap{overflow-x:auto;}
  table.ov{width:100%; border-collapse:separate; border-spacing:3px; font-size:12.5px;}
  table.ov th{background:var(--chip); color:var(--muted); font-weight:600; padding:5px 4px; border-radius:6px;}
  table.ov td{text-align:center; padding:6px 4px; border-radius:6px; background:var(--surface-sunken); color:var(--ink); min-width:32px;}
  table.ov td.ovd{color:var(--muted); background:none; font-size:11.5px; white-space:nowrap;}
  table.ov td.ovsum{font-weight:700; color:var(--accent-d); background:rgba(var(--accent-rgb),.20);}
  table.ov td.ov-other{background:rgba(var(--accent-rgb),.10); color:var(--accent-d); font-weight:600;} table.ov th.ov-other{background:rgba(var(--accent-rgb),.14); color:var(--accent-d);}   /* 概览「其它」聚合列：淡主色瓦片(可见、比 Σ 轻)、随配色 */
  .ov-cum{font-size:var(--t-xs); color:var(--ink); margin-top:8px; background:var(--surface-sunken); border-radius:10px; padding:8px 10px;}
  /* +分 更醒目（小圆牌） */
  .chip .cp{font-size:11px; font-weight:800; color:var(--good-ink); background:var(--surface-sunken); border-radius:9px; padding:1px 6px;}
  .chip.on .cp{color:var(--badge-good-fg); background:var(--badge-good-bg);}
  .care-chip .cp{font-size:11px; font-weight:800; color:var(--badge-rose-fg); background:var(--badge-rose-bg); border-radius:9px; padding:1px 6px; align-self:center;}
  .care-chip .cp-stack{display:flex; flex-direction:column; align-items:flex-end; gap:3px; align-self:center;}   /* 冷却：+分 与 倒计时 右侧竖排，都显示、不抖(4a) */
  .care-chip .cp.cool{color:var(--muted); background:var(--field); border:1px solid var(--line); font-weight:600; font-variant-numeric:tabular-nums;}
  /* 照顾自己两行 + 冷却态 */
  .care-chip .cbody{display:flex; flex-direction:column; line-height:1.2; text-align:left;}
  .care-chip .cbody .cn{font-weight:600;}
  .care-chip .cbody .sub{font-size:11px; color:var(--muted); font-weight:400; margin-top:1px;}
  .care-chip .cdot{align-self:center;}
  .care-chip.cooling{filter:grayscale(.7); opacity:.55;}
  /* 长按撤销·填充消退 */
  .lp-fill{position:absolute; inset:0; background:var(--accent-soft); transform-origin:left; transform:scaleX(1); border-radius:inherit; pointer-events:none;}
  .lp-fill.run{transition:transform .5s linear; transform:scaleX(0);}
  /* 先迈第一步冷却 */
  .first-step .cool-veil{position:absolute; inset:0; background:rgba(80,72,68,.34); transform-origin:right; transform:scaleX(var(--pct,0)); transition:transform .6s linear; pointer-events:none;}
  .first-step .cool-left{font-size:11px; font-weight:700; background:rgba(0,0,0,.22); border-radius:10px; padding:2px 8px;}
  .first-step.cooling{color:var(--step-cool-ink); background:var(--step-cool);}
  .first-step.cooling .fs-pts{background:rgba(120,110,100,.16);}
  .first-step.done:not(.cooling){background:var(--step-done); color:var(--good-ink); box-shadow:none;}
  .first-step.done:not(.cooling) .fs-pts{background:var(--accent-soft); color:var(--good-ink);}
  /* 专注覆盖层 */
  .focus{position:fixed; inset:0; z-index:110; background:var(--focus-bg); display:none; flex-direction:column; align-items:center; justify-content:center; padding:26px;}
  /* 记录/小确幸弹窗：外部用「模糊的背景」而非纯色空白（专注计时仍全屏沉浸，不在此列） */
  #recpop, #happypop{ background:rgba(74,64,56,.32); -webkit-backdrop-filter:blur(7px) saturate(130%); backdrop-filter:blur(7px) saturate(130%); }
  .focus.show{display:flex;}
  /* 新用户欢迎流（复用统一模态控制器的 .show） */
  .onboard{position:fixed; inset:0; z-index:120; background:rgba(74,64,56,.42); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); display:none; align-items:center; justify-content:center; padding:26px;}
  .onboard.show{display:flex;}
  .onboard-card{width:100%; max-width:360px; background:var(--surface); border-radius:22px; box-shadow:var(--shadow-modal); padding:30px 24px; text-align:center;}
  .onb-title{font-size:22px; font-weight:800; color:var(--ink); margin:0 0 12px;}
  .onb-desc{font-size:14.5px; line-height:1.75; color:var(--muted); margin-bottom:20px;}
  .onb-dots{display:flex; gap:7px; justify-content:center; margin-bottom:20px;}
  .onb-dot{width:7px; height:7px; border-radius:50%; background:var(--line); transition:width .2s;}
  .onb-dot.on{background:var(--accent); width:20px; border-radius:4px;}
  .onb-actions{display:flex; flex-direction:column; gap:10px; align-items:center;}
  .onb-go{width:100%; border:none; border-radius:16px; padding:14px; font-size:var(--t-md); font-weight:800; background:var(--grad-cta); color:#fff; cursor:pointer;}
  .onb-skip{background:none; border:none; color:var(--muted); font-size:var(--t-sm); text-decoration:underline; cursor:pointer; padding:4px;}
  .focus-inner{width:100%; max-width:340px; text-align:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sheet); box-shadow:var(--shadow-modal); padding:22px 18px;}   /* 实心卡片底：字不再直接压在模糊遮罩上(3a) + 计时/直接记弹窗更精致(2) */
  .focus-what{font-size:19px; font-weight:800; color:var(--accent-d); margin-bottom:16px;}
  .focus-timer{font-size:var(--t-hero); font-weight:800; letter-spacing:1px; color:var(--ink); margin:4px 0 22px; font-variant-numeric:tabular-nums;}
  .focus-actions{display:flex; flex-direction:column; gap:var(--sp-3); align-items:center;}
  .focus-actions button:not(.focus-quick){width:100%; border:none; border-radius:16px; padding:15px; font-size:var(--t-md); font-weight:800; color:#fff;}
  .focus-go{background:var(--grad-cta);}
  .focus-end{background:var(--grad-cta);}
  .focus-ghost{background:var(--focus-ghost-bg) !important; color:var(--muted) !important;}
  .focus-quick{color:var(--accent-d); font-size:var(--t-sm); font-weight:600; text-decoration:none; border:1px solid var(--line); background:var(--field); border-radius:var(--r-pill); padding:9px 16px; min-height:40px; display:inline-flex; align-items:center; justify-content:center; margin-top:2px;}   /* 二级动作统一「幽灵胶囊」：明显可点、比主按钮轻(4b) */
  /* 直接记一次·预估时长选择 */
  .quick-est{width:100%; display:flex; flex-direction:column; align-items:center; gap:2px; background:var(--field); border-radius:12px; padding:10px 12px;}
  .quick-est .qe-lbl{font-size:var(--t-xs); color:var(--muted);} .quick-est .qe-lbl small{font-size:11px;}
  .quick-est .qe-val{font-size:var(--t-lg); font-weight:800; color:var(--accent-d);} .quick-est .qe-val b{font-variant-numeric:tabular-nums;}
  .quick-custom{display:none; align-items:center; gap:8px; width:100%; justify-content:center; font-size:var(--t-xs); color:var(--muted);}
  .quick-custom.show{display:flex;}
  .qc-num{width:72px; border:1px solid var(--line); border-radius:10px; padding:8px; font-size:var(--t-md); background:var(--field); color:var(--ink); text-align:center;}
  /* 时间轴 + 历史时长 */
  .tl-head{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:8px;}
  .tl-right{display:inline-flex; align-items:center; gap:8px; flex:0 0 auto;}
  .tl-axis{position:relative; min-height:20px; background:var(--surface-sunken); border-radius:8px; overflow:hidden;}
  .tl-blk{position:absolute; border-radius:4px; min-width:3px;}
  .tl-ticks{position:relative; height:15px; margin-top:2px;}
  .tl-ticks span{position:absolute; transform:translateX(-50%); font-size:10px; color:var(--muted);}
  .hb-row{display:flex; align-items:flex-end; gap:3px; height:54px;}
  .hb{flex:1; background:var(--surface-sunken); border-radius:3px; height:100%; display:flex; align-items:flex-end; overflow:hidden;}
  .hb-fill{width:100%; background:var(--grad-dawn); border-radius:3px;}
  .hb.sel{outline:1.5px solid var(--accent-d); outline-offset:1px;}   /* 选中的日：时间轴显示它 */
  .hb-cap{font-size:12px; color:var(--muted); margin:14px 0 5px;}
  /* 奖励页：余额卡 + 兑换网格 */
  .hero-bal{background:var(--grad-mist); border-radius:var(--r-hero); border:1px solid var(--line); padding:18px; text-align:center; box-shadow:var(--shadow); margin-bottom:6px;}
  .hero-bal .hb-num{font-size:var(--t-3xl); font-weight:800; color:var(--accent-d); line-height:1;}
  .hero-bal .hb-lbl{font-size:var(--t-sm); color:var(--muted); margin-top:2px;}
  .hero-bal .hb-sub{font-size:var(--t-xs); color:var(--muted); margin-top:6px;}
  .shop-grid{display:grid; grid-template-columns:1fr 1fr; gap:9px;}
  .shop-card{background:var(--card); border-radius:var(--r-chip); border:1px solid var(--line); box-shadow:var(--shadow); padding:13px; display:flex; flex-direction:column; justify-content:space-between; min-height:64px; cursor:pointer; transition:transform .1s;}
  .shop-card:active{transform:scale(.97);}
  .shop-card .sc-name{font-size:var(--t-base); font-weight:600; color:var(--ink);}
  .shop-card .sc-cost{font-size:var(--t-sm); font-weight:700; color:var(--accent-d); margin-top:8px;}
  .shop-card.locked{opacity:.55;} .shop-card.locked .sc-cost{color:var(--muted);}
  .shop-card.editing{position:relative; animation:es-wiggle .45s ease-in-out infinite alternate; cursor:pointer; border-style:dashed; border-color:var(--accent);}
  .shop-card.editing .es-grip2{position:absolute; top:5px; right:4px; padding:2px 4px;}
  /* 里程碑：下一站进度卡 + 进度轴 */
  .ms-next{background:var(--grad-mist); border-radius:16px; padding:13px 15px; margin-bottom:12px; box-shadow:var(--shadow);}
  .ms-next.done{background:var(--ms-done); box-shadow:var(--shadow), inset 4px 0 0 var(--accent);}
  .ms-next.done .ms-next-lbl{color:var(--good-ink);}
  .ms-next-top{display:flex; justify-content:space-between; align-items:baseline; gap:10px;}
  .ms-next-lbl{font-size:14.5px; font-weight:700; color:var(--ink);}
  .ms-next-gap{font-size:var(--t-sm); font-weight:800; color:var(--accent-d); white-space:nowrap;}
  .ms-bar{height:8px; background:var(--track); border-radius:6px; overflow:hidden; margin:9px 0 6px;}
  .ms-bar-fill{display:block; height:100%; background:var(--grad-dawn); border-radius:6px; transition:width .5s;}
  .ms-next-sub{font-size:11.5px; color:var(--muted);}
  .axis{position:relative; padding:2px 0;}
  .node{position:relative; display:flex; align-items:center; gap:13px; padding:7px 2px; cursor:pointer;}
  .node .rail{position:relative; width:22px; flex:0 0 22px; align-self:stretch; display:flex; align-items:center; justify-content:center;}
  .node .rail::before{content:''; position:absolute; left:9px; top:0; bottom:0; width:3px; background:var(--line);}
  .node.done .rail::before,.node.unlocked .rail::before,.node.next .rail::before{background:var(--grad-dawn);}
  .node:first-child .rail::before{top:50%;}
  .node:last-child .rail::before{bottom:50%;}
  .node .dot{position:relative; z-index:1; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; background:var(--dot-off); color:#fff; box-shadow:0 0 0 3px var(--bg);}
  .node.done .dot,.node.unlocked .dot{background:var(--grad-dawn);}
  .node.next .dot{width:20px; height:20px; background:var(--surface); border:2.5px solid var(--accent); color:var(--accent-d); box-shadow:0 0 0 3px var(--bg), 0 0 0 6px var(--accent-soft);}
  .node.final .dot{width:26px; height:26px; font-size:var(--t-base); background:var(--grad-dusk); box-shadow:0 0 0 3px var(--bg);}
  .node .nl{display:flex; flex-direction:column; line-height:1.3;}
  .node .nl-t{font-weight:600; font-size:var(--t-base); color:var(--ink);}
  .node .nl small{font-size:11.5px; font-weight:400; color:var(--muted); margin-top:1px;}
  .node.locked{opacity:.55;}
  .node.next .nl-t{color:var(--accent-d); font-weight:700;}
  .node.final .nl-t{font-weight:700;}
  /* 月度月相：横向长轴 + 满月心愿卡 + 往月墙 */
  .mo-wish{background:var(--card); border:1.5px solid var(--line); border-radius:16px; padding:12px 14px; margin-bottom:12px; box-shadow:var(--shadow);}
  .mo-wish.ready{background:var(--wish-ready); border-color:var(--focus);}
  .mo-wish-lbl{font-size:var(--t-sm); font-weight:700; color:var(--accent-d);}
  .mo-wish-in{width:100%; border:1px solid var(--line); border-radius:12px; padding:9px 12px; font-size:var(--t-md); margin-top:8px; background:var(--field); color:var(--ink); font-family:inherit;}
  .mo-wish-hint{font-size:11.5px; color:var(--muted); margin-top:7px;}
  .mo-wish-foot{display:flex; justify-content:space-between; align-items:center; margin-top:9px; font-size:12.5px; color:var(--wish-foot-ink); font-weight:600;}
  .mo-scroll{display:flex; align-items:flex-start; overflow-x:auto; padding:14px 0 4px; -webkit-overflow-scrolling:touch; scrollbar-width:none;}
  .mo-scroll::-webkit-scrollbar{display:none;}
  .mo-node{flex:0 0 44px; display:flex; flex-direction:column; align-items:center; cursor:pointer; position:relative;}
  .mo-node::before{content:''; position:absolute; top:22.5px; left:-22px; width:44px; height:3px; background:var(--line); z-index:0;}
  .mo-node:first-child::before{display:none;}
  .mo-node.lit::before{background:var(--grad-dawn);}
  .mo-vt{height:12px; font-size:9.5px; line-height:12px; color:var(--muted);}
  .mo-cap{height:12px; font-size:9.5px; line-height:12px; color:var(--muted);}
  .mo-mid{height:24px; display:flex; align-items:center; justify-content:center; position:relative; z-index:1;}
  .mo-lan{font-size:var(--t-lg); filter:grayscale(.6); opacity:.45;}
  .mo-node.lit .mo-lan{filter:none; opacity:1;}
  .mo-node.mo-moon.lit .mo-lan{filter:drop-shadow(var(--moon-glow));}
  .mo-node.lit .mo-vt,.mo-node.lit .mo-cap{color:var(--accent-d);}
  .mo-moon .mo-lan{font-size:23px;}
  .mo-dot{width:11px; height:11px; border-radius:50%; background:var(--dot-off); box-shadow:0 0 0 3px var(--bg);}
  .mo-node.lit .mo-dot{background:var(--grad-dawn);}
  .mo-node.next .mo-mid{box-shadow:0 0 0 4px var(--accent-soft); border-radius:50%;}
  .mo-legend{font-size:11px; color:var(--muted); text-align:center; margin:2px 4px 6px; line-height:1.5;}
  .mo-stats{display:flex; gap:7px; margin-top:11px;}
  .mo-stat{flex:1; background:var(--tile-raise); border-radius:11px; padding:7px 5px; text-align:center;}
  .mo-stat b{display:block; font-size:var(--t-md); font-weight:800; color:var(--accent-d); line-height:1.15;}
  .mo-stat b small{font-size:10px; font-weight:600; color:var(--muted); margin-left:1px;}
  .mo-stat span{display:block; font-size:10px; color:var(--muted); margin-top:2px; white-space:nowrap;}
  .mo-final{background:var(--grad-dusk); border-radius:var(--r-card); border:1px solid var(--line); padding:12px 14px; margin:10px 0 6px; box-shadow:var(--shadow);}
  .mo-final-hd{display:flex; align-items:center; gap:10px; margin-bottom:9px;}
  .mo-final-dot{width:30px; height:30px; flex:0 0 30px; border-radius:50%; background:var(--grad-dusk); color:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; box-shadow:0 0 0 3px var(--bg);}
  .mo-final-t{font-size:var(--t-sm); font-weight:700; color:#fff; line-height:1.35; text-shadow:0 1px 3px rgba(0,0,0,.38);}
  .mo-final-t small{display:block; font-weight:400; font-size:11.5px; opacity:.92; margin-top:2px; letter-spacing:.2px;}
  .mo-final .mo-wish-hint{color:rgba(255,255,255,.9); text-shadow:0 1px 2px rgba(0,0,0,.34);}
  .mo-wall{margin-top:12px; background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); overflow:hidden;}
  .mo-wall summary{list-style:none; cursor:pointer; padding:11px 14px; font-size:var(--t-sm); font-weight:700; color:var(--muted);}
  .mo-wall summary::-webkit-details-marker{display:none;}
  .mo-wall-item{padding:9px 14px; border-top:1px solid var(--line);}
  .mo-wall-item .mw-h{display:flex; justify-content:space-between; align-items:baseline; gap:var(--sp-2);}
  .mo-wall-item .mw-m{font-size:var(--t-sm); font-weight:700; color:var(--ink);}
  .mo-wall-item .mw-s{font-size:11.5px; color:var(--muted); text-align:right;}
  .mo-wall-item .mw-w{font-size:12.5px; color:var(--accent-d); margin-top:3px;}
  /* 小确幸弹窗 */
  .hp-card{width:100%;}
  .hp-what{font-size:22px; font-weight:800; color:var(--ink); text-align:center;}
  .hp-cat{font-size:var(--t-xs); color:var(--muted); text-align:center; margin-top:2px;}
  .hp-q{font-size:var(--t-base); color:var(--accent-d); text-align:center; margin:18px 0 6px; font-weight:600;}
  .hp-card input[type=range]{width:100%; accent-color:var(--accent);}
  .hp-num{text-align:center; font-size:var(--t-sm); color:var(--muted); margin-top:4px;}
  .hp-num b{font-size:22px; color:var(--accent-d);}
  .hp-note{width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:var(--t-md); margin-top:14px; background:var(--field); color:var(--ink);}
  .hp-actions{display:flex; flex-direction:column; gap:11px; align-items:center; margin-top:20px;}
  .hp-actions button:not(.focus-quick){width:100%; border:none; border-radius:16px; padding:14px; font-size:var(--t-md); font-weight:800; color:#fff;}
  /* 小确幸历史/统计 */
  .hs-row{display:flex; justify-content:space-between; align-items:center; padding:5px 0; font-size:13.5px;}
  .hs-row b{color:var(--accent-d);}
  .hl-item{display:flex; justify-content:space-between; gap:10px; padding:10px 12px; border-top:1px solid var(--line);}
  .hl-item:first-child{border-top:none;}
  .hl-main{flex:1; font-size:var(--t-base);}
  .hl-name{font-weight:600;}
  .hl-cat{font-size:11px; color:var(--muted); background:var(--chip); border-radius:10px; padding:1px 7px; margin-left:4px;}
  .hl-note{font-size:var(--t-xs); color:var(--muted); margin-top:3px;}
  .hl-side{text-align:right; flex:0 0 auto;}
  .hl-mood{font-size:var(--t-sm); font-weight:700; color:var(--muted);}
  .hl-mood.up{color:var(--good-ink);} .hl-mood.down{color:var(--danger);}
  .hl-date{font-size:11px; color:var(--muted); margin-top:2px;}
  .mode-toggle{background:var(--field); color:var(--accent-d); border:1px solid var(--line); border-radius:16px; padding:5px 12px; font-size:var(--t-xs);}
  /* 分段选择控件（互斥单选，退役 mode-toggle 的单选滥用）：连体轨 + 选中项高亮，role=radiogroup */
  .seg{display:inline-flex; background:var(--surface-sunken); border:1px solid var(--line); border-radius:var(--r-pill); padding:2px;}
  .seg-item{font:inherit; font-size:var(--t-xs); padding:5px 11px; border:0; background:none; color:var(--muted); border-radius:var(--r-pill); cursor:pointer; -webkit-appearance:none; appearance:none; white-space:nowrap;}
  .seg-item.on{background:var(--accent-cta); color:#fff; font-weight:700;}
  .mode-toggle.on{background:var(--accent-cta); color:#fff; border-color:var(--accent-cta);}
  /* subject card */
  .subj{margin-bottom:8px;}
  .subj-head{display:flex; align-items:center; gap:var(--sp-2); padding:13px 14px; cursor:pointer; background:var(--card); border-radius:16px;}
  .subj.open .subj-head{border-radius:16px 16px 0 0;}
  .chev{font-size:var(--t-sm); color:var(--muted); width:14px; flex:0 0 auto; transition:transform .2s;}
  .subj.open .chev{transform:rotate(90deg);}
  .subj-name{font-weight:700; font-size:15px; flex:1;}
  .subj-got{font-size:var(--t-xs); color:var(--good-ink); font-weight:700; background:var(--badge-good-bg); border-radius:10px; padding:1px 8px;}
  .subj-body{display:none;} .subj.open .subj-body{display:block;}
  /* 科目身份色露出：左缘细条 + 图标淡底（--sc 由 JS 内联；身份色不随主题）*/
  .subj-head{box-shadow:inset 3px 0 0 var(--sc);}
  /* 展开的科目 = 一张完整卡：头+体同底、身份色边贯穿、底部收圆，动作被包住（与「照顾自己」呼应其「成块」感，但用中性卡面，不抢暖色领地）*/
  .subj.open:not(.editing){ background:var(--card); border-radius:16px; box-shadow:inset 3px 0 0 var(--sc); overflow:hidden; }
  .subj.open:not(.editing) .subj-head{ background:transparent; box-shadow:none; border-radius:0; border-bottom:1px solid var(--line); }
  .subj.open:not(.editing) .chips{ padding-top:11px; }
  .subj-emoji{flex:0 0 auto; width:26px; height:26px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; font-size:15px; background:color-mix(in srgb, var(--sc) 22%, var(--card));}
  /* 就地编辑态：抖动提示 + 删除角标 + 拖柄；减少动态时靠全局中和停抖，虚线描边仍在（可编辑提示不丢）*/
  @keyframes es-wiggle{ from{transform:rotate(-.5deg);} to{transform:rotate(.5deg);} }
  .subj.editing{position:relative; margin-bottom:9px;}
  .subj.editing .subj-head{cursor:pointer; outline:1.5px dashed var(--accent); outline-offset:-1px;}
  .care-chip.editing, .chip.editing{animation:es-wiggle .45s ease-in-out infinite alternate; border-style:dashed; border-color:var(--accent); cursor:pointer;}
  .chip.editing{padding-left:11px;}
  .es-badge{position:absolute; top:-7px; left:-7px; width:20px; height:20px; border-radius:50%; background:var(--danger); color:#fff; font-size:15px; line-height:1; display:flex; align-items:center; justify-content:center; z-index:3; border:0; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.25); -webkit-appearance:none; appearance:none;}
  .es-grip2{flex:0 0 auto; position:relative; border:0; background:none; color:var(--muted-faint); font-size:17px; line-height:1; padding:3px 5px; border-radius:7px; touch-action:none; cursor:grab; -webkit-appearance:none; appearance:none;}
  /* ≥44px 触控命中区：小编辑控件用透明 ::after 扩大热区（视觉尺寸不变）*/
  .es-badge::after, .es-grip2::after{content:''; position:absolute; inset:-12px;}
  .chev-edit{font-size:var(--t-sm); color:var(--accent-d); flex:0 0 auto;}
  /* SortableJS 拖拽态：跟手浮动的克隆(.es-drag) 抬起、其余卡让位；占位(.es-ghost) 淡化虚位 */
  .es-drag{animation:none !important; box-shadow:var(--shadow-3); opacity:.98;}
  .es-chosen{animation:none !important;}
  .es-ghost{opacity:.36; filter:grayscale(.25);}
  .subj-list{display:block;}
  .subj-tip{font-size:var(--t-xs); color:var(--muted); padding:8px 12px; background:var(--surface-sunken);}
  /* 今日合计 */
  .day-sum{text-align:center; font-size:var(--t-sm); color:var(--muted); margin:16px 0 4px;}
  .day-sum b{font-size:22px; color:var(--accent-d);}
  /* buttons */
  .btn{border:none; border-radius:20px; padding:7px 15px; font-size:var(--t-sm); font-weight:700; background:var(--accent-cta); color:#fff;}
  .btn:disabled{background:var(--btn-disabled-bg); color:var(--btn-disabled-fg);}
  .btn.ghost{background:var(--chip); color:var(--accent-d);}
  .tip{font-size:var(--t-xs); color:var(--muted); padding:9px 12px; background:var(--surface-sunken); border-radius:12px; margin:6px 2px 8px;}
  /* mood */
  input[type=range]{width:100%; accent-color:var(--accent); margin-top:6px;}
  input[type=text],input[type=date]{width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:var(--t-md); margin-top:6px; background:var(--field); color:var(--ink);}
  /* 占位提示：比正文更淡，一眼可辨是「提示」而非已填内容（跟随暗色 token） */
  input::placeholder,textarea::placeholder{color:var(--muted-faint); opacity:1;}
  /* happy draw */
  .draw-big{width:100%; border:none; border-radius:16px; padding:16px; font-size:var(--t-md); font-weight:800; background:var(--grad-cta); color:#fff; box-shadow:var(--shadow);}
  .draw-card{background:var(--card); border-radius:16px; box-shadow:var(--shadow); padding:18px 16px; margin-top:10px; text-align:center; animation:fade .3s;}
  .draw-card .cat{font-size:11px; color:var(--muted); background:var(--chip); border-radius:10px; padding:2px 9px; display:inline-block;}
  .draw-card .it{font-size:22px; font-weight:800; margin:10px 0 4px; color:var(--ink);}
  .draw-card .row{display:flex; gap:var(--sp-2); margin-top:12px;}
  .draw-card .row .btn{flex:1;}
  .batch{display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-2); margin-top:10px;}
  .mini{background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); padding:12px 10px; font-size:13.5px; position:relative; animation:fade .3s;}
  .mini .c{font-size:10px; color:var(--muted); position:absolute; top:6px; right:8px;}
  .mini:active{background:var(--surface-sunken);}
  .full-menu{margin-top:8px;}
  .menu-cat{margin-top:10px;} .menu-cat h4{margin:0 0 6px; font-size:var(--t-sm); color:var(--accent-d);}
  .menu-cat .items{display:flex; flex-wrap:wrap; gap:6px;}
  .pill{background:var(--chip); border-radius:16px; padding:5px 11px; font-size:12.5px; color:var(--ink);}
  /* me */
  .stat-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px;}
  .stat{background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); padding:14px; text-align:center;}
  .stat .n{font-size:26px; font-weight:800; color:var(--accent-d);}
  .stat .k{font-size:var(--t-xs); color:var(--muted); margin-top:2px;}
  /* 打卡热力图：月标签(顶) + 周一三五(左) + 今日描边；居中；图例上色 */
  .heatx{display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:6px; row-gap:5px; width:100%; max-width:380px; margin:6px auto 2px; --hg:3px;}
  .heatx-mo{grid-area:1/2/2/3; display:grid; grid-template-columns:repeat(var(--cols),1fr); column-gap:var(--hg); font-size:9.5px; line-height:1; color:var(--muted-faint);}
  .heatx-mo span{white-space:nowrap; overflow:visible;}
  .heatx-wd{grid-area:2/1/3/2; display:grid; grid-template-rows:repeat(7,1fr); row-gap:var(--hg); font-size:9px; color:var(--muted-faint); padding-right:2px;}
  .heatx-wd span{display:flex; align-items:center; justify-content:flex-end;}
  .heat{grid-area:2/2/3/3; display:grid; grid-template-columns:repeat(var(--cols),1fr); grid-template-rows:repeat(7,auto); grid-auto-flow:column; gap:var(--hg);}
  .heat .cell{aspect-ratio:1; min-width:0; border-radius:4px; background:var(--line); cursor:pointer;}
  .heat .cell.pad{background:transparent; cursor:default; pointer-events:none;}
  .heat .cell.today{outline:1.5px solid var(--accent-d); outline-offset:1px;}
  .heat .l1{background:var(--heat-l1);} .heat .l2{background:var(--heat-l2);} .heat .l3{background:var(--heat-l3);} .heat .l4{background:var(--heat-l4);}
  .heat .rest{background:var(--heat-rest);}
  .heat-foot{display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px 16px; margin-top:11px; font-size:11px; color:var(--muted);}
  .heat-legend{display:inline-flex; align-items:center; gap:4px;}
  .heat-lg-rest{display:inline-flex; align-items:center; gap:5px;}
  .heat-legend .cell, .heat-lg-rest .cell{width:11px; height:11px; border-radius:3px; display:inline-block; background:var(--line);}
  .heat-legend .cell.l1{background:var(--heat-l1);} .heat-legend .cell.l2{background:var(--heat-l2);} .heat-legend .cell.l3{background:var(--heat-l3);} .heat-legend .cell.l4{background:var(--heat-l4);}
  .heat-lg-rest .cell.rest{background:var(--heat-rest);}
  .me-btn{width:100%; padding:13px; border-radius:var(--r-card); border:1px solid var(--line); background:var(--card); box-shadow:var(--shadow); font-size:14.5px; color:var(--ink); margin-bottom:10px; text-align:left; display:flex; justify-content:space-between; align-items:center;}
  .me-btn span:last-child{color:var(--muted); font-size:var(--t-sm);}
  .me-btn.danger{color:var(--danger);}
  .setting-card{background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); padding:14px; margin-bottom:12px;}
  .setting-card .row{display:flex; justify-content:space-between; align-items:center; gap:var(--sp-2); flex-wrap:wrap; padding:8px 0;}
  .switch{width:46px;height:26px;border-radius:20px;background:var(--switch-track);position:relative;transition:.2s;border:none;flex:0 0 auto;}
  .switch.on{background:var(--good);}
  .switch::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 2px rgba(0,0,0,.28);}
  .switch.on::after{left:23px;}
  .soft{font-size:12.5px; color:var(--muted); text-align:center; margin-top:18px; padding:0 10px; line-height:1.7;}
  nav{position:fixed; bottom:0; left:0; right:0; z-index:30; background:var(--nav-bg); backdrop-filter:saturate(180%) blur(12px); -webkit-backdrop-filter:saturate(180%) blur(12px); border-top:1px solid var(--line); display:flex; padding-bottom:env(safe-area-inset-bottom); padding-left:max(0px, calc((100% - var(--shell-max))/2)); padding-right:max(0px, calc((100% - var(--shell-max))/2));}
  nav button{flex:1; border:none; background:none; padding:9px 0 8px; font-size:11px; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:3px;}
  nav button .ic{width:23px; height:23px; display:block; margin:0 auto 1px;}
  nav button.active{color:var(--accent-d); font-weight:700;}
  /* login gate + account */
  .gate{position:fixed;inset:0;z-index:100;background:var(--grad-mist);display:none;flex-direction:column;align-items:center;justify-content:center;padding:24px;}
  body.gated .gate{display:flex;}
  body.gated > header, body.gated > main, body.gated > nav{display:none !important;}
  .gate-inner{width:100%;max-width:340px;text-align:center;}
  .gate-brand{display:flex; align-items:center; justify-content:center; gap:var(--sp-3); font-size:36px;font-weight:800;color:var(--accent-d);letter-spacing:1px;}
  .brand-swallow{width:60px; height:50px; color:var(--accent-d);}
  .brand-word{font-family:var(--font-serif); font-weight:700;}
  .brand-swallow-sm{width:22px; height:18px; vertical-align:-5px; margin-right:4px; color:inherit;}
  .gate-tagline{font-size:var(--t-sm);color:var(--muted);margin:6px 0 22px;}
  .gate-card{background:var(--card); border-radius:var(--r-hero); border:1px solid var(--line); padding:22px; box-shadow:var(--shadow-modal); text-align:left;}
  .gate-card h3{margin:0;font-size:19px;}
  .gate-card .sub{font-size:12.5px;color:var(--muted);margin:4px 0 14px;}
  .gate-card input{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font-size:var(--t-md);margin-bottom:10px;background:var(--field);color:var(--ink);}
  .gate-card .err{color:var(--danger);font-size:12.5px;min-height:16px;margin-bottom:6px;}
  .gate-card .primary{width:100%;border:none;border-radius:12px;padding:12px;font-size:15px;font-weight:700;background:var(--accent-cta);color:#fff;}
  .gate-card .primary:disabled{background:var(--btn-disabled-bg);color:var(--btn-disabled-fg);}
  .gate-card .switch-line{text-align:center;font-size:12.5px;color:var(--muted);margin-top:12px;}
  .acct{background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); padding:13px 14px; margin-bottom:12px; display:flex; align-items:center; gap:var(--sp-2);}
  .acct .who{flex:1;font-size:var(--t-base);} .acct .who b{color:var(--accent-d);} .acct .small{font-size:11.5px;color:var(--muted);margin-top:2px;}
  /* 同步「关注」态：琥珀柔卡而非红色警报（去警报化：让颜色与「别担心」文案站在一起） */
  .sync-alert{border-color:var(--warn); background:var(--badge-warm-bg);}
  .sync-alert .who, .sync-alert .who .small{color:var(--badge-warm-fg);}
  .toast{position:fixed; left:50%; bottom:90px; transform:translateX(-50%) translateY(20px); background:rgba(74,64,56,.94); color:#fff; padding:10px 18px; border-radius:22px; font-size:13.5px; opacity:0; transition:.3s; z-index:200; pointer-events:none; max-width:90%; text-align:center;}
  .toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
  .toast.has-act{pointer-events:auto;}
  .toast-act{margin-left:10px; color:var(--toast-act); text-decoration:underline; font-weight:700;}
  /* 免费去做 · 小确幸区（奖励页） */
  .free-zone{background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); padding:14px; margin-bottom:8px;}
  .free-row{display:flex; gap:var(--sp-2); margin-top:10px; flex-wrap:wrap;}
  .free-row .mode-toggle{flex:1; text-align:center;}
  .free-tip{font-size:var(--t-xs); color:var(--muted); margin-top:10px; line-height:1.5;}
  /* 情绪日记 */
  .diary-card{padding:14px;}
  .diary-ta{width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:var(--t-md); background:var(--field); color:var(--ink); resize:vertical; font-family:inherit; line-height:1.5;}
  .diary-foot{display:flex; justify-content:space-between; align-items:center; margin-top:10px;}
  .diary-hint{font-size:var(--t-xs); color:var(--muted);}
  .dl-item{display:flex; justify-content:space-between; gap:10px; padding:10px 12px; border-top:1px solid var(--line);}
  .dl-item:first-child{border-top:none;}
  .dl-text{flex:1; font-size:var(--t-base); white-space:pre-wrap; word-break:break-word;}
  .dl-side{display:flex; align-items:center; gap:var(--sp-2); flex:0 0 auto;}
  .dl-date{font-size:11px; color:var(--muted); flex:0 0 auto;}
  .dl-mood{font-size:var(--t-xs); font-weight:800; color:var(--badge-rose-fg); background:var(--badge-rose-bg); border-radius:9px; padding:1px 7px;}
  .dl-mood small{font-weight:600; font-size:9px; opacity:.7;}
  /* 情绪日记 · 可选此刻心情 */
  .dm-add{margin-top:10px; background:var(--accent-soft); border:1px dashed var(--accent-line); border-radius:10px; color:var(--accent-d); font-size:var(--t-sm); font-weight:600; padding:8px 14px; min-height:36px; cursor:pointer;}   /* 可选打分入口：看得出可点(4b) */
  .dm-row{margin-top:12px; padding-top:10px; border-top:1px dashed var(--line);}
  .dm-row label{font-size:var(--t-sm); display:flex; align-items:baseline; gap:var(--sp-2); color:var(--ink);}
  .dm-row label b{color:var(--accent-d); font-size:var(--t-md);}
  .dm-row .dm-scale{color:var(--muted); font-size:11px; margin-left:auto;}
  .dm-row input[type=range]{width:100%; margin-top:4px;}
  .dm-clear{display:inline-flex; align-items:center; gap:4px; margin-top:8px; font-size:var(--t-xs); color:var(--accent-d); font-weight:600; border:1px solid var(--line); background:var(--field); border-radius:var(--r-pill); padding:6px 12px; min-height:32px; cursor:pointer;}   /* 「这次不打分」：胶囊化、明显可点(4b) */
  /* 昨夜睡眠卡 */
  .sleep-card{padding:15px;}
  .sw-readout{display:flex; justify-content:space-between; align-items:baseline; margin:2px 2px 10px; font-size:12.5px; color:var(--muted);}
  .sw-readout b{font-size:17px; color:var(--ink); font-weight:700; font-variant-numeric:tabular-nums;}
  .sw-readout .mid b{color:var(--accent-d);}
  .sw-range{position:relative; height:46px; margin:20px 6px 4px; touch-action:none; user-select:none; -webkit-user-select:none;}
  .sw-track{position:absolute; top:20px; left:0; right:0; height:6px; border-radius:999px; background:var(--track);}
  .sw-fill{position:absolute; top:14px; height:18px; border-radius:9px; cursor:grab; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--accent-soft); border:1px solid var(--accent-line);}
  .sw-zz{position:absolute; inset:0; background:repeating-linear-gradient(-45deg,transparent 0 5px,rgba(0,0,0,.05) 5px 10px);}
  .sw-dur{position:relative; font-size:10.5px; font-weight:700; color:var(--accent-d); white-space:nowrap; z-index:1;}
  .sw-thumb{position:absolute; top:9px; width:28px; height:28px; margin-left:-14px; border-radius:50%; background:var(--surface); border:2px solid var(--accent); box-shadow:var(--shadow-2); cursor:grab; touch-action:none; z-index:2;}
  .sw-thumb.wake{border-color:var(--accent-d);}
  .sw-thumb .sw-lab{position:absolute; top:-19px; left:50%; transform:translateX(-50%); font-size:10.5px; color:var(--muted); white-space:nowrap; font-weight:600;}
  .sw-axis{position:relative; height:14px; margin:0 6px 2px;}
  .sw-axis span{position:absolute; transform:translateX(-50%); font-size:9.5px; color:var(--muted-faint);}
  .sw-quals{display:flex; gap:var(--sp-2); margin:14px 0 3px;}
  .sw-quals .qual{flex:1; border:1.5px solid var(--line); background:var(--field); border-radius:13px; padding:10px 6px; text-align:center; display:flex; flex-direction:column; gap:3px; align-items:center; color:var(--ink); font-weight:600; font-size:13.5px;}
  .sw-quals .qual .face{font-size:var(--t-lg);}
  .sw-quals .qual .hint{font-size:10.5px; font-weight:400; color:var(--muted);}
  .sw-quals .qual.on{border-color:transparent; background:var(--accent-cta); color:#fff;}
  .sw-quals .qual.on .hint{color:#fff; opacity:.85;}
  .sw-save{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px;}
  .sw-note{font-size:var(--t-xs); color:var(--muted);}
  .sw-btns{display:flex; align-items:center; gap:var(--sp-2); flex:0 0 auto;}
  /* 已记完成态 */
  .sleep-done{display:flex; align-items:center; gap:var(--sp-3); padding:13px 15px;}
  .sleep-done .sd-main{flex:1; display:flex; align-items:center; gap:11px; min-width:0;}
  .sleep-done .sd-face{font-size:var(--t-xl); flex:none;}
  .sleep-done .sd-top{font-size:var(--t-base); font-weight:600; color:var(--ink);}
  .sleep-done .sd-ok{color:var(--good-ink); font-weight:800; margin-left:2px;}
  .sleep-done .sd-sub{font-size:var(--t-xs); color:var(--muted); font-variant-numeric:tabular-nums; margin-top:2px;}
  /* 睡眠回顾行 */
  .nrow{display:flex; align-items:center; gap:11px; padding:11px 13px; border-top:1px solid var(--line);}
  .nrow:first-child{border-top:none;}
  .nrow .moon{width:20px; text-align:center; font-size:15px; flex:none;}
  .nrow .ninfo{flex:1; min-width:0; display:flex; flex-direction:column; gap:3px;}
  .nrow .ntop{display:flex; align-items:center; gap:var(--sp-2);}
  .nrow .nql{font-size:13.5px; font-weight:600; color:var(--ink);}
  .nrow .ndur{font-size:11px; font-weight:700; color:var(--accent-d); background:var(--accent-soft); border-radius:7px; padding:1px 8px; font-variant-numeric:tabular-nums;}
  .nrow .nsub{font-size:var(--t-xs); color:var(--muted); font-variant-numeric:tabular-nums; letter-spacing:.2px;}
  .nrow .nsub .arr{margin:0 7px; color:var(--muted-faint);}
  .nrow .nd{color:var(--muted-faint); font-size:var(--t-xs); flex:none;}
  /* 情绪时间轴 */
  .tl-outer{position:relative; margin-top:2px;}
  .tl-wrap{overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; border-radius:var(--r-card); background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow-1);}
  .tl-wrap::-webkit-scrollbar{height:0;}
  .tl-yaxis{position:absolute; left:1px; top:1px; width:22px; height:calc(100% - 2px); pointer-events:none; background:linear-gradient(90deg,var(--card) 58%,transparent);}
  .tl-yaxis span{position:absolute; left:4px; font-size:9px; color:var(--muted); transform:translateY(-50%); font-variant-numeric:tabular-nums;}
  .tl-legend{display:flex; flex-wrap:wrap; gap:var(--sp-3); align-items:center; margin:9px 4px 0; font-size:11.5px; color:var(--muted);}
  .tl-legend .k{display:inline-flex; align-items:center; gap:5px;}
  .tl-legend .tl-dot{width:11px; height:11px; border-radius:50%; background:var(--accent-d); display:inline-block;}
  .tl-legend .tl-ring{width:11px; height:11px; border-radius:50%; border:2.5px solid var(--accent-d); background:var(--surface); display:inline-block; box-sizing:border-box;}
  .tl-legend .tl-bar{width:8px; height:14px; border-radius:2px; background:var(--accent-d); opacity:.5; display:inline-block;}
  .tl-empty{background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow-1); border-radius:var(--r-card); padding:22px 16px; text-align:center; font-size:var(--t-sm); color:var(--muted); line-height:1.6;}
  .dl-empty{color:var(--muted-faint); font-style:italic;}
  /* 小确幸弹窗 · 挑选步骤 */
  .hp-pickrow{display:flex; gap:var(--sp-2); justify-content:center; margin:14px 0 4px;}
  .hp-menu{max-height:34vh; overflow-y:auto; margin-top:10px; text-align:left; background:var(--surface-sunken); border-radius:12px; padding:8px 10px;}
  .hp-mcat{margin-bottom:8px;}
  .hp-mcat h5{margin:4px 0; font-size:var(--t-xs); color:var(--accent-d);}
  .hp-mcat .pills{display:flex; flex-wrap:wrap; gap:6px;}
  .hp-menu .pill.sel{background:var(--accent-cta); color:#fff;}
  /* 记录弹窗（兑换记录 / 小确幸记录）：复用 .focus 遮罩，内置卡片头 + 可滚动列表 */
  .rec-sheet{width:100%; max-width:400px; max-height:82vh; background:var(--bg); border-radius:var(--r-sheet); box-shadow:var(--shadow-modal); display:flex; flex-direction:column; overflow:hidden;}
  .rec-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 16px 13px; background:var(--grad-mist); flex:0 0 auto;}
  .rec-title{font-size:var(--t-md); font-weight:800; color:var(--ink); margin:0;}
  .rec-x{border:none; background:var(--btn-ghost-bg); color:var(--muted); width:44px; height:44px; border-radius:50%; font-size:var(--t-md); line-height:1; flex:0 0 auto; display:flex; align-items:center; justify-content:center;}
  .rec-body{overflow-y:auto; -webkit-overflow-scrolling:touch; padding:12px 14px calc(16px + env(safe-area-inset-bottom));}
  .rec-body .subgroup-title{margin-top:12px;}
  .emoji-cat{font-size:var(--t-xs); color:var(--muted); margin:8px 2px 4px;}
  .emoji-row{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:4px;}
  .emoji-cell{font:inherit; font-size:22px; width:40px; height:40px; border:0; border-radius:10px; background:var(--surface-sunken); color:inherit; -webkit-appearance:none; appearance:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;}
  .emoji-cell:active{background:var(--card);}
  .emoji-clear{font-size:var(--t-sm); color:var(--muted); width:auto; padding:0 14px;}
  /* 内容自定义 · 编辑态 */
  .add-row{width:100%; border:1px dashed var(--line); background:none; color:var(--muted); padding:9px; border-radius:10px; margin-top:4px; cursor:pointer; -webkit-appearance:none; appearance:none; font:inherit; font-size:var(--t-sm);}
  .add-block{width:100%; border:1px dashed var(--accent-d); background:none; color:var(--accent-d); padding:12px; border-radius:var(--r-card); margin:8px 0 12px; cursor:pointer; -webkit-appearance:none; appearance:none; font:inherit; font-weight:700;}
  .subj.editing{margin-bottom:10px;}
  .subj.editing .subj-body.open{display:block; padding:4px 12px 12px;}
  .rec-sum{background:var(--card); border-radius:var(--r-card); border:1px solid var(--line); box-shadow:var(--shadow); padding:6px 14px; margin-bottom:4px;}
  .rec-sum-row{display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-size:13.5px; color:var(--ink);}
  .rec-sum-row b{color:var(--accent-d); font-size:15px;}
  .rec-item{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:11px 13px; border-top:1px solid var(--line);}
  .rec-item:first-child{border-top:none;}
  .rec-name{flex:1; font-size:var(--t-base); font-weight:600; color:var(--ink);}
  .rec-side{display:flex; align-items:center; gap:var(--sp-3); flex:0 0 auto;}
  .rec-cost{font-size:var(--t-base); font-weight:800; color:var(--accent-d);}
  .rec-date{font-size:11px; color:var(--muted); min-width:32px; text-align:right;}
  .rec-empty{font-size:var(--t-sm); color:var(--muted); text-align:center; padding:30px 16px; line-height:1.7;}
  /* —— 就地编辑卡（editsheet）：科目/照顾自己/兑换 三种就地编辑；颜色全走 token（科目色卡由 JS 内联数据色）—— */
  .es-sheet{max-width:420px;}
  .es-field{display:flex; align-items:center; gap:var(--sp-2); margin-bottom:11px;}
  .es-field.wrap{flex-wrap:wrap;}
  .es-lb{flex:0 0 auto; font-size:12.5px; color:var(--muted); min-width:32px;}
  .es-sub{font-size:var(--t-xs); color:var(--muted); margin:4px 2px 8px; font-weight:600;}
  .es-name{flex:0 1 auto; min-width:0; font:inherit; font-size:var(--t-md); padding:8px 10px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); -webkit-appearance:none; appearance:none;}
  .es-name.grow{flex:1;}
  .es-pts{width:64px; flex:0 0 auto; font:inherit; font-size:var(--t-md); text-align:center; padding:8px 4px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); -webkit-appearance:none; appearance:none;}
  .es-emoji{flex:0 0 auto; width:38px; height:38px; font-size:19px; border:1px solid var(--line); border-radius:10px; background:var(--surface-sunken); color:var(--muted); cursor:pointer; -webkit-appearance:none; appearance:none; display:inline-flex; align-items:center; justify-content:center;}
  .es-swatches{display:flex; flex-wrap:wrap; gap:9px; align-items:center; flex:1;}
  .es-sw{width:26px; height:26px; border-radius:50%; border:0; padding:0; cursor:pointer; -webkit-appearance:none; appearance:none; box-shadow:0 1px 3px rgba(0,0,0,.16); position:relative;}
  .es-sw.sel{box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--accent);}
  .es-free{display:inline-flex; align-items:center; justify-content:center; color:var(--muted); font-size:15px; background:var(--surface-sunken); border:1px dashed var(--accent); overflow:hidden;}
  .es-free input{position:absolute; opacity:0; width:100%; height:100%; left:0; top:0; border:0; padding:0; margin:0; cursor:pointer;}
  .es-pills{display:flex; flex-wrap:wrap; gap:7px; align-items:center; flex:1;}
  .es-pill{font:inherit; font-size:12.5px; padding:6px 12px; border:1px solid var(--line); border-radius:var(--r-pill); background:var(--card); color:var(--muted); cursor:pointer; -webkit-appearance:none; appearance:none;}
  .es-pill.on{background:var(--accent-cta); color:#fff; border-color:var(--accent-cta); font-weight:700;}
  .es-cust{width:76px; font:inherit; font-size:var(--t-md); text-align:center; padding:6px 8px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); -webkit-appearance:none; appearance:none;}
  .es-del{width:100%; border:1px solid var(--line); background:var(--card); color:var(--danger); padding:11px; border-radius:12px; margin-top:6px; cursor:pointer; -webkit-appearance:none; appearance:none; font:inherit; font-size:var(--t-sm);}
  /* ===================== P4 · 招牌时刻 + 动效层 ===================== */
  /* 月相 SVG 组件（月度进度轴大节点；--lit 0..100 = 盈亏相位） */
  .p4moon{position:relative; width:20px; height:20px; border-radius:50%; background:var(--moon);
    overflow:hidden; flex:0 0 auto; box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);}
  .p4moon::after{content:''; position:absolute; top:-2px; bottom:-2px; width:20px; left:0; border-radius:50%;
    background:var(--bg); transform:translateX(calc(var(--lit,0) * -0.2px));}
  .p4moon.locked{opacity:.38; filter:grayscale(.5);}
  .p4moon.lit{opacity:1;}
  .p4moon.full.lit{box-shadow:0 0 0 1px rgba(0,0,0,.05), var(--moon-glow);}
  /* 微动效：点亮光晕 + 轻弹 / +N 脉冲 / 列表入场 / tab 方向滑入 */
  @keyframes p4-halo{0%{opacity:.5; transform:scale(.5);} 100%{opacity:0; transform:scale(1.75);}}
  .p4-halo{position:absolute; inset:0; border-radius:inherit; pointer-events:none;
    box-shadow:0 0 0 2px rgba(var(--accent-rgb),.55); animation:p4-halo .62s var(--ease-glide) forwards;}
  @keyframes p4-pop{0%{transform:scale(1);} 42%{transform:scale(1.06);} 100%{transform:scale(1);}}
  .p4-pop{animation:p4-pop var(--dur-std) var(--ease-spring);}
  @keyframes p4-badge{0%{transform:scale(.4); opacity:0;} 62%{transform:scale(1.28);} 100%{transform:scale(1); opacity:1;}}
  .p4-badge{animation:p4-badge var(--dur-std) var(--ease-spring);}
  @keyframes p4-slidex-r{from{transform:translateX(26px);} to{transform:none;}}
  @keyframes p4-slidex-l{from{transform:translateX(-26px);} to{transform:none;}}
  section.fx-from-r{animation:p4-slidex-r var(--dur-enter) var(--ease-glide);}
  section.fx-from-l{animation:p4-slidex-l var(--dur-enter) var(--ease-glide);}
  /* ① 月相攀升：新跨过的一格上弦 + 月光呼吸；下一站呼吸引导 */
  @keyframes p4-wax{0%{transform:scale(.5); opacity:.25;} 60%{transform:scale(1.18);} 100%{transform:scale(1); opacity:1;}}
  .just-lit .p4moon,.just-lit .mo-dot{animation:p4-wax .58s var(--ease-spring);}
  @keyframes p4-breathe{0%,100%{box-shadow:0 0 0 4px var(--accent-soft);} 50%{box-shadow:0 0 0 8px var(--accent-soft);}}
  .mo-node.next .mo-mid{animation:p4-breathe 2.4s var(--ease-glide) infinite;}
  @keyframes p4-moonbreath{0%{filter:drop-shadow(0 0 0 transparent);} 45%{filter:drop-shadow(var(--moon-glow));} 100%{filter:drop-shadow(0 0 0 transparent);}}
  .moon-breath{animation:p4-moonbreath 1.3s var(--ease-glide);}
  /* ② 燕归入场（登录 gate） */
  @keyframes p4-swallow{0%{opacity:0; transform:translate(-46px,-26px) rotate(-14deg) scale(.7);}
    55%{opacity:1;} 78%{transform:translate(3px,2px) rotate(3deg) scale(1.03);} 100%{opacity:1; transform:none;}}
  .swallow-in{animation:p4-swallow .92s var(--ease-glide);}
  @keyframes p4-word{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:none;}}
  .word-in{animation:p4-word .5s var(--ease-glide) .18s both;}
  /* ③ 晨光点亮：破晓辉光自底部涌起 */
  @keyframes p4-dawn{0%{opacity:0; transform:translate(-50%,26%) scale(.55);} 34%{opacity:1;} 100%{opacity:0; transform:translate(-50%,-8%) scale(1.55);}}
  .dawn-bloom{position:absolute; left:50%; bottom:-14%; width:150%; height:160%; pointer-events:none;
    background:radial-gradient(circle at 50% 82%, var(--dawn-warm), transparent 60%); animation:p4-dawn 1.15s var(--ease-glide);}
  @keyframes p4-warmglow{0%{box-shadow:0 0 0 0 transparent;} 42%{box-shadow:0 0 26px 3px var(--dawn-glow);} 100%{box-shadow:0 0 0 0 transparent;}}
  .warm-glow{animation:p4-warmglow 1.15s var(--ease-glide);}
  /* ④ 归途灯串（连胜，header） */
  .lstring{display:inline-flex; align-items:center; gap:3px; position:relative; vertical-align:-2px;}
  .smoon{position:relative; z-index:1; width:9px; height:9px; border-radius:50%; background:var(--dot-off); overflow:hidden; flex:0 0 auto;}
  .smoon::after{content:''; position:absolute; top:0; left:0; bottom:0; width:calc(var(--lit,0)*1%); background:radial-gradient(circle at 50% 38%, var(--moon), var(--accent-d));}   /* 渐盈：当周那颗按天数从左盈满 */
  .smoon.full{filter:drop-shadow(0 0 1.5px var(--moon));}
  @keyframes p4-ignite{0%{transform:scale(.25); opacity:0; filter:brightness(2.2);} 55%{transform:scale(1.35); opacity:1;} 100%{transform:scale(1); filter:none;}}
  .smoon.ignite{animation:p4-ignite .7s var(--ease-spring);}
  .streak-stat{display:inline-flex; align-items:center; gap:5px;}
  /* ⑤ 满月全屏庆祝（z-index<toast 200；微粒 pointer-events:none） */
  .fm-ovl{position:fixed; inset:0; z-index:150; display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:radial-gradient(120% 85% at 50% 60%, rgba(0,0,0,.5), rgba(0,0,0,.82)); animation:p4-fmfade .5s var(--ease-glide);}
  @keyframes p4-fmfade{from{opacity:0;} to{opacity:1;}}
  .fm-moon{width:118px; height:118px; border-radius:50%;
    background:radial-gradient(circle at 44% 40%, var(--moon-warm-hi), var(--moon-warm) 60%, var(--moon-warm-lo));
    box-shadow:var(--moon-warm-glow); animation:p4-fmrise 1.15s var(--ease-glide);}
  @keyframes p4-fmrise{0%{transform:translateY(60px) scale(.6); opacity:0;} 60%{opacity:1;} 100%{transform:none; opacity:1;}}
  .fm-word{margin-top:26px; color:var(--fm-ink); font-family:var(--font-serif); font-size:22px; font-weight:700; letter-spacing:3px;
    text-shadow:0 2px 18px rgba(0,0,0,.45); animation:p4-word .7s var(--ease-glide) .5s both;}
  .fm-sub{margin-top:8px; color:var(--fm-sub); font-size:12.5px; animation:p4-word .7s var(--ease-glide) .8s both;}
  .fm-mote{position:absolute; width:9px; height:9px; border-radius:50%; pointer-events:none;
    background:radial-gradient(circle, var(--fm-mote-hi), var(--moon-warm)); box-shadow:var(--fm-mote-glow);}
  @keyframes p4-mote{0%{transform:translateY(0) scale(.5); opacity:0;} 18%{opacity:.95;} 100%{transform:translateY(-160px) scale(1); opacity:0;}}
  /* —— 减少动态：系统偏好 + 手动开关镜像；中和装饰性过渡/动画/keyframes —— */
  @media (prefers-reduced-motion: reduce){
    *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
    .fm-mote,.dawn-bloom{display:none;}
  }
  :root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important;
  }
  :root[data-motion="reduce"] .fm-mote,:root[data-motion="reduce"] .dawn-bloom{display:none;}
  /* —— 审计打磨新增（v0.3.10）—— */
  .hs-val{font-size:12.5px; text-align:right; max-width:62%;}   /* 小确幸统计/洞察右列值：收编散落的 inline 魔法值 */
  .hs-val.faint{font-size:var(--t-xs); color:var(--muted-faint);}
  .stat .n small{font-size:var(--t-base); font-weight:600; color:var(--muted); margin-left:1px;}   /* 连续天数「天」降权单位 */
  .heat .cell{cursor:pointer;}   /* 热力格可轻点读数（触屏） */
  .heat-note{font-size:var(--t-xs); color:var(--muted); text-align:center; margin-top:8px;}   /* 到场天数温柔洞察 */
  .heat-note b{color:var(--accent-d); font-weight:800;}
  .heat-scale{font-size:11px; color:var(--muted-faint); text-align:center; margin-top:4px; line-height:1.5;}   /* 热力图分档说明 */
  .mo-wish-lbl small{font-weight:400; color:var(--muted); font-size:11.5px; margin-left:6px;}   /* 满月心愿副标题（去「·」，规则①） */
  /* —— 记录左滑删除 + 日期分组（兑换/小确幸/日记/睡眠 通用，v0.3.10）—— */
  .rec-group{font-size:11.5px; font-weight:700; color:var(--muted-faint); padding:8px 12px 4px; background:var(--surface-sunken);}
  .list-card .rec-swipe + .rec-group{border-top:1px solid var(--line);}
  .rec-swipe{position:relative; overflow:hidden; border-top:1px solid var(--line);}
  .list-card .rec-group + .rec-swipe{border-top:none;}
  .rec-swipe-actions{position:absolute; top:0; right:0; height:100%; display:flex;}
  .rec-swipe-edit, .rec-swipe-del{width:70px; border:0; font-size:var(--t-sm); font-weight:700; cursor:pointer; -webkit-appearance:none; appearance:none; display:flex; align-items:center; justify-content:center;}
  .rec-swipe-edit{background:var(--accent-soft); color:var(--accent-d);}
  .rec-swipe-del{background:var(--del-bg); color:var(--del-fg);}
  .rec-swipe-face{position:relative; z-index:1; background:var(--surface-sunken); padding:10px 12px; transition:transform .18s var(--ease-glide); touch-action:pan-y;}
  .rec-swipe-face .dl-item, .rec-swipe-face .hl-item, .rec-swipe-face .nrow{padding:0; border-top:none;}
  .rec-more{width:100%; border:1px dashed var(--line); background:none; color:var(--muted); padding:9px; border-radius:10px; margin:6px 0 8px; cursor:pointer; font:inherit; font-size:var(--t-sm); -webkit-appearance:none; appearance:none;}
  .rec-face{display:flex; align-items:center; gap:8px;}
  .rec-face .rec-name{flex:1; font-weight:600; font-size:var(--t-base); color:var(--ink); min-width:0;}
  .rec-face .rec-cost{font-weight:800; color:var(--accent-d); font-variant-numeric:tabular-nums; flex:0 0 auto;}
  .rec-face .rec-when{font-size:var(--t-xs); color:var(--muted); min-width:46px; text-align:right; flex:0 0 auto;}
  .nrow .nmood{font-size:11px; font-weight:700; color:var(--badge-rose-fg); background:var(--badge-rose-bg); border-radius:7px; padding:1px 8px; font-variant-numeric:tabular-nums;}   /* 睡醒心情打分徽标 */
  .sw-mood{margin-top:2px;}   /* 睡醒心情可选打分（复用 .dm-add/.dm-row/.dm-clear，与情绪日记同款） */
  /* —— 二级「幽灵胶囊」通用（记录编辑取消键等）—— */
  .ghost-pill{display:inline-flex; align-items:center; justify-content:center; gap:5px; border:1px solid var(--accent-line); background:var(--field); color:var(--accent-d); border-radius:var(--r-pill); padding:10px 16px; font-size:var(--t-sm); font-weight:600; cursor:pointer; -webkit-appearance:none; appearance:none; min-height:42px;}
  .ghost-pill.muted{color:var(--muted); border-color:var(--line);}
  /* —— 记录就地编辑弹窗（日记/小确幸/兑换）：立墓碑+新条目，字段各类型不同 —— */
  .re-sheet{max-width:400px;}
  .re-field{display:flex; align-items:center; gap:var(--sp-2); margin-bottom:12px;}
  .re-field.col{flex-direction:column; align-items:stretch; gap:6px;}
  .re-lb{flex:0 0 auto; font-size:12.5px; color:var(--muted); min-width:34px;}
  .re-in{flex:1; min-width:0; font:inherit; font-size:var(--t-md); padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--field); color:var(--ink); -webkit-appearance:none; appearance:none;}
  .re-pts{width:88px; flex:0 0 auto; font:inherit; font-size:var(--t-md); text-align:center; padding:9px 6px; border:1px solid var(--line); border-radius:10px; background:var(--field); color:var(--ink); -webkit-appearance:none; appearance:none;}
  .re-ta{width:100%; min-height:72px; font:inherit; font-size:var(--t-md); padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--field); color:var(--ink); resize:vertical; line-height:1.5;}
  .re-head2{margin-bottom:10px;}
  .re-head2 .re-name{font-size:17px; font-weight:800; color:var(--ink);}
  .re-head2 .re-cat{font-size:11px; color:var(--muted); background:var(--chip); border-radius:10px; padding:1px 8px; margin-left:4px;}
  .re-note-tip{font-size:11.5px; color:var(--muted); background:var(--field); border-radius:8px; padding:8px 10px; line-height:1.6; margin:-2px 0 12px;}
  .re-note-tip b{color:var(--accent-d);}
  .re-foot{display:flex; gap:var(--sp-2); margin-top:8px;}
  .re-foot .ghost-pill{flex:1;}
  .re-foot .re-save{flex:2; border-radius:14px; padding:12px; font-size:var(--t-md);}
  /* —— 弹窗按钮布局：主 CTA 满宽 + 次级动作并排一行（focus 计时 / 直接记 / 小确幸 统一）—— */
  .btn-row{display:flex; gap:var(--sp-2); width:100%; margin-top:2px;}
  .focus-actions .btn-row button, .hp-actions .btn-row button{flex:1; width:auto; margin-top:0;}
  .quick-seg{display:flex; width:100%; margin:4px 0 2px;}
  .quick-seg .seg-item{flex:1; text-align:center; padding:8px 6px;}
  .quick-est{margin-bottom:2px;}
  /* 编辑卡·新增项底部「取消 · 确认添加」（点确认才真正保留） */
  .es-newfoot{display:flex; gap:var(--sp-2); margin-top:8px;}
  .es-newfoot .ghost-pill{flex:1;}
  .es-newfoot .es-confirm{flex:2; border-radius:12px; padding:11px; font-size:var(--t-md);}
  /* 「我的」数据标记的即时悬停提示（替代慢/裸的原生 title；固定定位不被滚动容器裁剪）*/
  .me-tip{position:fixed; left:0; top:0; z-index:210; max-width:72vw; background:rgba(74,64,56,.96); color:#fff; padding:6px 10px; border-radius:8px; font-size:12px; line-height:1.45; pointer-events:none; opacity:0; transform:translateY(3px); transition:opacity .12s, transform .12s; box-shadow:var(--shadow-2); white-space:normal;}
  .me-tip.show{opacity:1; transform:translateY(0);}
  .hb, .tl-blk{cursor:pointer;}
