/* =========================================================
   Shared: time grid
   ========================================================= */
.timeline { display: flex; padding: var(--s-3h) var(--s-3h) var(--s-3h) 0; }
/* 时间轴 / 列表两档切换：跟在提示语后面，贴着行尾 */
.tl-switch { display: inline-flex; align-items: center; gap: var(--s-1h); flex: none; }
.time-gutter { position: relative; width: 58px; flex: none; }
.time-gutter span {
  position: absolute; right: 12px; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: var(--fs-11); line-height: 1; color: var(--ink-3);
}
.time-col { position: relative; flex: 1; min-width: 0; border-bottom: 1px solid var(--line); }
.time-col.drop-over { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }

.tl-slot { position: absolute; left: 0; right: 0; z-index: 0; border-top: 1px solid var(--line); text-align: left; padding: var(--s-fine-2) var(--s-2); }
.tl-slot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); pointer-events: none; }
.tl-slot span {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--s-1);
  font-family: var(--font-mono); font-size: var(--fs-11); color: var(--primary-ink);
  opacity: 0; transition: opacity var(--t-fast);
}
.tl-slot:hover { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
.tl-slot:hover span, .tl-slot:focus-visible span { opacity: 1; }
.tl-slot:focus-visible { outline-offset: -2px; }
body.is-dragging .tl-slot:hover { background: none; }
body.is-dragging .tl-slot span { opacity: 0; }

.tl-now { position: absolute; left: -5px; right: 0; z-index: 5; height: 0; border-top: 1.5px solid var(--ink); pointer-events: none; }
.tl-now i { position: absolute; left: 0; top: -5.5px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 1.6px solid var(--ink); }

/* 时间块：软底 + 4px 内嵌色条；悬停只加一层阴影，不改底色 */
.tl-block {
  position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-fine-3) var(--s-fine-4) var(--s-fine-3) var(--s-fine-5); border-radius: var(--r-sm); overflow: hidden;
  background: var(--area-soft); color: var(--ink);
  box-shadow: inset 4px 0 0 var(--area);
  cursor: grab; user-select: none; touch-action: none;
  transition: box-shadow var(--t-fast), background var(--t-fast);
}
.tl-block:hover { z-index: 3; box-shadow: inset 4px 0 0 var(--area), var(--shadow-1); }
.tl-block .check { width: 16px; height: 16px; margin-top: var(--s-hair); background: var(--card); border-width: 1.4px; }
.tl-block .check.is-done { background: var(--done); border-color: var(--done); }
.tl-block .check .ic { width: 10px; height: 10px; }
.tl-body { flex: 1; min-width: 0; cursor: pointer; }
.tl-title { font-size: var(--fs-14); font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-time { font-size: var(--fs-12); color: color-mix(in srgb, var(--area) 45%, var(--ink-2)); margin-top: var(--s-hair); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 挤成细条时先让位：时间与元信息不画，标题折两行保底；勾选框留给今天页，日历里收掉 */
.tl-block.is-tight { gap: var(--s-1); padding-left: var(--s-fine-4); padding-right: 2px; }
.tl-block.is-tight .tl-meta { display: none; }
.tl-block.is-tight .tl-title { font-size: var(--fs-11); line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tl-block.is-tight.is-xs .tl-title { -webkit-line-clamp: 1; }
/* 日历列只有三四十像素宽，时间和勾选框都得收掉 */
.cal-body .tl-block.is-tight .check, .cal-body .tl-block.is-tight .tl-time,
.mw-col .tl-block.is-tight .check, .mw-col .tl-block.is-tight .tl-time { display: none; }
/* 一列放不下的任务数：收成一颗小徽标，点开这一天看全。
   sticky 让它跟着滚动条一起浮在列顶，不会滚到视野外。 */
.tl-more {
  position: sticky; top: 4px; z-index: 4;
  display: block; width: fit-content; margin: 4px 4px 0 auto;
  height: 18px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-bar);
  background: var(--card); color: var(--ink-2); box-shadow: var(--shadow-1);
  font-family: var(--font-mono); font-size: 10px; line-height: 16px; font-weight: 600;
}
.tl-more:hover { color: var(--ink); }
.tl-meta { font-size: var(--fs-12); color: var(--ink-3); margin-top: var(--s-fine-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block.is-short { padding-top: var(--s-fine-2); padding-bottom: var(--s-fine-2); }
.tl-block.is-xs { align-items: center; padding: 0 var(--s-fine-4) 0 var(--s-fine-5); }
.tl-block.is-xs .check { width: 13px; height: 13px; margin: 0; }
.tl-block.is-xs .check .ic { width: 8px; height: 8px; }
.tl-block.is-xs .tl-body { display: flex; align-items: baseline; gap: var(--s-2); }
.tl-block.is-xs .tl-title { font-size: var(--fs-12); }
.tl-block.is-xs .tl-time { flex: none; }
/* 完成态：底色退回安静的沉面，色条压到 60%，时间字用第三档墨 */
.tl-block.is-done { background: color-mix(in srgb, var(--area-soft) 50%, var(--card)); box-shadow: inset 4px 0 0 color-mix(in srgb, var(--area) 45%, transparent); }
.tl-block.is-done .tl-time { color: var(--ink-3); }
.tl-block.is-active { background: color-mix(in srgb, var(--area) 13%, var(--card)); box-shadow: inset 4px 0 0 var(--area), 0 0 0 2px color-mix(in srgb, var(--area) 45%, transparent); }
.tl-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; touch-action: none; }
.tl-resize::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 20px; height: 3px; margin-left: -10px;
  border-radius: var(--r-bar); background: var(--area); opacity: 0; transition: opacity var(--t-fast);
}
.tl-block:hover .tl-resize::after { opacity: .55; }

/* ---------- Drag ---------- */
body.is-dragging { user-select: none; cursor: grabbing; }
.tl-block.dragging { z-index: 10; cursor: grabbing; transition: none; box-shadow: inset 4px 0 0 var(--area), var(--shadow-1); }
.dragging:not(.tl-block) { opacity: .35; }
.drag-ghost { position: fixed !important; z-index: 100; margin: 0; pointer-events: none; opacity: .96; box-shadow: var(--shadow-1) !important; background: var(--card) !important; }
.drag-ghost[data-time]::after {
  content: attr(data-time); position: absolute; left: 0; top: -26px;
  padding: var(--s-0h) var(--s-fine-3); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: var(--fs-11);
  background: var(--ink); color: var(--card);
}
.drop-over { background: var(--primary-soft) !important; box-shadow: inset 0 0 0 1.5px var(--primary-line); }

/* =========================================================
   Shared: echo dial
   ========================================================= */
.dial { position: relative; width: var(--size); max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dial-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); }
.dial-block { cursor: pointer; transition: opacity var(--t-fast); }
.dial-block:hover { opacity: .8; }
.dial-active { filter: blur(3px); animation: dial-breathe 2.6s var(--ease-soft) infinite; }
.dial-echo { animation: fade-in 1.2s var(--ease-soft) both; }
.dial-echo.e2 { animation-delay: .2s; }
.dial-now-pulse { transform-box: fill-box; transform-origin: center; animation: now-pulse 2.4s ease-out infinite; }
@keyframes dial-breathe { 0%, 100% { opacity: .15; } 50% { opacity: .7; } }
@keyframes now-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.dial-center {
  position: absolute; inset: 23%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
}
.dial-eyebrow { font-size: var(--fs-12); color: var(--ink-3); }
.dial-title {
  font-family: var(--font-echo); font-size: calc(var(--size) * .072); line-height: 1.2; color: var(--ink); margin: 5px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dial-sub { font-size: 11px; color: var(--ink-3); }

/* ---------- Echo prompt (evening) ---------- */
.echo-prompt {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 18px; margin-bottom: 6px; overflow: hidden;
  background: var(--primary-soft); border-color: var(--primary-line);
}
.echo-rings { position: relative; width: 44px; height: 44px; flex: none; }
.echo-rings::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--primary); }
.echo-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--primary); opacity: 0; animation: ring-out 3s var(--ease-soft) infinite; }
.echo-rings i:nth-child(2) { animation-delay: 1s; }
.echo-rings i:nth-child(3) { animation-delay: 2s; }
@keyframes ring-out { from { transform: scale(.38); opacity: .85; } to { transform: scale(1); opacity: 0; } }
.echo-copy { flex: 1; min-width: 0; }
.echo-title { font-size: var(--fs-20); line-height: 1.25; }
.echo-copy p { font-size: var(--fs-13); margin-top: 2px; }
.echo-actions { display: flex; gap: 6px; flex: none; }

/* ---------- Habit dots ---------- */
/* 习惯格子：墨色戳记；今天那一格用描边而不是阴影环 */
.h-dots { display: flex; gap: var(--s-fine-2); }
.h-dot {
  width: 20px; height: 20px; border-radius: var(--r-xs); flex: none;
  background: var(--bg-sunk); border: 1px solid var(--line);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.h-dot:hover:not([disabled]) { border-color: var(--ink-3); }
.h-dot:active:not([disabled]) { transform: scale(.88); }
.h-dot.on { background: var(--done); border-color: var(--done); }
.h-dot.today { outline: 1.5px solid var(--ink-3); outline-offset: 1px; }
.h-dot.today.on { outline-color: var(--done); }
.h-dot[disabled] { opacity: .4; cursor: default; }
.ring { display: block; }
.ring circle { transition: stroke-dasharray var(--t-ring) var(--ease); }

/* =========================================================
   Home
   ========================================================= */
.home-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-8); padding: var(--s-6h) 0 var(--s-6h); }
.hero-greet { font-size: var(--fs-44); font-weight: 600; letter-spacing: var(--ls-display); line-height: 1.05; margin-top: var(--s-3); }
.hero-quote { font-size: var(--fs-22); line-height: 1.4; color: var(--ink-2); margin-top: var(--s-4); }
.hero-dial { padding-right: var(--s-2); }

.stat-strip { display: flex; align-items: stretch; padding: var(--s-4) var(--s-1h); margin-bottom: var(--s-1); }
.stat-strip .ss-label { padding: 0 var(--s-4h); align-self: center; writing-mode: horizontal-tb; min-width: 84px; }
.stat-strip .ss { flex: 1; padding: 0 var(--s-4h); border-left: 1px solid var(--line); }
.stat-strip .stat-num .muted { font-size: var(--fs-17); }
.ss-mood { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-ui); font-size: var(--fs-17); letter-spacing: var(--ls-display); height: 26px; }
.ss-mood .mood-dot { width: 10px; height: 10px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s-4h); margin-top: var(--s-4h); align-items: start; }
/* 今天页的列表式时间线：和任务行同一套表单分区，时间走左侧定位栏 */
.plan-list { display: flex; flex-direction: column; }
.plan-item { display: grid; grid-template-columns: 46px 3px 20px minmax(0, 1fr); align-items: start; gap: var(--s-4); padding: var(--s-2h) var(--s-1); border-radius: var(--r-sm); }
.plan-item .check { margin-top: 2px; }
.plan-item:hover { background: var(--bg-sunk); }
.plan-body { min-width: 0; }
.plan-time { font-size: var(--fs-13); line-height: 20px; color: var(--ink-3); }
.plan-line { align-self: stretch; min-height: 22px; border-radius: var(--r-bar); background: var(--area); opacity: .35; }
.plan-title { display: block; text-align: left; font-size: var(--fs-15); line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-item.is-done .plan-line { opacity: .15; }
.plan-item.is-live .plan-line { opacity: 1; }
.plan-item.is-live .plan-title { font-weight: 600; }
.plan-now { display: flex; align-items: center; gap: var(--s-2h); padding: var(--s-1) var(--s-1); font-size: var(--fs-11); font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.plan-now .mono { width: 46px; }
.plan-now i { flex: 1; height: 1.5px; background: var(--ink); border-radius: var(--r-hairline); position: relative; }
.plan-now i::before { content: ""; position: absolute; left: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

.next-up { position: relative; overflow: hidden; }
.next-up:not(.is-clear) { border-color: color-mix(in srgb, var(--area) 35%, var(--line)); background: color-mix(in srgb, var(--area-soft) 55%, var(--card)); }
.next-title { display: block; text-align: left; font-size: var(--fs-20); font-weight: 600; letter-spacing: var(--ls-heading); line-height: 1.25; margin: var(--s-2h) 0 var(--s-1h); }
.next-title.echo-type { font-weight: 400; font-size: var(--fs-22); }
.next-up .mono { font-size: var(--fs-12); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--area, var(--primary)); animation: pulse 1.6s var(--ease) infinite; }

.habit-week, .habit-mini { display: flex; flex-direction: column; gap: var(--s-2h); }
.habit-week li, .habit-mini li { display: flex; align-items: center; gap: var(--s-2h); }
.hw-name, .habit-mini li > span { flex: 1; min-width: 0; font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.habit-week .h-dot { width: 16px; height: 16px; border-radius: var(--r-cell); }
.habit-week .h-dots { gap: var(--s-1); }
.habit-week .mono { width: 26px; text-align: right; }

.home-life { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s-4h); align-items: start; }
.home-moment { padding: var(--s-5); }
.hm-meta { gap: var(--s-2h); }
.hm-meta span { display: inline-flex; align-items: center; gap: var(--s-1); }
.hm-text { font-size: var(--fs-22); line-height: 1.4; margin: var(--s-2h) 0 var(--s-3h); }
.hm-foot { margin-top: var(--s-3h); }
.bottle-return {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-4h); padding: var(--s-7) var(--s-5); text-align: center; width: 100%;
  background: var(--sea-mid); border-color: color-mix(in srgb, var(--sea-deep) 60%, var(--line));
  transition: box-shadow var(--t-med) var(--ease);
}
.bottle-return .br-art { width: 52px; height: 84px; flex: none; animation: bob 4s var(--ease-soft) infinite; }
.br-title { font-size: var(--fs-20); line-height: 1.25; margin: var(--s-1h) 0 var(--s-0h); }

.bottle-art { display: block; overflow: visible; }

/* =========================================================
   Today
   ========================================================= */
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: var(--s-6); align-items: start; }
.today-main .section.first { margin-top: var(--s-1); }
.today-rail { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: calc(var(--head-h) + var(--s-2)); }

.focus-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
/* 重点卡：底色只掺 22% 领域软色（再多就糊成米色）；静止一层阴影 → 悬停两层并浮起 → 按下回落 */
.focus-card {
  position: relative; display: flex; flex-direction: column; gap: var(--s-2h); min-height: 132px; padding: var(--s-4) var(--s-4) var(--s-3h);
  background: color-mix(in srgb, var(--area-soft) 22%, var(--card));
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--card-shadow);
  overflow: hidden; text-align: left; transition: var(--rise);
}
.focus-card:hover { box-shadow: var(--card-shadow-hover); transform: var(--lift); border-color: var(--line-strong); }
.focus-card:active { transform: translateY(0); box-shadow: var(--card-shadow); }
.focus-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--area); opacity: .85; }
.fc-top { display: flex; align-items: center; justify-content: space-between; }
.fc-num { font-size: var(--fs-13); font-weight: 500; color: var(--ink-3); letter-spacing: var(--ls-micro); }
.fc-title { flex: 1; text-align: left; font-size: var(--fs-18); font-weight: 600; letter-spacing: var(--ls-heading); line-height: 1.3; }
.fc-title:hover { color: var(--primary-ink); }
.fc-time { font-size: var(--fs-13); color: var(--ink-2); }
/* 拆过子任务的重点卡：底部一条完成绿进度，长度就是做完的占比 */
.fc-prog { display: flex; align-items: center; gap: var(--s-2); margin-top: calc(var(--s-1) * -1); }
.fc-prog .sp-track { width: 76px; }
.focus-card.is-done { background: var(--bg-sunk); box-shadow: none; }
.focus-card.is-done::before { opacity: .3; }
.focus-card.is-empty { border-style: dashed; background: transparent; box-shadow: none; justify-content: space-between; }
.focus-card.is-empty::before { display: none; }
.focus-card.is-empty .fc-num { color: var(--ink-4); }
.focus-card.is-empty .muted { display: inline-flex; align-items: center; gap: var(--s-1h); font-size: var(--fs-13); }
.focus-card.is-empty:hover { border-color: var(--primary-line); background: var(--primary-soft); transform: none; box-shadow: none; }

.anytime { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* 任意时间片：悬停抬起 1px，底边的领域短线加宽到 20px */
.any-chip {
  display: inline-flex; align-items: center; gap: var(--s-fine-4); height: 36px; padding: 0 var(--s-3) 0 var(--s-fine-4);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--card-shadow);
  font-size: var(--fs-13); cursor: grab; user-select: none; touch-action: none; position: relative;
  transition: var(--rise);
}
.any-chip::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 20px; height: 3px; margin-left: -10px; border-radius: var(--r-bar); background: var(--area); }
.any-chip .check { width: 17px; height: 17px; }
.any-chip .check .ic { width: 10px; height: 10px; }
.any-chip > span[data-action] { cursor: pointer; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.any-chip:hover { border-color: var(--line-strong); box-shadow: var(--card-shadow-hover); transform: var(--lift); }

.tl-mobile { display: none; }

.dial-card { padding: 22px 18px 16px; }
.dial-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: var(--fs-12); color: var(--ink-3); }
.dial-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dial-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--area); }
.dial-legend i.focus-i { width: 12px; height: 2.5px; border-radius: 2px; background: var(--ink-2); opacity: .6; }

.budget .eyebrow { margin-bottom: var(--s-3); }
.bud-rows { display: flex; flex-direction: column; gap: var(--s-fine-3); }
.bud-row { display: flex; align-items: center; gap: var(--s-fine-4); font-size: var(--fs-13); color: var(--ink-2); }
.bud-row .mono { margin-left: auto; color: var(--ink); font-size: var(--fs-13); }
.bud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--area); }
.bud-total { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2h); margin: var(--s-3h) 0 var(--s-2h); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.bud-total div { display: flex; flex-direction: column; gap: var(--s-0h); font-size: var(--fs-12); }
.bud-total b { font-size: var(--fs-17); color: var(--ink); }
/* 时间预算：数字是答案，单位退回小字 */
.bud-figure { display: flex; flex-direction: row; align-items: baseline; gap: var(--s-0h); }
.bud-figure b { font-size: var(--fs-30); font-weight: 600; letter-spacing: var(--ls-num); font-variant-numeric: tabular-nums; line-height: 1.05; }
.bud-figure .unit { font-size: var(--fs-12); color: var(--ink-3); }
/* 进度条用描边而不是阴影；超量时再叠一圈琥珀 */
.bud-bar { display: flex; gap: var(--s-0h); height: 10px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bud-bar i { display: block; height: 100%; background: var(--area); transition: width var(--t-bar) var(--ease); }
.bud-bar.is-over { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1.5px var(--orange); }
.bud-pct { display: flex; align-items: baseline; gap: var(--s-1h); margin-top: var(--s-2); }
.bud-pct .mono { font-size: var(--fs-13); font-weight: 500; }
.bud-note { margin-top: var(--s-3h); padding: var(--s-3) var(--s-3h); border-radius: var(--r-md); background: var(--orange-soft); }
.bud-note-title { font-size: var(--fs-17); color: color-mix(in srgb, var(--orange) 55%, var(--ink)); }
.bud-note p { font-size: var(--fs-12); color: var(--ink-2); margin: var(--s-1) 0 var(--s-2h); }
.bud-note .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; justify-content: flex-start; background: var(--card); border-color: transparent; }

.habit-mini .h-dot { width: 22px; height: 22px; }
.done-list { display: flex; flex-direction: column; gap: var(--s-0h); }
.done-list li { display: flex; align-items: center; gap: var(--s-fine-4); padding: var(--s-1) 0; }
.done-tick { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--done); color: var(--card); }
.done-tick .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.done-title { flex: 1; min-width: 0; text-align: left; font-size: var(--fs-13); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-title:hover { color: var(--ink); }
.done-list .icon-btn { opacity: .55; }

.drop-dock {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: var(--s-1h); padding: var(--s-2);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
body.is-dragging .drop-dock { opacity: 1; transform: translate(-50%, 0); pointer-events: none; }
/* dock 本体不拦截命中，落点才能透传给下方时间线；只有对准某一天/收件箱时才算 drop 目标 */
body.is-dragging .drop-dock .dock-day { pointer-events: auto; }
.dock-label { padding: 0 var(--s-2) 0 var(--s-1h); font-size: var(--fs-12); color: var(--ink-3); white-space: nowrap; }
.dock-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-hair); min-width: 64px; height: 50px; padding: 0 var(--s-2h);
  border-radius: var(--r-md); background: var(--bg-sunk); font-size: var(--fs-12); transition: background var(--t-fast);
}
.dock-day b { font-weight: 500; }
.dock-day .mono { font-size: var(--fs-11); color: var(--ink-3); }
.dock-inbox { flex-direction: row; gap: var(--s-1h); color: var(--ink-2); }

/* =========================================================
   Inbox
   ========================================================= */
.capture { display: flex; align-items: center; gap: var(--s-3); height: 56px; padding: 0 var(--s-4h); box-shadow: var(--shadow-1); }
.capture:focus-within { border-color: var(--primary-line); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow-1); }
.capture-ic { width: 28px; height: 28px; border-radius: var(--r-field); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.capture .input { flex: 1; font-size: var(--fs-15); }
.capture-hint { flex: none; white-space: nowrap; }
.inbox-list { margin-top: var(--s-4); padding: var(--s-1h); }
.inbox-row { display: flex; align-items: center; gap: var(--s-3h); padding: var(--s-3) var(--s-3); border-radius: var(--r-md); transition: background var(--t-fast); }
/* 行与行之间的发丝线用描边；悬停时让线退场，圆角底色才干净 */
.inbox-row + .inbox-row { border-top: 1px solid var(--line); }
.inbox-row:hover { background: var(--bg-sunk); border-top-color: transparent; }
.inbox-row:hover + .inbox-row { border-top-color: transparent; }
.inbox-circle { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.6px dashed var(--ink-4); }
.inbox-main { flex: 1; min-width: 0; cursor: pointer; }
.inbox-title { font-size: var(--fs-15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-actions { display: flex; align-items: center; gap: var(--s-0h); }
.inbox-zero { margin-top: var(--s-4); padding: var(--s-14) var(--s-6); text-align: center; }
.iz-mark { width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); }
.iz-title { font-size: var(--fs-26); margin-bottom: var(--s-1h); }
.how-inbox .eyebrow { margin-bottom: var(--s-3); }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1h); margin-bottom: var(--s-2h); }
.flow-step { height: 28px; padding: 0 var(--s-3); display: inline-flex; align-items: center; border-radius: var(--r-pill); font-size: var(--fs-12); color: var(--ink-3); background: var(--bg-sunk); }
.flow-step.here { background: var(--primary-soft); color: var(--primary-ink); font-weight: 500; }
.flow-arrow { color: var(--ink-4); display: inline-flex; }

/* AI plan list (inbox processing + assistant) */
.ai-plan { display: flex; flex-direction: column; gap: var(--s-1h); }
.ai-plan-row {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) 16px minmax(0, 1.15fr); align-items: center; gap: var(--s-3);
  padding: var(--s-2h) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast);
}
.ai-plan-row:hover { background: var(--card-hover); border-color: var(--line-strong); }
.ai-plan-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.ai-plan-row:has(input:not(:checked)) { opacity: .55; }
.ai-plan-title { display: flex; align-items: center; gap: var(--s-2); min-width: 0; font-size: var(--fs-14); }
.ai-plan-row[data-area] .ai-plan-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--area); flex: none; }
.ai-plan-arrow { color: var(--ink-4); display: flex; }
.ai-plan-where { flex-wrap: wrap; gap: var(--s-1); }
.ai-plan-where b { color: var(--ink); font-weight: 500; }

/* =========================================================
   Today: Upcoming 3-day preview + Today's Echo
   ========================================================= */
.upcoming .section-head { margin-bottom: var(--s-2h); }
.up-grid { display: flex; flex-direction: column; gap: var(--s-1); }
.up-day {
  position: relative; display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: var(--s-2);
  padding: var(--s-1h) var(--s-2h); background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  text-align: left; transition: background var(--t-fast), border-color var(--t-fast);
}
.up-day:hover { background: var(--bg-sunk); border-color: var(--line); }
.up-date { font-size: var(--fs-20); font-weight: 600; color: var(--ink); line-height: 1; }
.up-wd { font-size: var(--fs-11); color: var(--ink-3); letter-spacing: var(--ls-micro); text-transform: uppercase; }
.up-title { grid-column: 2 / span 3; font-size: var(--fs-13); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: var(--s-0h); }
.up-title.muted { color: var(--ink-4); font-style: italic; }
.up-count { font-size: var(--fs-12); color: var(--ink-3); }

.today-echo { max-width: 560px; margin: var(--s-8) auto 0; text-align: center; }
.echo-head { display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-2h); }
.today-echo .echo-text { font-family: var(--font-echo); font-size: var(--fs-22); line-height: 1.45; color: var(--ink); margin: 0 auto; max-width: 48ch; text-wrap: balance; }
.echo-edit-btn { margin-top: var(--s-2h); font-size: var(--fs-12); color: var(--ink-3); background: none; border: 0; cursor: pointer; }
.echo-edit-btn:hover { color: var(--ink); }
.echo-textarea {
  width: 100%; max-width: 480px; margin: var(--s-1) auto 0; padding: var(--s-3) var(--s-4);
  font-family: var(--font-echo); font-size: var(--fs-22); line-height: 1.45; text-align: center;
  background: transparent; border: 1.5px dashed var(--line); border-radius: var(--r-md); color: var(--ink);
  resize: vertical; min-height: 48px; outline: none; transition: border-color var(--t-fast);
}
.echo-textarea:focus { border-color: var(--primary); border-style: solid; }
.echo-link { display: block; margin-top: var(--s-2h); font-size: var(--fs-12); }

/* =========================================================
   Calendar
   ========================================================= */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: var(--s-5); align-items: start; }
.cal-grid { overflow: hidden; }
.cal-row { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(0, 1fr)); }
.cal-corner { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 var(--s-2h) var(--s-2) 0; font-size: var(--fs-11); text-align: right; line-height: 1.2; }
.cal-heads { border-bottom: 1px solid var(--line); }
.cal-dayhead {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: var(--s-3) var(--s-3) var(--s-2h); text-align: left;
  border-left: 1px solid var(--line); transition: background var(--t-fast);
}
.cal-dayhead:hover { background: var(--card-hover); }
.cdh-wd { font-size: var(--fs-11); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); }
.cdh-n { font-size: var(--fs-22); font-weight: 600; letter-spacing: var(--ls-num); line-height: 1.2; font-family: var(--font-mono); }
.cdh-c { font-size: var(--fs-11); color: var(--ink-3); }
.cal-dayhead.is-today .cdh-wd { color: var(--primary-ink); }
.cal-dayhead.is-today .cdh-n { color: var(--primary); }
.cal-dayhead.is-sel { background: var(--primary-soft); box-shadow: inset 0 -2px 0 var(--primary); }
.cal-allday { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, var(--card)); }
.cal-allcell { display: flex; flex-direction: column; gap: var(--s-1); min-height: 40px; padding: var(--s-1h); border-left: 1px solid var(--line); }
.cal-scroll { max-height: calc(100vh - 290px); min-height: 360px; overflow-y: auto; }
.cal-body { padding: var(--s-3) 0 var(--s-3h); }
.cal-colwrap { border-left: 1px solid var(--line); padding: 0 var(--s-0h); }
.cal-colwrap.is-today { background: color-mix(in srgb, var(--primary-soft) 30%, transparent); }
.cal-body .time-col { border-bottom: 0; }
.cal-body .tl-block { padding: var(--s-fine-2) var(--s-fine-3) var(--s-fine-2) var(--s-fine-4); }
.cal-body .tl-block .check { display: none; }
.cal-body .tl-title { font-size: var(--fs-12); }
.cal-body .tl-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-body .tl-block.is-tall .tl-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-body .tl-block.is-xs { padding: 0 var(--s-fine-3) 0 var(--s-fine-4); }
.cal-body .tl-block.is-xs .tl-time { display: none; }

.cal-chip {
  display: flex; align-items: center; gap: var(--s-1h); min-width: 0; height: 24px; padding: 0 var(--s-2);
  border-radius: var(--r-xs); background: var(--area-soft); box-shadow: inset 2px 0 0 var(--area);
  font-size: var(--fs-caption); color: var(--ink); cursor: grab; user-select: none; touch-action: none;
}
.cal-chip .mono { font-size: var(--fs-micro); color: var(--ink-3); flex: none; }
.cal-chip:hover { box-shadow: inset 2px 0 0 var(--area), var(--shadow-1); }
.cal-chip.is-done { background: var(--bg-sunk); box-shadow: none; }

.month { overflow: hidden; }
.month-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.month-head span { padding: var(--s-2h) var(--s-3); font-size: var(--fs-11); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.m-cell {
  display: flex; flex-direction: column; gap: var(--s-fine-1); min-height: 112px; padding: var(--s-1h) var(--s-1h) var(--s-2); cursor: pointer;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--t-fast);
}
.m-cell:nth-child(7n) { border-right: 0; }
.m-cell:hover { background: var(--card-hover); }
.m-cell.is-out { background: color-mix(in srgb, var(--bg) 60%, var(--card)); }
.m-cell.is-out .m-num { color: var(--ink-4); }
.m-cell.is-sel { background: var(--primary-soft); }
.m-top { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-0h) var(--s-0h); }
.m-num { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; }
.m-dots { display: inline-flex; gap: 2px; }
.m-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.m-cell.is-out .m-dots i { background: var(--ink-4); }
.m-cell.is-today .m-dots i { background: var(--primary); }
.m-cell.is-today .m-num { background: var(--primary); color: var(--on-primary); }
.m-moment { color: var(--mint); display: flex; }
.m-more { font-size: var(--fs-11); color: var(--ink-3); padding-left: var(--s-1h); }
.m-cell .cal-chip { height: 20px; font-size: var(--fs-11); }

.cal-rail { display: flex; flex-direction: column; gap: var(--s-3); position: sticky; top: calc(var(--head-h) + var(--s-2)); }
.sd-date { font-size: var(--fs-32); font-weight: 600; letter-spacing: var(--ls-display); line-height: 1.1; margin-top: var(--s-2h); }
.sd-stats { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: var(--s-2) var(--s-3); margin: var(--s-4) 0 var(--s-3h); padding: var(--s-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sd-stats .stat-num { font-size: var(--fs-20); white-space: nowrap; }
.sd-list { display: flex; flex-direction: column; gap: var(--s-0h); }
.sd-list li { display: flex; align-items: center; gap: var(--s-2h); padding: var(--s-1h) 0; font-size: var(--fs-13); position: relative; }
.sd-list li .check { width: 17px; height: 17px; }
.sd-list li .check .ic { width: 10px; height: 10px; }
.sd-list li .mono { width: 42px; font-size: var(--fs-caption); flex: none; }
.sd-list li button:last-child { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-list li[data-area] button:last-child { box-shadow: inset 2px 0 0 var(--area); padding-left: var(--s-2); }
.sd-moments { display: flex; align-items: center; gap: var(--s-2h); font-size: var(--fs-13); color: var(--ink-2); }
.sd-moments .ic:first-child { color: var(--mint); }
.sd-moments .ic:last-child { margin-left: auto; color: var(--ink-4); }
.sd-moments:hover { color: var(--ink); }
.cal-tip { display: flex; gap: var(--s-2); align-items: flex-start; padding: 0 var(--s-1h); line-height: 1.5; }
.cal-tip .ic { margin-top: var(--s-0h); }

/* =========================================================
   Tasks
   ========================================================= */
.stage-bar { display: flex; align-items: center; gap: var(--s-0h); padding: var(--s-1h); overflow-x: auto; }
.stage {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-hair); flex: 1; min-width: 86px; padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md); text-align: left; transition: background var(--t-fast);
}
.stage:hover { background: var(--bg-sunk); }
.stage.is-on { background: var(--primary-soft); }
.stage-n { font-size: var(--fs-20); letter-spacing: 0; line-height: 1.2; }
.stage-l { font-size: var(--fs-12); color: var(--ink-3); white-space: nowrap; }
.stage.is-on .stage-n, .stage.is-on .stage-l { color: var(--primary-ink); }
.stage-arrow { color: var(--ink-4); display: flex; flex: none; }

.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 var(--s-1); }
.filter-row .mood-dot[data-area] { background: var(--area); }
.fr-sep { width: 1px; height: 20px; background: var(--line); margin: 0 var(--s-1); }
.tasks-body { margin-top: var(--s-4h); }
.inbox-nudge {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-4h);
  background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-ink); font-size: var(--fs-13);
}
.task-group + .task-group { margin-top: var(--s-5h); }
.tg-head { display: flex; align-items: center; gap: var(--s-2h); margin-bottom: var(--s-2); padding: 0 var(--s-1); }
.tg-title { font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.tg-title.tone-urgent, .tone-urgent { color: var(--urgent); }
.tg-head .mono { font-size: var(--fs-12); color: var(--ink-3); }
.tg-list { padding: var(--s-1); }
.task-row.is-archived { opacity: .6; }
.stage-hint { margin: 0 0 var(--s-3h); padding: 0 var(--s-1); font-size: var(--fs-13); color: var(--ink-3); }

.board { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: var(--s-3); overflow-x: auto; padding-bottom: var(--s-2); align-items: start; }
.board-col { display: flex; flex-direction: column; gap: var(--s-2); min-height: 240px; padding: var(--s-2h); border-radius: var(--r-md); background: var(--bg-sunk); transition: background var(--t-fast); }
.bc-head { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-0h) var(--s-1) var(--s-1); font-size: var(--fs-13); }
.bc-head .mono { margin-left: auto; font-size: var(--fs-12); color: var(--ink-3); }
.bc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); display: inline-block; flex: none; }
.board-col[data-status="planned"] .bc-dot { background: var(--lavender); }
.board-col[data-status="scheduled"] .bc-dot { background: var(--primary); }
.board-col[data-status="in_progress"] .bc-dot { background: var(--orange); }
.board-col[data-status="completed"] .bc-dot { background: var(--done); }
.bc-list { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.board-card {
  padding: var(--s-2h) var(--s-3); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line);
  cursor: grab; user-select: none; touch-action: none; border-left: 3px solid var(--area);
  transition: box-shadow var(--t-hover) var(--ease);
}
.board-card .row { align-items: flex-start; gap: var(--s-2h); }
.board-card .check { width: 17px; height: 17px; margin-top: var(--s-hair); }
.board-card .check .ic { width: 10px; height: 10px; }
.bcard-title { flex: 1; text-align: left; font-size: var(--fs-13); font-weight: 500; line-height: 1.4; }
.bcard-meta { flex-wrap: wrap; gap: var(--s-1h); margin: var(--s-2) 0 0 var(--s-indent); font-size: var(--fs-caption); }
.bc-empty { padding: var(--s-4h) var(--s-2); text-align: center; font-size: var(--fs-12); color: var(--ink-4); border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }

/* =========================================================
   Shared: mini bars
   ========================================================= */
.mini-bars { display: flex; align-items: flex-end; gap: var(--s-2); height: 112px; margin-top: var(--s-3h); }
.mb { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--s-1h); min-width: 0; }
.mb i {
  display: block; width: 100%; max-width: 12px; margin-top: auto; min-height: 3px; border-radius: var(--r-pill) var(--r-pill) var(--r-bar) var(--r-bar);
  background: color-mix(in srgb, var(--primary) 30%, var(--bg-sunk)); transition: height var(--t-bar) var(--ease);
}
.mb span { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ink-4); line-height: 1; }
.mb.is-today i { background: var(--primary); }
.mb.is-today span { color: var(--ink); font-weight: 600; }
.mb.is-future i { background: transparent; box-shadow: inset 0 0 0 1px var(--line); min-height: 3px; height: 3px !important; }

/* =========================================================
   Projects
   ========================================================= */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-4); }
.proj-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); color: inherit; text-decoration: none; position: relative; overflow: hidden; }
.proj-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--area); opacity: .8; }
.proj-card:hover { transform: translateY(-1px); }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3h); }
.pc-name { font-size: var(--fs-16); font-weight: 600; letter-spacing: var(--ls-heading); line-height: 1.3; margin-top: var(--s-2); }
/* 描述最多两行，卡片高度不能被一句话撑散 */
.pc-desc { margin-top: var(--s-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-goal { display: flex; align-items: center; gap: var(--s-fine-2); margin-top: var(--s-1); }
.pc-ring { position: relative; width: 44px; height: 44px; flex: none; }
.pc-ring svg { display: block; }
.pc-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-11); font-weight: 500; }
.pc-next ul { display: flex; flex-direction: column; gap: var(--s-fine-2); margin-top: var(--s-1h); }
.pc-next li { display: grid; grid-template-columns: 6px 1fr auto; align-items: center; gap: var(--s-2h); font-size: var(--fs-13); }
.pc-next li i { width: 6px; height: 6px; border-radius: 50%; border: 1.4px solid var(--area); }
.pc-next p { margin-top: var(--s-2); }
.pc-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2h); margin-top: auto; padding-top: var(--s-2h); border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--ink-3); }
.pc-foot > span:last-child { display: inline-flex; align-items: center; gap: var(--s-fine-2); }

.back-link { display: inline-flex; align-items: center; gap: var(--s-1); margin: var(--s-1h) 0 var(--s-0h); font-size: var(--fs-13); color: var(--ink-3); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.proj-head .page-title { position: relative; }
.proj-head .proj-desc { margin-top: var(--s-2); max-width: 66ch; font-size: var(--fs-14); line-height: 1.5; color: var(--ink-2); }

.proj-stats { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); align-items: center; padding: var(--s-5) var(--s-6); }
.proj-stats > div { padding: 0 var(--s-5); border-left: 1px solid var(--line); }
.proj-stats > div:first-child { padding-left: 0; border-left: 0; }
.ps-progress { display: flex; align-items: center; gap: var(--s-4); }

.ms-card { padding-top: var(--s-2); }
.ms-track { position: relative; height: 168px; margin: 0 72px; }
.ms-line { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--r-track); background: var(--bg-sunk); }
.ms-line i { display: block; height: 100%; border-radius: inherit; background: var(--area); opacity: .55; }
.ms-today { position: absolute; top: 16px; bottom: calc(50% - 12px); width: 0; border-left: 1.5px dashed var(--ink-3); }
.ms-today span { position: absolute; top: -16px; left: 0; transform: translateX(-50%); font-size: var(--fs-micro); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink); font-weight: 600; white-space: nowrap; }
.ms-end { position: absolute; right: -70px; top: 50%; transform: translateY(-50%); width: 56px; display: flex; flex-direction: column; align-items: flex-start; font-size: var(--fs-11); line-height: 1.35; color: var(--ink-3); }
.ms-end.ms-start { right: auto; left: -70px; align-items: flex-end; text-align: right; }
.ms-dot { position: absolute; top: 50%; width: 0; height: 0; z-index: 1; }
.ms-dot i {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--area); transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.ms-dot:hover i { transform: scale(1.06); }
.ms-dot.is-done i { background: var(--progress); border-color: var(--progress); box-shadow: 0 0 0 4px var(--done-soft); }
.ms-label {
  position: absolute; bottom: 16px; left: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-hair); width: max-content; max-width: 150px; text-align: center;
  font-size: var(--fs-12); color: var(--ink-2); background: var(--card); padding: var(--s-0h) var(--s-1h); border-radius: var(--r-xs);
}
.ms-label b { font-weight: 500; line-height: 1.3; }
.ms-label .mono { font-size: var(--fs-micro); color: var(--ink-4); }
.ms-dot.below .ms-label { bottom: auto; top: 16px; flex-direction: column-reverse; }
.ms-dot.is-done .ms-label b { color: var(--ink-3); }
.ms-dot:focus-visible { outline: none; }
.ms-dot:focus-visible i { outline: 2px solid var(--accent); outline-offset: 3px; }
.ms-add { gap: var(--s-2); padding-top: var(--s-3h); margin-top: var(--s-1h); border-top: 1px solid var(--line); }
.ms-add .input:first-child { flex: 1; }

.proj-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-6); align-items: start; }
.proj-side { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-8); }
.proj-notes { margin-top: var(--s-2h); background: var(--bg); border-color: transparent; }
.file-list { display: flex; flex-direction: column; gap: var(--s-1); margin-top: var(--s-2h); }
.file-list li { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1h) var(--s-1) var(--s-1h) var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-13); }
.file-list li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list li:not(.muted):hover { background: var(--bg-sunk); }
.file-list .ic { color: var(--ink-3); flex: none; }

/* =========================================================
   Focus
   ========================================================= */
.focus-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-6); align-items: start; }
.focus-stage {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-5h); padding: var(--s-7) var(--s-7) 30px;
  background: color-mix(in srgb, var(--area-soft) 45%, var(--card));
}
.focus-stage.is-break { background: color-mix(in srgb, var(--mint-soft) 45%, var(--card)); --area: var(--mint); }
.fs-task { display: flex; flex-direction: column; align-items: center; gap: var(--s-1h); width: min(420px, 100%); }
.fs-select { text-align: center; text-align-last: center; font-size: var(--fs-15); font-weight: 500; background-color: var(--card); }
.fs-dial { position: relative; width: 300px; max-width: 100%; aspect-ratio: 1; }
.fs-dial svg { width: 100%; height: 100%; display: block; }
.fs-track { fill: none; stroke: var(--bg-sunk); stroke-width: 10; }
.fs-tick { stroke: var(--ink-4); stroke-width: 1; opacity: .5; }
.fs-tick.major { stroke-width: 1.6; opacity: .8; }
.fs-arc { fill: none; stroke: var(--area); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray var(--t-arc) linear; }
.fs-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); text-align: center; }
.fs-phase { color: color-mix(in srgb, var(--area) 70%, var(--ink)); }
.fs-clock { font-size: var(--fs-60); font-weight: 400; letter-spacing: var(--ls-clock); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.fs-controls { display: flex; gap: var(--s-2h); }
.fs-controls .btn { min-width: 148px; justify-content: center; }
.fs-presets { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.fs-custom { gap: var(--s-2); }
.fs-custom .input { width: 72px; text-align: center; font-family: var(--font-mono); }
.fs-taskinfo { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); width: min(420px, 100%); justify-content: center; font-size: var(--fs-13); }
.focus-rail { display: flex; flex-direction: column; gap: var(--s-4); }
.session-list { display: flex; flex-direction: column; }
.session-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s-2); align-items: baseline; padding: var(--s-2) 0; font-size: var(--fs-13); border-bottom: 1px solid var(--line); }
.session-list li:last-child { border-bottom: 0; }
.session-list .mono { font-size: var(--fs-12); }

/* =========================================================
   Habits
   ========================================================= */
.habit-table { padding: var(--s-1h) 0; }
.ht-head, .ht-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px 80px 36px; align-items: center; gap: var(--s-4h); padding: var(--s-2h) var(--s-5); }
.ht-head { font-size: var(--fs-11); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-4); font-weight: 600; border-bottom: 1px solid var(--line); padding-top: var(--s-2); }
.ht-days { display: flex; gap: var(--s-fine-2); }
.ht-days span { width: 20px; text-align: center; font-family: var(--font-mono); letter-spacing: 0; }
.ht-days span.is-today { color: var(--ink); }
.ht-k { text-align: right; }
.ht-row { border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.ht-row:last-child { border-bottom: 0; }
.ht-row:hover { background: color-mix(in srgb, var(--bg-sunk) 55%, transparent); }
.ht-name { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.ht-name > div { min-width: 0; display: flex; flex-direction: column; }
.ht-name b { font-weight: 500; font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-dot { width: 10px; height: 10px; border-radius: var(--r-dot); background: var(--area, var(--mint)); flex: none; }
.ht-v { text-align: right; font-size: var(--fs-14); }
.ht-v small { font-size: var(--fs-11); color: var(--ink-4); }
.ht-v.is-hot { color: color-mix(in srgb, var(--orange) 80%, var(--ink)); }

.hm-card { display: flex; gap: var(--s-10); align-items: flex-start; }
.hm-main { min-width: 0; overflow-x: auto; }
.heatmap { display: flex; gap: var(--s-2); width: max-content; min-width: 100%; }
.hm-days { display: grid; grid-template-rows: repeat(7, 18px); gap: var(--s-fine-2); margin-top: var(--s-5); font-family: var(--font-mono); font-size: var(--fs-tick); color: var(--ink-4); line-height: 18px; }
.hm-months { display: grid; grid-template-columns: repeat(var(--weeks), 18px); gap: var(--s-fine-2); height: 16px; margin-bottom: var(--s-1); font-family: var(--font-mono); font-size: var(--fs-tick); color: var(--ink-4); }
.hm-months span { white-space: nowrap; overflow: visible; }
.hm-grid { display: flex; gap: var(--s-fine-2); }
.hm-col { display: grid; grid-template-rows: repeat(7, 18px); gap: var(--s-fine-2); }
.hm-cell { width: 18px; height: 18px; border-radius: var(--r-cell); background: var(--bg-sunk); }
.hm-cell.l1 { background: color-mix(in srgb, var(--mint) 28%, var(--bg-sunk)); }
.hm-cell.l2 { background: color-mix(in srgb, var(--mint) 52%, var(--bg-sunk)); }
.hm-cell.l3 { background: color-mix(in srgb, var(--mint) 76%, var(--bg-sunk)); }
.hm-cell.l4 { background: var(--heat-4); }
.hm-cell.is-today { box-shadow: 0 0 0 1.5px var(--ink); }
.hm-cell.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hm-legend { display: flex; align-items: center; gap: var(--s-1); margin-top: var(--s-3h); }
.hm-legend .hm-cell { width: 11px; height: 11px; border-radius: var(--r-dot); }
.hm-legend > span:first-child { margin-right: var(--s-1); }
.hm-legend > span:last-child { margin-left: var(--s-1); }
.hm-stats { flex: 1; display: grid; gap: var(--s-3); align-content: start; padding-left: var(--s-8); border-left: 1px solid var(--line); max-width: 360px; margin-left: auto; }
.hm-stats .eyebrow { margin-bottom: var(--s-1); }
.hm-stats b { margin-left: auto; font-weight: 500; }

/* =========================================================
   Goals
   ========================================================= */
.goal-note { max-width: 640px; margin-bottom: var(--s-6); font-size: var(--fs-14); }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: var(--s-4); align-items: start; }
.goal-card { display: flex; flex-direction: column; gap: var(--s-3h); padding: var(--s-5); }
.gc-head { display: flex; align-items: flex-start; gap: var(--s-2h); }
.gc-title { flex: 1; font-size: var(--fs-15); font-weight: 600; letter-spacing: var(--ls-display); line-height: 1.35; }
.gc-pace { flex: none; }
.tone-ok { background: var(--done-soft); color: var(--done); }
.tone-warn { background: var(--orange-soft); color: color-mix(in srgb, var(--orange) 75%, var(--ink)); }
.tone-done { background: var(--primary-soft); color: var(--primary-ink); }
span.gc-pace { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--s-2); border-radius: var(--r-pill); font-size: var(--fs-caption); font-weight: 500; white-space: nowrap; }
.gc-value { display: flex; align-items: baseline; gap: var(--s-1h); }
.gc-value b { font-size: var(--fs-32); font-weight: 400; letter-spacing: var(--ls-num-lg); line-height: 1; color: color-mix(in srgb, var(--area) 60%, var(--ink)); }
.gc-value small { margin-left: auto; font-size: var(--fs-12); color: var(--ink-3); }
.gc-bar { position: relative; height: 8px; overflow: visible; }
.gc-bar > i { border-radius: inherit; }
.gc-expected { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: var(--r-bar); background: var(--ink); opacity: .55; }
.gc-adjust { display: flex; gap: var(--s-1h); flex-wrap: wrap; }
.gc-area { display: flex; align-items: center; gap: var(--s-1h); margin-bottom: -6px; font-size: var(--fs-11); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); }
.gc-area i { width: 6px; height: 6px; border-radius: 50%; background: var(--area); }
.gc-chain { display: flex; flex-direction: column; gap: var(--s-0h); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.chain-row { display: grid; grid-template-columns: 82px 1fr auto; gap: var(--s-1) var(--s-2h); align-items: baseline; padding: var(--s-1h) var(--s-2); margin: 0 -8px; border-radius: var(--r-sm); color: inherit; text-decoration: none; font-size: var(--fs-13); }
.chain-row:hover { background: var(--bg-sunk); }
.chain-k { display: inline-flex; align-items: center; gap: var(--s-fine-2); color: var(--ink-3); font-size: var(--fs-12); }
.chain-next { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: var(--s-fine-2); min-width: 0; font-size: var(--fs-12); color: var(--ink-3); }

/* =========================================================
   Life feed
   ========================================================= */
.life-grid { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: var(--s-8); justify-content: center; align-items: start; }
.life-feed { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.life-rail { position: sticky; top: calc(var(--head-h) + var(--s-2)); display: flex; flex-direction: column; gap: var(--s-4); }
.composer-prompt { display: flex; align-items: center; gap: var(--s-3h); width: 100%; padding: var(--s-4h) var(--s-5); text-align: left; cursor: text; transition: box-shadow var(--t-med), border-color var(--t-fast); }
.composer-prompt:hover { box-shadow: var(--shadow-1); border-color: var(--line-strong); }
/* 文案长度固定，两边一宽一窄会把「留下」拆开；balanced 让两行断在词组边界上。 */
.cp-q { flex: 1; font-size: var(--fs-17); color: var(--ink-3); text-wrap: balance; }
.cp-tools { display: flex; gap: var(--s-3); color: var(--ink-4); }
.filter-note { display: flex; align-items: center; gap: var(--s-2h); flex-wrap: wrap; padding: var(--s-2h) var(--s-3h); border-radius: var(--r-md); background: var(--primary-soft); font-size: var(--fs-13); color: var(--primary-ink); }
.filter-note .link { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s-1); }
.feed-day { display: flex; flex-direction: column; gap: var(--s-3); }
.fd-head { display: flex; align-items: baseline; gap: var(--s-2h); padding: 0; }
.fd-rel { font-size: var(--fs-15); font-weight: 600; letter-spacing: var(--ls-display); }
.fd-list { display: flex; flex-direction: column; gap: var(--s-3); }
.moment { padding: var(--s-4h) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.mo-meta { gap: var(--s-3); }
.mo-mood, .mo-loc { display: inline-flex; align-items: center; gap: var(--s-fine-2); }
.mo-text { font-size: var(--fs-17); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.mo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2h); }
.mo-task { gap: var(--s-fine-2); cursor: pointer; }
.mo-task .ic { color: var(--done); }
.feed-more { align-self: center; gap: var(--s-2h); }
.feed-end { text-align: center; padding: var(--s-2) 0 var(--s-3); }

.bottle-entry { display: block; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow var(--t-med), transform var(--t-med) var(--ease); }
.bottle-entry:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); }
.be-sea { position: relative; height: 108px; overflow: hidden; background: linear-gradient(180deg, var(--sea-top), var(--sea-mid)); }
.be-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 46px; fill: var(--sea-deep); opacity: .5; animation: wave-drift 9s linear infinite; }
.be-wave.w2 { height: 34px; opacity: .8; animation-duration: 6s; animation-direction: reverse; }
.be-bottle { position: absolute; left: 50%; bottom: 18px; width: 26px; margin-left: -13px; animation: bob 3.4s var(--ease-soft) infinite; }
.has-return .be-bottle { filter: var(--glow-return); }
.be-copy { padding: var(--s-3h) var(--s-4h) var(--s-4); }
.be-title { font-size: var(--fs-17); margin: var(--s-1h) 0 var(--s-0h); }

.mood-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: var(--s-1); }
.ms-day { display: flex; flex-direction: column; align-items: center; gap: var(--s-fine-2); }
.ms-day i { width: 100%; max-width: 16px; aspect-ratio: 1; border-radius: 50%; }
.ms-day i.is-empty { box-shadow: inset 0 0 0 1px var(--line-strong); }
.ms-day span { font-family: var(--font-mono); font-size: var(--fs-tick-sm); color: var(--ink-4); }
.ms-day.is-today span { color: var(--ink); font-weight: 600; }
.mood-filter { display: flex; flex-wrap: wrap; gap: var(--s-1h); margin-top: var(--s-4); }
.mood-filter .chip-btn { height: 26px; padding: 0 var(--s-2h); font-size: var(--fs-12); }
.rail-link { display: flex; align-items: center; gap: var(--s-3); color: inherit; text-decoration: none; transition: box-shadow var(--t-med); }
.rail-link > div { flex: 1; }
.rail-link .section-head { margin-bottom: 2px; }
.rail-link > .ic:first-child { color: var(--lavender); }

/* =========================================================
   Moments gallery
   ========================================================= */
.m-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s-3); }
.m-tile {
  position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md);
  text-align: left; background: var(--bg-sunk); border: 1px solid var(--line); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.m-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.m-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-zoom) var(--ease); }
.m-tile:hover img { transform: scale(1.03); }
.mt-count { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--s-fine-1) var(--s-2); border-radius: var(--r-pill); background: var(--scrim-photo); color: var(--on-photo); font-size: var(--fs-11); backdrop-filter: blur(6px); }
.mt-overlay {
  position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: var(--s-1h); padding: var(--s-10) var(--s-3h) var(--s-3);
  background: linear-gradient(180deg, transparent, var(--scrim-caption)); color: var(--on-photo);
}
.mt-cap { font-size: var(--fs-13); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-11); opacity: .9; }
.mt-meta > span { display: inline-flex; align-items: center; gap: var(--s-fine-1); }
.m-tile.is-text { padding: var(--s-4) var(--s-4h) var(--s-3h); }
.m-tile.is-text::before { content: '\201C'; font-family: var(--font-echo); font-size: var(--fs-72); line-height: .9; height: 44px; color: color-mix(in srgb, var(--ink-4) 60%, transparent); }
.mt-quote { margin-top: auto; margin-bottom: var(--s-3h); font-size: var(--fs-19); line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.m-tile.is-text .mt-meta { color: var(--ink-3); }

/* =========================================================
   Memories
   ========================================================= */
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3h); }
.mem-card { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.mem-card.is-pinned { border-color: color-mix(in srgb, var(--area, var(--orange)) 35%, var(--line)); }
.mem-photo { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-sunk); cursor: zoom-in; }
.mem-body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3h) var(--s-4) var(--s-4); flex: 1; }
.mem-top { display: flex; align-items: center; gap: var(--s-2); margin-right: calc(var(--s-1h) * -1); }
.mem-top .mono { margin-right: auto; }
.mem-cat { display: inline-flex; align-items: center; gap: var(--s-fine-2); font-size: var(--fs-11); letter-spacing: var(--ls-caps); text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--area, var(--ink-3)) 70%, var(--ink-2)); }
.mem-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--area, var(--ink-4)); }
.mem-pin[aria-pressed="true"] { color: var(--orange); }
.mem-title { font-size: var(--fs-20); line-height: 1.3; }
.mem-lines { display: flex; flex-direction: column; gap: var(--s-fine-1); font-size: var(--fs-13); color: var(--ink-2); }
.mem-lines li { position: relative; padding-left: var(--s-3h); }
.mem-lines li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; border: 1.3px solid var(--ink-4); }
.mem-summary { margin-top: auto; padding-top: var(--s-2); font-size: var(--fs-15); color: var(--ink-2); }
.mem-moment { display: flex; overflow: hidden; text-align: left; min-height: 88px; transition: box-shadow var(--t-med); }
.mem-moment img { width: 92px; flex: none; object-fit: cover; }
.mm-body { display: flex; flex-direction: column; justify-content: center; gap: var(--s-1h); padding: var(--s-3) var(--s-3h); min-width: 0; }
.mm-text { font-size: var(--fs-15); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-meta { gap: var(--s-1h); }
.mem-group .eyebrow .mood-dot, .mem-group .eyebrow .bc-dot { margin-right: var(--s-0h); }
.proj-mem { display: flex; flex-direction: column; gap: var(--s-4); }
.pm-stats { display: flex; gap: var(--s-8); }
.pm-stats > div { display: flex; flex-direction: column; }
.pm-stats b { font-size: var(--fs-20); }
.pm-ms { display: flex; flex-direction: column; gap: var(--s-1h); }
.pm-ms .ic { color: var(--area); }
.pm-ms li span:nth-child(2) { flex: 1; }

/* ---------- Life timeline ---------- */
.life-tl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); align-items: start; }
.life-tl { position: relative; padding-left: 120px; }
.life-tl::before { content: ""; position: absolute; left: 107px; top: 10px; bottom: 16px; width: 2px; border-radius: var(--r-bar); background: var(--line); }
.ltl-year { position: relative; margin: var(--s-1h) 0 var(--s-3h) -120px; }
.ltl-year:not(:first-child) { margin-top: var(--s-7); }
.ltl-year span { font-size: var(--fs-24); letter-spacing: var(--ls-num); color: var(--ink); }
.ltl-month { position: relative; margin-bottom: var(--s-4h); }
.ltl-mlabel { position: absolute; left: -120px; top: 14px; width: 84px; text-align: right; font-size: var(--fs-12); color: var(--ink-3); font-weight: 500; letter-spacing: var(--ls-micro); }
.ltl-month ul { display: flex; flex-direction: column; gap: var(--s-2h); }
.ltl-item { position: relative; display: flex; gap: var(--s-3h); padding: var(--s-3) var(--s-3h); border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ltl-dot {
  position: absolute; left: -26px; top: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); border: 1.6px solid var(--ink-4); color: var(--ink-3);
}
.ltl-item .ltl-dot { left: -25px; }
.k-event .ltl-dot { border-color: var(--primary); color: var(--primary); }
.k-memory .ltl-dot { border-color: var(--orange); color: var(--orange); }
.k-milestone .ltl-dot { border-color: var(--area); color: var(--area); background: var(--area-soft); }
.ltl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-0h); }
.ltl-top { display: flex; align-items: center; gap: var(--s-2); }
.ltl-kind { font-size: var(--fs-micro); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-4); font-weight: 600; }
.ltl-title { font-size: var(--fs-15); font-weight: 500; letter-spacing: var(--ls-display); }
.ltl-photo { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.ltl-now { position: relative; display: flex; align-items: baseline; gap: var(--s-2h); padding: var(--s-2) 0 0 var(--s-4); }
.ltl-now .ltl-dot { left: -25px; top: 6px; width: 22px; height: 22px; background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 5px var(--bg); }
.ltl-now .ltl-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: .25; }
.ltl-add { position: sticky; top: calc(var(--head-h) + var(--s-2)); display: flex; flex-direction: column; gap: var(--s-3); }
.ltl-add p { margin-top: -6px; }

/* ---------- Year ---------- */
.yr-hero { padding: var(--s-7) var(--s-7) var(--s-6); background: var(--primary-soft); }
.yr-line { font-size: var(--fs-24); line-height: 1.4; max-width: 720px; margin: var(--s-2h) 0 var(--s-5h); letter-spacing: var(--ls-display); text-wrap: balance; }
.yr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-4); padding-top: var(--s-4h); border-top: 1px solid var(--line); }
.yr-bars { height: 150px; }
.mood-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-1h) var(--s-4h); margin-top: var(--s-3h); }
.mood-legend li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); }
.mood-legend li .mono { margin-left: auto; font-size: var(--fs-12); }

/* =========================================================
   Bottle
   ========================================================= */
.page-bottle { max-width: 980px; margin: 0 auto; }
.bottle-art { display: block; width: 100%; height: auto; overflow: visible; }
.bottle-back {
  display: flex; align-items: center; gap: var(--s-4); width: 100%; padding: var(--s-3h) var(--s-4h); margin: var(--s-2) 0 var(--s-4); text-align: left;
  background: color-mix(in srgb, var(--orange-soft) 80%, var(--card));
  border-color: color-mix(in srgb, var(--orange) 30%, var(--line));
}
.bottle-back > div { flex: 1; }
.bb-art { width: 26px; flex: none; animation: bob 3.4s var(--ease-soft) infinite; filter: var(--glow-sealed); }
.bb-title { font-size: var(--fs-17); }

.sea {
  position: relative; overflow: hidden; margin-top: var(--s-2); padding: var(--s-11) 0 0;
  background: linear-gradient(180deg, var(--sea-top) 0%, var(--sea-top) 40%, var(--sea-mid) 100%);
  border-color: color-mix(in srgb, var(--sea-deep) 60%, var(--line));
}
.sea-copy { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--s-6); }
.sea-title { font-size: var(--fs-40); line-height: 1.15; letter-spacing: var(--ls-heading); margin: var(--s-3) 0 var(--s-2); text-wrap: balance; }
.sea-count { color: var(--ink-3); font-size: var(--fs-14); }
.sea-count .mono { color: var(--ink); }
.sea-actions { display: flex; gap: var(--s-2h); margin-top: var(--s-5h); flex-wrap: wrap; justify-content: center; }
.sea-pick { background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(6px); }
.sea-water { position: relative; height: 210px; margin-top: var(--s-2); }
.sea-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 120px; pointer-events: none; animation: wave-drift 18s linear infinite; }
.sea-wave.w3 { z-index: 0; fill: var(--sea-mid); opacity: .9; animation-duration: 26s; }
.sea-wave.w2 { z-index: 2; fill: var(--sea-deep); opacity: .75; animation-duration: 17s; animation-direction: reverse; }
.sea-wave.w1 { z-index: 3; fill: color-mix(in srgb, var(--sea-deep) 70%, var(--primary) 12%); opacity: .9; animation-duration: 12s; }
.sea-bottle {
  position: absolute; z-index: 1; left: var(--x); top: calc(70px + var(--y)); width: 34px; margin-left: -17px;
  transform: rotate(var(--r)) scale(var(--s)); transform-origin: 50% 70%;
  animation: bob 3.6s var(--ease-soft) infinite; animation-delay: calc(var(--d) * -1);
  transition: filter var(--t-fast);
}
.sea-bottle:hover { filter: var(--shadow-bottle); }
.sea-bottle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-field); }
.sea-bottle.is-back { z-index: 4; filter: var(--glow-back); }
.sea-bottle.is-back::after {
  content: ""; position: absolute; left: 50%; top: -14px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 25%, transparent); animation: pulse 2s ease-in-out infinite;
}
.drop-bottle { position: absolute; z-index: 1; top: 104px; width: 38px; margin-left: -19px; pointer-events: none; }
.drop-ripple {
  position: absolute; z-index: 4; top: 158px; width: 96px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--drop-ripple); pointer-events: none; opacity: 0;
}

.bottle-list { padding: var(--s-1); }
.bottle-list > li + li { border-top: 1px solid var(--line); }
.bl-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 112px; align-items: center; gap: var(--s-3h); width: 100%; padding: var(--s-3) var(--s-3h); text-align: left; border-radius: var(--r-md); transition: background var(--t-fast); }
.bl-row:hover { background: var(--bg-sunk); }
.bl-mood { font-size: var(--fs-18); line-height: 1; text-align: center; }
.bl-text { min-width: 0; font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-sealed { font-family: var(--font-echo); color: var(--ink-3); }
.bl-when { text-align: right; color: var(--ink-3); }
.bl-row.is-back .bl-when { color: color-mix(in srgb, var(--orange) 80%, var(--ink)); font-weight: 600; }
.bl-row.is-back .bl-mood { filter: var(--glow-mood); }
.bl-row.st-done .bl-when { color: var(--done); }
.bl-row.st-released .bl-text { color: var(--ink-3); }
.bottle-note { display: flex; align-items: center; justify-content: center; gap: var(--s-1h); margin-top: var(--s-6); }

.modal.bottle-read { width: min(560px, calc(100vw - 32px)); }
.bottle-read .modal-head { padding-bottom: 0; }
.br-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--s-3) var(--s-2); }
.br-bottle { width: 40px; margin-top: var(--s-1h); animation: bob 3.6s var(--ease-soft) infinite; }
.br-when { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-13); color: var(--ink-2); }
.br-mood { font-size: var(--fs-15); }
.br-text { font-size: var(--fs-26); line-height: 1.45; margin: var(--s-5h) 0 var(--s-1h); color: var(--ink); text-wrap: balance; }
.br-rule { width: 40px; height: 1px; background: var(--line-strong); margin: var(--s-5h) auto var(--s-4); }
.br-status { font-size: var(--fs-13); color: var(--ink-3); }
.br-q { font-size: var(--fs-20); margin: var(--s-1h) 0 var(--s-4); }
.br-answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2h); width: 100%; }
.br-a {
  display: flex; flex-direction: column; gap: var(--s-fine-1); padding: var(--s-3h) var(--s-4); text-align: left; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
}
.br-a:hover { border-color: var(--primary-line); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.br-a b { font-size: var(--fs-14); font-weight: 600; }
.br-a span { font-size: var(--fs-12); color: var(--ink-3); }
.br-a[data-ans="did"] b { color: var(--done); }

/* =========================================================
   Insights
   ========================================================= */
.in-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: var(--s-5) 0; }
.in-stat { padding: 0 var(--s-6); border-left: 1px solid var(--line); }
.in-stat:first-child { border-left: 0; }
.delta { display: block; margin-top: var(--s-1h); font-size: var(--fs-12); color: var(--ink-4); }
.delta.up { color: var(--done); }
.delta.down { color: var(--ink-3); }
.in-basis { display: flex; align-items: center; gap: var(--s-1h); margin: 10px 4px var(--s-6); }
.in-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.in-card { display: flex; flex-direction: column; gap: var(--s-2h); }
.in-wide { grid-column: span 2; }
.in-say { font-size: var(--fs-17); line-height: 1.5; text-wrap: balance; }
/* 周节奏：行是星期、列是小时，格子铺满卡片；标签与格子共用同一套行列 */
.rhythm { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; margin-top: var(--s-1); }
.rhythm-days { display: grid; grid-template-rows: repeat(7, 20px); gap: 3px; align-items: center; font-family: var(--font-mono); font-size: var(--fs-tick); color: var(--ink-4); line-height: 1; }
.rhythm-days span.is-today { color: var(--accent); font-weight: 600; }
.rhythm-heatmap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.rhythm-heatmap .hm-col { display: grid; grid-template-rows: repeat(7, 20px); gap: 3px; }
.rhythm-heatmap .hm-cell { width: auto; height: auto; border-radius: 4px; }
.rhythm-axis { display: flex; align-items: center; gap: var(--s-3); margin-top: 7px; }
.rhythm-hours { flex: 1; display: grid; grid-template-columns: repeat(var(--hours), minmax(0, 1fr)); gap: 3px; font-family: var(--font-mono); font-size: var(--fs-tick); color: var(--ink-4); }
.rhythm-hours span { text-align: center; }
.rhythm-legend { display: flex; align-items: center; gap: 3px; flex: none; font-size: var(--fs-tick); color: var(--ink-4); }
.rhythm-legend .hm-cell { width: 9px; height: 9px; border-radius: 3px; }
.rhythm-legend span:first-child { margin-right: 2px; }
.rhythm-legend span:last-child { margin-left: 2px; }
.in-say b { font-weight: 500; color: var(--primary-ink); }
.hour-bars { display: flex; align-items: flex-end; gap: var(--s-1); height: 128px; margin-top: var(--s-2); }
/* 条形图落在一条发丝基线上，像参考图里的坐标轴 */
.hour-bars, .mini-bars { position: relative; }
.hour-bars::after, .mini-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 1px; background: var(--line); }
.hb { flex: 1; height: 100%; display: flex; flex-direction: column; gap: var(--s-1h); }
.hb i { display: block; width: 100%; max-width: 14px; margin: auto auto 0; min-height: 2px; border-radius: var(--r-pill) var(--r-pill) var(--r-hairline) var(--r-hairline); background: color-mix(in srgb, var(--primary) 22%, var(--bg-sunk)); }
.hb.is-best i { background: var(--primary); }
.hb span { height: 10px; font-family: var(--font-mono); font-size: var(--fs-tick); color: var(--ink-4); line-height: 1; text-align: center; align-self: stretch; }
.area-legend, .est-list { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-1h); }
.area-legend li { display: grid; grid-template-columns: 10px 1fr auto 44px; align-items: center; gap: var(--s-2h); font-size: var(--fs-13); }
.area-legend li i, .est-list li i { width: 10px; height: 10px; border-radius: var(--r-dot); background: var(--area); }
.area-legend .mono { text-align: right; font-size: var(--fs-12); }
.est-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: var(--s-2h); font-size: var(--fs-13); }
.cmp-bars { display: flex; flex-direction: column; gap: var(--s-2h); margin: var(--s-1) 0; }
.cmp-bars > div { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: var(--s-3); font-size: var(--fs-13); }
.cmp-bars .bar { height: 8px; }
.cmp-bars b { text-align: right; font-weight: 500; }

.wr-hero { padding: var(--s-7); background: var(--lavender-soft); }
.wr-list, .wr-next, .wr-mems { display: flex; flex-direction: column; margin-top: var(--s-2h); }
.wr-list li, .wr-next li { display: grid; align-items: center; gap: var(--s-2h); padding: var(--s-fine-4) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.wr-list li:last-child, .wr-next li:last-child, .wr-mems li:last-child { border-bottom: 0; }
.wr-list li { grid-template-columns: 8px minmax(0, 1fr) auto; }
.wr-list li i { width: 8px; height: 8px; border-radius: 50%; background: var(--area); }
.wr-list button:hover, .wr-next button:hover { color: var(--primary-ink); }
.wr-next li { grid-template-columns: 36px minmax(0, 1fr) auto; }
.wr-mems li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s-0h) var(--s-2h); padding: var(--s-fine-4) 0; border-bottom: 1px solid var(--line); }
.wr-mems b { font-weight: 400; font-size: var(--fs-15); }
.wr-mems li > span:last-child:not(:first-child) { grid-column: 2; }
.wr-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-1h); margin-top: var(--s-3); }
.wr-photos button { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; }
.wr-note { margin: var(--s-2h) 0 var(--s-1h); font-size: var(--fs-17); }

/* =========================================================
   Assistant
   ========================================================= */
.ai-badge {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--lavender-soft); color: var(--lavender);
}
.ai-badge.lg { width: 38px; height: 38px; }
.ai-ask { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2h) var(--s-2h) var(--s-2h) var(--s-3h); border-radius: var(--r-md); transition: box-shadow var(--t-fast), border-color var(--t-fast); }
.ai-ask:focus-within { border-color: var(--primary-line); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-1); }
.ai-ask input { flex: 1; min-width: 0; font-size: var(--fs-17); height: 38px; color: var(--ink); }
.ai-ask input:focus { outline: none; }
.ai-sugg { display: flex; flex-wrap: wrap; gap: var(--s-1h); margin: 12px 0 var(--s-8); }
.ai-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.ai-actions { position: sticky; top: calc(var(--head-h) + var(--s-2)); display: flex; flex-direction: column; gap: var(--s-2); }
.ai-action { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: var(--s-3) var(--s-3h); text-align: left; border-radius: var(--r-md); }
.ai-action:hover { transform: translateY(-1px); }
.aa-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); background: var(--bg-sunk); color: var(--primary); }
.ai-action:hover .aa-icon { background: var(--primary-soft); }
.aa-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-hair); }
.aa-text b { font-size: var(--fs-14); font-weight: 500; }
.ai-thread { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.ai-msg { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4h) var(--s-5); animation: fade-in var(--t-fade) var(--ease) both; }
.ai-q { display: flex; justify-content: flex-end; }
.ai-q span { max-width: 80%; padding: var(--s-2) var(--s-3h); border-radius: var(--r-md) var(--r-md) var(--r-track) var(--r-md); background: var(--primary-soft); color: var(--primary-ink); font-size: var(--fs-14); }
.ai-head { display: flex; align-items: center; gap: var(--s-2h); }
.ai-head b { font-size: var(--fs-14); font-weight: 600; }
.ai-say { font-size: var(--fs-17); line-height: 1.5; color: var(--ink); }
.ai-budget { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1h); padding: var(--s-3) var(--s-3h); border-radius: var(--r-md); background: var(--bg-sunk); font-size: var(--fs-13); }
.ai-budget b { font-weight: 500; }
.ai-budget .bar { flex-basis: 100%; margin-top: var(--s-1h); background: var(--card); }
.ai-budget.is-over { background: var(--orange-soft); }
.ai-list { display: flex; flex-direction: column; }
.ai-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: var(--s-2h); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.ai-list li:last-child { border-bottom: 0; }
.ai-list li i { width: 8px; height: 8px; border-radius: 50%; background: var(--area, var(--primary)); }
.ai-lines { display: flex; flex-direction: column; gap: var(--s-1h); padding-left: var(--s-1); }
.ai-lines li { position: relative; padding-left: var(--s-4); font-size: var(--fs-14); color: var(--ink-2); }
.ai-lines li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--lavender); }
.ai-lines b { color: var(--ink); font-weight: 600; }
.ai-mems { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-2h); }
.ai-mem { display: flex; align-items: stretch; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--warm-paper); color: inherit; text-decoration: none; text-align: left; transition: box-shadow var(--t-fast); }
.ai-mem img { width: 72px; flex: none; object-fit: cover; }
.ai-mem > span { display: flex; flex-direction: column; justify-content: center; gap: var(--s-1); padding: var(--s-2h) var(--s-3); min-width: 0; }
.ai-mem .echo-type { font-size: var(--fs-15); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-mem .muted { display: flex; align-items: center; gap: var(--s-fine-2); }
.ai-goals { display: flex; flex-direction: column; gap: var(--s-3h); }
.ai-goals li { display: flex; flex-direction: column; gap: var(--s-1h); }
.aig-top { display: flex; align-items: center; gap: var(--s-2h); font-size: var(--fs-14); }
.aig-top b { font-weight: 500; flex: 1; min-width: 0; }
.ai-goals .link { align-self: flex-start; font-size: var(--fs-12); }
.ai-foot { display: flex; align-items: center; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.ai-foot .spacer { flex: 1; }
.ai-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2h); padding: var(--s-14) var(--s-6); }
.ai-empty .echo-rings { width: 64px; height: 64px; margin-bottom: var(--s-2); }
.ai-empty .echo-rings::after { inset: 25px; background: var(--lavender); }
.ai-empty .echo-rings i { border-color: var(--lavender); }
.ai-empty-title { font-size: var(--fs-24); }
.ai-empty p { max-width: 380px; color: var(--ink-3); font-size: var(--fs-14); }

/* =========================================================
   Daily review
   ========================================================= */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; margin-top: var(--s-6); }
.rv-moods { margin-top: var(--s-1); }
.rv-open { display: flex; align-items: center; gap: var(--s-2); padding-right: var(--s-2h); }
.rv-open .task-row { flex: 1; min-width: 0; }
.rv-prompts { display: flex; flex-direction: column; gap: var(--s-5h); padding: var(--s-6); }
.rv-q { font-size: var(--fs-20); color: var(--ink); font-weight: 400; }
.rv-prompts .textarea { background: color-mix(in srgb, var(--card) 70%, transparent); font-size: var(--fs-15); }
.rv-pri { display: flex; align-items: center; gap: var(--s-3); }
.rv-pri .fc-num { width: 22px; font-size: var(--fs-13); color: var(--primary); }
.rv-pri .input { flex: 1; background: color-mix(in srgb, var(--card) 70%, transparent); }

/* =========================================================
   Settings
   ========================================================= */
/* 正文列放宽到 1360 后，设置这种窄列表自己收一档就行，别跟着铺满（行太长难读）。
   设置页只认三档节奏：卡片之间的距离 --set-gap、卡片内边距 --set-pad-*、组与组之间 --set-sec-gap；
   其余间距都从这里派生，避免每张卡各带一套外边距，把相邻卡片挤成 0 缝。 */
.settings {
  --set-gap: var(--s-5);
  --set-pad-x: var(--s-6);
  --set-pad-y: var(--s-4);
  --set-sec-gap: var(--s-5);
  display: flex; flex-direction: column; gap: var(--set-gap); max-width: 960px;
}
/* 首页总览是「册页 + 设备卡」的包裹层，没有自己的间距时会两卡 0 缝相贴 */
#set-overview { display: flex; flex-direction: column; gap: var(--set-gap); }
.set-card, .set-book { padding: var(--set-pad-y) var(--set-pad-x); }
/* 设置页的开关：轨道仍是 40×24，命中区向外补到 60×44；只扩点击范围，不改外观 */
.page-settings .switch::before { content: ""; position: absolute; inset: -10px; border-radius: var(--r-pill); }
/* 一张册页代替一串等宽卡片：组与组之间用更重的发丝线加留白分段，行与行之间只用细线 */
.set-book { border-radius: var(--r-lg); }
.set-sec + .set-sec { padding-top: var(--set-sec-gap); border-top: 1px solid var(--line-strong); }
.set-sec > .set-note, .set-card > .set-note { margin: var(--s-2) 0 var(--s-3); }

/* 设置总览：两列分区卡片，入口先铺开，状态留在行尾 */
.settings-home { max-width: none; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--set-gap); align-items: start; }
.set-grid[hidden] { display: none; }
.set-col { display: flex; flex-direction: column; gap: var(--set-gap); min-width: 0; }
.set-group { padding: var(--set-pad-y) var(--set-pad-x); }
.set-group .set-title { padding: 0 0 var(--s-1h); }
.set-title { padding: 0 0 var(--s-1h); font-size: var(--fs-12); font-weight: 600; letter-spacing: var(--ls-micro); color: var(--ink-4); }
.set-title::after { flex: 1; width: auto; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-3h) 0; border-top: 1px solid var(--line); }
.set-title + .set-row { border-top: 0; }
.set-k { display: flex; flex-direction: column; gap: var(--s-0h); min-width: 0; }
.set-k > label, .set-k > span:first-child { font-size: var(--fs-14); font-weight: 500; color: var(--ink); }
.set-v { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.set-v .input, .set-v .select { width: 200px; }
/* 落款而不是灰块：一条竖线把说明钉在内容旁边 */
.set-note { margin: 0; padding-left: var(--s-3); border-left: 2px solid var(--line-strong); font-size: var(--fs-12); line-height: 1.65; color: var(--ink-3); }
.set-note b { color: var(--ink-2); font-weight: 500; }
.set-note code { font-family: var(--font-mono); font-size: var(--fs-11); }

/* 同步：状态行与冲突列表 */
.set-conflict { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-3h); border: 1px solid var(--line); border-left: 2px solid var(--orange); border-radius: var(--r-md); background: var(--slab); }
.set-conflict + .set-conflict { margin-top: var(--s-2); }
.set-conflict .cf-head { display: flex; align-items: baseline; gap: var(--s-2); font-size: var(--fs-14); color: var(--ink); }
.set-conflict .cf-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.set-stack { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2); width: 100%; }
.set-stack .set-row:first-child { border-top: 0; }
.cf-field { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-2h) 0; border-top: 1px solid var(--line); font-size: var(--fs-13); }
.cf-field:first-child { border-top: 0; }
.cf-val { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }

/* 两级结构：首页是分区总览，子页在宽屏左列表右内容，窄屏退化成下钻列表 */
.settings-split { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1080px; }
.set-search-wrap { position: relative; display: block; max-width: 236px; }
.set-search-wrap .ic { position: absolute; left: var(--s-3h); top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.set-search { height: 36px; padding-left: var(--s-8); border-radius: 10px; background: var(--bg-sunk); border-color: transparent; }
.set-search:focus { background: var(--card); }
.set-nav { display: flex; flex-direction: column; gap: 0; position: sticky; top: calc(var(--head-h) + var(--s-3)); }
.set-nav-top { padding: 0 12px var(--s-2); font-size: var(--fs-11); font-weight: 600; letter-spacing: var(--ls-micro); color: var(--ink-4); text-decoration: none; }
.set-nav-top:hover { color: var(--ink-2); }
.set-nav-group { display: flex; flex-direction: column; gap: 0; }
.set-nav-label { padding: var(--s-3) 12px var(--s-1); font-size: var(--fs-11); font-weight: 400; letter-spacing: .04em; color: var(--ink-4); }
/* 目录和侧边栏同一套语言：图标 + 标签，悬停浅底，当前项落在白卡上并压一道强调色 */
.set-nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: var(--fs-13); color: var(--ink-3); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.set-nav-item .ic { flex: none; width: 15px; height: 15px; color: currentColor; }
.set-nav-item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.set-nav-item.is-on { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.set-nav-item.is-on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); animation: le-indicator 260ms cubic-bezier(.34, 1.4, .64, 1); }
.set-nav-item:focus-visible, .set-nav-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-head { display: flex; align-items: baseline; gap: var(--s-2h); padding: var(--s-1) 0 0; }
.set-head h2 { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.set-head p { font-size: var(--fs-12); color: var(--ink-4); }
.set-main { display: flex; flex-direction: column; gap: var(--set-gap); min-width: 0; }
.set-back { display: none; align-items: center; gap: var(--s-1); font-size: var(--fs-13); color: var(--ink-3); text-decoration: none; }
.set-link { text-decoration: none; color: inherit; border-radius: var(--r-md); }
.set-link .set-go { display: flex; color: var(--ink-4); transition: transform var(--t-snap) var(--ease), color var(--t-snap); }
/* 入口行：图标锚点 · 标题+提示 · 状态 · 箭头；高亮向两侧出血，压住册页的内边距 */
a.set-link { display: grid; grid-template-columns: var(--s-8) minmax(0, 1fr) auto var(--s-4); align-items: center; gap: var(--s-3h); margin: 0 calc(var(--s-3h) * -1); padding: var(--s-3) var(--s-3h); }
a.set-link + a.set-link { border-top: 1px solid var(--line); }
.set-title + a.set-link { border-top: 0; }
a.set-link:hover { background: var(--card-hover); }
a.set-link:hover .set-go { transform: translateX(var(--s-0h)); color: var(--ink-3); }
a.set-link:hover .set-chip { background: var(--primary-soft); color: var(--ink-2); }
a.set-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-chip { display: grid; place-items: center; width: var(--s-8); height: var(--s-8); border-radius: var(--r-cell); background: var(--slab); color: var(--ink-3); transition: background var(--t-fast), color var(--t-fast); }
a.card.set-link { padding: var(--s-4) var(--s-5h); }
a.card.set-link:hover { background: var(--card-hover); }
/* 状态从一行灰字升成带底色的胶囊：有底才有落点，扫一眼就能分辨绿与红 */
.set-state { display: inline-flex; align-items: center; gap: var(--s-1h); height: 21px; max-width: 260px; padding: 0 var(--s-2h); border-radius: var(--r-pill); background: var(--bg-sunk); font-size: var(--fs-11); font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-state:not([data-tone="off"])::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.set-state[data-tone="ok"] { background: var(--done-soft); color: var(--done); }
.set-state[data-tone="err"] { background: var(--urgent-soft); color: var(--urgent); }
.set-state[data-tone="warn"] { background: var(--orange-soft); color: var(--orange); }
.set-state[data-tone="busy"] { background: var(--primary-soft); color: var(--primary-ink); }

/* 同步状态中心：状态词用「回声」衬线落款，右边盖章时间，左对齐不居中堆叠 */
.set-hero { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); padding: var(--s-5) var(--s-5) var(--s-4); }
.set-hero-top { display: flex; align-items: baseline; gap: var(--s-2h); width: 100%; }
.set-hero-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transform: translateY(-1px); }
.set-hero-title { font-family: var(--font-echo); font-size: var(--fs-24); font-weight: 500; color: var(--ink); }
.set-hero-stamp { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: var(--ls-display); color: var(--ink-3); white-space: nowrap; }
.set-hero-line { font-size: var(--fs-13); line-height: 1.55; color: var(--ink-3); max-width: 52ch; }
.set-hero-line.strong { color: var(--ink-2); }
.set-hero-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.set-hero[data-tone="ok"] .set-hero-dot { background: var(--done); }
.set-hero[data-tone="err"] .set-hero-dot { background: var(--urgent); }
.set-hero[data-tone="err"] .set-hero-title, .set-hero[data-tone="err"] .set-hero-line.strong { color: var(--urgent); }
.set-hero[data-tone="warn"] .set-hero-dot { background: var(--orange); }
.set-hero[data-tone="warn"] .set-hero-line.strong { color: var(--orange); }
.set-hero[data-tone="busy"] .set-hero-dot { background: var(--primary); animation: hero-pulse 1.3s ease-in-out infinite; }

/* 水位：推进云端的一段是海，还没推的是干纹；同步中有一道波光扫过 */
.set-tide { position: relative; display: flex; width: 100%; height: var(--s-2); margin-top: var(--s-3h); border-radius: var(--r-pill); overflow: hidden; background: var(--bg-sunk); }
.set-tide-sea { background: linear-gradient(90deg, var(--sea-deep), var(--sea-mid) 65%, var(--sea-top)); }
.set-tide-dry { flex: 1; background: repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 6px); }
.set-tide[data-state="busy"]::after, .set-tide[data-state="pending"]::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 60%, transparent) 55%, transparent); animation: tide-sweep 1.7s linear infinite; }
.set-tide[data-state="err"] .set-tide-sea { background: linear-gradient(90deg, color-mix(in srgb, var(--urgent) 62%, var(--sea-mid)), var(--urgent-soft)); }
@keyframes tide-sweep { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
@keyframes hero-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 技术参数默认折起来，展开才看得见 */
.set-adv { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 var(--s-3h); background: var(--slab); }
.set-adv > summary { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: var(--s-2h) 0; font-size: var(--fs-12); color: var(--ink-2); cursor: pointer; list-style: none; }
.set-adv > summary::-webkit-details-marker { display: none; }
.set-adv > summary::before { content: "\203A"; display: inline-block; color: var(--ink-4); transition: transform var(--t-fast, .15s) ease; }
.set-adv[open] > summary::before { transform: rotate(90deg); }
.set-adv .set-row { border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .set-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .settings { --set-gap: var(--s-4); --set-pad-x: var(--s-4); --set-pad-y: var(--s-3); }
  .settings-split { grid-template-columns: 1fr; gap: var(--set-gap); }
  .set-nav { display: none; }
  .set-back { display: inline-flex; align-items: center; min-height: 44px; }
  .set-card, .set-book, .set-group { padding-inline: var(--set-pad-x); }
}

@media (max-width: 760px) {
  .page-actions .set-search-wrap { max-width: none; width: 100%; }
  .set-search { height: 40px; }
  /* 手机页头已经有同一个标题，正文里不再重复 */
  .set-head { display: none; }
}

/* =========================================================
   Profile · 个人资料 / 账户与安全
   ========================================================= */
.profile-page { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; }
.pf-head { align-items: flex-start; }
.pf-load {
  display: inline-flex; align-items: center; gap: var(--s-1h); height: 26px; padding: 0 var(--s-2h);
  border-radius: var(--r-pill); background: var(--bg-sunk); color: var(--ink-3);
  font-size: var(--fs-11); font-weight: 500; white-space: nowrap;
}
.pf-load[data-tone="ok"] { background: var(--done-soft); color: var(--done); }
.pf-load[data-tone="busy"] { background: var(--primary-soft); color: var(--primary-ink); }
.pf-load[data-tone="err"] { background: var(--urgent-soft); color: var(--urgent); }
.pf-load .link { font-size: var(--fs-11); }
.pf-tabs {
  display: flex; gap: var(--s-1); align-self: flex-start;
  margin: var(--s-4) 0 var(--s-4h); padding: 3px;
  border-radius: var(--r-field); background: var(--bg-sunk);
}
.pf-tab { padding: var(--s-1h) var(--s-4); border-radius: 7px; font-size: var(--fs-13); color: var(--ink-3); text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.pf-tab:hover { color: var(--ink); }
.pf-tab[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.pf-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.pf-body { display: flex; flex-direction: column; gap: var(--s-4); }
.pf-card { padding: var(--s-5); }
.pf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.pf-card-head h2 { font-size: var(--fs-15); font-weight: 600; letter-spacing: var(--ls-display); color: var(--ink); }
.pf-card-head p { margin-top: var(--s-1); font-size: var(--fs-12); line-height: 1.6; color: var(--ink-3); max-width: 62ch; }

.pf-identity { display: flex; align-items: flex-start; gap: var(--s-5); margin-top: var(--s-4); }
.pf-avatar { width: 88px; height: 88px; font-size: var(--fs-24); box-shadow: inset 0 0 0 1px var(--primary-line), var(--card-shadow); }
.pf-avatar-side { flex: 1; min-width: 0; }
.pf-avatar-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pf-hint { margin-top: var(--s-2); font-size: var(--fs-12); line-height: 1.65; color: var(--ink-3); }
.pf-hint-warn { color: var(--ink-2); padding-left: var(--s-3); border-left: 2px solid var(--line-strong); }
.pf-msg { margin-top: var(--s-2); font-size: var(--fs-12); color: var(--ink-3); min-height: 1em; }
.pf-msg:empty { display: none; }
.pf-msg[data-tone="ok"] { color: var(--done); }
.pf-msg[data-tone="err"] { color: var(--urgent); }

/* 表情挑选：一排小球，选中的一颗描一圈主色 */
.pf-pick { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pf-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.pf-pick-label { font-size: var(--fs-12); font-weight: 500; color: var(--ink-2); }
.pf-pick-row { display: flex; flex-wrap: wrap; gap: var(--s-2h); margin-top: var(--s-3); }
.pf-pick-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-1h);
  width: 68px; padding: var(--s-2) var(--s-1) var(--s-1h);
  border: 0; border-radius: var(--r-field); background: none; cursor: pointer;
  transition: background var(--t-fast);
}
.pf-pick-item:hover { background: var(--bg-sunk); }
.pf-pick-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-pick-item small { font-size: var(--fs-11); color: var(--ink-3); }
.pf-pick-av { width: 44px; height: 44px; box-shadow: inset 0 0 0 1px var(--primary-line); }
.pf-pick-item[aria-pressed="true"] { background: var(--primary-soft); }
.pf-pick-item[aria-pressed="true"] .pf-pick-av { box-shadow: 0 0 0 2px var(--primary); }
.pf-pick-item[aria-pressed="true"] small { color: var(--primary); font-weight: 600; }
.pf-pick-photo { margin-top: var(--s-3); }

.pf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3h) var(--s-4); margin-top: var(--s-4); }
.pf-field { display: flex; flex-direction: column; gap: var(--s-1h); min-width: 0; }
.pf-field > span { font-size: var(--fs-12); font-weight: 500; color: var(--ink-2); }
.pf-field > span i { font-style: normal; color: var(--urgent); }
.pf-field small { font-size: var(--fs-11); line-height: 1.5; color: var(--ink-4); }
.pf-field .input { height: 38px; }
.pf-field .input[readonly] { background: var(--bg-sunk); color: var(--ink-3); }
.pf-form-wide { grid-column: 1 / -1; }
.pf-actions { display: flex; justify-content: flex-end; gap: var(--s-2); padding-top: var(--s-1h); }

.pf-meta-list { margin-top: var(--s-3h); }
.pf-meta-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-2h) 0; border-top: 1px solid var(--line); font-size: var(--fs-13);
}
.pf-meta-row:first-child { border-top: 0; }
.pf-meta-row > span:first-child { color: var(--ink-3); flex: none; }
.pf-meta-row b { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.pf-meta-row .mono { font-family: var(--font-mono); font-size: var(--fs-12); }

.pf-empty {
  margin-top: var(--s-4); padding: var(--s-5); text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  font-size: var(--fs-13); line-height: 1.6; color: var(--ink-3);
}
.pf-empty .btn { margin-top: var(--s-3h); }
.pf-card-danger { border-color: color-mix(in srgb, var(--urgent) 24%, var(--line)); }
/* 资料页的右下角不需要「新建」，别压住表单 */
body:has(.profile-page) .fab-stack { display: none; }

@media (max-width: 760px) {
  .pf-card { padding: var(--s-4); }
  .pf-card-head { flex-direction: column; gap: var(--s-2h); }
  .pf-identity { flex-direction: column; align-items: center; text-align: center; gap: var(--s-3h); }
  .pf-avatar-side { width: 100%; }
  .pf-avatar-actions { justify-content: center; }
  .pf-form { grid-template-columns: 1fr; }
  .pf-meta-row { flex-direction: column; align-items: flex-start; gap: var(--s-0h); }
}

/* =========================================================
   Forms: task drawer, composers, more sheet
   ========================================================= */
.drawer-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.drawer-head { display: flex; align-items: center; gap: var(--s-1h); padding: var(--s-3h) var(--s-3h) var(--s-2h) var(--s-5); }
.drawer-head .spacer { flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--s-4h); padding: var(--s-1h) var(--s-5h) var(--s-5h); }
.drawer-foot { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3h) var(--s-5); border-top: 1px solid var(--line); }
.drawer-foot .spacer { flex: 1; }
.done-banner { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) var(--s-3h); border-radius: var(--r-md); background: var(--done-soft); font-size: var(--fs-13); }
.done-banner > div { flex: 1; display: flex; align-items: center; gap: var(--s-1h); flex-wrap: wrap; }
.done-banner .ic { color: var(--done); }
.ed-section { display: flex; flex-direction: column; gap: var(--s-2); }
.ed-grid { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: var(--s-2) var(--s-3); }
.ed-k { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); color: var(--ink-3); }
.ed-k .ic { color: var(--ink-4); }
.ed-grid .row { gap: var(--s-1h); }
.ed-grid .row .input { flex: 1; min-width: 0; }
.sub-list { display: flex; flex-direction: column; }
.sub-row { display: flex; align-items: center; gap: var(--s-2h); padding: var(--s-1) 0; }
.sub-row .input { flex: 1; font-size: var(--fs-14); }
.check.sm { width: 16px; height: 16px; border-radius: var(--r-cell); }
.check.sm .ic { width: 10px; height: 10px; }
.sub-add { gap: var(--s-2h); padding: var(--s-1) 0; }
.sub-plus { display: grid; place-items: center; width: 16px; height: 16px; color: var(--ink-4); }
.sub-add .input { flex: 1; font-size: var(--fs-14); }
.ed-meta { display: flex; flex-direction: column; gap: var(--s-0h); padding-top: var(--s-3); border-top: 1px solid var(--line); }

.modal.composer, .modal.bottle-composer { width: min(580px, calc(100vw - 32px)); }
/* 地点框 + 「定位」按钮同一行：按钮不吃掉输入框宽度，窄屏也不挤。 */
.cm-loc-row { display: flex; align-items: center; gap: var(--s-2); }
.cm-loc-row .input { flex: 1; min-width: 0; }
.cm-locate { flex: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cm-locate:disabled { opacity: .55; cursor: default; }
.cm-linked { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-fine-4) var(--s-3); border-radius: var(--r-md); background: var(--done-soft); color: var(--done); font-size: var(--fs-13); }
.cm-text {
  width: 100%; min-height: 120px; padding: var(--s-1) 0; border: 0; background: transparent; resize: vertical;
  font-size: var(--fs-20); line-height: 1.55; color: var(--ink);
}
.cm-text:focus { outline: none; }
.cm-text::placeholder { color: var(--ink-4); }
.cm-photos { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cm-photo { position: relative; width: 88px; height: 88px; border-radius: var(--r-md); overflow: hidden; }
.cm-photo .icon-btn { position: absolute; top: var(--s-1); right: var(--s-1); background: var(--scrim-btn); color: var(--on-photo); }
.cm-add-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); width: 88px; height: 88px;
  border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); color: var(--ink-3); font-size: var(--fs-12); cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.cm-add-photo:hover { border-color: var(--primary-line); color: var(--primary-ink); }
.cm-private { display: flex; align-items: center; gap: var(--s-1h); }
.bottle-composer { background: var(--sea-top); }
.bp-head { display: flex; align-items: center; gap: var(--s-4); }
.bp-art { width: 34px; flex: none; animation: bob 3.6s var(--ease-soft) infinite; }
.bp-title { font-size: var(--fs-24); line-height: 1.25; }
.bp-head p { font-size: var(--fs-13); margin-top: var(--s-0h); }
.bp-mood { font-size: var(--fs-17); min-width: var(--s-11); justify-content: center; }
.memory-title { width: 100%; font-size: var(--fs-24); }
.memory-lines { font-size: var(--fs-14); line-height: 1.7; }
.memory-summary { width: 100%; font-size: var(--fs-17); }

/* 15 个入口正好 3×5，保持固定列数避免出现落单的空洞 */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
/* 记录页桌面端固定 4 项，用 4 列避免第 4 项落单、右侧留空 */
.more-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-item { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-2); border-radius: var(--r-md); background: var(--bg-sunk); color: var(--ink-2); text-decoration: none; font-size: var(--fs-13); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.more-item:hover, .more-item:focus-visible { background: var(--accent-soft); color: var(--ink); }
/* =========================================================
   Keyframes
   ========================================================= */
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -6px; rotate: 3deg; } }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .life-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-6); }
  .ai-layout { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 1080px) {
  .hm-card { flex-direction: column; gap: var(--s-4h); }
  .hm-stats { max-width: none; width: 100%; margin-left: 0; padding: var(--s-4) 0 0; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .hm-stats .eyebrow { grid-column: 1 / -1; }
  .home-grid, .today-grid, .cal-layout, .life-grid, .focus-layout, .ai-layout, .proj-detail-grid, .life-tl-wrap { grid-template-columns: minmax(0, 1fr); }
  .today-rail, .cal-rail, .life-rail, .ai-actions, .ltl-add { position: static; }
  .today-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); }
  .life-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .ai-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .focus-rail { display: grid; grid-template-columns: 1fr 1fr; }
  .proj-side { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .board { overflow-x: auto; grid-template-columns: repeat(4, minmax(240px, 1fr)); padding-bottom: var(--s-1h); }
  .in-stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
  .in-stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  .hero-greet { font-size: var(--fs-32); }
  .home-hero { grid-template-columns: 1fr; }
  .stat-strip { display: grid; grid-template-columns: 1fr 1fr; row-gap: var(--s-4); padding: var(--s-4) 0; }
  .stat-strip .ss-label { grid-column: 1 / -1; min-width: 0; }
  .stat-strip .ss { padding: 0 var(--s-4h); }
  .stat-strip .ss:nth-of-type(even) { border-left: 0; }
  .echo-prompt { flex-wrap: wrap; }
  .echo-copy { flex: 1 1 calc(100% - 80px); min-width: 0; }
  .echo-actions { width: 100%; justify-content: flex-end; }
  .home-life { grid-template-columns: minmax(0, 1fr); }
  .bottle-return { flex-direction: row; justify-content: flex-start; text-align: left; padding: var(--s-5); }
  .bottle-return .br-art { width: 40px; height: 64px; }
  .focus-cards { grid-template-columns: 1fr; }
  .timeline:not(.m-tl-card):not(.m-weekgrid-body), .tl-hint { display: none; }
  .tl-mobile { display: block; }
  .t-actions .btn { gap: 0; padding: 0 var(--s-2); }
  .t-actions .btn .btn-label { display: none; }
  .cal-scroll { max-height: none; }
  .cal-row { grid-template-columns: 44px repeat(var(--cols), minmax(0, 1fr)); }
  .cal-dayhead .cdh-c { display: none; }
  .m-cell { min-height: 64px; padding: var(--s-1); }
  .m-cell .cal-chip, .m-moment { display: none; }
  .drop-dock { left: 12px; right: 12px; transform: none; bottom: calc(84px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .dock-day { flex: none; min-width: 56px; }
  .today-rail, .life-rail, .focus-rail, .proj-side, .review-grid, .in-grid, .grid-2, .goal-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-card { align-items: stretch; }
  .inbox-row { flex-wrap: wrap; row-gap: var(--s-1h); }
  .inbox-actions { opacity: 1; width: 100%; padding-left: var(--s-6h); overflow-x: auto; }
  .inbox-actions > * { flex: none; }
  .capture-hint { display: none; }
  .section-head { flex-wrap: wrap; }
  .seg { max-width: 100%; overflow-x: auto; }
  .seg button { flex: none; }
  .in-wide { grid-column: auto; }
  .proj-stats { grid-template-columns: 1fr 1fr; row-gap: var(--s-4h); }
  .proj-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ms-track { margin: 0 var(--s-6); }
  .ms-label { max-width: 90px; font-size: var(--fs-11); }
  .ht-head, .ht-row { grid-template-columns: minmax(0, 1fr) auto 36px; gap: var(--s-2h); padding: var(--s-2h) var(--s-3h); }
  .ht-head > :nth-child(3), .ht-head > :nth-child(4), .ht-row > .ht-v:first-of-type { display: none; }
  .ht-row > .icon-btn { display: none; }
  .ht-days span, .ht-row .h-dot { width: 16px; }
  .ht-row .h-dot { height: 16px; border-radius: var(--r-cell); }
  .ht-days, .ht-row .h-dots { gap: var(--s-fine-1); }
  .fs-clock { font-size: var(--fs-48); }
  .fs-dial { width: 260px; }
  .fs-controls .btn { min-width: 0; }
  .sea-title { font-size: var(--fs-30); }
  .sea { padding-top: var(--s-8); }
  .bl-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .bl-date { display: none; }
  .br-answers { grid-template-columns: 1fr; }
  .br-text { font-size: var(--fs-22); }
  .in-stats { padding: var(--s-4) 0; }
  .in-stat { padding: 0 var(--s-4); }
  .cmp-bars > div { grid-template-columns: 96px 1fr 40px; }
  .life-tl { padding-left: 34px; }
  .life-tl::before { left: 21px; }
  .ltl-year { margin-left: -34px; }
  .ltl-mlabel { position: static; width: auto; text-align: left; margin-bottom: var(--s-2); }
  .ltl-photo { width: 48px; height: 48px; }
  .m-gallery { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .mem-grid { grid-template-columns: 1fr; }
  .ai-q span { max-width: 92%; }
  .rv-open { padding-right: 0; }
  .set-row { flex-direction: column; align-items: stretch; gap: var(--s-2h); }
  .set-state { height: 24px; font-size: var(--fs-12); }
  .set-v .input, .set-v .select { width: 100%; }
  .ed-grid { grid-template-columns: 1fr; gap: var(--s-1); }
  .ed-k { margin-top: var(--s-2); }
  .yr-line { font-size: var(--fs-20); }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--s-1); }
  .filter-row > * { flex: none; }
}

/* =========================================================
   Dark theme tweaks
   ========================================================= */
[data-mode="dark"] .fs-tick { opacity: .35; }

/* =========================================================
   Today · 页面专属（共享规则已收进 components.css / views.css 基础层）
   壳层浮台取代了页内工作台：模块白卡直接浮在台面上，靠弱阴影与留白分层。
   ========================================================= */

/* 时间线减重：只留整点发丝线，去掉半点虚线；任务底色再淡一档，色相交给色条与时间字 */
.page-today .tl-slot { border-top-color: color-mix(in srgb, var(--line) 60%, transparent); }
.page-today .tl-slot::after { display: none; }
.page-today .tl-block { background: color-mix(in srgb, var(--area-soft) 62%, var(--card)); }
.page-today .tl-block.is-done { background: color-mix(in srgb, var(--area-soft) 40%, var(--card)); }
.page-today .tl-block.is-active { background: color-mix(in srgb, var(--area) 13%, var(--card)); }

/* 今天页面的页头已经有「新建任务」，右下角的浮动按钮是第二个主操作，还会压住右栏 */
body:has(.page-today) .fab-stack { display: none; }

/* =========================================================
   概览 Dashboard v2：四张核心卡 + 左「数据分析」/ 右「时间规划」双栏
   颜色只走令牌：进度绿用 --progress，分类用 --area-*，警示只用 --urgent 的浅色档。
   卡面允许极浅的品牌色渐变，但不上玻璃、不上强渐变。
   ========================================================= */
/* 正文列宽走全站 --content-max，概览不再单独放宽 */

/* ---------- 顶部四张 KPI ---------- */
.ov-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4h); margin-top: var(--s-4); }
.ov-kpi { position: relative; display: flex; flex-direction: column; gap: var(--s-1); min-width: 0;
  padding: var(--s-4h) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); background: var(--card); }
.ov-kpi.is-brand { background: linear-gradient(158deg, var(--primary-soft), var(--card) 64%); }
.ov-kpi.is-done { background: linear-gradient(158deg, var(--mint-soft), var(--card) 64%); }
.ov-kpi.is-rate { background: linear-gradient(158deg, color-mix(in srgb, var(--progress) 13%, var(--card)), var(--card) 68%); border-color: color-mix(in srgb, var(--progress) 26%, var(--line)); }
.ov-kpi.is-focus { background: linear-gradient(158deg, var(--lavender-soft), var(--card) 64%); }
.ov-kpi-top { display: flex; align-items: center; gap: var(--s-2); }
.ov-kpi-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-cell);
  background: color-mix(in srgb, var(--card) 62%, transparent); color: var(--ink-3); flex: none; }
.ov-kpi.is-rate .ov-kpi-ic { color: var(--progress); }
.ov-kpi.is-done .ov-kpi-ic { color: var(--progress); }
.ov-kpi.is-focus .ov-kpi-ic { color: var(--lavender); }
.ov-kpi-label { font-size: var(--fs-13); color: var(--ink-2); font-weight: 500; }
.ov-kpi-num { font-family: var(--font-mono); font-size: var(--fs-30); letter-spacing: var(--ls-num-lg); color: var(--ink); line-height: 1.05; font-weight: 600; }
.ov-kpi-unit { font-family: var(--font-ui); font-size: var(--fs-15); color: var(--ink-3); margin-left: var(--s-1h); letter-spacing: 0; }
.ov-kpi-foot { font-size: var(--fs-11); color: var(--ink-4); margin-top: var(--s-1); }
/* 图形永远贴到卡片底部：四张卡内容不一样多，但下边缘要齐 */
.ov-kpi > .ov-spark, .ov-kpi > .ov-ring-wrap { margin-top: auto; }

.ov-spark { display: block; width: 100%; height: 30px; overflow: visible; }
.ov-spark-line { fill: none; stroke: var(--chart-axis); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-spark-area { fill: color-mix(in srgb, var(--chart-2) 22%, transparent); stroke: none; }
.is-done .ov-spark-line { stroke: var(--chart-1); }
.is-focus .ov-spark-line { stroke: var(--chart-2); }
.is-brand .ov-spark-line { stroke: color-mix(in srgb, var(--chart-axis) 70%, var(--ink-2)); }
.ov-kpi-bar { display: block; height: 5px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; }
.ov-kpi-bar i { display: block; height: 100%; border-radius: inherit; background: var(--chart-1); }
.ov-ring-wrap { display: flex; justify-content: center; }
.ov-ring { width: 82px; height: 82px; }
.ov-ring-bg { fill: none; stroke: var(--bg-sunk); stroke-width: 9; }
.ov-ring-fg { fill: none; stroke: var(--chart-1); stroke-width: 9; stroke-linecap: round; }
.ov-ring-n { font-family: var(--font-mono); font-size: 19px; fill: var(--ink); text-anchor: middle; letter-spacing: var(--ls-num); }

/* 趋势只说方向和幅度，不上色喊：待完成变多未必是坏事，颜色留给真正要处理的逾期 */
.ov-delta { display: flex; align-items: baseline; gap: var(--s-1); font-family: var(--font-mono); font-size: var(--fs-12); color: var(--ink-2); }
.ov-delta span { font-family: var(--font-ui); color: var(--ink-4); font-size: var(--fs-11); }

/* ---------- 双栏骨架 ---------- */
.ov-dash { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-5); align-items: start; }
.ov-ana, .ov-plan { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.ov-sec-head { display: flex; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.ov-sec-title { font-size: var(--fs-18); font-weight: 600; letter-spacing: var(--ls-display); }
.ov-sec-sub { font-size: var(--fs-12); color: var(--ink-3); margin-top: 2px; }
.ov-sec-right { margin-left: auto; }

.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.ov-cell { padding: var(--s-4h) var(--s-5); min-width: 0; }
.ov-cell.is-wide { grid-column: 1 / -1; }
.ov-card-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.ov-card-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-cell); background: var(--bg-sunk); color: var(--ink-3); flex: none; }
.ov-card-title { font-size: var(--fs-14); font-weight: 600; letter-spacing: var(--ls-display); }
.ov-card-right { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
.ov-mini-title { font-size: var(--fs-11); color: var(--ink-4); margin: var(--s-4) 0 var(--s-2); }
.ov-when { font-size: var(--fs-11); color: var(--ink-4); margin-top: 2px; }
.ov-head { display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-3); }
.ov-head .eyebrow { gap: var(--s-2); }
.ov-card-right .link, .ov-head .link { margin-left: auto; }

.ov-legend { display: flex; gap: var(--s-3); font-size: var(--fs-11); color: var(--ink-3); flex-wrap: wrap; margin-top: var(--s-3); }
.ov-legend span { display: inline-flex; align-items: center; gap: var(--s-1); }
.ov-legend i { width: 8px; height: 8px; border-radius: var(--r-dot); flex: none; }
.k-new { background: color-mix(in srgb, var(--ink-4) 60%, var(--bg-sunk)); }
.k-done { background: var(--chart-1); }
.k-late { background: var(--urgent); }
.k-plan { background: color-mix(in srgb, var(--ink-3) 42%, var(--bg-sunk)); }
.k-focus { background: var(--chart-4); }
.k-open { background: color-mix(in srgb, var(--ink-4) 34%, var(--card)); }
.k-plain { background: transparent; }
.ov-sum { display: flex; gap: var(--s-3h); font-size: var(--fs-11); color: var(--ink-3); flex-wrap: wrap; }
.ov-sum b { color: var(--ink); font-weight: 500; margin-left: var(--s-hair); }

/* ---------- 柱状图（含分组柱 / 柱+线） ---------- */
.ov-plot { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.ov-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; height: 148px; padding-bottom: 20px;
  font-family: var(--font-mono); font-size: var(--fs-tick); color: var(--ink-4); flex: none; }
.ov-y b { font-weight: 500; color: var(--ink-3); }
.ov-bars { flex: 1; min-width: 0; display: flex; gap: var(--s-2); height: 168px; position: relative; padding-bottom: 20px; }
.ov-bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 1px; background: var(--line); }
.ov-col { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-sm); }
.ov-pair { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.ov-pair i { width: 100%; max-width: 13px; min-height: 2px; border-radius: var(--r-pill) var(--r-pill) var(--r-bar) var(--r-bar); transition: height var(--t-bar) var(--ease); }
.b-new { background: color-mix(in srgb, var(--ink-4) 60%, var(--bg-sunk)); }
.b-done { background: var(--chart-1); }
.b-late { background: var(--urgent); }
/* 计划时间用中性灰，让绿色专注线做主角；墨黑柱子会把整页最抢眼的位让给这张图。 */
.b-plan { background: color-mix(in srgb, var(--ink-3) 42%, var(--bg-sunk)); max-width: 22px; }
.b-focus { background: var(--chart-4); opacity: .72; }
.ov-x { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ink-4); height: 20px; display: flex; align-items: center; justify-content: center; }
.ov-col:hover .ov-x, .ov-col:focus-visible .ov-x { color: var(--ink); }
.ov-col:hover .ov-pair i, .ov-col:focus-visible .ov-pair i { filter: saturate(1.15) brightness(1.04); }
.ov-col:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ov-mixline { position: absolute; left: 0; right: 0; top: 0; height: calc(100% - 20px); width: 100%; pointer-events: none; }
.ov-ml { fill: none; stroke: var(--chart-4); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- 悬浮明细 ---------- */
.ov-tip { position: absolute; z-index: 14; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  display: none; padding: var(--s-2) var(--s-3); background: var(--chart-tooltip); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); font-size: var(--fs-11); color: var(--ink-2);
  pointer-events: none; white-space: nowrap; text-align: left; font-weight: 400; }
.ov-tip > b { display: block; color: var(--ink); font-size: var(--fs-12); margin-bottom: var(--s-1); }
.ov-tip ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ov-tip li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); }
.ov-tip li i { width: 7px; height: 7px; border-radius: var(--r-dot); }
.ov-tip li b { color: var(--ink); font-weight: 500; }
.ov-tip p { margin: var(--s-1h) 0 0; padding-top: var(--s-1); border-top: 1px solid var(--line); color: var(--ink-4); font-size: var(--fs-micro); }
.ov-col:hover > .ov-tip, .ov-col:focus-visible > .ov-tip,
.ov-hbar:hover > .ov-tip, .ov-hbar:focus-visible > .ov-tip,
.ov-dot:hover > .ov-tip, .ov-dot:focus-visible > .ov-tip { display: block; }
/* 两头的柱子别把明细顶出正文列 */
.ov-col:first-child > .ov-tip, .ov-hbar > .ov-tip { left: 0; transform: none; }
.ov-col:last-child > .ov-tip { left: auto; right: 0; transform: none; }
.ov-plot > .ov-bars { overflow: visible; }

/* ---------- 折线 ---------- */
.ov-line-wrap { position: relative; height: 178px; margin-top: var(--s-3); }
.ov-line-plot { position: absolute; left: 0; right: 0; top: 0; bottom: 22px; }
.ov-line { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ov-axis { stroke: var(--chart-grid); stroke-width: 1; }
.ov-avg { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ov-path { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ov-area { fill: color-mix(in srgb, var(--chart-1) 12%, transparent); stroke: none; }
.ov-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--card); border: 2px solid var(--chart-1); transition: transform var(--t-fast) var(--ease); }
.ov-dot.is-today { background: var(--chart-1); }
.ov-dot:hover, .ov-dot:focus-visible { transform: scale(1.06); }
.ov-dot:focus-visible { outline: none; }
.ov-line-x { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; }
.ov-line-x span { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ink-4); line-height: 20px; }

/* ---------- 半圆仪表 / 环 / 项目横向条 ---------- */
.ov-gauge { display: block; width: 100%; max-width: 190px; height: auto; margin: var(--s-2) auto 0; }
.ov-gauge-bg { fill: none; stroke: var(--bg-sunk); stroke-width: 11; stroke-linecap: round; }
.ov-gauge-fg { fill: none; stroke: var(--chart-1); stroke-width: 11; stroke-linecap: round; }
.ov-gauge-n { font-family: var(--font-mono); font-size: 22px; fill: var(--ink); text-anchor: middle; letter-spacing: var(--ls-num); }
.ov-gauge-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-1) var(--s-3); margin: var(--s-3) 0 0; list-style: none; padding: 0; font-size: var(--fs-12); }
.ov-gauge-list li { display: flex; align-items: baseline; gap: var(--s-2); justify-content: space-between; color: var(--ink-3); }
.ov-gauge-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-gauge-list b { color: var(--ink); font-weight: 500; }
.ov-gauge-list .is-warn span { color: var(--urgent); }
.ov-gauge-list .is-warn b { color: var(--urgent); }

.ov-hbars { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.ov-hbar { position: relative; display: grid; grid-template-columns: minmax(90px, 168px) minmax(0, 1fr) 34px; align-items: center; gap: var(--s-3); }
.ov-hbar-name { font-size: var(--fs-13); color: var(--ink-2); text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ov-hbar-name:hover { color: var(--primary-ink); }
.ov-hbar-track { display: flex; height: 10px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; }
.ov-hbar-track i { display: block; height: 100%; }
.ov-hbar-track .is-done { background: var(--chart-1); }
.ov-hbar-track .is-open { background: color-mix(in srgb, var(--ink-4) 34%, var(--card)); }
.ov-hbar-n { font-size: var(--fs-12); color: var(--ink-2); text-align: right; }
.ov-hbar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---------- 领域环 + 优先级 ---------- */
.ov-area-wrap { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-2); }
.ov-donut { width: 108px; height: 108px; flex: none; }
.ov-donut circle { transition: stroke-width var(--t-fast); }
.ov-donut circle:hover { stroke-width: 17; }
.ov-donut-n { font-family: var(--font-mono); font-size: 23px; fill: var(--ink); text-anchor: middle; letter-spacing: var(--ls-num); }
.ov-donut-l { font-size: 9px; fill: var(--ink-3); text-anchor: middle; }
.ov-legend-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-2h); }
.ov-legend-list a { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-2); color: inherit; text-decoration: none; font-size: var(--fs-13); }
.ov-legend-list i { width: 9px; height: 9px; border-radius: var(--r-dot); background: var(--area, var(--ink-4)); }
.ov-legend-list b { font-size: var(--fs-12); font-weight: 500; }
.ov-legend-list a:hover b { color: var(--primary-ink); }
.ov-prio { margin-top: var(--s-1); }
.ov-prio ul { display: flex; flex-direction: column; gap: var(--s-2h); margin: 0; padding: 0; list-style: none; }
.ov-prio li a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 26px; align-items: center; gap: var(--s-3); color: inherit; text-decoration: none; }
.ov-prio-label { font-size: var(--fs-12); color: var(--ink-2); }
.ov-prio-label.is-hot { color: var(--orange); font-weight: 500; }
.ov-prio-bar { height: 8px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; }
.ov-prio-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width var(--t-bar) var(--ease); }
.ov-prio a:hover .ov-prio-label { color: var(--ink); }

/* ---------- 右侧：迷你月历 ---------- */
.ov-pcard { display: flex; flex-direction: column; gap: var(--s-1); }
.ov-cal-tools { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.ov-cal-week, .ov-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-1); }
.ov-cal-week { margin-top: var(--s-2); }
.ov-cal-week span { text-align: center; font-size: var(--fs-micro); color: var(--ink-4); }
.ov-cal-grid { margin-top: var(--s-1); }
.ov-cell-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-1); height: 34px; border-radius: var(--r-cell); color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast); }
.ov-cell-day:hover { background: var(--bg-sunk); }
.ov-cell-day.is-out { opacity: .44; }
.ov-cell-day.is-sel { background: var(--primary); color: var(--card); }
.ov-cell-day.is-sel .ov-n { color: var(--card); background: transparent; }
.ov-n { font-family: var(--font-mono); font-size: var(--fs-12); line-height: 1; }
.ov-cell-day.is-today:not(.is-sel) .ov-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--card); }
.ov-dots { display: flex; gap: var(--s-0h); height: 4px; }
.ov-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--area, var(--ink-4)); }
.ov-cell-day.is-sel .ov-dots i { background: color-mix(in srgb, var(--card) 76%, transparent); }
.ov-dots i.is-done { background: var(--chart-1); }

/* ---------- 右侧：Upcoming 小时时间轴 ---------- */
.ov-day-tools { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.ov-tl { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.ov-tl-hours { position: relative; flex: none; width: 42px; }
.ov-tl-hours span { position: absolute; right: 0; transform: translateY(-50%); font-size: var(--fs-tick); color: var(--ink-4); line-height: 1; }
.ov-tl-plot { position: relative; flex: 1; min-width: 0; border-bottom: 1px solid var(--line); }
.ov-tl-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.ov-tl-card { position: absolute; display: flex; flex-direction: column; gap: 1px; align-items: flex-start; overflow: hidden;
  padding: var(--s-1) var(--s-2); text-align: left; border-radius: var(--r-sm); border: 1px solid transparent;
  border-left: 3px solid var(--area, var(--ink-4)); background: var(--area-soft, var(--bg-sunk)); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.ov-tl-card:hover { box-shadow: var(--shadow-1); border-color: var(--line-strong); border-left-color: var(--area, var(--ink-4)); }
.ov-tl-time { font-size: var(--fs-micro); color: var(--ink-3); }
.ov-tl-name { font-size: var(--fs-12); font-weight: 500; line-height: 1.25; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ov-tl-meta { font-size: var(--fs-micro); color: var(--ink-4); width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ov-tl-card.is-live { background: color-mix(in srgb, var(--chart-1) 13%, var(--card)); border-left-color: var(--chart-1); }
.ov-tl-card.is-hot { border-left-color: var(--orange); }
.ov-tl-card.is-done { opacity: .6; }
.ov-tl-card.is-done .ov-tl-name { text-decoration: line-through; text-decoration-color: var(--ink-4); }
.ov-untimed { margin-top: var(--s-2); }
.ov-untimed ul { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ov-ut-card { display: flex; align-items: baseline; gap: var(--s-2); width: 100%; padding: var(--s-2) var(--s-3); text-align: left;
  border-radius: var(--r-sm); border: 1px dashed var(--line-strong); background: var(--card); color: var(--ink); }
.ov-ut-card:hover { background: var(--bg-sunk); }
.ov-ut-card.is-done { opacity: .6; }
.ov-ut-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-13); }
.ov-ut-meta { flex: none; font-size: var(--fs-micro); color: var(--ink-4); }

/* ---------- 右侧：未来 4 天跨日期甘特 ---------- */
.ov-gant { display: flex; flex-direction: column; gap: var(--s-1); }
.ov-gant-head { display: grid; gap: var(--s-1); margin-bottom: var(--s-1h); }
.ov-gd { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: var(--s-1h) 0; border-radius: var(--r-sm); background: var(--bg-sunk); }
.ov-gd b { font-size: var(--fs-12); font-weight: 500; color: var(--ink-2); }
.ov-gd span { font-size: var(--fs-micro); color: var(--ink-4); }
.ov-gd.is-today { background: var(--primary); }
.ov-gd.is-today b, .ov-gd.is-today span { color: var(--card); }
.ov-grow { display: grid; gap: var(--s-1); }
.ov-bar { display: flex; align-items: center; gap: var(--s-2); min-width: 0; height: 32px; padding: 0 var(--s-2h); text-align: left; color: var(--ink);
  background: var(--area-soft, var(--bg-sunk)); border: 1px solid transparent; border-radius: var(--r-sm); transition: border-color var(--t-fast), background var(--t-fast); }
.ov-bar-mark { width: 3px; height: 16px; border-radius: var(--r-pill); background: var(--area, var(--ink-4)); flex: none; }
.ov-bar-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-12); }
.ov-bar-days { flex: none; font-size: var(--fs-micro); color: var(--ink-3); }
.ov-bar:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--area, var(--ink-3)) 20%, var(--card)); }
.ov-bar.is-live { background: color-mix(in srgb, var(--chart-1) 14%, var(--card)); border-color: color-mix(in srgb, var(--chart-1) 34%, transparent); }
.ov-bar.is-live .ov-bar-mark { background: var(--chart-1); }
.ov-bar.is-hot .ov-bar-mark { background: var(--orange); }
.ov-bar.is-done { opacity: .62; }
.ov-bar.is-done .ov-bar-text { text-decoration: line-through; text-decoration-color: var(--ink-4); }

/* ---------- 接下来推进 ---------- */
.ov-proj { display: flex; flex-direction: column; gap: var(--s-4); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.ov-proj li { display: grid; gap: 2px; }
.ov-proj-main { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 1fr) 40px; align-items: center; gap: var(--s-3); color: inherit; text-decoration: none; }
.ov-proj-name { font-size: var(--fs-13); font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ov-proj-bar { height: 6px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; }
.ov-proj-bar i { display: block; height: 100%; border-radius: inherit; background: var(--chart-1); transition: width var(--t-bar) var(--ease); }
.ov-proj-pct { font-size: var(--fs-12); color: var(--ink-2); text-align: right; }
.ov-proj-meta { font-size: var(--fs-11); }
.ov-proj-main:hover .ov-proj-name { color: var(--primary-ink); }

.ov-empty { padding: var(--s-6) var(--s-2); text-align: center; color: var(--ink-3); }
.ov-empty-title { color: var(--ink); font-weight: 500; font-size: var(--fs-14); margin-bottom: var(--s-1); }
.ov-empty .btn { margin-top: var(--s-3h); }
.ov-foot { margin-top: var(--s-3); }

/* 平板：双栏改成上下；桌面仍是主要设计目标 */
@media (max-width: 1240px) {
  .ov-dash { grid-template-columns: minmax(0, 1fr); }
}
/* 手机：KPI 变 2×2，图表单列 */
@media (max-width: 760px) {
  .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .ov-kpi { padding: var(--s-3h) var(--s-4); }
  .ov-kpi-num { font-size: var(--fs-26); }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .ov-area-wrap { flex-direction: column; align-items: flex-start; }
  .ov-hbar { grid-template-columns: minmax(70px, 1fr) minmax(0, 1.4fr) 30px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .set-hero[data-tone="busy"] .set-hero-dot { animation: none; }
  .set-tide[data-state="busy"]::after, .set-tide[data-state="pending"]::after { animation: none; opacity: .45; }
  .echo-rings i { animation: none; opacity: .3; }  .echo-rings i:nth-child(1) { transform: scale(.55); }
  .echo-rings i:nth-child(2) { transform: scale(.78); opacity: .2; }
  .echo-rings i:nth-child(3) { transform: scale(1); opacity: .12; }
  .dial-active { animation: none; opacity: .4; }
  .sea-wave, .be-wave { animation: none; }
  .sea-bottle, .be-bottle, .bb-art, .br-bottle, .bp-art, .bottle-return .br-art { animation: none; }
}

/* =========================================================
   Today · 产品化重做（主角层 / 活动路径 / 幽灵侧栏 / 完成章）
   层级规则：主列是白色舞台卡；右栏退成幽灵面板；
   数字是大字；路径卡是全页唯一的图形，给页面一个记忆点。
   ========================================================= */

/* ---- 主角层 ---- */
.today-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6);
  padding: var(--s-2) var(--s-1) var(--s-2);
}
.th-kicker { font-size: var(--fs-12); letter-spacing: var(--ls-caps); color: var(--ink-3); text-transform: uppercase; }
.th-title { font-size: var(--fs-32); font-weight: 600; letter-spacing: var(--ls-heading); line-height: 1.15; margin-top: var(--s-1h); }
.th-sub { font-size: var(--fs-13); color: var(--ink-3); margin-top: var(--s-1h); }
.th-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2h); flex: none; }
.th-num { text-align: right; line-height: 1; }
.th-num b { font-size: 54px; font-weight: 600; letter-spacing: var(--ls-num-lg); color: var(--accent); }
.th-num .th-unit { font-size: var(--fs-20); font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.th-num.is-over b { color: var(--orange); }
.th-num-label { display: block; font-size: var(--fs-12); color: var(--ink-3); margin-top: 6px; letter-spacing: var(--ls-micro); }
.th-actions { display: flex; gap: var(--s-1h); }

/* ---- 活动路径卡：全页的标志性视觉 ---- */
.path-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--card-shadow); padding: var(--s-3) var(--s-4) var(--s-1h);
  margin: var(--s-1) 0 var(--s-2);
}
.pc-svg { display: block; width: 100%; height: 128px; }
.pc-track { fill: none; stroke: var(--bg-sunk); stroke-width: 10; stroke-linecap: round; }
.pc-walk {
  fill: none; stroke: url(#pcGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: calc(1200 - var(--pc-len, 0));
  animation: pc-draw 1.3s var(--ease-soft) both;
}
.pc-md circle { transition: r .25s var(--spring), stroke-width .25s var(--spring); }
.pc-md:hover circle { r: 9; }
.pc-md-label { font-size: 12px; fill: var(--ink-2); font-weight: 500; }
.pc-md.is-done circle { fill: color-mix(in srgb, var(--done) 14%, var(--card)); }
.pc-now-halo { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .45; animation: pc-halo 2.8s var(--ease-soft) infinite; }
.pc-now { fill: var(--card); stroke: var(--accent); stroke-width: 3.5; }
.pc-cap { font-size: 12px; fill: var(--ink-4); font-family: var(--font-mono); }
.pc-cap-r { text-anchor: end; }
@keyframes pc-draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: calc(1200 - var(--pc-len, 0)); } }
@keyframes pc-halo { 0%, 100% { r: 11; opacity: .45; } 50% { r: 16; opacity: .12; } }

/* ---- 重点卡完成章：盖一枚带角度的圆章 ---- */
.focus-card.is-done::after {
  content: "✓"; position: absolute; top: var(--s-3); right: var(--s-3);
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--done); color: var(--done);
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  transform: rotate(-8deg) scale(1);
  animation: stamp-drop .5s var(--spring) both;
}
.focus-card.is-done .fc-top .check { display: none; } /* 有章就不再叠一个勾 */
@keyframes stamp-drop { 0% { transform: rotate(-30deg) scale(0); } 70% { transform: rotate(-4deg) scale(1.15); } 100% { transform: rotate(-8deg) scale(1); } }

/* ---- 幽灵侧栏：右栏退后一步，主列成为唯一舞台 ---- */
.today-rail .card {
  border: 0; box-shadow: none;
  background: color-mix(in srgb, var(--card) 62%, transparent);
}
.today-rail .card:hover { box-shadow: none; }
.today-rail .dial-card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); }

/* ---- 数字升格：预算与完成计数用大字 ---- */
.budget .bud-pct .mono { font-size: var(--fs-26); font-weight: 600; letter-spacing: var(--ls-num); color: var(--ink); }
.budget .bud-pct { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-2); }
.bud-total { margin-top: var(--s-2h); }
.bud-total b { font-size: var(--fs-20); }

@media (max-width: 1080px) {
  .today-hero { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .th-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* =========================================================
   全页面 · 层级体系铺开（v3 续）
   规则承袭 Today：主列白卡是舞台，侧栏退成幽灵面板，
   页头标题放大、副题变轻；各页共用同一套节奏。
   ========================================================= */

/* ---- 页头体系：所有页面共用 ---- */
.page-title { font-size: var(--fs-26); font-weight: 600; letter-spacing: var(--ls-heading); }
.page-sub { font-size: var(--fs-13); color: var(--ink-3); margin-top: 2px; }

/* ---- 幽灵侧栏：其余带 rail 的页面与 Today 同律 ---- */
.cal-rail .card, .life-rail .card, .focus-rail .card, .proj-side .card, .ai-actions .card, .goal-side .card {
  border: 0; box-shadow: none;
  background: color-mix(in srgb, var(--card) 62%, transparent);
}
.cal-rail .card:hover, .life-rail .card:hover, .focus-rail .card:hover, .proj-side .card:hover { box-shadow: none; }

/* ---- set-hero 横幅：标题回到无衬线体系，弱化老衬线气质 ---- */
.set-hero-title { font-family: var(--font-ui); font-weight: 600; letter-spacing: var(--ls-heading); font-size: var(--fs-20); }

/* ---- 头像插画：Gentle 下收敛一档饱和度，不再从薰衣草界面里跳出来 ---- */
[data-theme="gentle"] .avatar.has-art svg { filter: saturate(.78); }

/* ---- 大数字规范：统计类页面共用 ---- */
.stat-big { font-family: var(--font-mono); font-size: var(--fs-30); font-weight: 600; letter-spacing: var(--ls-num-lg); color: var(--ink); }
.stat-label { font-size: var(--fs-12); color: var(--ink-3); margin-top: 2px; letter-spacing: var(--ls-micro); }

/* =========================================================
   统计页特色化 · 洞察 / 专注 / 习惯（v3 续二）
   成绩单英雄条：四个大数字各自带一个领域色；
   所有柱状图弹起来、今天的柱子有渐变与光；
   热力格点可以摸（悬停放大、按下回弹）。
   ========================================================= */

/* ---- 本周成绩单 ---- */
.in-stats {
  grid-template-columns: repeat(4, 1fr);
  padding: var(--s-6) var(--s-2);
  background:
    radial-gradient(420px 120px at 12% 0%, color-mix(in srgb, var(--mint) 10%, transparent), transparent 70%),
    radial-gradient(420px 120px at 88% 0%, color-mix(in srgb, var(--lavender) 12%, transparent), transparent 70%),
    var(--card);
}
.in-stat { padding: 0 var(--s-5); border-left: 1px solid color-mix(in srgb, var(--lavender) 22%, transparent); }
.in-stat:first-child { border-left: 0; }
.in-stats .stat-num { font-family: var(--font-mono); font-size: var(--fs-32); font-weight: 600; letter-spacing: var(--ls-num-lg); line-height: 1.05; }
.in-stat:nth-child(1) .stat-num { color: var(--mint); }
.in-stat:nth-child(2) .stat-num { color: var(--lavender); }
.in-stat:nth-child(3) .stat-num { color: var(--orange); }
.in-stat:nth-child(4) .stat-num { color: var(--rose); }
.in-stats .stat-label { font-size: var(--fs-12); color: var(--ink-3); margin-top: 4px; letter-spacing: var(--ls-micro); }
.in-stats .delta {
  display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s-1h);
  font-size: var(--fs-12); padding: 2px 9px; border-radius: var(--r-pill); background: var(--bg-sunk);
}
.in-stats .delta.up { background: var(--done-soft); }

/* ---- 柱状图：弹起来 ---- */
.mb i, .hb i { transform-origin: bottom; animation: bar-rise .75s var(--spring) backwards; }
.mb:nth-child(1) i { animation-delay: .04s; } .mb:nth-child(2) i { animation-delay: .08s; }
.mb:nth-child(3) i { animation-delay: .12s; } .mb:nth-child(4) i { animation-delay: .16s; }
.mb:nth-child(5) i { animation-delay: .2s; } .mb:nth-child(6) i { animation-delay: .24s; }
.mb:nth-child(7) i { animation-delay: .28s; } .mb:nth-child(8) i { animation-delay: .32s; }
@keyframes bar-rise { from { transform: scaleY(0); } }
.mb i { transition: height var(--t-bar) var(--spring), filter .2s; }
.mb:hover i { filter: saturate(1.25) brightness(1.05); }
.mb.is-today i {
  background: linear-gradient(180deg, var(--lavender), var(--mint));
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--lavender) 60%, transparent);
}
.hb.is-best i {
  background: linear-gradient(180deg, var(--orange), var(--peach-soft));
  box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--orange) 55%, transparent);
}
.hb i, .mb i { border-radius: var(--r-pill) var(--r-pill) var(--r-bar) var(--r-bar); }

/* ---- 时间分配条：厚一点、圆角分段 ---- */
.area-split { height: 14px; gap: 3px; }
.area-split i { border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }

/* ---- 一句话结论：衬线引语配一道领域色左线 ---- */
.in-say { padding-left: var(--s-3h); border-left: 3px solid color-mix(in srgb, var(--lavender) 55%, transparent); }

/* ---- 习惯热力格点：可摸 ---- */
.hm-cell { border-radius: 6px; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); cursor: default; }
.hm-cell:hover { transform: scale(1.06); box-shadow: 0 2px 6px -2px rgba(96,102,150,.28); }
.hm-cell.is-today { box-shadow: 0 0 0 2px var(--accent); }

@media (max-width: 760px) {
  .in-stats { grid-template-columns: 1fr 1fr; gap: var(--s-4) 0; }
  .in-stat:nth-child(3) { border-left: 0; }
}
