/* ==========================================================
   小日子 · 温柔计划本
   ========================================================== */
:root {
  --bg: #FFF7F3;
  --bg2: #FFEFEA;
  --card: #FFFFFF;
  --ink: #5E4B55;
  --ink2: #92818A;
  --line: #F6E7EB;
  --pink: #FF9CB3;
  --pink-s: #FFE9EF;
  --lav: #C6B6FF;
  --lav-s: #EFEAFF;
  --mint: #93DEC2;
  --mint-s: #E6F8F0;
  --peach: #FFC7A8;
  --peach-s: #FFEEE2;
  --sky: #A6D2FF;
  --sky-s: #E7F2FF;
  --sun: #FFD485;
  --shadow: 0 10px 26px rgba(255, 156, 179, .16);
  --shadow-s: 0 4px 12px rgba(255, 156, 179, .12);
  --r: 22px;
  --r-s: 16px;
  --side-w: 250px;
}
[data-theme="night"] {
  --bg: #292238;
  --bg2: #322A44;
  --card: #382F4B;
  --ink: #F6EBF2;
  --ink2: #C3B3CE;
  --line: #463A5C;
  --pink: #FFA9C0;
  --pink-s: #4A3752;
  --lav: #CDBEFF;
  --lav-s: #433A5E;
  --mint: #9FE4C8;
  --mint-s: #2F4A44;
  --peach: #FFCFAE;
  --peach-s: #4C3B36;
  --sky: #B3D9FF;
  --sky-s: #33455C;
  --sun: #FFD98A;
  --shadow: 0 10px 26px rgba(0, 0, 0, .3);
  --shadow-s: 0 4px 12px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 10% -8%, var(--bg2), transparent 62%),
    radial-gradient(900px 460px at 92% 2%, var(--lav-s), transparent 58%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.7 "PingFang SC", "HarmonyOS Sans SC", "Yuanti SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--ink2); }

/* ==========================================================
   开屏动画
   ========================================================== */
.splash {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 50% at 50% 108%, #FFF3D6 0%, transparent 60%),
    linear-gradient(150deg, #FFD9E4 0%, #FFE9DC 40%, #E7DEFF 100%);
  transition: opacity .55s ease, transform .55s ease;
}
.splash.out { opacity: 0; transform: scale(1.08); pointer-events: none; }
.splash.gone { display: none; }

/* 背景云朵 */
.sp-clouds { position: absolute; inset: 0; overflow: hidden; }
.sp-clouds b {
  position: absolute; font-size: 34px; opacity: .55; white-space: nowrap;
  animation: sp-drift linear infinite;
}
@keyframes sp-drift {
  from { transform: translateX(-20vw); }
  to { transform: translateX(120vw); }
}

.sp-inner { text-align: center; position: relative; z-index: 2; }

/* 小家伙：弹跳 + 歪头 */
.sp-pet-wrap { position: relative; width: 150px; margin: 0 auto; }
.sp-pet {
  position: relative; display: inline-block;
  animation: sp-hop 1.15s cubic-bezier(.34, 1.4, .64, 1) infinite,
             sp-tilt 2.4s ease-in-out infinite;
}
.sp-face {
  font-size: 88px; line-height: 1; display: inline-block;
  animation: sp-pop .95s cubic-bezier(.34, 1.56, .64, 1) both, sp-blink 3.4s 1.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(255, 130, 165, .38));
}
@keyframes sp-pop {
  0% { transform: scale(.15) rotate(-40deg); opacity: 0; }
  55% { transform: scale(1.2) rotate(10deg); opacity: 1; }
  75% { transform: scale(.92) rotate(-4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes sp-hop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  18% { transform: translateY(-22px) scaleY(1.06); }
  36% { transform: translateY(0) scaleY(.94); }
  50% { transform: translateY(-6px) scaleY(1); }
}
@keyframes sp-tilt { 0%, 100% { rotate: -7deg; } 50% { rotate: 7deg; } }
@keyframes sp-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.82); } }

/* 腮红 */
.sp-blush {
  position: absolute; top: 52%; width: 15px; height: 9px; border-radius: 50%;
  background: #FF8FAB; opacity: .55; filter: blur(.5px);
  animation: sp-blush 1.15s ease-in-out infinite;
}
.sp-blush.l { left: 12px; } .sp-blush.r { right: 12px; }
@keyframes sp-blush { 0%, 100% { opacity: .35; transform: scale(1); } 40% { opacity: .7; transform: scale(1.15); } }

/* 头顶小闪 */
.sp-spark { position: absolute; font-size: 17px; animation: sp-twinkle 1.8s ease-in-out infinite; }
.sp-spark.a { left: -14px; top: 2px; }
.sp-spark.b { right: -14px; top: 14px; animation-delay: .6s; }
@keyframes sp-twinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0); }
  35% { opacity: 1; transform: scale(1.1) rotate(20deg); }
  70% { opacity: .2; transform: scale(.7) rotate(-15deg); }
}

/* 影子 */
.sp-shadow {
  width: 74px; height: 13px; border-radius: 50%; margin: 6px auto 0;
  background: rgba(255, 130, 165, .28); filter: blur(2px);
  animation: sp-shadow 1.15s cubic-bezier(.34, 1.4, .64, 1) infinite;
}
@keyframes sp-shadow {
  0%, 100% { transform: scaleX(1); opacity: .3; }
  18% { transform: scaleX(.72); opacity: .18; }
  36% { transform: scaleX(1.06); opacity: .34; }
}

/* 打招呼气泡 */
.sp-bubble {
  margin: 16px auto 0; display: inline-block; position: relative;
  background: #fff; color: #E2608A; font-size: 21px; font-weight: 800;
  padding: 10px 20px; border-radius: 22px 22px 22px 6px;
  box-shadow: 0 10px 22px rgba(255, 130, 165, .3);
  animation: sp-bub .6s .55s cubic-bezier(.34, 1.56, .64, 1) both, sp-bub-float 2.6s 1.2s ease-in-out infinite;
  max-width: 86vw;
}
.sp-bubble:empty { display: none; }
@keyframes sp-bub {
  from { opacity: 0; transform: translateY(12px) scale(.7); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sp-bub-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
.sp-bubble span {
  display: inline-block; opacity: 0; transform: translateY(10px) scale(.6);
  animation: sp-char .42s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
@keyframes sp-char { to { opacity: 1; transform: translateY(0) scale(1); } }
.sp-bubble .wd { animation-name: sp-char-w; }
@keyframes sp-char-w { to { opacity: 1; transform: translateY(-6px) scale(1.12); } }

.sp-sub { margin-top: 14px; font-size: 13.5px; color: #fff; opacity: .9; animation: fade .8s 1.1s both; }
@keyframes fade { from { opacity: 0; } to { opacity: .9; } }
.sp-bar { width: 190px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); margin: 16px auto 0; overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: #fff; animation: sp-load 2.1s .2s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes sp-load { to { width: 100%; } }

/* 上升的小花花 */
.sp-float { position: absolute; inset: 0; overflow: hidden; }
.sp-float b { position: absolute; bottom: -40px; opacity: 0; animation: sp-fly linear forwards; }
@keyframes sp-fly {
  0% { transform: translateY(0) rotate(0) scale(.6); opacity: 0; }
  12% { opacity: .95; transform: translateY(-6vh) rotate(30deg) scale(1); }
  100% { transform: translateY(-105vh) rotate(220deg) scale(.8); opacity: 0; }
}

.sp-skip {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-size: 12.5px; color: #fff; opacity: .75; animation: fade 1.4s both;
  cursor: pointer; user-select: none;
}
/* 退场：小家伙蹦走 */
.splash.out .sp-pet { animation: sp-bye .5s cubic-bezier(.4, 0, .6, 1) forwards; }
@keyframes sp-bye {
  to { transform: translateY(-160px) scale(.4) rotate(-25deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-pet, .sp-face, .sp-shadow, .sp-blush, .sp-spark, .sp-bubble, .sp-clouds b { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================
   布局：侧边栏 + 主区
   ========================================================== */
.app { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 12px;
  overflow: hidden auto; transition: width .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 30;
}
[data-theme="night"] .side { background: rgba(56, 47, 75, .8); }
.side.collapsed { width: 62px !important; }
.side.collapsed .me-txt,
.side.collapsed .nav-item span,
.side.collapsed .fn span,
.side.collapsed .d-title,
.side.collapsed .side-card { display: none; }
.side.collapsed .side-top { justify-content: center; }
.side.collapsed .nav-item,
.side.collapsed .fn { justify-content: center; padding: 10px 0; }
.side.collapsed .fold { transform: rotate(180deg); }
.no-anim { transition: none !important; }

.side-top { display: flex; align-items: center; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 22px; background: #fff; box-shadow: var(--shadow-s); cursor: pointer; transition: .2s;
}
[data-theme="night"] .avatar { background: #453A5C; }
.avatar:hover { transform: rotate(-10deg) scale(1.08); }
.me-txt { min-width: 0; flex: 1; }
#meName {
  border: 0; background: transparent; font-size: 15px; font-weight: 700; padding: 0;
  width: 100%; outline: none; color: var(--ink);
}
#meName:focus { border-bottom: 2px solid var(--pink); }
.me-sub { font-size: 11.5px; color: var(--ink2); }
.fold {
  border: 0; background: var(--bg2); color: var(--ink2); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; flex: none; font-size: 14px; transition: .25s;
}
[data-theme="night"] .fold { background: rgba(255, 255, 255, .1); }
.fold:hover { background: var(--pink-s); color: var(--pink); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: 14px; background: transparent; color: var(--ink2);
  font-size: 14px; transition: .18s; text-align: left;
}
.nav-item i { font-style: normal; font-size: 17px; flex: none; width: 22px; text-align: center; }
.nav-item:hover { background: var(--bg2); color: var(--ink); transform: translateX(2px); }
[data-theme="night"] .nav-item:hover { background: rgba(255, 255, 255, .07); }
.nav-item.is-active {
  background: linear-gradient(120deg, var(--pink-s), var(--lav-s));
  color: var(--pink); font-weight: 700;
}
.side-card {
  background: var(--card); border-radius: var(--r-s); padding: 12px;
  box-shadow: var(--shadow-s); font-size: 12.5px; color: var(--ink2);
}
.sc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sc-row:last-child { margin-bottom: 0; }
.sc-ring { position: relative; width: 46px; height: 46px; flex: none; }
.sc-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.sc-ring .bg { stroke: var(--line); }
.sc-ring .fg { stroke: var(--pink); transition: stroke-dasharray .5s; }
.sc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--ink); }
.sc-plant { font-size: 24px; }

.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.d-title { font-size: 11.5px; color: var(--ink2); font-weight: 700; margin: 4px 6px 8px; }
.fn {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink2); padding: 8px 12px; border-radius: 12px;
  font-size: 13px; transition: .18s; text-align: left;
}
.fn i { font-style: normal; font-size: 15px; flex: none; width: 22px; text-align: center; }
.fn:hover { background: var(--bg2); color: var(--ink); transform: translateX(2px); }
[data-theme="night"] .fn:hover { background: rgba(255, 255, 255, .07); }
.fn.danger:hover { background: var(--pink-s); color: var(--pink); }

/* 拖拽把手 */
.resizer {
  width: 8px; flex: none; cursor: col-resize; position: relative; z-index: 31;
  display: grid; place-items: center; touch-action: none;
}
.resizer span {
  width: 3px; height: 46px; border-radius: 999px; background: var(--line); transition: .18s;
}
.resizer:hover span, .resizer.dragging span { background: var(--pink); height: 90px; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing * { cursor: col-resize !important; }

/* 主区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 22px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 247, 243, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
[data-theme="night"] .topbar { background: rgba(41, 34, 56, .82); }
.tb-title h1 { font-size: 19px; }
.tb-title p { margin: 0; font-size: 12.5px; color: var(--ink2); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.content { padding: 18px 22px 90px; }

/* 入场动画 */
body.ready .content .card { animation: rise .5s cubic-bezier(.34, 1.4, .64, 1) both; }
body.ready .content .card:nth-child(1) { animation-delay: .02s; }
body.ready .content .card:nth-child(2) { animation-delay: .09s; }
body.ready .content .card:nth-child(3) { animation-delay: .16s; }
body.ready .content .card:nth-child(4) { animation-delay: .23s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--r); padding: 18px;
  box-shadow: var(--shadow-s); margin-bottom: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { font-size: 15.5px; }
.card-head .sub { font-size: 12px; color: var(--ink2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.round-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .8); color: var(--ink); font-size: 16px;
  display: grid; place-items: center; box-shadow: var(--shadow-s); transition: .18s; flex: none;
}
[data-theme="night"] .round-btn { background: rgba(255, 255, 255, .1); }
.round-btn:hover { transform: translateY(-2px); }

@keyframes wave { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg) translateY(-3px); } }

/* ==========================================================
   清单卡头上那一小条：问候 + 隐式进度条 + 萌萌小图标
   ========================================================== */
.lhero {
  position: relative; z-index: 5;
  margin: -18px -18px 15px; padding: 13px 16px 12px;
  border-radius: var(--r) var(--r) 16px 16px; color: #fff; overflow: visible;
  background: linear-gradient(135deg, #FFB3C6, #FFC6A8 48%, #C9BCFF);
  box-shadow: 0 10px 22px rgba(255, 150, 175, .22);
  animation: hero-in .45s cubic-bezier(.34, 1.4, .64, 1) both;
}
@keyframes hero-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } }
.lhero::after {
  content: "🌷"; position: absolute; right: 14px; top: -14px;
  font-size: 56px; opacity: .2; pointer-events: none;
}
.hero-row { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.hero-hi { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hi-face { font-size: 22px; display: inline-block; animation: wave 2.4s ease-in-out infinite; }
.hi-txt { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.hero-ico {
  position: relative; border: 0; cursor: pointer; height: 34px; min-width: 34px; padding: 0 11px;
  border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px; transition: .18s;
}
.hero-ico:hover { background: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.hero-ico.on { background: #fff; color: #E2608A; font-weight: 700; }
.hero-ico i { font-style: normal; font-size: 15px; }
.hero-ico .badge {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #fff; color: #E2608A; font-size: 10px; font-style: normal;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.hero-ico.ring { width: 38px; height: 38px; padding: 0; justify-content: center; }
.hero-ico.ring svg { position: absolute; inset: 0; width: 38px; height: 38px; transform: rotate(-90deg); }
.hero-ico.ring circle { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.hero-ico.ring .bg { stroke: rgba(255, 255, 255, .35); }
.hero-ico.ring .fg { stroke: #fff; transition: stroke-dasharray .5s; }
.hero-ico.ring b { position: relative; font-size: 11.5px; font-weight: 800; }

/* 隐式进度条：平时隐隐约约，鼠标靠近才清晰 */
.hero-bar {
  position: relative; height: 7px; margin-top: 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); cursor: pointer; transition: .25s;
}
.hero-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: rgba(255, 255, 255, .5); transition: width .5s ease, background .25s;
}
.lhero:hover .hero-bar { background: rgba(255, 255, 255, .34); }
.lhero:hover .hero-bar i { background: rgba(255, 255, 255, .88); }
.hero-bar .fl {
  position: absolute; top: -10px; font-size: 13px; opacity: .5;
  transform: translateX(-50%); transition: left .5s ease, opacity .25s;
}
.lhero:hover .hero-bar .fl { opacity: 1; }

/* 展开的小面板 */
.hero-pops { position: relative; z-index: 3; height: 0; }
.hero-pop {
  position: absolute; right: 0; top: 10px; width: 268px; max-height: 62vh; overflow: auto;
  background: var(--card); color: var(--ink); border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(80, 50, 70, .28); animation: hp-in .2s ease;
}
.hero-pop.wide { width: 302px; }
@keyframes hp-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.pop-h { font-size: 12.5px; color: var(--ink2); font-weight: 700; margin-bottom: 8px; }
.pop-h2 { font-size: 12px; color: var(--ink2); margin: 12px 0 6px; }
.pop-empty { text-align: center; font-size: 12.5px; color: var(--ink2); padding: 10px 0; }
.pop-empty span { display: block; font-size: 26px; margin-bottom: 4px; }

/* 日期面板 */
.dp-quick { display: flex; gap: 6px; }
.dp-quick button {
  flex: 1; border: 0; cursor: pointer; border-radius: 12px; padding: 7px 4px;
  font-size: 12.5px; background: var(--bg2); color: var(--ink2); transition: .18s;
}
.dp-quick button:hover { background: var(--pink-s); color: var(--pink); }
.dp-quick button.on { background: var(--pink); color: #fff; font-weight: 700; }
.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.dp-week button {
  border: 0; cursor: pointer; background: var(--bg2); border-radius: 11px; padding: 5px 0;
  font-size: 10.5px; color: var(--ink2); display: flex; flex-direction: column; align-items: center;
  gap: 1px; transition: .18s;
}
.dp-week button b { font-size: 13px; color: var(--ink); }
.dp-week button:hover { background: var(--pink-s); }
.dp-week button.on { background: var(--pink); color: #fff; }
.dp-week button.on b { color: #fff; }
.dp-week button.today b { color: var(--pink); }
.dp-week button.today.on b { color: #fff; }
.dp-pick { margin-top: 10px; }
.dp-foot { margin-top: 9px; text-align: center; }
.dp-tip { font-size: 11.5px; color: var(--ink2); text-align: center; margin-top: 8px; }

/* 进度面板 */
.pp-now { display: flex; align-items: baseline; gap: 8px; }
.pp-now .big { font-size: 30px; font-weight: 800; color: var(--pink); line-height: 1; }
.pp-now .s { font-size: 12.5px; color: var(--ink2); }
.pp-bar { height: 9px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 9px 0 2px; }
.pp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--lav)); transition: width .5s; }
.pp-days { display: flex; gap: 5px; align-items: flex-end; height: 76px; }
.pp-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.pp-day .col {
  width: 100%; height: 56px; min-height: 6px; border-radius: 7px; background: var(--bg2);
  position: relative; transition: .3s;
}
.pp-day .col i {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: 7px;
  background: linear-gradient(180deg, var(--pink), var(--lav)); transition: height .4s;
}
.pp-day .col .fc { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 12px; }
.pp-day .lb { font-size: 10.5px; color: var(--ink2); }
.pp-day.today .lb { color: var(--pink); font-weight: 700; }
.pp-sum { margin-top: 10px; font-size: 12px; color: var(--ink2); text-align: center; }

/* 心愿面板 */
.wp-item {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; cursor: pointer;
  background: var(--bg2); border-radius: 13px; padding: 8px 10px; margin-bottom: 6px;
  text-align: left; transition: .18s;
}
[data-theme="night"] .wp-item { background: rgba(255, 255, 255, .07); }
.wp-item:hover { transform: translateX(3px); background: var(--pink-s); }
.wp-item .ico { font-size: 16px; flex: none; }
.wp-item .t {
  flex: 1; min-width: 0; font-size: 13px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wp-item .d { font-size: 11.5px; color: var(--pink); font-weight: 700; flex: none; }
.wp-more {
  display: block; width: 100%; margin-top: 8px; border: 0; cursor: pointer;
  background: var(--lav-s); color: #7A67C7; border-radius: 12px; padding: 7px; font-size: 12.5px;
}
[data-theme="night"] .wp-more { color: var(--lav); }

/* ---------- 清单（主体） ---------- */
.list-card { padding-bottom: 14px; }
.add-row { display: flex; gap: 8px; margin-bottom: 12px; }
.add-row input {
  border: 1.5px dashed var(--pink); background: var(--bg2); border-radius: 14px;
  padding: 11px 14px; outline: none; flex: 1; transition: .18s;
}
[data-theme="night"] .add-row input { background: rgba(255, 255, 255, .06); }
.add-row input:focus { box-shadow: 0 0 0 3px var(--pink-s); }

.tlist { display: flex; flex-direction: column; gap: 9px; }
.task {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border-radius: var(--r-s); background: var(--bg2); transition: .18s; position: relative;
}
[data-theme="night"] .task { background: rgba(255, 255, 255, .05); }
.task:hover { transform: translateY(-1px); box-shadow: var(--shadow-s); }
.task.done { opacity: .55; }
.task.done .t-title { text-decoration: line-through; }
.task.dragging { opacity: .35; transform: scale(.98); }
.task.drop-hint { box-shadow: 0 -3px 0 var(--pink) inset; }
.grip { cursor: grab; color: var(--ink2); font-size: 15px; padding: 2px 2px 0 0; opacity: .35; flex: none; }
.task:hover .grip { opacity: 1; }
.tick {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pink);
  background: transparent; cursor: pointer; flex: none; padding: 0; margin-top: 1px;
  display: grid; place-items: center; color: #fff; transition: .2s;
}
.tick::after { content: "✓"; font-size: 14px; opacity: 0; }
.task.done .tick { background: var(--mint); border-color: var(--mint); animation: pop-t .4s; }
@keyframes pop-t { 50% { transform: scale(1.25); } }
.task.done .tick::after { opacity: 1; }
.t-main { flex: 1; min-width: 0; }
.t-title { font-size: 15px; font-weight: 600; word-break: break-word; }
.t-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--ink2); align-items: center; }
.t-note { font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.t-act { display: flex; gap: 2px; opacity: .4; transition: .18s; }
.task:hover .t-act { opacity: 1; }
.ico-btn { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 4px 6px; border-radius: 10px; }
.ico-btn:hover { background: rgba(255, 255, 255, .6); }
[data-theme="night"] .ico-btn:hover { background: rgba(255, 255, 255, .1); }

.chip { padding: 1px 9px; border-radius: 999px; font-size: 11.5px; background: var(--lav-s); color: #7A67C7; }
[data-theme="night"] .chip { color: var(--lav); }
.chip.high { background: var(--pink-s); color: var(--pink); }
.chip.low { background: var(--mint-s); color: #4FA98A; }
[data-theme="night"] .chip.low { color: var(--mint); }

.empty { text-align: center; padding: 24px 10px; color: var(--ink2); font-size: 13.5px; }
.empty .face { font-size: 34px; display: block; margin-bottom: 6px; animation: wave 2.6s ease-in-out infinite; }

/* 心情 / 小确幸 */
.mood-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.mood-chip {
  border: 0; cursor: pointer; background: var(--bg2); color: var(--ink2);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; transition: .18s;
}
[data-theme="night"] .mood-chip { background: rgba(255, 255, 255, .07); }
.mood-chip:hover { transform: translateY(-2px); }
.mood-chip.on { background: var(--pink-s); color: var(--pink); font-weight: 700; }

.pop {
  position: absolute; z-index: 60; right: 22px; top: 62px;
  background: var(--card); border-radius: var(--r-s); padding: 14px 16px;
  box-shadow: var(--shadow); display: none; animation: pop2 .2s ease;
}
.pop.show { display: block; }
@keyframes pop2 { from { transform: translateY(-6px); opacity: 0; } }
.pop-title { font-size: 12.5px; color: var(--ink2); margin-bottom: 8px; }
.mood-row { display: flex; gap: 8px; }
.mood-row button {
  border: 0; background: var(--bg2); border-radius: 14px; padding: 8px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 22px;
  transition: .18s; color: var(--ink2);
}
[data-theme="night"] .mood-row button { background: rgba(255, 255, 255, .07); }
.mood-row button span { font-size: 11px; }
.mood-row button:hover { transform: translateY(-3px); background: var(--pink-s); }
.mood-row button.on { background: var(--pink-s); box-shadow: 0 0 0 2px var(--pink) inset; }
.mood-row.small button { font-size: 20px; padding: 6px 12px; }

/* ==========================================================
   小花园 · 养成系统
   ========================================================== */
/* 首页速览卡 */
.garden-teaser {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: linear-gradient(120deg, #FFF4E9, #FFEAF2 58%, #EFEAFF);
  position: relative; overflow: hidden;
}
[data-theme="night"] .garden-teaser { background: linear-gradient(120deg, #3A3348, #43364F 58%, #3B3457); }
.garden-teaser::after {
  content: ""; position: absolute; right: -30px; bottom: -46px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255, 255, 255, .35); pointer-events: none;
}
[data-theme="night"] .garden-teaser::after { background: rgba(255, 255, 255, .05); }
.gt-left { flex: 1; min-width: 0; position: relative; z-index: 1; }
.gt-title { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.gt-title em {
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .8); color: var(--pink);
}
[data-theme="night"] .gt-title em { background: rgba(255, 255, 255, .12); }
.gt-sub { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.gt-dots { font-size: 19px; letter-spacing: 3px; margin-top: 6px; }
.gt-right { text-align: right; position: relative; z-index: 1; }
.gt-drop { font-size: 13px; color: var(--ink2); }
.gt-drop b { font-size: 19px; color: var(--ink); margin-left: 2px; }
.gt-go { font-size: 12px; color: var(--pink); font-weight: 700; margin-top: 4px; }

/* 花园主卡 */
.garden-main { padding: 0; overflow: hidden; }
.gd-sky {
  position: relative; height: 122px; padding: 14px 18px 0;
  background: linear-gradient(180deg, #CFEDFF 0%, #E7F6FF 46%, #FFF6E8 100%);
  transition: background .6s ease;
}
[data-theme="night"] .gd-sky { background: linear-gradient(180deg, #2B2440 0%, #3A2F52 60%, #4A3A56 100%); }
.garden-main[data-w="star"] .gd-sky { background: linear-gradient(180deg, #3B3260 0%, #5B4470 55%, #8A5F72 100%); }
.garden-main[data-w="rain"] .gd-sky { background: linear-gradient(180deg, #BBD4E4 0%, #D9E6EF 55%, #F3F1E9 100%); }
.garden-main[data-w="wind"] .gd-sky { background: linear-gradient(180deg, #D7F0E4 0%, #EAF7F0 50%, #FFF7E9 100%); }
[data-theme="night"] .garden-main[data-w] .gd-sky { filter: brightness(.82) saturate(.9); }

.gd-hud { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.gd-lv {
  display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 5px;
  background: rgba(255, 255, 255, .72); border-radius: 999px; backdrop-filter: blur(4px);
  font-size: 12.5px; font-weight: 700; color: var(--ink2);
}
[data-theme="night"] .gd-lv { background: rgba(255, 255, 255, .12); }
.gd-lv b {
  font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: var(--pink); color: #fff; letter-spacing: .02em;
}
.gd-drops {
  display: flex; align-items: baseline; gap: 4px; padding: 4px 12px;
  background: rgba(255, 255, 255, .78); border-radius: 999px; backdrop-filter: blur(4px);
  font-size: 12px; color: var(--ink2);
}
[data-theme="night"] .gd-drops { background: rgba(255, 255, 255, .12); }
.gd-drops b { font-size: 17px; color: #3FA9C9; }
.gd-weather {
  margin-top: 8px; font-size: 12px; color: #7C8A94; position: relative; z-index: 3;
  display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .5);
}
[data-theme="night"] .gd-weather { color: #D6C9DC; background: rgba(255, 255, 255, .08); }

/* 云 */
.gd-cloud {
  position: absolute; width: 52px; height: 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); filter: blur(.3px); z-index: 1;
}
.gd-cloud::before, .gd-cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.gd-cloud::before { width: 26px; height: 26px; left: 8px; top: -12px; }
.gd-cloud::after { width: 18px; height: 18px; right: 9px; top: -8px; }
.gd-cloud.a { top: 26px; left: -60px; animation: cloudDrift 34s linear infinite; }
.gd-cloud.b { top: 52px; left: -110px; transform: scale(.72); opacity: .8; animation: cloudDrift 46s linear 6s infinite; }
.gd-cloud.c { top: 14px; left: -180px; transform: scale(1.15); opacity: .55; animation: cloudDrift 58s linear 14s infinite; }
@keyframes cloudDrift { to { left: 115%; } }
[data-theme="night"] .gd-cloud { background: rgba(255, 255, 255, .18); }

/* 雨 */
.gd-rain { position: absolute; inset: 0; opacity: 0; transition: .4s; pointer-events: none; z-index: 2; }
.garden-main[data-w="rain"] .gd-rain { opacity: 1; }
.gd-rain i {
  position: absolute; top: -14px; width: 1.5px; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(120, 170, 200, .75));
  animation: rainFall 1.1s linear infinite;
}
@keyframes rainFall { to { transform: translateY(140px); opacity: 0; } }

/* 土壤 + 地块 */
.gd-soil {
  position: relative; padding: 18px 18px 16px;
  background:
    radial-gradient(120% 80% at 50% 0%, #F3DCC4 0%, #E9CBAE 40%, #DFBB9B 100%);
  border-top: 3px solid #F7E6D3;
}
[data-theme="night"] .gd-soil { background: radial-gradient(120% 80% at 50% 0%, #4A3A46 0%, #3E3040 45%, #342838 100%); border-top-color: #55424F; }
.gd-soil::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: repeating-linear-gradient(90deg, rgba(120, 160, 100, .22) 0 2px, transparent 2px 9px);
  mask-image: linear-gradient(180deg, transparent, #000);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}
.gd-plots {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  position: relative; z-index: 2;
}
@media (max-width: 720px) { .gd-plots { grid-template-columns: repeat(3, 1fr); } }

.plot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 10px 6px 8px; min-height: 96px; cursor: pointer;
  border-radius: 18px; border: 0; font: inherit;
  background: linear-gradient(180deg, #FBEEDC, #F1DBC0);
  box-shadow: inset 0 -3px 0 rgba(180, 140, 105, .22), 0 4px 10px rgba(150, 110, 80, .12);
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), box-shadow .18s;
}
[data-theme="night"] .plot { background: linear-gradient(180deg, #55434F, #453645); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.plot:hover { transform: translateY(-3px); box-shadow: inset 0 -3px 0 rgba(180, 140, 105, .22), 0 10px 18px rgba(150, 110, 80, .2); }
.plot:active { transform: translateY(0) scale(.98); }
.plot.empty {
  background: transparent; border: 2px dashed rgba(160, 125, 95, .35);
  box-shadow: none; color: rgba(140, 105, 80, .7);
}
[data-theme="night"] .plot.empty { border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .45); }
.pl-plus { font-size: 22px; line-height: 1; }
.pl-hint { font-size: 10.5px; }
.pl-emo { font-size: 32px; line-height: 1.1; animation: plantSway 3.4s ease-in-out infinite; }
@keyframes plantSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-2px); } }
.plot.s2 .pl-emo { animation: bloomPop 2.6s ease-in-out infinite; font-size: 34px; }
@keyframes bloomPop { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.09) rotate(2deg); } }
.pl-name { font-size: 10.5px; color: #8C6A52; font-weight: 700; }
[data-theme="night"] .pl-name { color: #E4D3C6; }
.pl-bar { width: 76%; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .55); overflow: hidden; }
[data-theme="night"] .pl-bar { background: rgba(255, 255, 255, .16); }
.pl-bar i { display: block; height: 100%; border-radius: 999px; background: var(--pc, var(--pink)); transition: width .35s ease; }
.pl-tag { font-size: 9.5px; color: rgba(130, 95, 70, .85); }
[data-theme="night"] .pl-tag { color: rgba(255, 255, 255, .55); }
.plot.s2 { box-shadow: inset 0 -3px 0 rgba(180, 140, 105, .2), 0 0 0 2px rgba(255, 255, 255, .8), 0 6px 18px rgba(255, 170, 200, .35); }
.plot.pop { animation: plotPop .42s cubic-bezier(.34, 1.5, .64, 1); }
@keyframes plotPop { 0% { transform: scale(1); } 45% { transform: scale(1.07) translateY(-3px); } 100% { transform: scale(1); } }

/* 小园丁 */
.gd-pet { display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; margin-top: 14px; position: relative; z-index: 3; }
.gd-say {
  max-width: 260px; font-size: 11.5px; line-height: 1.5; color: #6B5A50;
  background: rgba(255, 255, 255, .92); border-radius: 14px 14px 4px 14px;
  padding: 7px 11px; box-shadow: 0 6px 16px rgba(150, 110, 80, .18);
}
[data-theme="night"] .gd-say { background: rgba(255, 255, 255, .14); color: #F0E4EC; }
.gd-rabbit {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #fff, #FFEAF1);
  box-shadow: 0 6px 16px rgba(180, 120, 140, .25), inset 0 -3px 0 rgba(255, 190, 210, .5);
  animation: petBob 2.8s ease-in-out infinite;
}
[data-theme="night"] .gd-rabbit { background: radial-gradient(circle at 35% 30%, #5C4B60, #4A3B4F); }
@keyframes petBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.gd-rabbit .blush {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 160, 190, .5); animation: petGlow 2.8s ease-out infinite;
}
@keyframes petGlow { 0% { box-shadow: 0 0 0 0 rgba(255, 160, 190, .45); } 70% { box-shadow: 0 0 0 12px rgba(255, 160, 190, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 160, 190, 0); } }

/* 等级条 */
.gd-foot { padding: 12px 18px 16px; background: var(--card); }
.gd-bar { height: 8px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
[data-theme="night"] .gd-bar { background: rgba(255, 255, 255, .09); }
.gd-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--lav)); transition: width .5s ease; }
.gd-bar-txt { font-size: 11.5px; color: var(--ink2); margin-top: 6px; }
.gd-bar-txt b { color: var(--pink); }
.gd-quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gd-quick .soft-btn { font-size: 12.5px; padding: 6px 14px; }
.gd-split { height: 1px; background: var(--line); margin: 16px 0 14px; }

/* 种子小铺 */
.seed-row { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.seed {
  flex: none; width: 84px; padding: 10px 6px 9px; cursor: pointer; position: relative;
  border-radius: 16px; border: 1.5px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: .18s; font: inherit;
}
.seed:hover { transform: translateY(-3px); border-color: var(--pink); }
.seed.poor { opacity: .55; }
.seed.got { background: linear-gradient(180deg, var(--card), var(--pink-s)); }
.sd-emo { font-size: 24px; }
.sd-n { font-size: 11.5px; font-weight: 700; }
.sd-c { font-size: 10.5px; color: var(--ink2); }
.sd-got {
  position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 9.5px;
  background: var(--pink); color: #fff; padding: 1px 6px; border-radius: 999px;
}

/* 图鉴 */
.dex-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 9px; }
.dex {
  text-align: center; padding: 10px 4px 8px; border-radius: 15px;
  background: var(--bg2); opacity: .5; filter: grayscale(.7); transition: .2s;
}
.dex.on { opacity: 1; filter: none; background: linear-gradient(180deg, var(--pink-s), var(--lav-s)); }
.dx-emo { font-size: 23px; line-height: 1.2; }
.dx-n { font-size: 11.5px; font-weight: 700; }
.dx-c { font-size: 10px; color: var(--ink2); }

/* 徽章 */
.badge-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
.badge {
  padding: 9px 8px; border-radius: 15px; text-align: center;
  background: var(--bg2); opacity: .45; filter: grayscale(.85); transition: .2s;
}
.badge.on {
  opacity: 1; filter: none; background: linear-gradient(160deg, #FFF9E9, var(--pink-s));
  box-shadow: inset 0 0 0 1.5px rgba(255, 180, 200, .5);
}
[data-theme="night"] .badge.on { background: linear-gradient(160deg, #4A3E4E, #4A3752); }
.bd-e { font-size: 21px; }
.bd-n { font-size: 11.5px; font-weight: 700; margin-top: 1px; }
.bd-d { font-size: 9.5px; color: var(--ink2); line-height: 1.4; margin-top: 2px; }

/* 重复频率 */
.chip.rep { background: var(--mint-s); color: #3F9A7C; }
[data-theme="night"] .chip.rep { color: var(--mint); }
.rep-row { display: flex; gap: 7px; flex-wrap: wrap; }
.rep-row button {
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; transition: .18s; font-family: inherit;
}
.rep-row button:hover { transform: translateY(-2px); }
.rep-row button.on { background: var(--mint-s); border-color: var(--mint); color: #3F9A7C; font-weight: 700; }
[data-theme="night"] .rep-row button.on { color: var(--mint); }
.rep-every { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 13px; color: var(--ink2); }
.rep-every.hidden { display: none; }
.rep-every input { width: 62px; padding: 6px 8px; text-align: center; }
.rep-every select { padding: 6px 8px; }
.rep-hint { margin-top: 8px; font-size: 11.5px; color: var(--ink2); }
.rep-hint b { color: var(--ink); }

/* ---------- 日历 ---------- */
.pill-row { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.pill { border: 0; cursor: pointer; padding: 6px 16px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: 13px; transition: .18s; }
[data-theme="night"] .pill { background: rgba(255, 255, 255, .07); }
.pill.on { background: var(--pink); color: #fff; font-weight: 700; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.cal-head b { font-size: 17px; min-width: 140px; text-align: center; }
.cal-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cal-tip { font-size: 12px; color: var(--ink2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--ink2); padding: 4px 0; }
.cell {
  position: relative;
  border: 0; cursor: pointer; border-radius: 15px; padding: 7px 5px 9px; min-height: 76px;
  background: var(--bg2); display: flex; flex-direction: column; align-items: center; gap: 3px; transition: .18s;
}
[data-theme="night"] .cell { background: rgba(255, 255, 255, .05); }
.cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.cell.out { opacity: .4; }
.cell.today { background: var(--pink-s); }
.cell.sel { box-shadow: 0 0 0 2.5px var(--pink); }
.cell .num { font-size: 13.5px; font-weight: 700; }
.cell.today .num { color: var(--pink); }
.cell .dots { display: flex; gap: 3px; }
.cell .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lav); }
.cell .dots i.d { background: var(--mint); }
.cell .mini { font-size: 10.5px; color: var(--ink2); }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wcol { background: var(--bg2); border-radius: var(--r-s); padding: 10px 8px; min-height: 150px; cursor: pointer; transition: .18s; }
[data-theme="night"] .wcol { background: rgba(255, 255, 255, .05); }
.wcol:hover { transform: translateY(-2px); }
.wcol.today { background: var(--pink-s); }
.wcol.sel { box-shadow: 0 0 0 2.5px var(--pink); }
.wcol .wd { font-size: 12px; color: var(--ink2); text-align: center; margin-bottom: 6px; }
.wcol .wd b { display: block; font-size: 15px; color: var(--ink); }
.witem { font-size: 11.5px; background: var(--card); border-radius: 9px; padding: 4px 7px; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-theme="night"] .witem { background: rgba(255, 255, 255, .1); }
.witem.done { opacity: .5; text-decoration: line-through; }

/* ---------- 复盘 ---------- */
.letter { border-radius: var(--r); padding: 18px; margin-bottom: 14px; background: linear-gradient(160deg, var(--lav-s), var(--sky-s)); box-shadow: var(--shadow-s); }
.letter-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.letter-top .face { font-size: 26px; }
.letter-top .when { font-size: 13.5px; font-weight: 700; }
.letter-top .sub { font-size: 12px; color: var(--ink2); }
.letter-body { font-size: 13.5px; white-space: pre-wrap; }
.letter-body p { margin: 0 0 8px; }
.letter-body .lb { font-size: 12px; color: var(--ink2); display: block; margin-bottom: 2px; }
.next-line { margin-top: 10px; background: rgba(255, 255, 255, .6); border-radius: 14px; padding: 8px 12px; font-size: 13px; }
[data-theme="night"] .next-line { background: rgba(255, 255, 255, .08); }
.letter-act { display: flex; gap: 4px; margin-left: auto; }

/* ---------- 心愿日 ---------- */
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
/* 嵌在日历卡里：留够呼吸，别挤成一条 */
#memoZone .wish-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
#memoZone .wish, #memoZone .wrow { box-shadow: none; background: var(--bg2); }
[data-theme="night"] #memoZone .wish, [data-theme="night"] #memoZone .wrow { background: rgba(255, 255, 255, .05); }
#memoZone .wmini { background: var(--bg2); }
[data-theme="night"] #memoZone .wmini { background: rgba(255, 255, 255, .05); }
/* 有纪念日的日期格：右上角点个小红点 */
.cell.has-memo::after {
  content: ""; position: absolute; right: 7px; top: 7px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--pink);
}
.wish { border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-s); background: var(--card); position: relative; overflow: hidden; }
.wish::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.wish.c-pink::before { background: var(--pink); }
.wish.c-lav::before { background: var(--lav); }
.wish.c-mint::before { background: var(--mint); }
.wish.c-peach::before { background: var(--peach); }
.wish.c-sky::before { background: var(--sky); }
.wish .ico { font-size: 24px; }
.wish .dd { font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 6px; }
.wish .dd small { font-size: 12px; font-weight: 500; color: var(--ink2); margin-left: 4px; }
.wish .wt { font-size: 14px; font-weight: 700; }
.wish .wm { font-size: 12px; color: var(--ink2); }
.wbar { height: 7px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin: 10px 0 6px; }
[data-theme="night"] .wbar { background: rgba(255, 255, 255, .08); }
.wbar i { display: block; height: 100%; border-radius: 999px; }
.wish .wf { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink2); gap: 8px; }
.wish-act { position: absolute; right: 10px; top: 10px; display: flex; gap: 2px; opacity: .35; transition: .18s; }
.wish:hover .wish-act { opacity: 1; }
.wish-det { margin-top: 10px; font-size: 12.5px; color: var(--ink2); background: var(--bg2); border-radius: 12px; padding: 8px 11px; }
[data-theme="night"] .wish-det { background: rgba(255, 255, 255, .06); }
.wish-det .k { color: var(--ink); font-weight: 700; }

/* ---------- 心愿：展示样式切换 ---------- */
.wish-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.vswitch {
  display: inline-flex; gap: 3px; background: var(--card); padding: 4px;
  border-radius: 999px; box-shadow: var(--shadow-s);
}
.vswitch button {
  border: 0; cursor: pointer; background: transparent; border-radius: 999px; padding: 6px 13px;
  font-size: 12.5px; color: var(--ink2); display: inline-flex; align-items: center; gap: 5px; transition: .18s;
}
.vswitch button i { font-style: normal; font-size: 13px; }
.vswitch button:hover { background: var(--bg2); color: var(--ink); }
.vswitch button.on {
  background: linear-gradient(120deg, var(--pink-s), var(--lav-s)); color: var(--pink); font-weight: 700;
}
.wish-tip { font-size: 12px; color: var(--ink2); }
/* 嵌在卡片里时不要额外底色和阴影 */
.wish-bar.in-card { margin: 4px 0 12px; }
.wish-bar.in-card .vswitch { background: var(--bg2); box-shadow: none; }
.wish-bar.in-card .vswitch button.on { background: var(--card); box-shadow: var(--shadow-s); }

/* 纪念日小标签：日历里一眼看到 */
.memo-strip, .memo-soon { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.memo-strip { padding: 10px 12px; border-radius: 14px; background: var(--bg2); }
[data-theme="night"] .memo-strip { background: rgba(255, 255, 255, .05); }
.memo-chip {
  border: 0; cursor: pointer; border-radius: 999px; padding: 5px 12px; font-size: 12.5px;
  background: var(--card); color: var(--ink); display: inline-flex; align-items: center; gap: 5px;
  box-shadow: var(--shadow-s); transition: .18s; border-left: 3px solid var(--pink);
}
[data-theme="night"] .memo-chip { background: rgba(255, 255, 255, .08); }
.memo-chip:hover { transform: translateY(-2px); }
.memo-chip em { font-style: normal; font-size: 11px; color: var(--pink); font-weight: 700; }
.memo-chip.c-lav { border-left-color: var(--lav); }
.memo-chip.c-lav em { color: var(--lav); }
.memo-chip.c-mint { border-left-color: var(--mint); }
.memo-chip.c-mint em { color: #3E9B78; }
.memo-chip.c-peach { border-left-color: var(--peach); }
.memo-chip.c-peach em { color: #D98352; }
.memo-chip.c-sky { border-left-color: var(--sky); }
.memo-chip.c-sky em { color: #3FA9C9; }

/* 列表视图 */
.wish-list { display: flex; flex-direction: column; gap: 8px; }
.wrow {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border-radius: var(--r-s); padding: 10px 14px; box-shadow: var(--shadow-s);
  position: relative; overflow: hidden; transition: .18s; cursor: pointer;
}
.wrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.wrow.c-pink::before { background: var(--pink); }
.wrow.c-lav::before { background: var(--lav); }
.wrow.c-mint::before { background: var(--mint); }
.wrow.c-peach::before { background: var(--peach); }
.wrow.c-sky::before { background: var(--sky); }
.wrow:hover { transform: translateX(2px); }
.wrow .ico { font-size: 20px; flex: none; }
.wrow .wm { flex: 1; min-width: 0; }
.wrow .tt { font-size: 14px; font-weight: 700; }
.wrow .ss { font-size: 11.5px; color: var(--ink2); }
.wrow .pb { width: 92px; height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; flex: none; }
[data-theme="night"] .wrow .pb { background: rgba(255, 255, 255, .08); }
.wrow .pb i { display: block; height: 100%; border-radius: 999px; }
.wrow .dd2 { font-size: 19px; font-weight: 800; flex: none; min-width: 68px; text-align: right; }
.wrow .dd2 small { font-size: 11px; font-weight: 500; color: var(--ink2); }

/* 折叠视图 */
.wgroup { margin-bottom: 8px; }
.wgroup-h {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; cursor: pointer;
  background: var(--card); border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow-s);
  font-size: 13.5px; color: var(--ink); transition: .18s;
}
.wgroup-h:hover { background: var(--bg2); }
[data-theme="night"] .wgroup-h:hover { background: rgba(255, 255, 255, .07); }
.wgroup-h .ar { font-size: 10px; color: var(--ink2); transition: .2s; }
.wgroup.open .wgroup-h .ar { transform: rotate(90deg); }
.wgroup-h .n { margin-left: auto; font-size: 11.5px; color: var(--ink2); }
.wgroup-b { display: none; padding: 8px 0 2px; }
.wgroup.open .wgroup-b { display: block; animation: hp-in .22s ease; }

/* 迷你视图 */
.wish-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.wmini {
  border: 0; cursor: pointer; background: var(--card); border-radius: 15px; padding: 9px 6px 8px;
  box-shadow: var(--shadow-s); text-align: center; position: relative; overflow: hidden; transition: .18s;
}
.wmini:hover { transform: translateY(-3px); }
.wmini::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.wmini.c-pink::before { background: var(--pink); }
.wmini.c-lav::before { background: var(--lav); }
.wmini.c-mint::before { background: var(--mint); }
.wmini.c-peach::before { background: var(--peach); }
.wmini.c-sky::before { background: var(--sky); }
.wmini .ico { font-size: 19px; }
.wmini .n { font-size: 18px; font-weight: 800; line-height: 1.15; }
.wmini .u { font-size: 10px; color: var(--ink2); }
.wmini .tt { font-size: 11px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
input[type=text], input[type=date], input[type=time], select, textarea {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 13px;
  padding: 9px 12px; outline: none; width: 100%; transition: .18s; color-scheme: light;
}
[data-theme="night"] input, [data-theme="night"] select, [data-theme="night"] textarea { background: var(--bg2); color-scheme: dark; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-s); }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--pink); }
.tag-row, .pri-row { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-row button, .pri-row button {
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; transition: .18s;
}
.tag-row button:hover, .pri-row button:hover { transform: translateY(-2px); }
.tag-row button.on { background: var(--pink-s); border-color: var(--pink); color: var(--pink); font-weight: 700; }
.tag-row button.bk-tag { position: relative; }
.tag-row button.bk-tag.own { padding-right: 32px; }
.tag-row button.bk-tag.own.on { background: var(--bks); border-color: var(--bk); color: var(--bk); }
.tag-row button.bk-tag.add { border-style: dashed; color: var(--ink2); background: transparent; }
.tag-row button.bk-tag.add:hover { border-color: var(--pink); color: var(--pink); }
.bk-op {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-style: normal; line-height: 1; opacity: 0;
  transition: .16s; cursor: pointer; padding: 3px;
}
.bk-op.edit { right: 16px; }
.bk-op.del { right: 3px; }
.bk-tag.own:hover .bk-op { opacity: .45; }
.bk-op:hover { opacity: 1 !important; transform: translateY(-50%) scale(1.25); }

/* 自定义小篮子编辑面板 */
.basket-box {
  margin-top: 10px; padding: 12px 13px; border-radius: 16px;
  border: 1.5px dashed var(--line); background: var(--bg2);
  animation: rise .24s cubic-bezier(.34, 1.4, .64, 1) both;
}
.bk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bk-head b { font-size: 13.5px; }
.bk-head .round-btn { width: 24px; height: 24px; font-size: 12px; }
.basket-box > input { width: 100%; padding: 8px 11px; font-size: 13.5px; }
.bk-label { font-size: 12px; color: var(--ink2); margin: 10px 0 6px; }
.bk-emojis { display: flex; flex-wrap: wrap; gap: 5px; }
.bk-emo {
  width: 30px; height: 30px; padding: 0; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; background: var(--card); font-size: 15px; line-height: 1;
  transition: .16s;
}
.bk-emo:hover { transform: translateY(-2px); }
.bk-emo.on { border-color: var(--pink); background: var(--pink-s); }
.bk-emo-free {
  width: 58px; height: 30px; padding: 0 4px; border-radius: 10px; font-size: 12px;
  border: 1.5px dashed var(--line); background: transparent; text-align: center;
}
.bk-colors { display: flex; gap: 9px; }
.bk-dot {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; background: var(--bk); transition: .16s; position: relative;
}
.bk-dot:hover { transform: scale(1.1); }
.bk-dot.on { border-color: var(--ink2); }
.bk-dot.on::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 800;
}
.bk-foot { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.bk-foot .spacer { flex: 1; }
.bk-foot .soft-btn { padding: 6px 14px; font-size: 12.5px; }
.pri-row button.on { background: var(--lav-s); border-color: var(--lav); font-weight: 700; }
.auto-box { background: var(--mint-s); border-radius: 14px; padding: 10px 12px; font-size: 12.5px; color: var(--ink2); }
[data-theme="night"] .auto-box { color: var(--ink); }
.auto-box b { color: var(--ink); }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(60, 40, 55, .38); z-index: 100; display: none; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(3px); }
.mask.open { display: flex; }
.modal { width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; background: var(--card); border-radius: 26px; box-shadow: 0 24px 60px rgba(80, 50, 70, .3); animation: modal-in .22s ease; }
@keyframes modal-in { from { transform: translateY(12px) scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 12px 18px 18px; }
.modal-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.soft-btn {
  border: 0; cursor: pointer; border-radius: 14px; padding: 9px 15px; font-size: 13.5px;
  background: var(--bg2); color: var(--ink); transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
[data-theme="night"] .soft-btn { background: rgba(255, 255, 255, .08); }
.soft-btn:hover { transform: translateY(-2px); }
.soft-btn.primary { background: linear-gradient(120deg, var(--pink), var(--lav)); color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(255, 156, 179, .3); }
.soft-btn.tiny { padding: 5px 10px; font-size: 12px; border-radius: 11px; }
.soft-btn.danger { background: var(--pink-s); color: var(--pink); }

/* ---------- 其他 ---------- */
.fab {
  position: fixed; right: 22px; bottom: 26px; width: 56px; height: 56px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 25px; color: #fff; z-index: 40;
  background: linear-gradient(135deg, var(--pink), var(--lav));
  box-shadow: 0 12px 26px rgba(255, 156, 179, .45); transition: .2s;
}
.fab:hover { transform: translateY(-3px) rotate(8deg); }
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--card); padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 300;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.spark { position: absolute; font-size: 18px; animation: fly 1.1s ease-out forwards; }
@keyframes fly {
  0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), -140px) scale(1.1) rotate(var(--r)); opacity: 0; }
}
/* ==========================================================
   备考 · 学习工作台
   ========================================================== */
.sy-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sy-ring { position: relative; width: 92px; height: 92px; flex: none; }
.sy-ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.sy-ring circle { fill: none; stroke-width: 7; }
.sy-ring circle.bg { stroke: var(--bg2); }
[data-theme="night"] .sy-ring circle.bg { stroke: rgba(255, 255, 255, .08); }
.sy-ring circle.fg { stroke: var(--pink); stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.sy-ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.25; }
.sy-ring-txt b { font-size: 15px; color: var(--ink); }
.sy-ring-txt span { font-size: 11px; color: var(--ink2); }
.sy-info { flex: 1; min-width: 220px; }
.sy-hi { font-size: 16px; font-weight: 800; color: var(--ink); }
.sy-bar { height: 9px; border-radius: 999px; background: var(--bg2); margin: 10px 0 5px; overflow: hidden; }
[data-theme="night"] .sy-bar { background: rgba(255, 255, 255, .08); }
.sy-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--lav)); transition: width .5s ease; }
.sy-bar-txt { font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.sy-link { border: 0; background: none; cursor: pointer; color: var(--pink); font-size: 12.5px; text-decoration: underline dotted; padding: 0; }
.sy-nums { display: flex; gap: 18px; margin-top: 12px; }
.sy-nums div { text-align: center; }
.sy-nums b { display: block; font-size: 18px; color: var(--ink); line-height: 1.2; }
.sy-nums b.warn { color: var(--peach); }
.sy-nums span { font-size: 11.5px; color: var(--ink2); }

.sy-grp + .sy-grp { margin-top: 16px; }
.sy-grp-h { font-size: 12.5px; font-weight: 700; color: var(--ink2); margin-bottom: 9px; letter-spacing: .04em; }
.sy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.sy-cell {
  position: relative; cursor: pointer; border-radius: 16px; padding: 12px 12px 11px;
  background: var(--bg2); border: 1.5px solid transparent; transition: .2s; overflow: hidden;
}
[data-theme="night"] .sy-cell { background: rgba(255, 255, 255, .05); }
.sy-cell::before {
  content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background: radial-gradient(120% 80% at 20% 0%, var(--sc), transparent 70%);
}
.sy-cell:hover { transform: translateY(-3px); border-color: var(--sc); }
.sy-cell.run { border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 22%, transparent); }
.sy-c-top { display: flex; align-items: center; gap: 6px; }
.sy-c-e { font-size: 22px; }
.sy-c-n { font-size: 14.5px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.sy-c-t { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.sy-c-bar { height: 5px; border-radius: 999px; background: rgba(0, 0, 0, .06); margin: 8px 0 6px; overflow: hidden; }
[data-theme="night"] .sy-c-bar { background: rgba(255, 255, 255, .1); }
.sy-c-bar i { display: block; height: 100%; border-radius: 999px; background: var(--sc); transition: width .4s ease; }
.sy-c-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink2); }
.sy-live { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); animation: sy-pulse 1.4s ease-in-out infinite; }
@keyframes sy-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }
.sy-edit {
  position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-style: normal; cursor: pointer;
  background: var(--card); opacity: 0; transition: .18s; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.sy-cell:hover .sy-edit { opacity: 1; }
.sy-edit:hover { transform: scale(1.15); }

.sy-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.sy-sum div { text-align: center; background: var(--bg2); border-radius: 14px; padding: 10px 6px; }
[data-theme="night"] .sy-sum div { background: rgba(255, 255, 255, .05); }
.sy-sum b { display: block; font-size: 15px; color: var(--ink); }
.sy-sum span { font-size: 11px; color: var(--ink2); }
.sy-stack { margin-top: 12px; display: grid; gap: 7px; }
.sy-stack-row { display: grid; grid-template-columns: 96px 1fr 62px; align-items: center; gap: 8px; font-size: 12.5px; }
.sy-sk-n { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sy-sk-bar { height: 10px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
[data-theme="night"] .sy-sk-bar { background: rgba(255, 255, 255, .08); }
.sy-sk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sc), color-mix(in srgb, var(--sc) 45%, #fff)); transition: width .4s ease; }
.sy-sk-v { text-align: right; color: var(--ink2); font-variant-numeric: tabular-nums; }
.sy-trend { display: flex; align-items: flex-end; gap: 6px; height: 78px; margin-top: 16px; }
.sy-tr { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.sy-tr i {
  width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; min-height: 3px;
  background: linear-gradient(180deg, var(--lav), var(--pink)); transition: height .4s ease;
}
.sy-tr.today i { background: linear-gradient(180deg, var(--pink), var(--peach)); box-shadow: 0 0 0 2px var(--pink-s); }
.sy-tr span { font-size: 10.5px; color: var(--ink2); }
.sy-export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }

.sy-log { display: grid; gap: 8px; }
.sy-log-row {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px; background: var(--bg2); border-left: 4px solid var(--sc);
}
[data-theme="night"] .sy-log-row { background: rgba(255, 255, 255, .05); }
.sy-log-row.due { background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 14%, transparent), var(--bg2)); }
.sy-lg-t { font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.sy-lg-t span { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.sy-lg-n { font-size: 13.5px; color: var(--ink); min-width: 0; }
.sy-lg-n .mini { font-style: normal; font-size: 11px; color: var(--ink2); margin-left: 6px; }
.sy-lg-r { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.sy-lg-v { font-size: 12px; color: var(--ink2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 计时器 */
.sy-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0 4px; }
.sy-tm-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sy-tm-ring { position: relative; width: 220px; height: 220px; flex: none; }
.sy-tm-ring svg { width: 220px; height: 220px; transform: rotate(-90deg); }
.sy-tm-ring circle { fill: none; stroke-width: 10; }
.sy-tm-ring circle.bg { stroke: var(--bg2); }
[data-theme="night"] .sy-tm-ring circle.bg { stroke: rgba(255, 255, 255, .08); }
.sy-tm-ring circle.fg { stroke: var(--sc); stroke-linecap: round; transition: stroke-dasharray .5s linear; }
.sy-tm-ring.big { width: 300px; height: 300px; }
.sy-tm-ring.big svg { width: 300px; height: 300px; }
.sy-tm-ring.big circle { stroke-width: 7; }
.sy-tm-ring.big .sy-tm-in b { font-size: 58px; }
.sy-tm-ring.big .sy-tm-in span { font-size: 13.5px; margin-top: 8px; }
.sy-tm-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.sy-tm-in b { font-size: 40px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sy-tm-in span { font-size: 12.5px; color: var(--ink2); margin-top: 4px; }
.sy-tm-side { flex: 1; min-width: 210px; display: grid; gap: 12px; }
.sy-tm-ctl { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sy-plans { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sy-plan {
  border: 0; cursor: pointer; border-radius: 12px; padding: 7px 11px; font-size: 12.5px;
  background: var(--bg2); color: var(--ink2); transition: .18s;
}
[data-theme="night"] .sy-plan { background: rgba(255, 255, 255, .08); }
.sy-plan.on { background: var(--sc); color: #fff; font-weight: 700; }
.sy-plan-custom { display: inline-flex; align-items: center; gap: 4px; cursor: text; }
.sy-plan-custom input {
  width: 46px; border: 0; background: none; color: inherit; font-size: 12.5px;
  font-family: inherit; text-align: center; outline: none; appearance: textfield; -moz-appearance: textfield;
}
.sy-plan-custom.on input { font-weight: 700; }
.sy-plan-custom input::-webkit-outer-spin-button, .sy-plan-custom input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sy-tm-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sy-tm-btns .big { padding: 13px 30px; font-size: 15px; border-radius: 18px; }
.sy-tm-tip { font-size: 12.5px; color: var(--ink2); background: var(--bg2); padding: 9px 14px; border-radius: 12px; text-align: center; max-width: 440px; }
[data-theme="night"] .sy-tm-tip { background: rgba(255, 255, 255, .06); }

/* 浮动小药丸 */
.tm-pill {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 260;
  display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 14px;
  border-radius: 999px; background: var(--card); box-shadow: 0 12px 30px rgba(150, 110, 130, .28);
  font-size: 13px; animation: rise .35s cubic-bezier(.34, 1.5, .64, 1) both;
}
[data-theme="night"] .tm-pill { box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.tm-pill.rest { filter: saturate(.5); }
.tm-pill .tp-e { font-size: 17px; }
.tm-pill .tp-n { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-pill .tiny-x { width: 24px; height: 24px; font-size: 13px; }

/* 小分段的切换条 */
.seg {
  display: inline-flex; gap: 3px; padding: 3px; border-radius: 14px; background: var(--bg2);
}
[data-theme="night"] .seg { background: rgba(255, 255, 255, .07); }
.seg button {
  border: 0; cursor: pointer; border-radius: 11px; padding: 6px 12px; font-size: 12.5px;
  background: none; color: var(--ink2); transition: .18s; white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-s); }
[data-theme="night"] .seg button.on { background: rgba(255, 255, 255, .16); }

/* 复盘弹窗头部信息条 */
.srev-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 14px; }
.srev-meta div {
  background: color-mix(in srgb, var(--sc) 12%, var(--bg2)); border-radius: 12px; padding: 8px 10px; text-align: center;
}
.srev-meta b { display: block; font-size: 13.5px; color: var(--ink); }
.srev-meta span { font-size: 11px; color: var(--ink2); }

/* 复盘附件区 */
.att-bar { display: flex; gap: 8px; margin-bottom: 6px; }
.att-btn {
  flex: 1; border: 1.5px dashed var(--line); background: var(--bg2); border-radius: 14px;
  padding: 10px 6px; cursor: pointer; font-size: 20px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; transition: .18s; color: var(--ink);
}
[data-theme="night"] .att-btn { background: rgba(255, 255, 255, .05); }
.att-btn span { font-size: 11px; color: var(--ink2); }
.att-btn:hover { transform: translateY(-2px); border-color: var(--pink); }
.att-btn.on { border-color: var(--pink); background: var(--pink-s); animation: sy-pulse 1.2s ease-in-out infinite; }
.att-btn.on span { color: var(--pink); font-weight: 700; }
.att-list { display: grid; gap: 6px; }
.att-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px;
  background: var(--bg2); font-size: 12.5px; animation: rise .3s both;
}
[data-theme="night"] .att-item { background: rgba(255, 255, 255, .06); }
.att-e { font-size: 16px; }
.att-n { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-s { color: var(--ink2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.att-play, .att-del {
  width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; font-size: 11px;
  background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); transition: .18s;
}
.att-play:hover { transform: scale(1.15); background: var(--pink); color: #fff; }
.att-del:hover { transform: scale(1.15); background: var(--pink-s); color: var(--pink); }
.att-mini { font-style: normal; margin-left: 5px; font-size: 12px; }

/* 露珠规则卡（花园里的完整版） */
.drop-rule { background: linear-gradient(120deg, #EAF6FF, #F2F0FF); border-radius: var(--r); }
[data-theme="night"] .drop-rule { background: rgba(140, 160, 255, .08); }
.sy-dr-h { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.sy-dr-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.sy-dr-tier {
  text-align: center; background: var(--card); border-radius: 12px; padding: 8px 4px;
  box-shadow: var(--shadow-s);
}
.sy-dr-tier b { display: block; font-size: 15px; color: #3FA9C9; }
.sy-dr-tier span { font-size: 11px; color: var(--ink2); }
.sy-dr-more { font-size: 12px; color: var(--ink2); line-height: 1.8; }
.sy-dr-more.mut { opacity: .75; }
/* 备考汇总页：问号帮助 */
.sy-help-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; font-size: 12px;
  background: var(--bg2); color: var(--ink2); transition: .18s; display: inline-grid; place-items: center;
}
[data-theme="night"] .sy-help-btn { background: rgba(255, 255, 255, .1); }
.sy-help-btn:hover { background: var(--pink); color: #fff; transform: scale(1.1); }
.sy-help {
  margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.9;
  background: linear-gradient(120deg, #EAF6FF, #F2F0FF); color: var(--ink2);
  animation: rise .25s both;
}
[data-theme="night"] .sy-help { background: rgba(140, 160, 255, .1); }
.sy-help b { color: #3FA9C9; }

/* 露珠飞入动画 */
.drop-fly {
  position: fixed; z-index: 500; font-size: 22px; pointer-events: none;
  animation: dropfly 1.5s cubic-bezier(.4, 0, .6, 1) forwards;
}
@keyframes dropfly {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  40% { transform: translate(calc(var(--dx) * .45), var(--mid)) scale(1.15); }
  100% { transform: translate(var(--dx), var(--dy)) scale(.5); opacity: 0; }
}

@media (max-width: 720px) {
  .sy-hero { gap: 14px; }
  .sy-nums { gap: 12px; }
  .sy-sum { grid-template-columns: repeat(2, 1fr); }
  .sy-stack-row { grid-template-columns: 74px 1fr 54px; }
  .sy-log-row { grid-template-columns: 76px 1fr; }
  .sy-lg-r { grid-column: 1 / -1; justify-content: flex-start; }
  .sy-tm-ring { width: 190px; height: 190px; }
  .sy-tm-ring.big { width: 240px; height: 240px; }
  .sy-tm-ring.big svg { width: 240px; height: 240px; }
  .sy-tm-ring.big .sy-tm-in b { font-size: 44px; }
  .sy-tm-ring svg { width: 190px; height: 190px; }
  .sy-tm-in b { font-size: 34px; }
  .tm-pill { left: 12px; right: 12px; transform: none; justify-content: center; }
}

.print-area { display: none; }
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { display: block; position: absolute; inset: 0; padding: 24px; background: #fff; color: #000; }
}

/* 响应式 */
@media (max-width: 860px) {
  .side { position: fixed; left: 0; top: 0; box-shadow: var(--shadow); }
  .side.collapsed { transform: translateX(-100%); width: var(--side-w) !important; opacity: 0; pointer-events: none; }
  .resizer { display: none; }
  .content { padding: 14px 14px 90px; }
  .topbar { padding: 12px 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .hero::after { font-size: 46px; }
  .hi-txt { font-size: 15px; }
  .hero-ico.date span { font-size: 12.5px; }
  .hero-pop { width: min(78vw, 268px); }
  .hero-pop.wide { width: min(84vw, 302px); }
  .wish-mini { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

/* 无障碍：减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 本地数据服务（可选后端） ---------- */
.sync-pop { width: 310px; }
.sp-state {
  font-size: 12px; border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.6;
}
.sp-state.good { background: #E8F7EE; color: #2E8B57; }
.sp-state.bad { background: var(--pink-s); color: var(--pink); }
[data-theme="night"] .sp-state.good { background: rgba(80, 200, 140, .16); color: #7BE0B0; }
.sp-meta { display: grid; gap: 4px; margin-bottom: 12px; }
.sp-meta div { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.sp-meta span { color: var(--ink2); }
.sp-meta b { color: var(--ink); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-btns .soft-btn { padding: 7px 11px; font-size: 12px; }
.sp-list { margin-top: 10px; display: grid; gap: 5px; max-height: 170px; overflow: auto; }
.sp-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 10px; padding: 7px 10px; font-size: 11.5px;
  background: var(--bg2); color: var(--ink); transition: .18s; text-align: left;
}
[data-theme="night"] .sp-row { background: rgba(255, 255, 255, .07); }
.sp-row:hover { background: var(--pink-s); }
.sp-row em { font-style: normal; color: var(--ink2); font-size: 11px; }
.sp-loading { font-size: 11.5px; color: var(--ink2); padding: 6px 2px; }
.round-btn.sync-btn { font-size: 16px; }
.round-btn.sync-btn.err { box-shadow: 0 0 0 2px #FFB4B4 inset; }

/* ---------- 登录 / 注册 ---------- */
.auth-gate {
  position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(150deg, #FFD9E4 0%, #FFE9DC 45%, #E7DEFF 100%);
}
.auth-gate.hidden { display: none; }
.ag-card {
  width: 100%; max-width: 356px; background: var(--card); border-radius: 24px;
  padding: 26px 24px 18px; text-align: center;
  box-shadow: 0 26px 60px rgba(180, 120, 150, .28);
  animation: rise .45s cubic-bezier(.34, 1.4, .64, 1) both;
}
.ag-face { font-size: 40px; line-height: 1; animation: wave 2.6s ease-in-out infinite; display: inline-block; }
.ag-title { font-size: 22px; margin: 8px 0 4px; color: var(--ink); letter-spacing: .04em; }
.ag-sub { font-size: 12.5px; color: var(--ink2); margin-bottom: 16px; }
.ag-tabs { display: flex; gap: 4px; background: var(--bg2); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
[data-theme="night"] .ag-tabs { background: rgba(255, 255, 255, .07); }
.ag-tabs button {
  flex: 1; border: 0; background: none; border-radius: 999px; padding: 8px 6px;
  font-size: 13px; color: var(--ink2); cursor: pointer; font-family: inherit; transition: .18s;
}
.ag-tabs button.on { background: var(--card); color: var(--pink); font-weight: 700; box-shadow: var(--shadow-s); }
[data-theme="night"] .ag-tabs button.on { background: rgba(255, 255, 255, .16); }
.ag-form { display: grid; gap: 10px; }
.ag-form.hidden { display: none; }
.ag-form input {
  border: 1.5px solid var(--line); background: var(--bg2); border-radius: 14px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--ink); outline: none; transition: .18s;
}
.ag-form input:focus { border-color: var(--pink); background: var(--card); }
.ag-submit {
  border: 0; cursor: pointer; border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 700;
  color: #fff; background: linear-gradient(120deg, var(--pink), var(--lav));
  box-shadow: 0 10px 22px rgba(255, 156, 179, .35); font-family: inherit; transition: .18s;
}
.ag-submit:hover { transform: translateY(-2px); }
.ag-submit:disabled { opacity: .7; transform: none; cursor: default; }
.ag-err { min-height: 16px; font-size: 12px; color: var(--pink); text-align: left; }
.ag-foot { margin-top: 8px; font-size: 11.5px; color: var(--ink2); opacity: .85; }

/* ---------- 我的资料 ---------- */
.pf-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pf-av {
  width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 34px; background: var(--bg2); background-size: cover; background-position: center;
  box-shadow: var(--shadow-s);
}
.pf-av-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-sep { height: 1px; background: var(--line); margin: 4px 0 14px; }
.pf-username { font-size: 11.5px; color: var(--ink2); margin-top: 4px; }
#avatar.has-img { color: transparent; background-size: cover; background-position: center; }

/* ---------- 管理后台 ---------- */
.ad-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 8px; }
.ad-nums div { background: var(--bg2); border-radius: 14px; padding: 10px 6px; text-align: center; }
[data-theme="night"] .ad-nums div { background: rgba(255, 255, 255, .05); }
.ad-nums b { display: block; font-size: 16px; color: var(--ink); }
.ad-nums span { font-size: 11px; color: var(--ink2); }
.ad-trend { display: flex; gap: 8px; height: 106px; align-items: flex-end; margin-top: 16px; }
.ad-tr { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.ad-tr i {
  width: 100%; max-width: 32px; border-radius: 8px 8px 3px 3px; min-height: 3px;
  background: linear-gradient(180deg, var(--lav), var(--pink)); transition: height .4s ease;
}
.ad-tr b { font-size: 10.5px; color: var(--ink2); }
.ad-tr span { font-size: 10px; color: var(--ink2); }
.ad-list { display: grid; gap: 2px; }
.ad-row {
  display: grid; grid-template-columns: minmax(120px, 2fr) 90px 110px 68px 132px;
  gap: 8px; align-items: center; font-size: 12.5px; padding: 9px 10px; border-radius: 12px;
}
.ad-row:nth-child(odd) { background: var(--bg2); }
[data-theme="night"] .ad-row:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.ad-row.head, .ad-row.head:nth-child(odd) { background: none; font-size: 11px; color: var(--ink2); }
.ad-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ad-who b { color: var(--ink); }
.ad-who i { font-style: normal; color: var(--ink2); font-size: 11.5px; }
.ad-tag {
  font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px;
  background: var(--pink-s); color: var(--pink);
}
.ad-tag.off { background: var(--bg2); color: var(--ink2); }
.ad-ops { display: flex; gap: 6px; justify-content: flex-end; }
.ad-row.off { opacity: .55; }
@media (max-width: 760px) {
  .ad-row { grid-template-columns: 1.6fr 1fr; }
  .ad-row span:nth-child(2), .ad-row span:nth-child(3), .ad-row span:nth-child(4) { display: none; }
  .ad-row.head { display: none; }
}

/* ---------- 新手引导 ---------- */
.guide {
  position: fixed; inset: 0; z-index: 650; display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, #2E2436 52%, transparent);
  animation: gdIn .3s ease both;
}
.guide.hidden { display: none; }
@keyframes gdIn { from { opacity: 0; } }
.gd-card {
  position: relative; width: 100%; max-width: 420px; background: var(--card);
  border-radius: 26px; padding: 26px 26px 18px; text-align: center;
  box-shadow: 0 30px 70px rgba(70, 40, 60, .32);
  animation: gdCardIn .42s cubic-bezier(.34, 1.4, .64, 1) both;
}
.gd-skip {
  position: absolute; right: 14px; top: 12px; border: 0; background: none; cursor: pointer;
  font-size: 12px; color: var(--ink2); padding: 6px 8px; border-radius: 10px;
}
.gd-skip:hover { background: var(--bg2); color: var(--ink); }
.gd-stage {
  height: 178px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: 18px; background: linear-gradient(160deg, #FFF5F8, #F6F1FF);
  overflow: hidden;
}
[data-theme="night"] .gd-stage { background: rgba(255, 255, 255, .05); }
.gstep { display: none; flex-direction: column; align-items: center; gap: 12px; }
.gstep.on { display: flex; animation: gsIn .3s ease both; }
@keyframes gsIn { from { transform: translateY(10px); } }
@keyframes gdCardIn { from { transform: translateY(16px) scale(.97); } }

.g1-box {
  display: inline-flex; align-items: center; gap: 8px; background: var(--card);
  border-radius: 14px; padding: 11px 14px; box-shadow: 0 8px 20px rgba(190, 140, 165, .18);
  min-width: 232px;
}
.g1-ico { font-size: 15px; }
.g1-txt {
  font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden;
  width: 0; animation: typing 3.6s steps(11) infinite;
}
@keyframes typing {
  0%, 6% { width: 0; }
  52%, 86% { width: 11em; }
  96%, 100% { width: 0; }
}
.g1-cursor {
  width: 1.5px; height: 15px; background: var(--pink); border-radius: 2px;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.g1-hint { font-size: 11.5px; color: var(--ink2); }

.g2-row {
  display: inline-flex; align-items: center; gap: 10px; background: var(--card);
  border-radius: 14px; padding: 11px 16px; box-shadow: 0 8px 20px rgba(190, 140, 165, .16);
}
.g2-ring {
  width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--line);
  display: grid; place-items: center; flex: none;
  animation: tapRing 3.6s ease-in-out infinite;
}
.g2-check {
  font-style: normal; font-size: 11px; color: #fff; opacity: 0;
  animation: showCheck 3.6s ease-in-out infinite;
}
.g2-t { font-size: 13px; color: var(--ink); animation: doneText 3.6s ease-in-out infinite; }
@keyframes tapRing {
  0%, 14% { transform: scale(1); background: transparent; border-color: var(--line); }
  20% { transform: scale(.82); }
  26% { transform: scale(1.06); background: var(--mint); border-color: var(--mint); }
  88% { transform: scale(1.06); background: var(--mint); border-color: var(--mint); }
  100% { transform: scale(1); background: transparent; border-color: var(--line); }
}
@keyframes showCheck {
  0%, 20% { opacity: 0; transform: scale(.4); }
  28% { opacity: 1; transform: scale(1); }
  88% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes doneText { 0%, 20% { color: var(--ink); } 30%, 88% { color: var(--ink2); text-decoration: line-through; } 100% { color: var(--ink); text-decoration: none; } }
.g2-drop {
  font-size: 13px; font-weight: 700; color: #3FA9C9; opacity: 0;
  animation: dropUp 3.6s ease-out infinite;
}
@keyframes dropUp {
  0%, 24% { opacity: 0; transform: translateY(10px) scale(.8); }
  34% { opacity: 1; transform: translateY(-2px) scale(1); }
  60% { opacity: 1; transform: translateY(-22px) scale(1); }
  72%, 100% { opacity: 0; transform: translateY(-30px) scale(.9); }
}

.g3-wrap { position: relative; width: 116px; height: 116px; display: grid; place-items: center; }
.g3-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.g3-ring circle { fill: none; stroke-width: 7; }
.g3-ring .bg { stroke: var(--bg2); }
[data-theme="night"] .g3-ring .bg { stroke: rgba(255, 255, 255, .1); }
.g3-ring .fg {
  stroke: var(--pink); stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  animation: drawRing 3.6s ease-in-out infinite;
}
@keyframes drawRing {
  0% { stroke-dashoffset: 327; }
  62%, 86% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 327; }
}
.g3-time { font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.g3-plant {
  position: absolute; right: -2px; bottom: -2px; font-size: 23px;
  animation: growPlant 3.6s ease-in-out infinite;
}
@keyframes growPlant {
  0%, 30% { transform: scale(.7); opacity: .3; }
  60%, 90% { transform: scale(1.1) rotate(-6deg); opacity: 1; }
  100% { transform: scale(.7); opacity: .3; }
}

.gd-title { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.gd-sub { font-size: 12.5px; color: var(--ink2); line-height: 1.7; min-height: 42px; }
.gd-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 14px; }
.gd-dots i {
  width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: .25s;
}
.gd-dots i.on { width: 18px; background: var(--pink); }
.gd-btns { display: flex; gap: 8px; justify-content: center; }
.gd-btns .soft-btn { min-width: 92px; }
.gd-tip { font-size: 11px; color: var(--ink2); opacity: .8; margin-top: 10px; }

/* 空清单时的引导按钮 */
.empty-guide {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px 20px;
}
.empty-guide .eg-face { font-size: 40px; animation: wave 2.4s ease-in-out infinite; }
.empty-guide .eg-t { font-size: 14px; color: var(--ink); font-weight: 500; }
.empty-guide .eg-s { font-size: 12px; color: var(--ink2); }

@media (max-width: 460px) {
  .gd-card { padding: 22px 18px 16px; }
  .gd-sub { min-height: 0; }
}

/* ---------- iOS 安全区（刘海屏 / 底部横条 / 添加到主屏后） ---------- */
:root { --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); }
.app { padding-top: var(--safe-t); }
.fab { bottom: calc(20px + var(--safe-b)); }
.side-foot { padding-bottom: calc(14px + var(--safe-b)); }
.topbar { padding-top: calc(8px + var(--safe-t)); }
@media (display-mode: standalone) {
  .topbar { padding-top: calc(12px + var(--safe-t)); }
}

/* ==========================================================
   手机手感层 · iPhone 交互
   底部标签栏 / 左滑操作 / 抽屉 / 底部弹层 / 下拉刷新 / 按压反馈
   ========================================================== */
:root { --tabbar-h: 58px; --ease-ios: cubic-bezier(.22, .9, .28, 1); }

* { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: contain; }
.task { touch-action: pan-y; }
.task, .garden-teaser, .wish-card, .letter-card { -webkit-touch-callout: none; }

/* ---------- 1. 底部标签栏 ---------- */
.tabbar { display: none; }

/* ---------- 2. 抽屉遮罩 ---------- */
.scrim {
  display: none; position: fixed; inset: 0; z-index: 63;
  background: rgba(60, 40, 55, .36);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .26s ease;
}

/* ---------- 3. 任务卡左滑操作 ---------- */
.task-wrap {
  position: relative; border-radius: var(--r-s); overflow: hidden;
  background: var(--bg2);
}
[data-theme="night"] .task-wrap { background: rgba(255, 255, 255, .05); }
.task-wrap .task {
  position: relative; z-index: 2; background: var(--bg2);
  transition: transform .28s var(--ease-ios);
}
[data-theme="night"] .task-wrap .task { background: #3B3250; }
.task-wrap .task.sw-drag { transition: none; }
/* 完成态本来是整块半透明，这里改成只淡内容，免得露出底下的滑动按钮 */
.task-wrap .task.done { opacity: 1; }
.task-wrap .task.done > * { opacity: .55; }
.sw-act { position: absolute; inset: 0; z-index: 1; display: flex; align-items: stretch; opacity: 0; transition: opacity .12s; }
.task-wrap.sw-drag .sw-act, .task-wrap.swiped .sw-act { opacity: 1; }
.sw-act.sw-right { justify-content: flex-end; }
.sw-act.sw-left { justify-content: flex-start; }
.sw-btn {
  width: 76px; border: 0; cursor: pointer; font-family: inherit; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; line-height: 1.2; color: #fff;
  transition: filter .15s;
}
.sw-btn i { font-style: normal; font-size: 17px; }
.sw-btn.done { background: var(--mint); color: #1F5A48; }
.sw-btn.del { background: var(--pink); color: #fff; }
.sw-btn.edit { background: var(--lav); color: #473878; }
.sw-btn:active { filter: brightness(.94); }

/* ---------- 4. 页面切换 / 换日期的滑动过渡 ---------- */
@keyframes slInR { from { opacity: .25; transform: translateX(30px); } }
@keyframes slInL { from { opacity: .25; transform: translateX(-30px); } }
#content.sl-in-r { animation: slInR .32s var(--ease-ios); }
#content.sl-in-l { animation: slInL .32s var(--ease-ios); }
@keyframes ndR { 0% { transform: translateX(0); } 35% { transform: translateX(24px); opacity: .55; } 100% { transform: translateX(0); } }
@keyframes ndL { 0% { transform: translateX(0); } 35% { transform: translateX(-24px); opacity: .55; } 100% { transform: translateX(0); } }
.nd-r { animation: ndR .3s var(--ease-ios); }
.nd-l { animation: ndL .3s var(--ease-ios); }

/* ---------- 5. 下拉刷新 ---------- */
.ptr {
  display: none; align-items: center; justify-content: center; gap: 8px;
  height: 0; overflow: hidden; font-size: 12.5px; color: var(--ink2);
  transition: height .18s ease, color .18s;
}
.ptr b { font-weight: 600; }
.ptr i { font-style: normal; font-size: 18px; display: inline-block; transition: transform .2s; }
.ptr.ready { color: var(--pink); }
.ptr.ready i { transform: scale(1.22); }
.ptr.busy i { animation: ptrSpin .9s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* ---------- 6. 长按操作表（iOS action sheet） ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 620; display: flex; align-items: flex-end;
  background: rgba(60, 40, 55, 0); transition: background .26s ease;
  padding: 0 8px calc(10px + var(--safe-b));
}
.sheet-mask.on { background: rgba(60, 40, 55, .42); }
.sheet {
  width: 100%; max-width: 460px; margin: 0 auto; max-height: 88vh; overflow: auto;
  transform: translateY(118%); transition: transform .32s var(--ease-ios);
}
.sheet-mask.on .sheet { transform: none; }
.sheet-h {
  background: var(--card); border-radius: 16px; padding: 14px 16px; text-align: center;
  font-size: 12.5px; color: var(--ink2); margin-bottom: 8px;
  box-shadow: var(--shadow-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sheet-grp { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-s); }
.sh-it {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  background: var(--card); color: var(--ink); font-family: inherit;
  font-size: 15.5px; padding: 15px 14px; transition: background .15s;
}
.sh-it:last-child { border-bottom: 0; }
.sh-it:active { background: var(--bg2); }
.sh-it.danger { color: var(--pink); font-weight: 600; }
.sh-it.cancel { margin-top: 8px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow-s); }
[data-theme="night"] .sh-it:active { background: rgba(255, 255, 255, .08); }

/* ---------- 7. 手势小提示 ---------- */
.sw-hint {
  position: fixed; left: 50%; z-index: 520; transform: translateX(-50%);
  background: var(--ink); color: var(--card); font-size: 12.5px; padding: 9px 16px;
  border-radius: 999px; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); white-space: nowrap;
  animation: rise .3s var(--ease-ios) both, hintOut .5s ease 3.4s forwards;
}
@keyframes hintOut { to { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

/* ---------- 8. 手机端专用排布 ---------- */
@media (max-width: 860px) {
  /* 标签栏 */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: stretch;
    padding: 5px 4px calc(3px + var(--safe-b));
    background: rgba(255, 247, 243, .93);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border-top: 1px solid var(--line);
  }
  [data-theme="night"] .tabbar { background: rgba(41, 34, 56, .93); }
  .tb-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 6px 0 2px; border: 0; background: none; cursor: pointer;
    color: var(--ink2); font-family: inherit; font-size: 10.5px; line-height: 1.2;
    position: relative; transition: color .18s, transform .16s var(--ease-ios);
  }
  .tb-item i { font-style: normal; font-size: 20px; line-height: 1; filter: grayscale(.55) opacity(.7); transition: .2s; }
  .tb-item.is-active { color: var(--pink); font-weight: 700; }
  .tb-item.is-active i { filter: none; transform: translateY(-1px) scale(1.08); }
  .tb-item.is-active::after {
    content: ""; position: absolute; top: -1px; left: 50%; margin-left: -10px;
    width: 20px; height: 3px; border-radius: 99px; background: var(--pink);
    animation: tbDot .28s var(--ease-ios) both;
  }
  @keyframes tbDot { from { transform: scaleX(.2); opacity: .2; } }
  .tb-item:active { transform: scale(.94); }

  /* 让内容 / 悬浮球 / 提示躲开标签栏 */
  .content { padding: 14px 14px calc(var(--tabbar-h) + var(--safe-b) + 26px); }
  .fab { right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); width: 52px; height: 52px; font-size: 23px; }
  .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); max-width: calc(100vw - 32px); text-align: center; }
  .tm-pill { bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px) !important; }
  .side-foot { padding-bottom: calc(var(--tabbar-h) + 16px + var(--safe-b)); }
  .ptr { display: flex; }

  /* iOS 聚焦输入框不缩放 */
  input, textarea, select { font-size: 16px; }

  /* 抽屉 */
  body.drawer-open .scrim { display: block; opacity: 1; }
  .side { z-index: 66; transition: transform .32s var(--ease-ios), opacity .22s ease; }
  .side:not(.collapsed) { box-shadow: 0 26px 64px rgba(90, 60, 80, .32); }

  /* 弹窗 → 底部弹层 */
  .mask { align-items: flex-end; padding: 0; }
  .mask.open { animation: maskIn .2s ease both; }
  @keyframes maskIn { from { opacity: 0; } }
  .modal {
    width: 100%; max-width: 100%; max-height: 92vh;
    border-radius: 24px 24px 0 0;
    animation: sheetUp .34s var(--ease-ios) both;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    will-change: transform;
  }
  /* 底部操作区常驻可见，长表单也不用滚到底才能保存 */
  .modal-body { padding-bottom: 0; }
  .modal-foot {
    position: sticky; bottom: 0; z-index: 3;
    margin: 12px -18px 0; padding: 10px 18px calc(10px + var(--safe-b));
    background: var(--card); border-top: 1px solid var(--line);
  }
  /* 标题栏吸顶：滚到哪儿都能一眼看到标题、随时关掉 */
  .modal-head { position: sticky; top: 0; z-index: 4; background: var(--card); }
  .modal-head::before { content: ""; position: absolute; left: 50%; top: 8px; margin-left: -19px;
    width: 38px; height: 4px; border-radius: 99px; background: var(--line); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .modal-head { padding-top: 20px; touch-action: none; }
  .modal.sheet-down { animation: sheetDown .22s ease both; }
  @keyframes sheetDown { to { transform: translateY(100%); opacity: .5; } }

  /* 心情 / 同步小面板改成站在标签栏上方的浮条 */
  .pop {
    position: fixed; left: 10px; right: 10px; top: auto; width: auto; max-width: none;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); border-radius: 20px;
    animation: popUp .26s var(--ease-ios);
  }
  @keyframes popUp { from { transform: translateY(14px); opacity: 0; } }
  .pop .mood-row { justify-content: space-between; }
  .pop .mood-row button { flex: 1; }

  /* 顶部卡：手机上让打招呼独占一行，名字绝不被挤掉 */
  .hero-row { flex-wrap: wrap; row-gap: 8px; }
  .hero-hi { flex: 1 1 100%; }
  .hi-txt { font-size: 15.5px; }
  .hero-tools { margin-left: auto; }
  .hero-ico.date { padding: 0 10px; }
  .hero-ico.date span { font-size: 11.5px; white-space: nowrap; }

  /* 顶栏：手机上收掉长按钮，靠底部的 ＋ 就够了 */
  .topbar { gap: 8px; padding: 10px 14px; }
  .tb-title { min-width: 0; flex: 1; }
  .tb-title h1 { font-size: 17px; }
  .tb-title p { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-right { gap: 6px; }
  .tb-right .soft-btn.primary { display: none; }
  .tb-right .round-btn { width: 34px; height: 34px; font-size: 14px; }
  #menuBtn { width: 36px; height: 36px; font-size: 16px; }

  /* 卡片头：手机上不换行，按钮不折字 */
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .card-head h3 { font-size: 15px; }
  .soft-btn { white-space: nowrap; }
  .card-head .round-btn { width: 32px; height: 32px; font-size: 14px; }
  .card { padding: 15px; }

  /* 横向滑动的种子小铺：隐藏滚动条、带一点吸附 */
  .seed-row { scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .seed-row::-webkit-scrollbar { display: none; }
  .seed { scroll-snap-align: start; }

  /* 弹层 / 抽屉打开时，底下的页面别跟着滚 */
  body:has(.mask.open), body.drawer-open { overflow: hidden; }

  /* 按压反馈（替代 hover） */
  .soft-btn:active, .round-btn:active, .mood-chip:active, .seed:active,
  .plot:active, .fn:active, .ico-btn:active, .hero-ico:active, .nav-item:active,
  .pf-av:active, .ag-submit:active, .sw-btn:active {
    transform: scale(.95); transition: transform .12s var(--ease-ios);
  }
  .card { border-radius: 20px; }
}

/* 触摸设备上不要留 hover 的"粘住"效果 */
@media (hover: none) {
  .soft-btn:hover, .round-btn:hover, .fab:hover, .task:hover, .fn:hover,
  .nav-item:hover, .hero-ico:hover, .mood-row button:hover, .mood-chip:hover,
  .hero-ico.on:hover { transform: none; }
  .task:hover { box-shadow: none; }
}

/* iOS 地址栏收起 / 展开时 vh 会变，用 dvh 更稳 */
@supports (height: 100dvh) {
  .app { min-height: 100dvh; }
  .side { height: 100dvh; }
}

/* ==========================================================
   iOS 手感层 v3 · 跟手手势 / 滚动回归 / 键盘适配
   ========================================================== */

/* 全局：去掉点按高亮和文字选择，控件按下去才有"软"的感觉 */
* { -webkit-tap-highlight-color: transparent; }
button, .tb-item, .nav-item, .pill, .chip, .card-head, .hero-ico, .me-name,
.cell, .wcol, .seed, .plot, .sheet-h, .sh-it, .d-title, .gt-title {
  -webkit-user-select: none; user-select: none;
}
button, .tb-item, .nav-item, .pill, .cell, .wcol, .sh-it,
.soft-btn, .round-btn, .mood-chip, .seed, .plot, .bk-tag, .fn {
  touch-action: manipulation;
}

/* 侧栏名字：一个账号名，点一下进资料（不再是输入框） */
.me-name {
  border: 0; background: transparent; padding: 0; margin: 0;
  width: 100%; font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--ink); text-align: left; cursor: pointer; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.me-name::after {
  content: "›"; font-size: 13px; font-weight: 600; color: var(--ink2);
  opacity: .55; flex: none;
}
.me-name:active { opacity: .7; }
#meName:focus { border-bottom: 0; }
.pf-hint { font-size: 11.5px; color: var(--ink2); margin: -4px 0 6px; line-height: 1.6; }
.pf-hint b { color: var(--pink); }

/* 跟手翻页期间剪掉横向溢出（clip 不产生滚动容器，sticky 顶栏照旧） */
html.pan-clip { overflow-x: clip; }
#content { position: relative; }

/* 顶栏：往下滚就收一点，滚起来才知道自己在往下走 */
.topbar { transition: padding .24s var(--ease-ios), box-shadow .24s ease, border-color .24s ease; }
body.scrolled .topbar { box-shadow: 0 6px 20px rgba(255, 156, 179, .14); border-bottom-color: transparent; }
body.scrolled .tb-title h1 { font-size: 17px; }
.tb-title h1 { transition: font-size .24s var(--ease-ios); }
.tb-title { cursor: pointer; }

/* ＋ 球：往下翻让位，往回翻就回来（跟 Safari 工具栏一个意思） */
.fab { transition: transform .28s var(--ease-ios), opacity .22s ease, box-shadow .2s ease; }
body.scroll-down .fab { transform: translateY(110px) scale(.9); opacity: 0; pointer-events: none; }

/* 弹层打开时锁住背后页面（iOS 只有 position:fixed 真的锁得住） */
body:has(.mask.open) { overflow: hidden; }
body.lock-scroll { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

/* 键盘：把底部弹层抬到键盘上方 */
.mask { transition: padding-bottom .2s ease; }
body.kbd-open .mask { padding-bottom: var(--kb, 0px); }
body.kbd-open .modal { max-height: calc(100dvh - var(--kb, 0px) - 10px); }
body.kbd-open .fab { opacity: 0; pointer-events: none; }

/* 抽屉跟手：拖动时不要过渡，遮罩淡入淡出 */
.side.dragging { transition: none !important; will-change: transform, opacity; }
body.drawer-drag .scrim { display: block; }
.scrim { will-change: opacity; }

/* 底部弹层：跟手拖动时不要过渡 */
.mask.open > .modal { will-change: transform; }
.modal textarea { resize: none; transition: height .12s ease; line-height: 1.65; min-height: 46px; }

/* 表单项没填：抖一下 */
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  38% { transform: translateX(6px); }
  58% { transform: translateX(-4px); }
  78% { transform: translateX(2px); }
}
.shake { animation: shakeX .4s cubic-bezier(.36,.07,.19,.97); }

/* 操作表的抓手 */
.sheet-grab {
  width: 38px; height: 4px; border-radius: 99px; background: var(--ink2); opacity: .3;
  margin: 0 auto 8px;
}
.sheet { will-change: transform; }

/* 撤销提示：比普通 toast 多一个按钮 */
.toast.has-act {
  display: flex; align-items: center; gap: 14px; pointer-events: auto;
  padding-right: 8px; bottom: calc(34px + var(--safe-b));
}
.toast .tst-txt { flex: 1; min-width: 0; }
.toast .tst-act {
  border: 0; cursor: pointer; border-radius: 999px; padding: 5px 12px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .18); color: #fff; flex: none;
  transition: transform .14s var(--ease-ios), background .14s;
}
.toast .tst-act:active { transform: scale(.94); background: rgba(255, 255, 255, .3); }
[data-theme="day"] .toast { background: var(--ink); }

/* 按下去的软反馈：所有能点的都给一点点缩放 */
.task:active, .cell:active, .wcol:active, .seed:active, .plot:active,
.bk-tag:active, .pill:active, .mood-chip:active, .sh-it:active,
.garden-teaser:active, .wish:active, .letter:active {
  transform: scale(.975);
  transition: transform .14s var(--ease-ios);
}
.task { transition: transform .16s var(--ease-ios), box-shadow .18s ease, background .18s; }

/* 桌面端也保留一点节奏感，但不要干扰鼠标 */
@media (hover: hover) {
  .cell:active, .wcol:active, .seed:active, .plot:active { transform: scale(.97); }
}

@media (max-width: 860px) {
  /* 手机端：按钮热区补到 40+，拇指才按得准 */
  .round-btn { width: 38px; height: 38px; }
  .ico-btn { min-width: 34px; min-height: 34px; }
  .tb-item { min-height: 44px; }
  .sh-it { min-height: 52px; }
  .modal-head .round-btn { width: 38px; height: 38px; font-size: 15px; }
  /* 底部弹层里的小备注随内容长，但不至于撑满屏 */
  .modal textarea { max-height: 34vh; }
  /* 顶栏收缩时更紧凑一点 */
  body.scrolled .topbar { padding-top: calc(6px + var(--safe-t)); padding-bottom: 6px; }
  body.scrolled .tb-title h1 { font-size: 16px; }
  body.scrolled .tb-title p { opacity: .8; }
  .tb-title p { transition: opacity .2s ease; }
  /* 心情浮条：可以左右滑都不用，但按下去要有反馈 */
  .pop .mood-row button:active { transform: scale(.94); }
  /* 撤销提示要给标签栏让位 */
  .toast.has-act { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); }
  /* iOS 惯性滚动 + 不把滚动链传给 body */
  .modal, .side, .seed-row, .att-list { -webkit-overflow-scrolling: touch; }
  .modal { overscroll-behavior: contain; }
  /* 输入框聚焦时的粉色轮廓，指明"现在在改这一格" */
  .field input:focus, .field textarea:focus, .field select:focus {
    box-shadow: 0 0 0 3px var(--pink-s);
  }
}

/* 键盘开着的时候，标签栏和悬浮球都让开 */
@media (max-width: 860px) {
  body.kbd-open .tabbar { transform: translateY(120%); transition: transform .22s var(--ease-ios); }
  .tabbar { transition: transform .22s var(--ease-ios); }
}

/* 跟手翻页时给页面一点"纸边"的厚度感，避免右侧看起来空 */
#content.pan-live {
  box-shadow: -22px 0 44px -14px rgba(120, 80, 100, .22),
              22px 0 44px -14px rgba(120, 80, 100, .2);
}
/* 撤销按钮的左右留白匀一点 */
.toast.has-act { padding: 9px 9px 9px 18px; }
.toast.has-act .tst-txt { line-height: 1.5; }
/* 提示条可点/可滑走，所以它得能接收指针事件 */
.toast.show { pointer-events: auto; }

/* 手机上的抽屉当"实心面板"看：磨砂太透会把底下的清单透出来，显得糊 */
@media (max-width: 860px) {
  .side {
    background: rgba(255, 251, 249, .975);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
  }
  [data-theme="night"] .side { background: rgba(41, 34, 56, .975); }
}

/* ---------- 导出备份面板 ---------- */
.bk-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.bk-stat div { background: var(--bg2); border-radius: 12px; padding: 9px 4px; text-align: center; }
[data-theme="night"] .bk-stat div { background: rgba(255, 255, 255, .05); }
.bk-stat b { display: block; font-size: 15px; color: var(--ink); }
.bk-stat span { font-size: 10.5px; color: var(--ink2); }
.bk-when { font-size: 11.5px; color: var(--ink2); margin-bottom: 12px; text-align: center; }
.bk-item {
  display: flex; gap: 12px; align-items: center; width: 100%; border: 0;
  background: var(--bg2); border-radius: 16px; padding: 13px 14px; margin-bottom: 8px;
  cursor: pointer; text-align: left; font-family: inherit; transition: .18s; color: var(--ink);
}
[data-theme="night"] .bk-item { background: rgba(255, 255, 255, .06); }
.bk-item:hover { background: var(--pink-s); transform: translateY(-1px); }
.bk-item i { font-size: 22px; font-style: normal; flex: none; }
.bk-item b { display: block; font-size: 13.5px; color: var(--ink); }
.bk-item span { font-size: 11.5px; color: var(--ink2); }
.bk-tip { font-size: 11px; color: var(--ink2); margin-top: 10px; line-height: 1.75; }
.bk-loading { padding: 24px; text-align: center; color: var(--ink2); font-size: 12.5px; }
.side-ver {
  margin-top: 10px; text-align: center; font-size: 10px; line-height: 1.6;
  color: var(--ink2); opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 已备份的附件 */
.att-item .att-backed {
  font-size: 9.5px; padding: 1px 5px; border-radius: 99px;
  background: var(--mint-s, #E8F7EE); color: #2E8B57; margin-left: 4px;
}

/* ==========================================================
   复盘 2.0：周期卡 + 时间轴 + 小目标 + 撒花
   ========================================================== */
.rv-hero {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px;
  margin-bottom: 14px; background: linear-gradient(150deg, #FFF3F7, #F1ECFF);
  box-shadow: var(--shadow-s);
}
[data-theme="night"] .rv-hero { background: rgba(255, 255, 255, .06); }
.rv-hero.is-done { background: linear-gradient(150deg, #EFF9F2, #F1ECFF); }
[data-theme="night"] .rv-hero.is-done { background: rgba(255, 255, 255, .05); }
.rv-hero-face { font-size: 32px; flex: none; animation: wave 2.6s ease-in-out infinite; }
.rv-hero-main { flex: 1; min-width: 0; }
.rv-hero-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.rv-hero-sub { font-size: 12px; color: var(--ink2); margin-top: 3px; }
.rv-bar { margin-top: 9px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rv-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--lav)); transition: width .4s ease;
}
.rv-go { flex: none; white-space: nowrap; }

.rv-goals { padding: 14px 16px; border-radius: 18px; background: var(--bg2); margin-bottom: 14px; }
[data-theme="night"] .rv-goals { background: rgba(255, 255, 255, .05); }
.rv-goals-h { font-size: 12.5px; color: var(--ink2); margin-bottom: 6px; }
.rv-goal {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 7px 0; font-size: 13px; border-top: 1px dashed var(--line);
}
.rv-goal:first-of-type { border-top: 0; }
.rv-goal-t { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-goal.ok .rv-goal-t { text-decoration: line-through; color: var(--ink2); }
.rv-goal-s { font-size: 11.5px; color: var(--ink2); flex: none; }

/* 时间轴 */
.letter { display: flex; gap: 10px; background: none; box-shadow: none; padding: 0; margin-bottom: 12px; position: relative; }
.letter::before {
  content: ''; position: absolute; left: 17px; top: 38px; bottom: -14px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.letter:last-child::before { display: none; }
.letter-dot {
  width: 36px; height: 36px; border-radius: 50%; background: var(--card); flex: none; z-index: 1;
  display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-s);
}
.letter-card { flex: 1; min-width: 0; border-radius: 18px; padding: 14px 16px; background: linear-gradient(160deg, var(--lav-s), var(--sky-s)); }
.letter-card .letter-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.letter-card .when { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.letter-card .sub { font-size: 11.5px; color: var(--ink2); }
.letter-card .letter-body { font-size: 13.5px; white-space: normal; }
.letter-card .letter-body p { margin: 0 0 6px; display: flex; gap: 6px; align-items: flex-start; }
.letter-card .letter-body .lb { display: inline; font-size: 13px; margin: 0; flex: none; }
.letter-card .next-line { margin-top: 8px; }
.letter-done { margin-top: 8px; font-size: 11.5px; color: var(--ink2); line-height: 1.6; }

/* 撒花 */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 950; overflow: hidden; }
.confetti i { position: absolute; top: -30px; animation: confFall 2s ease-in forwards; }
@keyframes confFall {
  to { transform: translateY(108vh) rotate(240deg); opacity: 0; }
}

/* 阶段性目标 */
.goal-row { display: flex; gap: 8px; }
.goal-row button {
  flex: 1; border: 1.5px solid var(--line); background: var(--bg2); border-radius: 12px;
  padding: 9px 6px; font-size: 12.5px; cursor: pointer; font-family: inherit; color: var(--ink2); transition: .18s;
}
.goal-row button.on { border-color: var(--pink); background: var(--pink-s); color: var(--pink); font-weight: 600; }
.goal-box { margin-top: 10px; background: var(--bg2); border-radius: 14px; padding: 12px; }
[data-theme="night"] .goal-box { background: rgba(255, 255, 255, .05); }
.goal-due { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink2); }
.goal-due input {
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px;
  background: var(--card); color: var(--ink); font-family: inherit;
}
.goal-hint { margin-top: 8px; font-size: 11.5px; color: var(--ink2); line-height: 1.6; }
.chip.goal { background: #FFF4D6; color: #A9700A; }
[data-theme="night"] .chip.goal { background: rgba(255, 200, 80, .16); color: #F0C060; }
.opt { font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink2); margin-left: 6px; }
.auto-goals { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.auto-goal { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: #FFF4D6; color: #8A5B00; }
.auto-goal.ok { background: var(--mint-s, #E8F7EE); color: #2E8B57; text-decoration: line-through; }
[data-theme="night"] .auto-goal { background: rgba(255, 200, 80, .16); color: #F0C060; }
