/* 待办 · 专注 —— 电脑端（Vue 3 版）
   动画原则：位移不超过 12px、缓动用 cubic-bezier(.22,1,.36,1)，
   所有过渡都能被 prefers-reduced-motion 关掉。
*/

:root {
  /* 页面背景改纯白；日历等白色卡片不再有一圈底色差，边缘更干净 */
  --bg: #ffffff;
  /* 卡片内部的次级面 / hover 反馈仍用原来的浅米灰，别跟着变白糊成一片 */
  --soft: #f7f7f4;
  --card: #ffffff;
  --line: #ececea;
  --ink: #111111;
  --sub: #6b6b6b;
  --muted: #9a9a9a;
  --faint: #c8c8c4;
  --green: #07C160;
  --green-soft: #eafaf1;
  /* 日历格子专用浅绿底，和全站 --green-soft 分开；2026-11-10 晚交互格子改成
     「白底 + 绿边」后暂无引用，留作以后一键切回浅绿 */
  --cal-soft: #dcffe2;
  --red: #e54d42;
  --red-soft: #fdeceb;
  --blue: #3b7cff;
  --blue-soft: #eaf0ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
/* 整页滚动条隐藏：内容照常可滚，纯白页面上不出现突兀的系统滚动条 */
html { scrollbar-width: none; scroll-behavior: smooth; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
b { font-weight: 700; }

#app { display: flex; min-height: 100vh; }
/* /api/me 回来之前不画界面：否则会先闪一屏缓存里的待办，再盖上登录框 */
#app.app-hide { visibility: hidden; }

/* 启动遮罩：白底 + 一个转圈，等登录状态确认后自动淡出 */
.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .2s ease;
}
.boot.boot-out { opacity: 0; pointer-events: none; }
.boot-spin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(7, 193, 96, .16);
  border-top-color: var(--green);
  animation: boot-spin .7s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .boot-spin { animation-duration: 2s; }
}

/* ---------------- 侧栏 ---------------- */
.side {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 190px;
  height: 100vh;
  padding: 34px 18px 22px;
  display: flex;
  flex-direction: column;
  /* 左侧目录浅灰底，和右侧纯白内容区分开；手机端底部 tab 有自己的半透明底，不受影响 */
  background: #f9f9f9;
  border-right: 1px solid var(--line);
  animation: slideRight .5s var(--ease) both;
}

/* 品牌区三元素比例：图标 38 / 名称 18 / 标语 10.5 ≈ 4 : 2 : 1
   图标是视觉锚点，名称靠字重立住，标语最轻、只做注脚 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px 30px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand-name { letter-spacing: 2px; line-height: 1.15; }
.brand-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-slogan {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .4px;
  white-space: nowrap;
  line-height: 1;
}
.brand:hover .brand-name { color: var(--green); }

.side-site {
  margin: 10px 6px 0;
  font-size: 11px;
  color: var(--faint);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.side-site:hover { color: var(--green); }

/* 我的 · 页脚品牌 */
.me-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.me-logo {
  width: 26px; height: 26px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.me-foot-t { font-size: 13px; font-weight: 700; }
.me-foot-l {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
  text-decoration: none;
  transition: color .2s ease;
}
.me-foot-l:hover { color: var(--green); }

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-i {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  color: var(--sub);
  transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
  animation: riseIn .45s var(--ease) both;
}
.nav-i:nth-child(1) { animation-delay: .05s; }
.nav-i:nth-child(2) { animation-delay: .1s; }
.nav-i:nth-child(3) { animation-delay: .15s; }
.nav-i:nth-child(4) { animation-delay: .2s; }

/* 鼠标划过只加深文字，不改背景（2026-11-10 用户要求）；按下仍有轻微缩放反馈 */
.nav-i:hover { color: var(--ink); }
.nav-i:active { transform: scale(.98); }
/* 选中项背景和侧栏同为 #f9f9f9（用户 2026-11-09 要求），不再是一块白卡片；
   也不再描灰色细框（2026-11-10 用户要求「选择时候边缘不要灰色」），
   只靠绿色图标 + 粗体区分。手机端底部 tab 有自己的透明选中态，后面的 media 会覆盖。 */
.nav-i.active { background: #f9f9f9; color: var(--ink); font-weight: 700; }

/* 四个主功能图标：与小程序同款，选中绿色 / 未选中灰色（src 由 Vue 切换） */
.nav-ic {
  width: 21px; height: 21px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform .25s var(--ease-spring);
}
.nav-i.active .nav-ic { transform: scale(1.08); }

/* 菜单圆点：仅「小号人 / 退出登录 / 登录 / 注册」等次级行使用 */
.nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 2px solid #c2cfc5;
  background: transparent;
  flex-shrink: 0;
  transition: border-color .2s ease, background .2s ease, transform .25s var(--ease-spring);
}
.nav-i:hover .nav-dot { border-color: #a9bcb0; }
.nav-i.active .nav-dot {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.05);
}

.nav-sep { height: 1px; margin: 12px 10px 10px; background: var(--line); }
.nav-i.sub { font-size: 13.5px; color: var(--muted); }
.nav-i.sub:hover { color: var(--ink); }
.nav-i.nav-me { font-weight: 700; color: var(--ink); cursor: default; }
/* 用户名行图标与小程序"小号人"一致：普通灰绿圆环（不再用绿点高亮） */

.side-foot {
  margin-top: auto;
  padding: 0 6px;
  font-size: 11px;
  line-height: 2;
  color: var(--faint);
  white-space: nowrap;
}
.kbd {
  display: inline-block;
  padding: 0 5px;
  border-radius: 4px;
  background: #efefec;
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------------- 主区域 ---------------- */
/* position 是为了视图切换时让离场那一帧绝对定位，新旧可以交叉淡入淡出 */
.main { position: relative; flex: 1; min-width: 0; padding: 28px 40px 130px; }
.view { max-width: 680px; margin: 0 auto; }

/* ---------------- 各页面统一头部：和小程序一样「标题 + 副标题居中」 ----------------
   小程序日程 / 待办 / 重复 / 习惯库页都是标题 40rpx 居中、副标题 24rpx 居中，
   翻页或操作按钮固定在右侧、不参与居中计算。
   这里用 1fr auto 1fr 三列 grid：中间列严格落在内容列中线上，第 3 列按钮靠右
   且不会把标题挤偏；没有按钮的页面（待办 / 习惯库）中间列依然居中。 */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  justify-items: center;
  padding-bottom: 20px;
}
.head-l { grid-column: 2; text-align: center; }
.day-label { font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.3px; }
.day-date {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .4px;
  text-align: center;
}
.head-acts {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 待办页标题区的日期块：整块可点，点开/收起日历。
   负 margin 抵消 padding，视觉位置和原来完全一致，不会把 header 撑高。 */
.head-toggle {
  cursor: pointer;
  user-select: none;
  margin: -6px -10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #ffffff;
  transition: background .18s ease;
}
/* 日期块背景一律白色：悬停 / 展开都不铺灰底，靠字色和箭头给反馈 */
.head-toggle:hover,
.head-toggle.open { background: #ffffff; }
/* 配色跟小程序日程页一致：平时黑字，点开日历（.open）后整块转主色绿 */
.head-toggle .day-label { color: var(--ink); margin-top: 0; transition: color .2s ease; }
.head-toggle .day-date { color: var(--ink); margin-top: 4px; transition: color .2s ease; }
/* 标题旁的小绿日历：寓意「这里能点出日历」，整块本来就是可点的，它只做视觉提示 */
.cal-hint {
  width: 12px;
  height: 12px;
  margin-left: 7px;
  vertical-align: 1px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.9;
  stroke-linecap: round;
  opacity: .9;
  transition: opacity .2s ease;
}
.head-toggle:hover .cal-hint { opacity: 1; }
.head-toggle.open .day-date,
.head-toggle.open .day-label { color: var(--green); }
.date-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  vertical-align: 1px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform .26s var(--ease);
  opacity: .7;
}
.head-toggle.open .date-caret { transform: rotate(-135deg); }

/* 日程页不需要单独的居中规则：上面的 .head / .head-l 已统一覆盖所有页面。
   只有 .head-toggle（可点日期块）、.cal-hint、.date-caret 是日程页独有。 */

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 21px;
  color: var(--sub);
  line-height: 1;
  transition: background .18s ease, color .18s ease, transform .1s ease;
}
.icon-btn:hover { background: #ececea; color: var(--ink); }
.icon-btn:active { transform: scale(.92); }

.ghost-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--sub);
  transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.ghost-btn:hover:not(:disabled) { background: #ececea; color: var(--ink); }
.ghost-btn:disabled { opacity: .35; cursor: default; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  color: var(--sub);
  transition: color .2s ease, box-shadow .2s ease;
}
.pill.live { color: var(--green); box-shadow: inset 0 0 0 1px #c9efdb; }

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--faint);
}
.pill.live .live-dot { background: var(--green); animation: pulse 1.6s ease-in-out infinite; }

/* ---------------- 任务 ---------------- */
.list { display: flex; flex-direction: column; position: relative; }

.task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 6px 15px 4px;
  /* 用户 2026-11-10 要求：条目之间不要灰色下划线，划过 / 按下也不改背景。
     这里的 border-bottom 与整行 hover 底色都已删除，别加回来。 */
  border-radius: 8px;
  cursor: pointer;
}
/* 划过 / 按下都不改背景、不加投影；只保留文字加深、删除按钮显现等提示 */
.task:hover { box-shadow: none; }
.task:active .ck { transform: scale(.9); }
.task:not(.is-done):hover .t-txt { color: #000; }

.ck {
  position: relative;
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform .15s var(--ease-spring);
}
.ck:hover { transform: scale(1.12); }
.ck:active { transform: scale(.9); }

.ck svg { width: 24px; height: 24px; overflow: visible; }
.ck rect {
  fill: transparent;
  /* 未勾选：灰描边（原来绿色，和小程序日程页对齐）；勾选后对勾仍走绿色 */
  stroke: #c6c6c1;
  stroke-width: 1.7;
  transition: stroke .25s ease, fill .25s ease;
}
.ck path {
  fill: none;
  stroke: transparent;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  transition: stroke .2s ease, stroke-dashoffset .32s var(--ease) .05s;
}
/* 复选框不再随整行 hover 变浅灰；.ck:hover 的轻微缩放仍保留 */
/* 已完成的任务只留一个绿勾，外框一起去掉，让清单更安静 */

.task.is-done .ck rect { stroke: transparent; }
.task.is-done .ck path { stroke: var(--green); stroke-dashoffset: 0; }

.t-txt { flex: 1; min-width: 0; font-size: 16.5px; line-height: 1.45; word-break: break-word; transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
.task.is-done .t-txt { color: var(--faint); text-decoration: line-through; text-decoration-color: #d9d9d4; }

.t-time {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.t-del {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--faint);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity .24s var(--ease), transform .3s var(--ease), color .24s var(--ease), background .24s var(--ease);
}
.t-del svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.task:hover .t-del { opacity: 1; transform: translateX(0); }
.t-del:hover { color: var(--red); background: #fdecec; }

/* 空状态 */
.empty { padding: 62px 0 24px; text-align: center; }
.empty-ring {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border: 2px dashed #e4e4e0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.empty-ring span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e4e4e0;
  animation: breathe 2.6s ease-in-out infinite;
}
.empty-t { font-size: 16px; font-weight: 700; color: #c0c0bc; }
.empty-d { margin-top: 8px; font-size: 12.5px; color: var(--faint); }

/* 空态标题行：文字 + 右侧绿描边胶囊「预设」，对齐小程序 todo 页空态 */
.empty-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.empty-preset {
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  background: none;
  border: 1px solid var(--green);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.empty-preset:hover { background: var(--green-soft); }
.empty-preset:active { transform: scale(.97); }

/* 预设入口 */
.preset-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 18px 0 2px;
  padding: 8px 0;
  border-radius: 999px;
  font-size: 12px;
  color: var(--faint);
  transition: color .2s ease, background .2s ease;
}
.preset-link .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  transition: transform .25s var(--ease-spring);
}
.preset-link:hover { color: var(--green); background: #f2faf6; }
.preset-link:hover .dot { transform: scale(1.8); }

/* 输入条：悬浮在视口底部偏上，不占内容流（待办下面直接接已完成）。
   left / width 由 app.js 的 syncComposer() 按 .todo-rest 实测写成 inline style，
   好让默认 680px 单栏、宽屏双栏右栏 720px、手机满宽都自动对齐；
   下面这组只是 JS 还没执行时的兜底值。 */
.composer {
  position: fixed;
  bottom: 52px;
  left: 230px;
  width: min(680px, calc(100vw - 270px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 18px;
  /* 背景恒为白色：点输入条、点时钟、点页面别处失焦都不再回落成浅灰。
     聚焦时只把边框换成绿色，背景全程不变；始终不加投影。
     未聚焦的边框用比全局 --line(#ececea) 深一档的灰，白底输入条才分得出边界；
     这里单独写死色值，别动全局 --line（日历卡片等还用着浅灰线）。 */
  background: #ffffff;
  border: 1px solid #d8d8d4;
  border-radius: 999px;
  box-shadow: none;
  transition: border-color .2s ease;
  z-index: 5;
}
.composer.focus { border-color: var(--green); }

.c-input { flex: 1; min-width: 0; height: 34px; border: 0; outline: none; background: none; }
.c-input::placeholder { color: var(--faint); }

.c-time {
  position: relative;
  flex-shrink: 0;
  min-width: 30px; height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  color: var(--faint);
  cursor: pointer;
  user-select: none;
  transition: color .2s ease, background .2s ease;
}
.c-time svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; flex-shrink: 0; }
.c-time:hover { background: #f4f4f1; color: var(--sub); }
.c-time.on { color: var(--green); background: var(--green-soft); }
.c-time-v { font-size: 12.5px; font-weight: 600; letter-spacing: .4px; }

/* ---------------- 自定义时间选择器 ---------------- */
.tp {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 12px);
  width: 208px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line) inset, 0 12px 36px rgba(0, 0, 0, .13);
  overflow: hidden;
  z-index: 30;
}
.tp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 7px;
  border-bottom: 1px solid var(--line);
}
.tp-title { flex: 1; font-size: 12px; color: var(--muted); }
.tp-clear {
  border: 0; background: none; padding: 0;
  font-size: 12px; color: var(--red);
  cursor: pointer;
}
.tp-clear:hover { text-decoration: underline; }
.tp-done {
  border: 0; background: none; padding: 0;
  font-size: 12.5px; font-weight: 600; color: var(--green);
  cursor: pointer;
}
.tp-done:hover { text-decoration: underline; }

.tp-cols { display: flex; }
.tp-col {
  flex: 1;
  height: 160px;               /* 5 行 × 32px */
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  /* 打开时 JS 直接写 scrollTop 定位到当前时间，显式禁掉平滑滚动，
     免得小时/分钟数字像动画一样「滚过去」，要的就是一打开就固定在那儿 */
  scroll-behavior: auto;
  scrollbar-width: none;       /* Firefox 隐藏滚动条 */
  overscroll-behavior: contain;
}
.tp-col::-webkit-scrollbar { display: none; }
.tp-col + .tp-col { border-left: 1px solid var(--line); }
.tp-pad { height: 64px; flex-shrink: 0; }   /* 上下各留 2 行空位，让首尾也能滚到中间 */
.tp-row {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background .12s ease, color .12s ease;
}
.tp-row:hover { background: #f7f7f4; color: var(--ink); }
.tp-row.sel {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}

/* 时间面板「固定出现」：不要淡入 / 上移 / 缩放，点开即在原位显示。
   输入条、重复弹层、提醒面板三处 <transition name="tp"> 共用这一组规则；
   连收起也一并去掉，Vue 检测不到过渡时长就会直接插入 / 移除节点。 */
.tp-enter-active, .tp-enter-from, .tp-leave-active, .tp-leave-to {
  transition: none;
  opacity: 1;
  transform: none;
}

/* 时间弹层里的「加闹钟」开关 */
.tp-alarm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  transition: opacity .2s ease;
}
.tp-alarm.dis { opacity: .5; }
.tp-alarm-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-alarm-t { font-size: 13px; color: var(--ink); }
.tp-alarm-d { font-size: 11px; color: var(--muted); }
.tp-alarm .sw {
  position: relative;
  flex-shrink: 0;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: #e2e2df;
  transition: background .25s var(--ease);
}
.tp-alarm .sw i {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .28s var(--ease-spring);
}
.tp-alarm .sw.on { background: var(--green); }
.tp-alarm .sw.on i { transform: translateX(16px); }

/* 待办上的小铃铛：未开是灰色描边，开了是绿色实心感 */
.t-bell {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  color: var(--faint);
  cursor: pointer;
  opacity: .9;
  transition: color .24s var(--ease), background .24s var(--ease), opacity .24s var(--ease);
}
.t-bell svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.t-bell:hover { background: #f4f4f1; color: var(--sub); opacity: 1; }
.t-bell.on { color: var(--green); opacity: 1; }
.t-bell.on svg { fill: var(--green-soft); }

/* 待办上的重复开关：没设过是灰描边，设了变绿（与重复页同一套规则） */
.t-rep {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  color: var(--faint);
  cursor: pointer;
  opacity: .55;
  transition: color .24s var(--ease), background .24s var(--ease), opacity .24s var(--ease);
}
.t-rep svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.task:hover .t-rep { opacity: 1; }
.t-rep:hover { background: #f4f4f1; color: var(--sub); }
.t-rep.on { color: var(--green); opacity: 1; }
@media (hover: none) { .t-rep { opacity: .8; } }

/* 就地改内容：双击任务文字后出现，宽度贴住原来那行，不跳版 */
.t-edit {
  flex: 1;
  min-width: 0;
  padding: 3px 9px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, .12);
}
.t-time-btn { cursor: pointer; }
.t-time-btn:hover { background: #d6f4e4; }

/* 右键 / 长按菜单 */
.ctx-mask { position: fixed; inset: 0; z-index: 70; }
.ctx {
  position: fixed;
  z-index: 71;
  width: 190px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 44px rgba(0, 0, 0, .16);
  animation: ctxIn .14s ease;
}
@keyframes ctxIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
.ctx-i {
  padding: 9px 10px;
  text-align: left;
  border-radius: 9px;
  background: none;
  font-size: 13px;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.ctx-i:hover { background: #f4f4f1; }
.ctx-i.danger { color: var(--red); }
.ctx-i.danger:hover { background: var(--red-soft); }

/* 设置提醒 / 改期 小卡（复用重复弹层的 rm-* 内件） */
.rp-card {
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 18px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .2);
  animation: authIn .2s ease;
}
.rp-when { display: flex; gap: 8px; }
.rp-when .rm-time { flex: 1; margin-top: 0; }
.rp-when .tm-box { flex: 1; }

/* 弹层内嵌的时间选择：点值框原地展开同一套滚轮，不用浏览器原生的 time 下拉 */
.tm-box { position: relative; }
.tm-val {
  width: 130px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.tm-val:hover { border-color: #cfd8cf; }
.rp-when .tm-val { width: 100%; }
.tp-flat {
  position: static;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.rp-rep {
  width: 100%;
  margin-top: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fafaf7;
  border-radius: 11px;
  transition: background .16s ease;
}
.rp-rep:hover { background: #f2f2ee; }
.rp-rep-l { font-size: 13px; font-weight: 600; color: var(--ink); }
.rp-rep-r { font-size: 12px; color: var(--sub); }

/* 搜索弹层 */
.srch {
  width: min(560px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .2);
  animation: authIn .2s ease;
  overflow: hidden;
}
.srch-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}
.srch-in {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafaf7;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, background .16s ease;
}
.srch-in:focus { border-color: var(--green); background: #fff; }
.srch-x {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}
.srch-x:hover { background: #f4f4f1; color: var(--ink); }
.srch-body { padding: 6px; overflow-y: auto; }
.srch-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  text-align: left;
  transition: background .15s ease;
}
.srch-row:hover { background: #f7f7f4; }
.srch-t { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-t.done { color: var(--faint); text-decoration: line-through; }
.srch-d { flex-shrink: 0; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.srch-go { flex-shrink: 0; color: var(--faint); font-size: 16px; }
.srch-empty, .srch-tip {
  padding: 26px 14px 30px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- 到点提醒卡 ---------------- */
.remind-card {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(440px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 13px 16px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 44px rgba(0, 0, 0, .16);
}
.rc-ic {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  animation: rcRing 1.4s var(--ease) 2;
}
.rc-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rcRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-13deg); }
  40% { transform: rotate(11deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}
.rc-body { flex: 1; min-width: 0; }
.rc-t {
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rc-d { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.rc-acts { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.rc-btn {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f1;
  color: var(--sub);
  font-size: 12.5px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .15s var(--ease-spring);
}
.rc-btn:hover { background: #ececea; color: var(--ink); }
.rc-btn:active { transform: scale(.94); }
.rc-btn.main { background: var(--green); color: #fff; }
.rc-btn.main:hover { background: #06ad56; color: #fff; }
.rc-x {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border: 0; background: none; padding: 0;
  color: var(--faint);
  cursor: pointer;
}
.rc-x:hover { color: var(--sub); }
.rc-x svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.rc-enter-active, .rc-leave-active { transition: opacity .22s ease, transform .24s var(--ease); }
.rc-enter-from, .rc-leave-to { opacity: 0; transform: translate(-50%, 14px); }

@media (max-width: 560px) {
  .remind-card { bottom: 14px; gap: 9px; padding: 12px; border-radius: 16px; }
  .rc-acts { flex-direction: column; gap: 6px; }
  .rc-btn { height: 27px; padding: 0 10px; font-size: 12px; }
}

.c-add {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.6px solid var(--ink);
  transition: background .2s ease, color .2s ease, transform .15s var(--ease-spring), border-color .2s ease, opacity .2s ease;
}
.c-add svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* 输入了内容才「亮起」：不点也能看出可以提交，添加后自动收回 */
.composer.ready .c-add { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.composer.ready .c-add:hover:not(:disabled) { background: var(--green); color: #fff; }
.c-add:hover:not(:disabled) { background: var(--ink); color: #fff; transform: rotate(90deg); }
.c-add:active:not(:disabled) { transform: rotate(90deg) scale(.92); }
.c-add:disabled { opacity: .32; cursor: default; }

/* 已完成分组 */
.done-wrap { margin-top: 20px; overflow: hidden; }
.done-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 4px;
  font-size: 12px;
  color: var(--muted);
  transition: color .2s ease;
}
.done-head:hover { color: var(--ink); }
.caret { transition: transform .25s var(--ease); }
.caret.open { transform: rotate(180deg); }

/* ---------------- 日历 ---------------- */
/* 计划页和其它三个视图同宽，统一走 .view 的 680px。
   原来这里单独写了 max-width: 860px，日历和下方安排比待办/专注/我的宽一圈，
   四个页面切换时内容左边界来回跳，视觉上不齐。 */

.cal-card {
  /* 2026-11-10 用户要求「日历背景不要浅灰」：从 #fafafa 改成纯白，
     和页面同底色，靠下面那圈 1px 灰线界定边界；日期格子保持透明（不铺灰块）。
     窄屏 .cal-pop .cal-card 与宽屏 .view-todo.cal-on .todo-cal .cal-card 只覆盖
     padding / border / box-shadow，背景都继承这一处，改这里即可。 */
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px 12px;
  /* 页面改纯白后用一圈灰色细线界定边界，不要投影 */
  border: 1px solid var(--line);
  box-shadow: none;
  animation: riseIn .45s var(--ease) both;
}

/* 待办页：折叠滑出的日历容器
   overflow:hidden 是折叠动画的前提；高度由 JS 实测后写成 inline style，
   这里不写 max-height，免得行数或字号一变就被截断。 */
.cal-pop { overflow: hidden; }
/* 日历和上方标题、下方列表都收紧：三个间隙上下紧凑（用户要求） */
.cal-pop-in { padding-bottom: 6px; }
/* 待办页标题区和内容的间距单独收紧，其它三页维持原来的 20px */
.view-todo .head { padding-bottom: 10px; }
/* 容器本身负责进出场，卡片就别再叠一层 riseIn，否则两段动画打架看着发飘。
   投影也去掉：待办页这里是折叠展开的第二个卡片，浮起感会和下面的列表打架，
   改成一条细边线界定边界，更贴整页的极简调性。 */
.cal-pop .cal-card {
  animation: none;
  box-shadow: none;
  border: 1px solid var(--line);
}

/* ---------------- 宽屏：点开日历后，日程页「左日历 / 右内容」双栏 ----------------
   只在窗口 ≥1280px、且模板给 .view-todo 加上 .cal-on（用户点了日期块）时启用。
   默认状态不套这套规则：今天日程和其它页面一样在 .view 的 680px 单栏里，日历不出现。
   右侧内容列约 720px，和原来一致；左侧日历 420px，多出来的宽度由整页上限承担。
   窗口 <1280px 时 .cal-on 不加，.todo-grid 退回普通文档流，日历在标题下折叠展开。
   注意：只放宽这个视图的展开态，其它视图仍统一走 .view 的 680px，不要顺手改。 */
@media (min-width: 1280px) {
  .view.view-todo.cal-on { max-width: 1170px; }

  .view-todo.cal-on .todo-grid {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    grid-template-areas:
      "cal head"
      "cal rest";
    /* 左栏日历跨两行且比右栏内容高。若两行都是 auto，浏览器会把日历多出的
       高度摊到两行上，把「今天」标题下面的待办清单推到页面中部。
       第一行只认标题高度，多出来的空间全给第二行（配合 align-items:start，
       清单仍贴在第二行顶部），这样右栏标题 → 待办 → 已完成就是从顶部顺排。 */
    grid-template-rows: auto 1fr;
    column-gap: 30px;
    align-items: start;
  }
  .view-todo.cal-on .todo-head { grid-area: head; }
  .view-todo.cal-on .todo-rest { grid-area: rest; min-width: 0; }
  /* 右栏一条待办都没有时，「空白 / 预设」也要跟着标题从顶部开始，
     别再靠原来的 62px 上留白落到左栏日历的中部 */
  .view-todo.cal-on .empty { padding-top: 16px; }
  .view-todo.cal-on .todo-cal {
    grid-area: cal;
    position: sticky;
    top: 28px;
    /* 折叠动画的高度写在 inline style 里，左栏展开时用 !important 盖掉，免得被裁切 */
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: visible !important;
  }

  /* 左栏月历：420px 宽，格子接近正方；边缘一圈灰色细线，无投影 */
  .view-todo.cal-on .todo-cal .cal-card {
    padding: 16px 18px 14px;
    border: 1px solid var(--line);
    box-shadow: none;
  }
  .view-todo.cal-on .todo-cal .cal-bar { padding-bottom: 10px; gap: 4px; }
  .view-todo.cal-on .todo-cal .vsel-btn { height: 32px; padding: 0 24px 0 10px; font-size: 13px; }
  .view-todo.cal-on .todo-cal .vsel-arrow { right: 9px; }
  .view-todo.cal-on .todo-cal .icon-btn { width: 30px; height: 30px; font-size: 19px; }
  .view-todo.cal-on .todo-cal .today-btn { height: 32px; padding: 0 11px; font-size: 13px; }
  .view-todo.cal-on .todo-cal .cal-week span { padding: 8px 0 10px; font-size: 18px; }
  .view-todo.cal-on .todo-cal .cal-cell { height: 52px; padding: 3px 0 6px; border-radius: 10px; gap: 0; }
  .view-todo.cal-on .todo-cal .cal-d { font-size: 18px; }
  .view-todo.cal-on .todo-cal .cal-sub { font-size: 11px; }
  .view-todo.cal-on .todo-cal .cal-badge {
    top: 3px; right: 4px;
    min-width: 14px; height: 14px; line-height: 14px;
    font-size: 9.5px; border-radius: 4px;
  }

  /* 日历默认收起，标题旁的「展开」小箭头要保留，展开时由 .head-toggle.open 旋转 */
}

.cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
}
.cal-nav { display: flex; align-items: center; gap: 2px; }
.cal-bar-r { display: flex; justify-content: flex-end; }

/* 自定义下拉（v-select）：替代原生 select，展开面板为白色圆角 + 绿色选中项 */
.vsel { position: relative; }
.vsel-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 26px 0 12px;
  border: 0;
  border-radius: 9px;
  background: #f2f4f1;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease;
  white-space: nowrap;
}
.vsel-btn:hover:not(:disabled) { background: #e7ebe6; }
.vsel-btn:disabled { color: var(--faint); cursor: default; }
.vsel.open .vsel-btn { background: #e7ebe6; }
.vsel-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 1.6px solid #6b6b6b;
  border-bottom: 1.6px solid #6b6b6b;
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
  pointer-events: none;
}
.vsel.open .vsel-arrow { transform: rotate(225deg); margin-top: -2px; }
.vsel-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 268px;
  overflow-y: auto;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--card);
  border-radius: 11px;
  box-shadow: 0 10px 30px rgba(30, 30, 26, .14), 0 0 0 1px var(--line);
  animation: riseIn .18s var(--ease) both;
}
.vsel-menu li {
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--sub);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.vsel-menu li:hover { background: #f2f4f1; color: var(--ink); }
.vsel-menu li.on { background: var(--green-soft); color: var(--green); font-weight: 600; }
.vsel-y .vsel-menu { min-width: 96px; }

/* 「回到今天」：与左侧年/月下拉同款灰底样式 */
.today-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  background: #f2f4f1;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.ghost-btn.today-btn:hover:not(:disabled) { background: #e7ebe6; color: var(--ink); }
/* 已经停在今天：文字变「今天」，颜色淡一档，不再有 hover 反馈 */
.ghost-btn.today-btn.on,
.ghost-btn.today-btn.on:hover:not(:disabled) { color: var(--muted); background: #f2f4f1; cursor: default; }
.ghost-btn.today-btn:active { transform: scale(.96); }

.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
/* 星期表头与日期数字都放大一档（用户要求「日历里字大一点」）；
   格子高度不动，21/23px 数字 + 副标题仍在 52/78px 格子里放得下 */
.cal-week span { padding: 10px 0 12px; text-align: center; font-size: 18px; color: #1a1a1a; font-weight: 600; }
.cal-week span.hol { color: var(--red); }

.cal-cell {
  position: relative;
  height: 78px;
  padding: 4px 0 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background .2s var(--ease), box-shadow .2s ease, transform .15s var(--ease);
  animation: cellIn .38s var(--ease) both;
}
/* 用户 2026-11-10：日历格子鼠标划过不改变背景（普通 / 今天 / 选中都一样），
   只保留按下时的轻微缩放反馈；选中态切换仍走 .cal-cell 上的 background 过渡。 */
.cal-cell:active { transform: scale(.96); }

.cal-d { font-size: 18px; font-weight: 700; letter-spacing: -.4px; line-height: 1.05; }
.cal-sub {
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--muted);
  max-width: 100%;
  padding: 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-sub.fest { color: var(--red); }

.cal-cell.weekend .cal-d { color: var(--red); }
.cal-cell.out .cal-d { color: var(--faint); font-weight: 600; }
.cal-cell.out .cal-sub { color: #d4d4d0; }

/* 2026-11-10 晚用户要求：原来「浅绿底」的交互格子改成「白底 + 绿色细边」。
   用 inset 描边不占格子尺寸；这里不写任何 color，让日期数字 / 农历小字 / 角标
   回落到普通日期、周末红字、节假日红字的规则上；有事项的日期另用底部绿点标记。 */
.cal-cell.today { background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--green); }

/* 选中的那天：和今天同一套「白底 + 绿边」，不要黑底白字。
   今天另有绿色「今」角标，可与之区分。 */
.cal-cell.sel:not(.today) { background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--green); }

.cal-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 5px;
  font-size: 10.5px;
  line-height: 17px;
  text-align: center;
  pointer-events: none;
}
.cal-badge.rest { background: var(--red-soft); color: var(--red); }
.cal-badge.work { background: var(--green-soft); color: var(--green); }
.cal-badge.now { background: var(--green); color: #fff; }
.cal-cell.out .cal-badge { opacity: 0; }

/* 有未完成事项的日期：不描灰色边框，改成格子底部一个绿色小点。
   .cal-dot 由模板在 count / has 为真时渲染，主日历和习惯库日历共用这一套标记；
   今天 / 选中日另用「白底 + 绿边」的交互态。 */
.cal-dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
}

/* 点了（或翻到）其它日期之后，今天不再抢眼：恢复普通格子的透明底、无边框，
   只留右上角「今」角标和（有事项时的）底部绿点；选中的那一天仍是白底 + 绿边。
   容器 .other-sel 由 index.html 用 !atToday 绑定，点回「今天」就自动撤掉。
   基础 .cal-cell 已无 hover 背景规则，这里也不必再单独写 :hover。 */
.cal-pop.other-sel .cal-cell.today { background: transparent; box-shadow: none; }

/* ---------------- 待办页：汇总清单 ---------------- */
/* 待办页标题区到清单不用隔太远 */
.view-plan .head { padding-bottom: 12px; }

/* 分组清单 */
.plan-list { display: flex; flex-direction: column; gap: 2px; }

.pg { border-radius: 14px; transition: background .35s ease; }

.pg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 10px 9px;
  border-radius: 12px;
  text-align: left;
  transition: background .16s ease;
}
.pg-head:hover { background: #f4f4f1; }
.pg-head.static, .pg-head.static:hover { background: transparent; cursor: default; }

/* 分组标题：小程序同款灰色小字，今天用主题绿 */
.pg-t { font-size: 12.5px; font-weight: 700; letter-spacing: .3px; color: #b0b0b0; }
.pg-t.today { color: var(--green); }
.pg-w { font-size: 11.5px; color: var(--faint); }
.pg-n {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.pg-body { padding-left: 14px; }
.pg-body .task { padding: 11px 6px 11px 0; }

/* 逾期那一组：红色标记，一眼能认出来 */
.pg-tag {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: #fdecec;
  color: var(--red);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
}
.pg-over .pg-t, .pg-over .pg-n { color: var(--red); }
.task.is-over .t-txt { color: #8c5555; }
.task.is-over:hover .t-txt { color: #7a4444; }

.pg-more {
  width: 100%;
  padding: 9px 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  transition: background .16s ease, color .16s ease;
}
.pg-more:hover { background: #f4f4f1; color: var(--sub); }

.pg-note { padding: 6px 0 8px; font-size: 11.5px; color: var(--faint); }

/* 行尾的日期/时间小字，和「今天」快捷按钮 */
.t-meta {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.t-move {
  flex-shrink: 0;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .18s ease, background .18s ease;
}
.task:hover .t-move { opacity: 1; }
.t-move:hover { background: #d6f4e4; }
/* 触摸设备没有 hover，按钮得常显 */
@media (hover: none) { .t-move { opacity: 1; } }

/* 空态 */
.plan-empty { padding: 44px 0 8px; text-align: center; }
.pe-ring {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px dashed #dcdcd6;
}
.pe-t { font-size: 14.5px; font-weight: 700; color: var(--sub); }
.pe-d { margin-top: 6px; font-size: 12.5px; color: var(--faint); }
.plan-empty .pd-add { max-width: 300px; margin: 18px auto 0; }

.pd-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 0 16px;
  border-radius: 12px;
  background: #f2f4f1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sub);
  transition: background .2s ease, color .2s ease, transform .15s var(--ease);
}
.pd-add:hover { background: #e7ebe6; color: var(--ink); }
.pd-add:active { transform: scale(.99); }
.pd-add-a { font-size: 16px; line-height: 1; color: var(--faint); transition: transform .2s var(--ease); }
.pd-add:hover .pd-add-a { transform: translateX(2px); color: var(--sub); }

/* ---------------- 重复（对齐小程序 pages/repeat） ---------------- */
/* 标题行右侧的「＋ 新建」：绿底白字，和小程序同款 */
.rep-add { background: var(--green); border-color: var(--green); color: #fff; }
.rep-add:hover { background: #06ad56; border-color: #06ad56; color: #fff; }

/* 规则清单：一行一条，底线分隔，和小程序 .row 一致 */
.rep-list { display: flex; flex-direction: column; }
.rep-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  border-bottom: 1px solid #f5f5f2;
  cursor: pointer;
  border-radius: 10px;
  transition: background .2s ease;
}
.rep-row:hover { background: #fafaf8; }
.rep-body { flex: 1; min-width: 0; }
.rep-txt { font-size: 15px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-meta { margin-top: 4px; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rep-desc { font-size: 12.5px; font-weight: 600; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-remain { flex-shrink: 0; font-size: 12px; color: var(--faint); }
.rep-next { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--faint); }
.rep-del {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: var(--faint);
  background: transparent;
  opacity: 0;
  transition: opacity .15s ease, background .2s ease, color .2s ease;
}
.rep-row:hover .rep-del { opacity: 1; }
.rep-del:hover { background: #fdeeea; color: #d4553f; }
.rep-arrow {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-right: 1.5px solid #d0d0d0;
  border-bottom: 1.5px solid #d0d0d0;
  transform: rotate(-45deg);
}

/* 空态：空心圆环 + 一句引导 */
.rep-empty { padding-top: 96px; display: flex; flex-direction: column; align-items: center; }
.re-ring { width: 56px; height: 56px; border: 5px solid #ececec; border-radius: 50%; }
.re-t { margin-top: 14px; font-size: 13.5px; color: var(--sub); }
.rep-empty .pd-add { margin-top: 18px; }

/* 新建 / 编辑弹层 */
.rep-mask {
  position: fixed; inset: 0;
  background: rgba(30, 30, 26, .34);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  animation: fadeIn .18s ease both;
}
.rep-modal {
  width: 420px; max-width: calc(100vw - 48px);
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 24px 64px rgba(30, 30, 26, .18);
  animation: riseIn .28s var(--ease) both;
}
.rm-head { display: flex; align-items: center; justify-content: space-between; }
.rm-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.rm-close {
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--faint);
  transition: background .2s ease, color .2s ease;
}
.rm-close:hover { background: #f0f0ec; color: var(--ink); }
.rm-input {
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfbf9;
  outline: none;
  transition: border-color .2s ease;
}
.rm-input:focus { border-color: var(--green); background: #fff; }
.rm-txt {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f6f3;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.rm-sec { margin-top: 16px; }
.rm-sec-t { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--sub); margin-bottom: 8px; }
.rm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--sub);
  background: #fff;
  transition: all .18s ease;
}
.rm-chip:hover { border-color: #cfd8cf; }
.rm-chip.on { background: var(--green-soft); border-color: var(--green); color: var(--green); font-weight: 700; }
.rm-week { display: flex; gap: 8px; }
.rm-wd {
  flex: 1;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  color: var(--sub);
  background: #fff;
  transition: all .18s ease;
}
.rm-wd.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.rm-days { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-dd {
  width: 34px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
  background: #fff;
  transition: all .15s ease;
}
.rm-dd.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.rm-hint { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--faint); }
.rm-ypick { display: flex; gap: 10px; }
.rm-sel {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.rm-time {
  width: 130px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.rm-time:focus { border-color: var(--green); }
.rm-sum {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-align: center;
}
.rm-save {
  width: 100%;
  margin-top: 12px;
  height: 40px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .15s var(--ease), opacity .2s ease;
}
.rm-save:hover { background: #06ad56; }
.rm-save:active { transform: scale(.99); }
.rm-save:disabled { opacity: .55; cursor: default; }

/* 删除此重复：浅红底的次级按钮，只在编辑已有重复时出现 */
.rm-drop {
  width: 100%;
  margin-top: 10px;
  height: 40px;
  border-radius: 11px;
  background: #fdf1ef;
  color: #d4553f;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s ease, transform .15s var(--ease), opacity .2s ease;
}
.rm-drop:hover { background: #fbe4e0; }
.rm-drop:active { transform: scale(.99); }
.rm-drop:disabled { opacity: .55; cursor: default; }

/* ---------------- 专注 ---------------- */
.focus-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 26px; }

.dial { position: relative; width: 220px; height: 220px; }
.dial-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-bg { fill: none; stroke: #ececea; stroke-width: 6; }
.dial-fg {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 628.3;
  stroke-dashoffset: 628.3;
  transition: stroke-dashoffset .35s linear, filter .4s ease;
}
.dial.running .dial-fg { filter: drop-shadow(0 0 6px rgba(7, 193, 96, .45)); }
.dial.running { animation: breathe 3.4s ease-in-out infinite; }

.dial-txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.chips { display: flex; gap: 8px; margin-top: 34px; }
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--sub);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }

.focus-btns { display: flex; gap: 10px; margin-top: 26px; }

.primary {
  padding: 11px 36px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(7, 193, 96, .22);
  transition: transform .15s var(--ease-spring), box-shadow .25s ease, opacity .2s ease;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(7, 193, 96, .28); }
.primary:active { transform: scale(.97); }

.plain {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--sub);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: all .2s var(--ease);
}
.plain:hover { color: var(--ink); background: #fff; transform: translateY(-1px); }
.plain:active { transform: scale(.97); }
.plain.danger { color: var(--red); box-shadow: inset 0 0 0 1px #f6d7d5; }
.plain.danger:hover { background: #fdecec; }

.focus-stat { margin-top: 26px; font-size: 12.5px; color: var(--muted); }
.focus-stat b { color: var(--ink); }

/* ---------------- 我的 ---------------- */
.rows { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  cursor: text;
}
.row:last-child { border-bottom: 0; }
.r-l { flex: 1; }
.r-u { font-size: 12px; color: var(--muted); }
.r-in {
  width: 190px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f4;
  outline: none;
  text-align: right;
  transition: box-shadow .2s ease, background .2s ease;
}
.r-in:focus { box-shadow: inset 0 0 0 1px var(--green); background: #fff; }
.r-num { width: 76px; }

.block { margin-top: 18px; padding: 20px; background: var(--card); border-radius: var(--radius); }
.block-t { font-size: 14px; font-weight: 700; }
.block-d { margin-top: 6px; font-size: 12px; color: var(--muted); }

.preset-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.p-row { display: flex; align-items: center; gap: 12px; }
.p-idx { width: 14px; font-size: 12px; color: var(--muted); }
.p-in {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: #f7f7f4;
  outline: none;
  transition: box-shadow .2s ease, background .2s ease;
}
.p-in:focus { box-shadow: inset 0 0 0 1px var(--green); background: #fff; }

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 15px 4px 4px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.switch-row input { display: none; }
.switch-row .sw {
  position: relative;
  margin-left: auto;
  width: 42px; height: 24px;
  border-radius: 999px;
  background: #e2e2df;
  transition: background .25s var(--ease);
}
.switch-row .sw::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .28s var(--ease-spring);
}
.switch-row input:checked + .sw { background: var(--green); }
.switch-row input:checked + .sw::after { transform: translateX(18px); }

.block-acts { display: flex; align-items: center; gap: 12px; margin-top: 18px; }

.link {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.link:hover { color: var(--green); }

.clear-box {
  margin-top: 16px;
  padding: 14px 16px 12px;
  border-radius: 12px;
  background: #fbf7f6;
  box-shadow: inset 0 0 0 1px #f6e3e1;
}
.clear-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  cursor: pointer;
}
.clear-box input[type="checkbox"] { accent-color: var(--green); width: 15px; height: 15px; }
.clear-acts { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* ---------------- 提示 ---------------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 60;
  pointer-events: none;
}
.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .92);
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

/* ---------------- 登录 / 注册 ---------------- */
/* 整页居中：品牌 → 登录卡 →「多平台同步」+ 黑线 + 四个平台入口
   背景纯色不透明，登录/注册时完全盖住背后的页面 */
.mask {
  --mask-pad-x: 20px;
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px var(--mask-pad-x);
  overflow-y: auto;
  background: var(--bg);
  /* 抽屉自己滚动但不画滚动条；滚轮 / 触摸滚动照常可用 */
  scrollbar-width: none;
}
.mask::-webkit-scrollbar { display: none; }
/* 启动时自动弹的登录框：不走 0.3s 淡入，第一帧就完全盖住，
   否则淡入这段时间背后的页面会整个露出来（就是「刷新时闪一下」） */
/* 启动时自动弹的登录框：不走 0.3s 淡入，第一帧就完全盖住 */
.mask.mask-gate.fade-enter-from,
.mask.mask-gate.fade-enter-active { opacity: 1 !important; transition: none !important; }

/* 品牌 + 登录卡限宽 420，下面平台区可放宽到 980；
   上下 auto margin 让矮内容垂直居中、超高内容顶对齐且能滚到顶 */
.auth-stack {
  width: 100%;
  max-width: 980px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-page {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* 品牌 */
.ap-brand { margin-bottom: 24px; text-align: center; }
.ap-logo {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto 0px;
  object-fit: contain;
  opacity: 0;
  transform: scale(.88);
  animation: apLogoIn .42s var(--ease) .1s forwards;
}
/* 打开页面 / 刷新后：品牌图淡入落位（换成位图后不再有描线动画） */
@keyframes apLogoIn {
  to { opacity: 1; transform: scale(1); }
}
/* 系统开启「减少动态效果」时动画不播放，别让 logo 停在 opacity:0 上 */
@media (prefers-reduced-motion: reduce) {
  .ap-logo { opacity: 1; transform: none; animation: none; }
}
.ap-name { font-size: 30px; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.ap-slogan { margin-top: 7px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }

.auth {
  padding: 6px 26px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
  animation: authIn .3s var(--ease) both;
}

/* 登录 / 注册：文字页签 + 一小段黑色下划线，不用色块 */
.auth-tabs { display: flex; justify-content: center; gap: 30px; }
.auth-tabs button {
  position: relative;
  padding: 15px 2px 13px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.auth-tabs button::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%) scaleX(0);
  transition: transform .24s var(--ease);
}
.auth-tabs button.on { color: var(--ink); font-weight: 600; }
.auth-tabs button.on::after { transform: translateX(-50%) scaleX(1); }

/* 小程序码浮层 */
.qr-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, .3);
  backdrop-filter: blur(2px);
}
.qr-card {
  position: relative;
  width: 266px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: authIn .26s var(--ease) both;
}
.qr-img {
  width: 176px;
  height: 176px;
  display: block;
  margin: 0 auto 14px;
  border-radius: 12px;
}
.qr-t { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.qr-d { margin-top: 6px; font-size: 11px; color: var(--muted); }
.qr-x {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  transition: background .16s ease, color .16s ease;
}
.qr-x:hover { background: #f2f2ee; color: var(--ink); }
/* ---------------- 我的 · 统计卡 / 目标 ---------------- */
.me-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border-radius: var(--radius);
}
.avatar {
  flex: none;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 22px;
  font-weight: 700;
}
.me-who { flex: 1; min-width: 0; }
.me-name {
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 17px;
  font-weight: 700;
  border-radius: 4px;
}
.me-name:focus { box-shadow: inset 0 -1px 0 var(--green); }
.me-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--muted);
}
.me-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }

.fc-card {
  margin-top: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius);
}
.fc-t { font-size: 12px; color: var(--muted); }
.fc-v { margin-top: 6px; font-size: 16px; font-weight: 700; }
.fc-r { text-align: right; }
.fc-n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fc-l2 { margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.view-me .rows { margin-top: 12px; }
.view-me .block { margin-top: 12px; }

/* 可点击的设置行（清除已完成 / 隐私条款 / 功能说明 / 清空） */
.row-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  transition: background .18s ease;
}
.row-btn:hover { background: #fbfbf9; }
.r-v { font-size: 12.5px; color: var(--muted); }
.r-a { font-size: 15px; color: var(--faint); }
.r-danger { color: var(--red); }
.r-in.r-set { font-weight: 600; }

.dur-chips { display: flex; gap: 6px; }
.chip.mini { padding: 5px 11px; font-size: 12px; }

/* ---------------- 专注 · 目标 / 今日点阵 ---------------- */
.goal-bar {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s var(--ease), transform .15s var(--ease-spring);
}
.goal-bar:hover { box-shadow: inset 0 0 0 1px #dcdcd8; transform: translateY(-1px); }
.goal-bar.lock { cursor: default; opacity: .75; }
.goal-bar.lock:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.goal-l { flex: none; font-size: 12px; color: var(--muted); }
.goal-v {
  flex: 1; min-width: 0;
  text-align: left;
  font-size: 13.5px;
  color: var(--sub);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.goal-bar.set .goal-v { color: var(--ink); font-weight: 600; }
.goal-a { flex: none; font-size: 12px; color: var(--faint); }

.today-dots {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: dotIn .32s var(--ease-spring) both;
}
.tdot-n { margin-left: 2px; font-size: 11.5px; color: var(--muted); }
@keyframes dotIn {
  from { transform: scale(.2); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------------- 弹层：目标选择 / 确认 / 文档 ---------------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, .28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.pop {
  width: 380px;
  max-width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: popIn .26s var(--ease-spring) both;
}
.pop-t { font-size: 15px; font-weight: 700; }
.pop-sub { margin-top: 5px; font-size: 12px; color: var(--muted); }
.pop-list { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.pop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  text-align: left;
  font-size: 13.5px;
  transition: background .18s ease;
}
.pop-item:hover { background: #f5f5f2; }
.pop-item.none { color: var(--muted); }
.pop-item-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-ck { flex: none; color: var(--green); font-weight: 700; }
.pop-empty { padding: 12px 13px; font-size: 12.5px; color: var(--faint); }
.pop-close {
  margin-top: 16px;
  padding: 11px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--sub);
  background: #f4f4f1;
  transition: color .18s ease, background .18s ease;
}
.pop-close:hover { color: var(--ink); background: #eeeeea; }

.ask {
  width: 360px;
  max-width: 100%;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: popIn .26s var(--ease-spring) both;
}
.ask-t { font-size: 15.5px; font-weight: 700; }
.ask-s { margin-top: 8px; font-size: 13px; line-height: 1.75; color: var(--sub); }
.ask-btns { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.primary.danger { background: var(--red); box-shadow: 0 8px 20px rgba(229, 77, 66, .2); }
.primary.danger:hover { box-shadow: 0 12px 26px rgba(229, 77, 66, .26); }

/* ---------------- 联系我们：问题反馈弹窗 ---------------- */
.fb-pop { width: 420px; }
.fb-head { display: flex; align-items: flex-start; gap: 12px; }
.fb-head > div { flex: 1; }
.fb-x {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  background: #f4f4f1;
  transition: color .18s ease, background .18s ease;
}
.fb-x:hover { color: var(--ink); background: #eeeeea; }
.fb-area,
.fb-contact {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: #f7f7f4;
  outline: none;
  font: inherit;
  color: var(--ink);
  transition: box-shadow .2s ease, background .2s ease;
}
.fb-area {
  min-height: 122px;
  margin-top: 16px;
  padding: 12px 14px;
  resize: vertical;
  font-size: 13.5px;
  line-height: 1.7;
}
.fb-contact {
  margin-top: 12px;
  padding: 11px 14px;
  font-size: 13px;
}
.fb-area:focus,
.fb-contact:focus { box-shadow: inset 0 0 0 1px var(--green); background: #fff; }
.fb-area::placeholder,
.fb-contact::placeholder { color: var(--muted); }
.fb-count { margin-top: 6px; text-align: right; font-size: 11.5px; color: var(--muted); }
.fb-submit { width: 100%; margin-top: 16px; padding: 12px; font-size: 13.5px; }
.fb-submit:disabled { opacity: .6; cursor: default; transform: none; }
.fb-note { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--muted); }

.doc {
  width: 640px;
  max-width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: popIn .26s var(--ease-spring) both;
}
.doc-head { display: flex; align-items: center; padding: 20px 24px 0; }
.doc-t { font-size: 17px; font-weight: 700; }
.doc-x {
  margin-left: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.doc-x:hover { background: #f3f3f0; color: var(--ink); }
.doc-meta { padding: 6px 24px 0; font-size: 11.5px; color: var(--faint); }
.doc-body { padding: 14px 24px 26px; overflow: auto; }
.doc-intro { font-size: 13px; line-height: 1.9; color: var(--sub); }
.doc-block { margin-top: 24px; }
.doc-h { font-size: 13.5px; font-weight: 700; }
.doc-p { margin-top: 7px; font-size: 13px; line-height: 1.9; color: var(--sub); }

@keyframes authIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 表单：白底灰框、聚焦换绿框（和待办输入条同一口径），不写背景变化 */
.auth-d {
  margin: 2px 0 16px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
}

.a-row { display: block; position: relative; margin-top: 10px; }
.a-in {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d8d8d4;
  border-radius: 11px;
  background: #ffffff;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .18s ease;
}
.a-in.has-eye { padding-right: 48px; }
.a-in::placeholder { color: #8a8a85; }
.a-in:focus,
.a-in:focus-visible { border-color: var(--green); }
/* 显示 / 隐藏密码：只换图标颜色，不给背景块 */
.a-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.a-eye:hover { color: var(--ink); }
.a-eye:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.a-eye svg { width: 18px; height: 18px; display: block; }

/* 错误提示固定槽位：固定行高，出现 / 消失都不顶动主按钮 */
.auth-err-slot { height: 21px; margin-top: 10px; }
.auth-err { font-size: 12.5px; line-height: 21px; color: var(--red); }
/* 进行中的提示（正在登录… / 正在注册…）用绿色 */
.auth-err.ok { color: var(--green); }

.auth-agree {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 6px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--sub);
  cursor: pointer;
  user-select: none;
}
.auth-agree input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.auth-agree a { color: var(--blue); text-decoration: none; }
.auth-agree a:hover { text-decoration: underline; }

/* 主按钮占满一行，圆角与输入框对齐；黑色系，绿只留给 logo 和链接 */
.auth-acts { margin-top: 14px; }
.auth-acts .primary {
  width: 100%;
  padding: 12px 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  letter-spacing: .12em;
  box-shadow: none;
}
.auth-acts .primary:hover { background: #000; transform: none; box-shadow: none; }
.auth-acts .primary:disabled {
  background: var(--ink);
  opacity: .55;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.auth-acts .primary:active { transform: scale(.99); }
.auth-acts .primary:disabled:active { transform: none; }

/* ---------------- 多平台同步 ---------------- */
/* 平台区已不在 420px 登录卡内，宽度跟着 .auth-stack 走；详细介绍默认折叠 */
.plat { width: 100%; margin-top: 34px; }
/* 「多平台同步」做成本区主标题，「了解各端」做成一行里最醒目的绿框胶囊按钮 */
.plat-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.plat-sub-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--ink);
}
.plat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--green);
  cursor: pointer;
  /* 只换边框与文字颜色，hover 不改背景、不加阴影 */
  transition: border-color .18s ease, color .18s ease;
}
.plat-toggle:hover,
.plat-toggle:focus-visible { color: #06ad56; border-color: #06ad56; }
.plat-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.pt-arrow {
  width: 15px;
  height: 15px;
  display: block;
  flex: none;
  transition: transform .2s var(--ease);
}
.plat-toggle.open .pt-arrow { transform: rotate(180deg); }
.plat-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
/* 四个平台名降为副行，层级让给上面的标题与按钮 */
.plat-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .pt-arrow { transition: none; }
}
/* 四个平台名做成导航：划过变绿，点击展开介绍并滚到对应区块。
   用 button 但抹掉默认样式，保持和原来一行纯文字完全一致的排版 */
.plat-link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  transition: color .18s ease;
}
.plat-link:hover,
.plat-link:focus-visible { color: var(--green); }
.plat-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}
/* 一条浅灰细线：把账号区和各端入口分开 */
.plat-rule {
  height: 0;
  margin: 14px 0 12px;
  border-top: 1px solid var(--line);
}
.plat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
/* 大气版：去边框底色，放大图标文字，悬停浮起卡片 + 图标变绿 */
.plat-i {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 4px 20px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.plat-i:hover {
  transform: translateY(-2px);
  background: transparent;
  box-shadow: none;
}
.plat-i:hover svg { color: var(--green); }
.plat-i:active { transform: translateY(0) scale(.985); }
.plat-i svg { width: 32px; height: 32px; display: block; color: var(--ink); transition: color .18s ease; }
.plat-n { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.plat-s { font-size: 11px; letter-spacing: .02em; color: var(--muted); }

/* 网站信息：一行简洁页脚 */
.site-foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
}
.sf-brand { font-weight: 600; color: var(--ink); }
.sf-sep { color: var(--faint); }
.sf-links { display: inline-flex; gap: 12px; margin-left: 6px; }
.sf-links a { color: var(--muted); text-decoration: none; transition: color .16s ease; }
.sf-links a:hover { color: var(--ink); }
.sf-copy { color: var(--faint); }


/* 介绍面板：平台区本身已限宽，直接铺满即可，不再用 100vw + 负 margin 破框
   （那会在 flex 居中容器里撑出横向滚动条）；模板用 v-if="promoOpen" 默认折叠 */
.pm-wrap {
  width: 100%;
  background: #fbfbf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pm-clip { min-height: 0; }
.pm-panel {
  max-width: 1060px;
  margin: 6px auto 20px;
  padding: 34px clamp(18px, 4.5vw, 46px) 30px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* 每一块端：图 + 文，左右排 */
.pm-sec {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4.5vw, 52px);
}
.pm-sec + .pm-sec {
  padding-top: 30px;
  border-top: 1px dashed #e3e1da;
}
.pm-shot { flex: 0 0 236px; display: grid; place-items: center; }
/* 与小程序手机截图统一的卡片描边：1px 淡边 / 14px 圆角 / 单层极淡投影 */
.pm-shot img {
  width: 100%;
  max-width: 236px;
  border: 1px solid #f0efec;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, .04);
}

/* 桌面便签动效演示：CSS 复刻便签，循环演示「打字 → 回车 → 新待办滑入（3条变4条）」 */
.wt-demo {
  width: 236px;
  height: 306px;           /* 固定高度：新条目滑入时不撑高卡片，周围元素不跟着变 */
  display: flex;
  flex-direction: column;
  border: 1px solid #f0efec;   /* 与小程序手机截图保持同一套描边 / 圆角 / 投影 */
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(17, 17, 17, .04);
  overflow: hidden;
  font-size: 11px;
  color: #1f241f;
  user-select: none;
}
.wt-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 7px;
}
.wt-title { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.wt-date { font-size: 9.5px; color: #a9aca6; flex: 1; }
.wt-win { display: flex; gap: 5px; align-items: center; }
.wt-win i { width: 8px; height: 1.4px; background: #c9cdc7; border-radius: 1px; display: block; }
.wt-win i.x { width: 7px; height: 7px; background: none;
  position: relative; }
.wt-win i.x::before, .wt-win i.x::after {
  content: ''; position: absolute; left: 0; top: 3px; width: 7px; height: 1.2px;
  background: #c9cdc7; border-radius: 1px;
}
.wt-win i.x::before { transform: rotate(45deg); }
.wt-win i.x::after { transform: rotate(-45deg); }
.wt-list { padding: 2px 8px 6px; flex: 1; min-height: 0; }
.wt-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 6px;
  border-radius: 7px;
}
.wt-item:hover { background: #f6f7f5; }
.wt-ck {
  width: 11px; height: 11px; flex: none;
  border: 1.2px solid #cfd3cd; border-radius: 3.5px;
  position: relative;
}
.wt-ckd { border-color: transparent; }
.wt-ckd::after {
  content: '';
  position: absolute; left: 1px; top: 1.5px;
  width: 8px; height: 4.5px;
  border-left: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg) scale(.9); transform-origin: 1px 1px;
}
.wt-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-tm { font-size: 9.5px; color: #b3b6b0; flex: none; }
.wt-sec { font-size: 9px; color: #b7bab4; padding: 5px 8px 3px; }
.wt-item.done .wt-txt { color: #b7bab4; text-decoration: line-through; text-decoration-color: #d4d7d1; }
/* 新待办：回车后从输入框滑入 */
.wt-new {
  max-height: 0;
  opacity: 0;
  padding-top: 0; padding-bottom: 0;
  overflow: hidden;
  animation: wt-slide 7s var(--ease, ease) infinite;
}
@keyframes wt-slide {
  0%, 30%   { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; transform: translateY(14px); animation-timing-function: cubic-bezier(.19, 1, .22, 1); }
  40%, 84%  { max-height: 30px; opacity: 1; padding-top: 6px; padding-bottom: 6px; transform: translateY(0); }
  93%, 100% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-6px); }
}
/* 底部输入框：占位符隐现 + 打字机 + 回车清空 */
.wt-bottom { background: #fbfbfa; border-top: 1px solid #f0f1ee; margin-top: auto; }
.wt-input {
  position: relative;
  margin: 8px 8px 2px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 10px;
  background: #fff;
  border: 1px solid #ececea;
  border-radius: 8px;
  overflow: hidden;
}
.wt-ph { color: #b7bab4; font-size: 10px; animation: wt-ph 7s steps(1) infinite; }
@keyframes wt-ph {
  0%, 2% { opacity: 1; }
  3%, 31% { opacity: 0; }
  33%, 100% { opacity: 1; }
}
.wt-type {
  position: absolute; left: 10px; right: 34px; top: 0; bottom: 0;
  display: flex; align-items: center;
  overflow: hidden;
  pointer-events: none;
}
.wt-typed {
  font-size: 10.5px; color: #1f241f;
  white-space: nowrap;
  width: 0;
  overflow: hidden;
  animation: wt-type 7s infinite;
}
@keyframes wt-type {
  0%       { width: 0; animation-timing-function: steps(9, end); }
  26%, 30% { width: 78px; }
  31%,100% { width: 0; }
}
.wt-caret {
  width: 1.4px; height: 12px; background: var(--green); flex: none;
  animation: wt-blink 1.05s steps(1) infinite;
}
@keyframes wt-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.wt-plus {
  margin-left: auto;
  width: 18px; height: 18px; flex: none;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  border-radius: 6px;
  font-size: 13px; font-weight: 600; line-height: 1;
}
.wt-footbar {
  display: flex; justify-content: flex-end;
  padding: 3px 12px 8px;
  font-size: 9px; color: #b7bab4;
}
/* 系统开了「减少动态效果」时：直接展示添加完成的状态 */
@media (prefers-reduced-motion: reduce) {
  .wt-new { animation: none; max-height: 30px; opacity: 1; padding: 6px; transform: none; }
  .wt-ph { animation: none; opacity: 0; }
  .wt-typed { animation: none; width: 78px; }
}
.pm-info { flex: 1; min-width: 0; }
.pm-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 3px 11px;
}
.pm-h2 { margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.pm-d { margin: 8px 0 0; font-size: 13px; line-height: 1.8; color: var(--sub); }
.pm-list { margin: 10px 0 0; padding: 0; list-style: none; }
.pm-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--sub);
}
.pm-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.pm-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 19px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s var(--ease), background .18s ease;
}
.pm-btn:hover { background: #000; transform: translateY(-1px); }
.pm-qr {
  display: block;
  margin-top: 14px;
  width: 84px;
  border-radius: 8px;
  border: 1px solid #eceae5;
}

/* 小程序四个页面截图：手机竖屏比例（9:16），一次两张，左右切换到另外两张。
   两侧各留 50px 空位放切换箭头，箭头完全落在图片之外，不压住手机页面 */
.pm-carousel {
  position: relative;
  flex: 0 0 auto;
  width: 472px;
}
.pm-r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pm-viewport { overflow: hidden; }
.pm-track {
  display: flex;
  width: 200%;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}
.pm-slide {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 2px 50px 0;
}
#pm-p2:checked ~ .pm-viewport .pm-track { transform: translateX(-50%); }
.pm-shot-i { margin: 0; min-width: 0; }
.pm-shot-i img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid #f0efec;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, .04);
}
/* 图注放到手机页面上方，作为每张截图的小标题 */
.pm-shot-i figcaption {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #a0a09a;
  text-align: center;
  white-space: nowrap;
}
.pm-shot-i figcaption b { color: #111; font-weight: 700; }

/* 左右切换按钮：两侧常显，点击循环翻组 */
.pm-arr {
  position: absolute; z-index: 4; top: 43%;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #f0efec;
  box-shadow: 0 2px 8px rgba(17, 17, 17, .05);
  color: #666; font-size: 21px; line-height: 1;
  padding-bottom: 3px;
  cursor: pointer; user-select: none;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.pm-arr:hover { background: #08B95C; border-color: #08B95C; color: #fff; }
/* 箭头放在 .pm-slide 让出的左右留白里，与两张手机图零重叠 */
.pm-arr-l { left: 2px; }
.pm-arr-r { right: 2px; }

/* 页码 + 圆点 */
.pm-ctrl {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; height: 18px; margin-top: 10px;
}
.pm-count { font-size: 11px; color: #adada6; margin-right: 4px; letter-spacing: .3px; }
.pm-n2 { display: none; }
.pm-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e4e4df; cursor: pointer;
  transition: width .25s, background .25s, border-radius .25s;
}
#pm-p2:checked ~ .pm-ctrl .pm-n1 { display: none; }
#pm-p2:checked ~ .pm-ctrl .pm-n2 { display: inline; }
#pm-p1:checked ~ .pm-ctrl .pm-dot-1,
#pm-p2:checked ~ .pm-ctrl .pm-dot-2 { width: 18px; border-radius: 4px; background: #08B95C; }
.pm-list-diff li b { color: var(--green, #08B95C); font-weight: 700; }

/* 旧版三块屏幕示意：纯 CSS 画出来的迷你界面（已停用，样式保留） */
.pm-phones { flex: 0 0 auto; display: flex; gap: 14px; }
.ph {
  width: 118px;
  height: 188px;            /* 固定高度：动效不改变卡片尺寸 */
  border: 1px solid #e5e3dd;
  border-radius: 16px;
  background: #fff;
  padding: 10px 9px 12px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ph-bar {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  padding-bottom: 7px;
  border-bottom: 1px solid #f1f0ea;
  margin-bottom: 7px;
  flex: none;
}
.ph-bar-nav { display: flex; align-items: center; justify-content: space-between; padding-left: 4px; padding-right: 4px; }
.ph-nav { font-style: normal; font-weight: 600; color: #c2c2bd; font-size: 11px; }

/* —— 待办卡：逾期红字分组 + 提醒铃铛 + 勾选完成循环 —— */
.ph-group {
  font-size: 8.5px;
  color: #d4756a;
  padding: 2px 1px 1px;
  flex: none;
}
.ph-group b { font-weight: 600; margin-left: 2px; }
.ph-row { display: flex; align-items: center; gap: 5px; padding: 4.5px 0; }
.ph-row span {
  font-size: 10px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-grow { flex: 1; min-width: 0; }
.ph-ck {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #c9c9c4;
  border-radius: 3px;
  position: relative;
}
.ph-ck.on { background: var(--green); border-color: var(--green); }
.ph-ck.on::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2.2px;
  width: 3px;
  height: 1.6px;
  border-left: 1.3px solid #fff;
  border-bottom: 1.3px solid #fff;
  transform: rotate(-45deg);
}
.ph-row.is-done span { color: var(--faint); text-decoration: line-through; }
.ph-late span { color: #d4756a; }
.ph-bell { display: flex; align-items: center; gap: 3px; flex: none; }
.ph-bell-ic {
  position: relative;
  width: 9px; height: 7.5px;
  border: 1.2px solid var(--green);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  display: block;
  transform-origin: 50% 0;
  animation: phBell 7s ease infinite;
}
.ph-bell-ic u {
  position: absolute; left: 2.2px; bottom: -2.6px;
  width: 3.4px; height: 1.6px;
  background: var(--green);
  border-radius: 1px;
  display: block;
}
@keyframes phBell {
  0%, 4% { transform: rotate(0); }
  7% { transform: rotate(14deg); }
  10% { transform: rotate(-12deg); }
  13% { transform: rotate(8deg); }
  16%, 100% { transform: rotate(0); }
}
.ph-bell em { font-style: normal; font-size: 8.5px; color: #9a9a9a; }
/* 勾选完成循环：30% 时打勾 → 划线变灰 → 86% 复位 */
.ph-ck-a { animation: phCk 7s steps(1) infinite; }
.ph-ck-a::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2.2px;
  width: 3px;
  height: 1.6px;
  border-left: 1.3px solid #fff;
  border-bottom: 1.3px solid #fff;
  transform: rotate(-45deg) scale(0);
}
.ph-act .ph-grow { animation: phTxt 7s linear infinite; }
@keyframes phCk {
  0%, 26% { background: transparent; border-color: #c9c9c4; }
  27%     { background: var(--green); border-color: var(--green); animation-timing-function: steps(1); }
  27.5%   { background: #3ddc84; }
  29%, 84% { background: var(--green); border-color: var(--green); }
  85%, 100% { background: transparent; border-color: #c9c9c4; }
}
.ph-ck-a::after { animation: phCkA 7s steps(1) infinite; }
@keyframes phCkA {
  0%, 26% { transform: rotate(-45deg) scale(0); }
  29%, 84% { transform: rotate(-45deg) scale(1); }
  85%, 100% { transform: rotate(-45deg) scale(0); }
}
@keyframes phTxt {
  0%, 26% { color: var(--sub); text-decoration: none; }
  30%, 84% { color: var(--faint); text-decoration: line-through; }
  85%, 100% { color: var(--sub); text-decoration: none; }
}

/* —— 日历卡：日程点依次亮起 + 今天绿色高亮呼吸 —— */
.ph-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 0 1px; margin-bottom: 2px; flex: none; }
.ph-week i { font-style: normal; font-size: 7.5px; color: #c2c2bd; text-align: center; }
.ph-week i.ph-we { color: #e0b0ab; }
.ph-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 3px 1px 5px;
  flex: 1;
  align-content: start;
}
.ph-cal i {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1;
  border-radius: 3px;
  background: #f0efe9;
  font-style: normal; font-size: 7.5px; color: transparent;
}
.ph-cal i.dot { background: #bfe9d2; animation: phDot 7s ease infinite; }
.ph-cal i.d2 { animation-delay: .25s; }
.ph-cal i.d3 { animation-delay: .5s; }
@keyframes phDot { 0% { opacity: 0; } 12%, 100% { opacity: 1; } }
.ph-cal i.today {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  animation: phToday 2.6s ease-in-out infinite;
}
@keyframes phToday {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(7, 193, 96, .35); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 2.5px rgba(7, 193, 96, .18); }
}

/* —— 专注卡：SVG 进度圆环倒计时 + 目标行 —— */
.ph-goal {
  font-size: 8.5px;
  color: #9a9a9a;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 1px 2px 0;
  flex: none;
}
.ph-ring2 { width: 72px; height: 72px; margin: 7px auto 0; display: block; flex: none; }
.ph-arc { animation: phDrain 7s linear infinite; }
@keyframes phDrain { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 58; } }
.ph-center { position: relative; height: 0; }
.ph-time {
  position: absolute;
  left: 50%; top: -46px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.ph-time::after { content: '25:00'; animation: phTime 7s steps(1) infinite; }
@keyframes phTime {
  0% { content: '25:00'; }
  25% { content: '24:52'; }
  50% { content: '24:36'; }
  75% { content: '24:21'; }
  99% { content: '24:21'; }
  100% { content: '25:00'; }
}
.ph-btn {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  padding: 6px 0;
  flex: none;
}

/* 安卓 / 鸿蒙：纯 CSS 手机示意，不依赖额外截图 */
.apk-visual { flex: 0 0 236px; display: grid; place-items: center; }
.apk-phone {
  position: relative;
  box-sizing: border-box;
  width: 172px;
  height: 306px;
  padding: 36px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e9e7e1;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 17, 17, .13), 0 2px 8px rgba(17, 17, 17, .07);
}
.apk-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 5px; border-radius: 99px; background: #e6e4de;
}
.apk-logo { width: 52px; height: 52px; object-fit: contain; }
.apk-app { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .06em; }
.apk-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 20px; }
.apk-row + .apk-row { margin-top: 10px; }
.apk-row i {
  flex: none; width: 12px; height: 12px;
  border: 1px solid #d7ecdd; border-radius: 4px; background: var(--green-soft);
}
.apk-row u { flex: 1; height: 7px; border-radius: 4px; background: #f0efe9; }
.apk-row.short u { flex: none; width: 58%; }
.apk-os { margin-top: auto; font-size: 10px; color: var(--muted); letter-spacing: .03em; }

/* 网页端：整页截图在右，介绍在左 */
.pm-sec-web .pm-info { flex: 0 0 300px; }
.pm-shot-web { flex: 1; min-width: 0; }
.pm-shot-web img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e9e7e1;
  box-shadow: 0 14px 34px rgba(17, 17, 17, .10);
}

/* 苹果 iOS 建设中：深色极简 + 流光文字 */
.pm-soon {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 38px 22px 34px;
  text-align: center;
  background: linear-gradient(135deg, #101815 0%, #18231d 55%, #0d1310 100%);
}
.pm-soon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(520px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(7, 193, 96, .85), transparent);
}
.pm-soon-icons { display: flex; justify-content: center; gap: 26px; }
.pm-soon-icons svg { width: 30px; height: 30px; color: #e9f5ee; opacity: .92; }
.pm-soon-t {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3em;
  color: #cfe6d8;
}
.pm-soon-shine {
  margin-top: 7px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .18em;
  background: linear-gradient(100deg, #2e5c43 0%, #7cf2ac 45%, #2e5c43 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pmShine 3.4s linear infinite;
}
@keyframes pmShine { to { background-position: -220% 0; } }
.pm-soon-d {
  margin: 13px auto 0;
  max-width: 430px;
  font-size: 16px;
  line-height: 1.8;
  color: #cfe6d8;
}

/* 窄屏：左右排改上下排 */
@media (max-width: 860px) {
  .pm-sec { flex-direction: column; align-items: stretch; gap: 18px; }
  .pm-sec-mini { flex-direction: column-reverse; }
  .pm-shot { flex: none; }
  .apk-visual { flex: none; }
  .pm-sec-web .pm-info { flex: none; }
  .pm-phones { justify-content: center; flex-wrap: wrap; }
  .pm-carousel { width: 100%; max-width: 472px; margin: 0 auto; }
  .pm-slide { padding-left: 34px; padding-right: 34px; }
  .pm-arr { width: 26px; height: 26px; font-size: 18px; }
  .pm-panel { gap: 26px; padding: 24px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-bell-ic, .ph-ck-a, .ph-act .ph-grow, .ph-ck-a::after,
  .ph-cal i.dot, .ph-cal i.today, .ph-arc, .ph-time::after,
  .pm-soon-shine { transition: none; animation: none; }
  .pm-track, .pm-dot, .pm-arr { transition: none; }
}

/* 苹果 iOS「正在创建」弹窗：和小程序弹窗同一套背景与卡片 */
.soon-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, .3);
  backdrop-filter: blur(2px);
}
.soon-card {
  position: relative;
  width: 280px;
  padding: 30px 24px 26px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: authIn .26s var(--ease) both;
}
.soon-ic { width: 38px; height: 38px; margin: 0 auto 14px; color: var(--ink); }
.soon-ic svg { width: 100%; height: 100%; display: block; }
.soon-spin { animation: spin 1s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.soon-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.soon-d { margin-top: 9px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.soon-x {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.soon-x:hover { background: #f2f2ee; color: var(--ink); }

/* ---------------- 桌面端引导弹窗（与小程序 / 苹果 iOS 同款浮层） ---------------- */
.dl-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, .3);
  backdrop-filter: blur(2px);
}
.dl-card {
  position: relative;
  width: 300px;
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: authIn .26s var(--ease) both;
}
.dl-badge {
  display: inline-block;
  padding: 4px 11px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 11.5px;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--green);
  background: rgba(7, 193, 96, .1);
}
.dl-t { font-size: 17px; font-weight: 600; letter-spacing: .03em; color: var(--ink); }
.dl-d { margin-top: 9px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.dl-steps {
  margin: 16px 0 18px;
  padding: 14px 16px 14px 14px;
  list-style: none;
  text-align: left;
  background: #f6f7f5;
  border-radius: 12px;
}
.dl-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--sub);
}
.dl-steps li + li { margin-top: 10px; }
.dl-n {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.dl-steps b { color: var(--ink); font-weight: 600; }
.dl-btn {
  display: block;
  padding: 12px 0;
  border-radius: 11px;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  transition: opacity .16s ease, transform .16s var(--ease);
}
.dl-btn:hover { opacity: .88; }
.dl-btn:active { transform: scale(.985); }
.dl-foot { margin-top: 11px; font-size: 10.5px; color: var(--faint); }
.dl-x {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.dl-x:hover { background: #f2f2ee; color: var(--ink); }

/* 服务条款 / 隐私政策弹窗 */
.terms-veil {
  position: fixed;
  inset: 0;
  z-index: 91;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, .3);
  backdrop-filter: blur(2px);
}
.terms-card {
  position: relative;
  width: 380px;
  max-width: 100%;
  padding: 26px 24px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: authIn .26s var(--ease) both;
}
.terms-t { font-size: 17px; font-weight: 600; letter-spacing: .03em; color: var(--ink); margin-bottom: 14px; }
.terms-body {
  max-height: 70vh;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--sub);
  padding-right: 4px;
}
.terms-body p { margin: 0 0 10px; }
.terms-body b { color: var(--ink); font-weight: 600; }
.terms-body p:last-child { margin-bottom: 0; }
.terms-x {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.terms-x:hover { background: #f2f2ee; color: var(--ink); }

@media (max-width: 460px) {
  .mask { --mask-pad-x: 14px; padding: 26px var(--mask-pad-x); }
  .auth { padding: 4px 18px 20px; }
  .auth-stack { margin: 0 auto; }
  .plat { margin-top: 26px; }
  .plat-sub { gap: 10px; margin-bottom: 6px; }
  .plat-sub-label { font-size: 15px; }
  .plat-toggle { font-size: 12.5px; padding: 7px 12px; }
  .pt-arrow { width: 14px; height: 14px; }
  .plat-title { font-size: 12px; }
  .plat-grid { gap: 8px; }
  .plat-i { padding: 13px 2px 11px; }
  .plat-n { font-size: 11.5px; }
  .plat-s { font-size: 9.5px; }
}
/* 窗口不高（小笔记本 / 注册态）时改成从顶部排，保证内容都能滚到 */
@media (max-height: 780px) {
  .auth-stack { margin: 0 auto; }
}

/* ---------------- 过渡 ---------------- */
/* 视图只做透明度交叉淡入淡出；位移交给下面各内容块的错落入场，
   两层一起动反而会抖。离场那一帧脱离文档流（.main 是定位父级），没有空档。 */
.view-enter-active { transition: opacity .3s var(--ease); }
.view-leave-active {
  position: absolute;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  pointer-events: none;
  transition: opacity .2s ease;
}
.view-enter-from, .view-leave-to { opacity: 0; }
/* 离场那一帧别把悬浮输入条也带走，避免切换视图时瞬间出现两条 */
.view-leave-active .composer { display: none; }

/* 右侧内容按「标题 → 清单 → 输入条」的顺序错落落位：
   位移只有 7px、缓动统一，纯白界面靠层次显精致，不靠阴影。
   .composer 是 fixed 且内含时间弹层，只淡入、不加 transform
   （一旦加 transform 就会变成 fixed 的包含块，悬浮位置会跑掉）。 */
@keyframes blockIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
@keyframes blockFade { from { opacity: 0; } to { opacity: 1; } }
.view .head { animation: blockIn .5s var(--ease) both; }
.view .list,
.view .empty,
.view .card-hero,
.view .preset-link { animation: blockIn .5s var(--ease) .05s both; }
.view .composer,
.view .done-wrap,
.view .block,
.view .rows { animation: blockFade .5s var(--ease) .1s both; }

/* 清单增删 / 重排：新行轻轻落下，完成或删除时向内收起，
   不再横向「甩出去」；剩余行靠 list-move 平滑补位 */
.list-enter-active { transition: opacity .34s var(--ease), transform .42s var(--ease-spring); }
.list-leave-active {
  transition: opacity .22s ease, transform .3s var(--ease);
  position: absolute;
  left: 0; right: 0;
}
.list-enter-from { opacity: 0; transform: translateY(-10px) scale(.985); }
.list-leave-to { opacity: 0; transform: translateY(-6px) scale(.99); }
.list-move { transition: transform .42s var(--ease); }

/* 点左侧日历换日期：旧条目先在原地淡出，等它淡完，新条目再直接出现。
   之前新旧条目同时可见、半透明叠在一起，看着就是「闪一下」，这里必须顺序执行：
   day-swap 期间把所有新条目藏起来，旧条目只做 opacity 淡出（无位移 / 缩放）。
   列表 / 空白态 / 已完成分组等整块入场动画也一并关掉，避免切换时又抬一次。
   .day-swap 由 app.js 只挂 160ms（略长于 .12s 淡出），撤掉时新条目瞬间显示、不淡入。
   新增待办 / 勾选完成 / 删除仍走上面的 list 过渡。 */
.todo-rest.day-swap .list,
.todo-rest.day-swap .empty,
.todo-rest.day-swap .card-hero,
.todo-rest.day-swap .preset-link,
.todo-rest.day-swap .done-wrap { animation: none !important; }
.todo-rest.day-swap .list > .task:not(.list-leave-active):not(.list-leave-from):not(.list-leave-to),
.todo-rest.day-swap .list-enter-active,
.todo-rest.day-swap .list-enter-from { opacity: 0; transition: none; transform: none; }
.todo-rest.day-swap .list-leave-active { transition: opacity .12s ease; }
.todo-rest.day-swap .list-leave-to { opacity: 0; transform: none; }
/* list-move 的 FLIP 位移会延续到 day-swap 撤掉之后：尾巴期间把过渡和内联
   transform 一起压掉，新条目才会真正「原地」出现，不再滑 7px 回来 */
.todo-rest.day-swap .list-move,
.todo-rest.day-swap-tail .list-move { transition: none !important; transform: none !important; }
.todo-rest.day-swap .fold-enter-active,
.todo-rest.day-swap .fold-leave-active { transition: none; }
.todo-rest.day-swap .fold-enter-from,
.todo-rest.day-swap .fold-leave-to { opacity: 1; max-height: none; }

.cal-enter-active, .cal-leave-active { transition: opacity .2s ease; }
.cal-enter-from, .cal-leave-to { opacity: 0; }

.toast-enter-active { transition: opacity .25s var(--ease), transform .3s var(--ease-spring); }
.toast-leave-active { transition: opacity .2s ease, transform .2s ease; }
.toast-enter-from { opacity: 0; transform: translateY(12px) scale(.96); }
.toast-leave-to { opacity: 0; transform: translateY(-6px); }
.toast-move { transition: transform .3s var(--ease); }

.fade-enter-active, .fade-leave-active { transition: opacity .3s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.fold-enter-active, .fold-leave-active {
  transition: opacity .25s var(--ease), max-height .35s var(--ease);
  overflow: hidden;
  max-height: 640px;
}
.fold-enter-from, .fold-leave-to { opacity: 0; max-height: 0; }

/* ---------------- 关键帧 ---------------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes cellIn {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}

@media (max-width: 860px) {
  .side { width: 68px; padding: 26px 10px; }
  .brand { justify-content: center; padding: 0 0 22px; }
  .brand-txt { display: none; }
  .nav-i { justify-content: center; padding: 10px 4px; }
  .nav-ic { width: 24px; height: 24px; }
  .nav-t { display: none; }
  .nav-dot { display: none; }
  .side-foot { display: none; }
  .side-site { display: none; }
  .main { padding: 30px 20px 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
/* ---------------- 手机（≤760px）：侧栏改成底部 tab 条 ----------------
   原来窄屏只是把侧栏压成 68px，主区仍固定 680px，手机上必然横向溢出。
   这里把导航整体挪到屏幕底部，主区满宽，登录/搜索收进「我的」页。 */
@media (max-width: 760px) {
  #app { display: block; }

  .side {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    align-self: auto;
    z-index: 50;
    width: 100%;
    height: auto;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: center;
    background: rgba(247, 247, 244, .96);
    backdrop-filter: saturate(180%) blur(14px);
    border-right: 0;
    border-top: 1px solid var(--line);
    animation: none;
  }

  .brand,
  .side-foot,
  .side-site,
  .nav-sep,
  .nav-i.nav-me,
  .nav-i.sub { display: none; }

  .nav { flex-direction: row; width: 100%; gap: 0; }
  .nav-i {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 2px;
    animation: none;
  }
  .nav-i.active { background: none; box-shadow: none; }
  .nav-ic { width: 22px; height: 22px; }
  .nav-t { display: block; font-size: 10px; letter-spacing: 0; }

  .main { padding: 22px 16px 136px; }
  /* 输入条悬浮在底部 tab 条之上，别压住导航；底部留白同步加高，滚到底也不遮内容。
     JS 的 syncComposer() 仍会用 .todo-rest 实测值覆盖 left / width。 */
  .composer {
    bottom: calc(66px + env(safe-area-inset-bottom));
    left: 16px;
    width: calc(100vw - 32px);
  }
  .view { max-width: 100%; }
  /* 手机端更贴近小程序：标题 20px（40rpx），右侧按钮收窄，
     免得 1fr auto 1fr 的侧列不够宽、把居中的标题挤偏 */
  .head .day-label { font-size: 20px; }
  .head .head-acts { gap: 4px; }
  .head .head-acts .icon-btn { width: 30px; height: 30px; }
  .head .head-acts .ghost-btn { height: 30px; padding: 0 9px; }

  /* 触屏没有 hover：行内操作常显，不然根本点不到 */
  .t-del,
  .t-move { opacity: 1; transform: none; }
  .t-rep { opacity: .8; }

  /* 弹层在小屏上贴底，别顶到屏幕外 */
  .rep-mask, .veil { align-items: flex-end; }
  .rep-modal, .rp-card { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; }
  .srch { width: 100%; max-height: 80vh; border-radius: 18px 18px 0 0; }
}

/* 极窄手机：副标题较长，操作按钮挤在同一行会压到文字、把「今天」折成两行。
   所有页面统一改成「标题 + 副标题居中一行 / 操作按钮居中一行」，两边都不重叠。 */
@media (max-width: 430px) {
  .head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }
  .head .head-l { grid-column: 1; grid-row: 1; }
  .head .head-acts { grid-column: 1; grid-row: 2; justify-self: center; }
}

/* ============ 完成卡片工坊（网页版，对齐小程序 card-sheet） ============ */
.cs-wrap {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cs-wrap.on { display: flex; }

.cs-mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .45);
  animation: csFade .2s var(--ease);
}

.cs-sheet {
  position: relative;
  width: 400px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 16px 16px 14px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: csIn .26s var(--ease);
  -webkit-overflow-scrolling: touch;
}

@keyframes csFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes csIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cs-title { font-size: 15px; font-weight: 700; letter-spacing: .2px; }

.cs-x {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}
.cs-x:hover { background: var(--soft); color: var(--ink); }

/* 预览：等比缩放 1080×1350 的画布 */
.cs-prev {
  height: 34vh;
  min-height: 200px;
  max-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border-radius: 14px;
  padding: 10px;
}

.cs-canvas {
  height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.cs-opts { display: flex; gap: 8px; margin-top: 14px; }

.cs-tab {
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: color .16s, border-color .16s, background .16s;
}
.cs-tab.on {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
  font-weight: 600;
}

.cs-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-height: 118px;
  overflow-y: auto;
}

/* display:flex 会盖掉 [hidden]，这里显式补上 */
.cs-picks[hidden] { display: none; }

.cs-pick {
  max-width: 100%;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-pick.on {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}
.cs-pick.on::before { content: "✓ "; font-weight: 700; }

.cs-field { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cs-lab { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); }

.cs-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.cs-input:focus { border-color: var(--green); background: var(--card); }

.cs-bgbtns { display: flex; gap: 8px; }

.cs-mini {
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cs-mini:hover { border-color: var(--faint); }
.cs-mini.ghost { color: var(--muted); }

.cs-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.cs-save {
  width: 100%;
  height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 12px;
  transition: transform .12s var(--ease), filter .16s;
}
.cs-save:hover { filter: brightness(1.04); }
.cs-save:active { transform: scale(.99); }

.cs-hint { font-size: 11.5px; color: var(--faint); }

.cs-toast {
  position: fixed;
  left: 50%;
  bottom: 12vh;
  z-index: 400;
  padding: 9px 16px;
  font-size: 13px;
  color: #fff;
  background: rgba(17, 17, 17, .86);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.cs-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .cs-wrap { align-items: flex-end; padding: 0; }
  .cs-sheet {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .cs-prev { height: 30vh; min-height: 170px; }
}

/* 全天完成：logo 徽章 + 分享完成图按钮（和小程序 todo 页一致） */
.card-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 8px;
  animation: riseIn .4s var(--ease) both;
}
.card-hero-logo {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  display: block;
}
.card-hero-btn {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  transition: background .16s ease, transform .12s var(--ease);
}
.card-hero-btn:hover { background: var(--green-soft); }
.card-hero-btn:active { transform: scale(.97); }

/* 已完成分组头右侧：存张图 + 展开箭头 */
.done-r {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.done-card {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: opacity .16s ease;
}
.done-card:hover { opacity: .65; }

/* ============ 回顾（原专注页位置） ============ */
.rec-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rec-card {
  padding: 14px 16px 13px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
}

.rc-l { font-size: 12px; color: var(--muted); letter-spacing: .2px; }

.rc-v {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.6px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.rc-u { margin-left: 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.rec-heat {
  margin-top: 16px;
  padding: 16px 16px 12px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
}

.rh-t { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }

.rh-grid { display: flex; gap: 6px; }

.rh-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.rh-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #f1efe8;
}

/* 三档绿统一锚在微信绿 #07C160 上 */
.rh-cell.l0 { background: #f1efe8; }
.rh-cell.l1 { background: #b9e8cb; }
.rh-cell.l2 { background: #52c986; }
.rh-cell.l3 { background: #07C160; }
.rh-cell.l-1 { background: transparent; }

.rh-legend { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.rl-t { font-size: 11.5px; color: var(--faint); }
.rl { width: 11px; height: 11px; border-radius: 3px; background: #f1efe8; }
.rl.l0 { background: #f1efe8; }
.rl.l1 { background: #b9e8cb; }
.rl.l2 { background: #52c986; }
.rl.l3 { background: #07C160; }
.rh-legend .rl-t:last-child { margin-left: 1px; }

.rec-today {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
}
.rt-l { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.rt-v { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.rec-hint { margin-top: 12px; text-align: center; font-size: 12px; color: var(--faint); }

/* ============ 专注 · 内置弹层（从待办行右键/长按进入） ============ */
.fs-card {
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  animation: csIn .26s var(--ease);
}

.fs-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.fs-goal { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fs-lab { font-size: 11.5px; color: var(--faint); letter-spacing: .4px; }
.fs-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-x {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.fs-x:hover { background: var(--soft); color: var(--ink); }

.fs-card .dial { width: 184px; height: 184px; margin: 8px 0 2px; }
.fs-card .dial-txt { font-size: 36px; }
.fs-card .chips { margin-top: 20px; }
.fs-card .focus-btns { margin-top: 18px; }

.fs-hint { margin-top: 14px; font-size: 11.5px; color: var(--faint); text-align: center; }

@media (max-width: 640px) {
  .fs-card {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    align-self: flex-end;
  }
}

/* ============ 监督搭子 ============ */
.bd-sec { margin-top: 22px; }

.bd-sec-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.bd-pending {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
}

.bd-p-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bd-code {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.bd-p-tip { font-size: 12px; color: var(--muted); }

.bd-card {
  padding: 14px 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
}
.bd-card + .bd-card { margin-top: 10px; }
.bd-pending + .bd-card { margin-top: 10px; }

.bd-head { display: flex; align-items: center; gap: 10px; }

.bd-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bd-prog { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.bd-del { flex: none; font-size: 11.5px; color: var(--faint); }
.bd-del:hover { color: var(--danger, #d85a30); }

.bd-bar {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #f1efe8;
  overflow: hidden;
}
.bd-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width .4s var(--ease);
}

.bd-ent { margin-top: 12px; }
.bd-ent-t { font-size: 11.5px; color: var(--faint); margin-bottom: 6px; }
.bd-ent-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--sub);
}
.bd-ent-row .strike { text-decoration: line-through; color: var(--faint); }

.bd-ck {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #f1efe8;
  position: relative;
}
.bd-ck.on { background: var(--green); }
.bd-ck.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.bd-mini {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 8px;
}
.bd-mini:hover { filter: brightness(.98); }

.bd-empty {
  padding: 20px 16px;
  text-align: center;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
}

.bd-e-t { font-size: 14px; font-weight: 600; color: var(--ink); }
.bd-e-p { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.bd-invite {
  margin-top: 14px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}
.bd-invite:hover { filter: brightness(1.05); }

.bd-join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.bd-join input {
  width: 90px;
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}
.bd-join input:focus { border-color: var(--green); }

.bd-e-hint { margin-top: 10px; font-size: 11.5px; color: var(--faint); }


/* 派任务表单 */
.bd-form {
  padding: 16px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
}

.bd-f-t { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }

.bd-f-in {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}
.bd-f-in:focus { border-color: var(--green); background: #fff; }

.bd-f-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.bd-f-lab { flex: none; font-size: 12px; color: var(--muted); }

.bd-friend {
  padding: 5px 13px;
  font-size: 12.5px;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .16s var(--ease);
}
.bd-friend.on {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
  font-weight: 600;
}

.bd-chip {
  padding: 5px 13px;
  font-size: 12.5px;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .16s var(--ease);
}
.bd-chip.on {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
  font-weight: 600;
}

.bd-f-time {
  width: 150px;
  height: 30px;
  padding: 0 10px;
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}
.bd-f-time:focus { border-color: var(--green); }

.bd-send-lg {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 10px;
  transition: transform .12s var(--ease), filter .16s;
}
.bd-send-lg:hover { filter: brightness(1.04); }
.bd-send-lg:active { transform: scale(.99); }

.bd-ent-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bd-ent-meta {
  flex: none;
  font-size: 11.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* 任务行：搭子派来的徽标 */
.t-from {
  flex: none;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
}

/* ---------------- 习惯库（与小程序同款功能，视觉沿用网页端组件） ----------------
   宽度仍由 .view 的 680px 统一控制，这里不设 max-width。 */
.view-habit .head { padding-bottom: 18px; }

.hb-search { display: flex; align-items: center; gap: 8px; }
.hb-in-box { position: relative; flex: 1; min-width: 0; }
.hb-in {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hb-in:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7, 193, 96, .12); }
.hb-in::placeholder { color: var(--faint); }
.hb-in-x {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 50%;
  font-size: 13px;
  color: var(--muted);
  background: #f0f0ec;
}
.hb-in-x:hover { color: var(--ink); background: #e6e6e2; }
.hb-go {
  flex: none;
  height: 42px;
  padding: 0 20px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
}
.hb-go:hover:not(:disabled) { color: #fff; background: #06ad56; }
.hb-tip { margin: 8px 2px 16px; font-size: 12px; color: var(--faint); }

.hb-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 9px; }
.hb-sec-t { font-size: 13px; font-weight: 700; color: var(--sub); }
.hb-sec-n { font-size: 12px; color: var(--faint); }

/* 已加入的习惯：浅绿记录卡，点开看日历 */
.hb-rec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, .16);
  cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .2s ease;
}
.hb-rec:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(7, 193, 96, .34); }
.hb-rec:active { transform: scale(.995); }
.hb-rec-main { flex: 1; min-width: 0; }
.hb-rec-t { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-rec-m { margin-top: 4px; font-size: 12px; color: var(--sub); }
.hb-rec-go { flex: none; font-size: 12px; font-weight: 600; color: var(--green); }

.hb-res-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 12px;
  font-size: 12.5px;
  color: var(--sub);
}
.hb-link { font-size: 12px; color: var(--green); font-weight: 600; }
.hb-link:hover { text-decoration: underline; }

.hb-card {
  margin-bottom: 12px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(17, 17, 17, .035);
}
.hb-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.hb-card-t { font-size: 13.5px; font-weight: 700; }
.hb-card-n { font-size: 12px; color: var(--faint); }
.hb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.hb-row:last-child { border-bottom: 0; }
.hb-row-t { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-row-t.done { color: var(--faint); text-decoration: line-through; }
.hb-row-m { flex: none; font-size: 12px; color: var(--faint); }
.hb-add {
  flex: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, .28);
  transition: background .18s ease;
}
.hb-add:hover { background: var(--green-soft); }
.hb-add:active { transform: scale(.96); }

.hb-none { padding: 36px 0; text-align: center; }
.hb-none-t { font-size: 14px; font-weight: 600; color: var(--sub); }
.hb-none-p { margin-top: 6px; font-size: 12px; color: var(--faint); }
.hb-foot { margin: 18px 2px 0; font-size: 11.5px; line-height: 1.7; color: var(--faint); }

/* 选择 / 查看习惯日历的弹层 */
.hb-modal {
  width: 460px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  animation: popIn .26s var(--ease-spring) both;
}
.hb-m-text { margin-top: 14px; }
.hb-m-hint { margin-top: 7px; font-size: 12px; color: var(--muted); }

.hb-cal {
  margin-top: 14px;
  padding: 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.hb-cal-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 2px; }
.hb-cal-title { font-size: 13px; font-weight: 700; }
.hb-cal .ghost-btn.hb-nav { width: 30px; height: 30px; padding: 0; font-size: 19px; line-height: 1; }
.hb-cal .cal-week span { padding: 6px 0 8px; font-size: 11px; }
.hb-cal .cal-cell { height: 46px; padding: 2px 0 6px; border-radius: 9px; gap: 0; }
.hb-cal .cal-d { font-size: 16px; }
.hb-cal .cal-sub { font-size: 10px; }
.hb-cal .cal-badge {
  top: 2px; right: 3px;
  min-width: 13px; height: 13px; line-height: 13px;
  font-size: 9px; border-radius: 4px;
}
/* 有未完成待办的日期：和主日历一样只在底部显示绿色小点，不描灰框。
   今天 / 已选中的日期统一「白底 + 绿边」（这里优先级更高，绿框需重申）。 */
.hb-cal.cal-pop .cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--green); }
/* 选中的日期：白底 + 绿框 + 绿字，可多选；被选中的今天也用绿字区分。 */
.hb-cal.cal-pop .cal-cell.picked:not(.today) {
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.hb-cal.cal-pop .cal-cell.picked:not(.today) .cal-d,
.hb-cal.cal-pop .cal-cell.picked:not(.today) .cal-sub,
.hb-cal.cal-pop .cal-cell.today.picked .cal-d,
.hb-cal.cal-pop .cal-cell.today.picked .cal-sub { color: var(--green); }

.hb-picked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--sub);
}
.hb-alarm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--soft);
  cursor: pointer;
}
.hb-al-main { display: flex; flex-direction: column; gap: 3px; }
.hb-al-main b { font-size: 13px; font-weight: 600; }
.hb-al-main small { font-size: 11px; color: var(--muted); }
.hb-alarm input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }

.hb-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.hb-btns .primary { padding: 10px 26px; }
.hb-btns .plain { padding: 9px 20px; }


