/* 我们的小屋 — 温柔、干净、手机优先 */
:root {
  --bg: #f2f8fd;
  --card: #ffffff;
  --ink: #22384c;
  --sub: #6f879c;
  --line: #e0edf7;
  --coral: #4e9fdd;
  --coral-deep: #2f7fc7;
  --peach: #d8effc;
  --gold: #f0b23f;
  --lilac: #e8f4ff;
  --mint: #e2f5e8;
  --shadow: 0 4px 18px rgba(50, 110, 160, 0.10);
  --shadow-lift: 0 10px 30px rgba(50, 110, 160, 0.18);
  --r-lg: 24px;
  --r-md: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  min-height: 100dvh;
  background-image:
    radial-gradient(600px 300px at 105% -5%, #dceffc 0%, transparent 70%),
    radial-gradient(500px 260px at -10% 12%, #eaf6ff 0%, transparent 65%);
  background-attachment: fixed;
}

#main {
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: calc(122px + env(safe-area-inset-bottom));
  position: relative;
}

.hidden { display: none !important; }

/* ---------------- 顶部 ---------------- */
.hero {
  position: relative;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 20px 22px;
  border-radius: 0 0 30px 30px;
  color: #fff;
  background: linear-gradient(150deg, #5cabe0 0%, #3f92d2 52%, #2f7fc2 100%);
  box-shadow: 0 12px 30px rgba(60, 130, 190, 0.26);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.hero::before {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -90px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.greet {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.4px;
  opacity: 0.92;
}
.hero h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.22);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.date-line {
  position: relative;
  z-index: 1;
  margin: 10px 0 14px;
  font-size: 12.5px;
  opacity: 0.85;
}
.chips { display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  font-size: 13px;
  backdrop-filter: blur(6px);
}
.chip .emoji { font-size: 15px; }
.chip b { font-weight: 600; }
.chip .star { font-weight: 700; color: #e0f0fc; }
.chip.me { background: rgba(255, 255, 255, 0.34); }

/* ---------------- 视图 ---------------- */
.views { padding: 20px 16px 8px; }
.view { animation: fade-up 0.35s ease both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px 12px;
}
.section-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: 0.3px; }
.section-note { font-size: 12px; color: var(--sub); }
.ghost-btn {
  border: none;
  background: none;
  color: var(--coral-deep);
  font-size: 13px;
  padding: 4px 6px;
  cursor: pointer;
  font-weight: 600;
}
.list { display: flex; flex-direction: column; gap: 10px; }

/* ---------------- 任务卡 ---------------- */
.todo {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 14px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, opacity 0.2s ease;
  position: relative;
}
.todo:active { transform: scale(0.985); }
.todo.done { opacity: 0.82; }
.todo.done .title { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--sub); }
.todo.pop { animation: pop 0.4s ease; }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.check {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid #cbdfed;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}
.check svg { width: 15px; height: 15px; opacity: 0; transform: scale(0.6); transition: all 0.2s ease; }
.todo.done .check {
  border-color: transparent;
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  box-shadow: 0 4px 10px rgba(60, 130, 190, 0.30);
}
.todo.done .check svg { opacity: 1; transform: scale(1); }
.todo-main { flex: 1; min-width: 0; }
.title { font-size: 15px; font-weight: 600; letter-spacing: 0.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { margin-top: 4px; font-size: 11.5px; color: var(--sub); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c1ced7; }
.pts {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-deep);
  background: #eff5fa;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.more-btn {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: #bfccd6;
  font-size: 17px;
  line-height: 1;
  padding: 2px 2px;
  cursor: pointer;
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 34px 18px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.9;
  border: 1.5px dashed #d1e2ee;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.55);
}
.empty .big { display: block; font-size: 30px; margin-bottom: 6px; }

.card-soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* 今日小结 */
.today-summary {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--sub);
}
.today-summary .ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-deep);
  background: conic-gradient(var(--coral) var(--p), #e0f0fc 0);
  position: relative;
}
.today-summary .ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.today-summary .ring span { position: relative; z-index: 1; }

/* ---------------- 心愿 ---------------- */
.wish {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wish.done { background: linear-gradient(160deg, #f8fbfd, #eef4f9); border-color: #f7e3c2; }
.wish-head { display: flex; align-items: center; gap: 12px; }
.wish-emoji {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: #eff5fa;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.wish.done .wish-emoji { background: #ffeecb; }
.wish-title { font-size: 15.5px; font-weight: 700; }
.wish-sub { font-size: 11.5px; color: var(--sub); margin-top: 3px; }
.wish-cost { margin-left: auto; font-size: 12px; color: var(--sub); text-align: right; }
.wish-cost b { color: var(--coral-deep); font-size: 15px; }
.bar {
  height: 9px;
  border-radius: 99px;
  background: #eaf2f8;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7fc4ee, #4e9fdd);
  transition: width 0.5s cubic-bezier(0.3, 1.2, 0.5, 1);
}
.wish.done .bar > i { background: linear-gradient(90deg, #ffd27a, #f0b23f); }
.contribs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--sub); }
.contrib { display: inline-flex; align-items: center; gap: 4px; background: #f6fafc; border-radius: 999px; padding: 4px 9px; }
.contrib b { color: var(--ink); font-weight: 600; }
.wish-actions { display: flex; gap: 8px; }
.wish-done {
  text-align: center;
  font-size: 12.5px;
  color: #c08a3e;
  background: #fff7e6;
  border: 1px solid #f9e6c4;
  border-radius: 14px;
  padding: 11px;
}
.btn-soft, .btn-line {
  flex: 1;
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-soft { background: linear-gradient(140deg, var(--coral), var(--coral-deep)); color: #fff; box-shadow: 0 6px 16px rgba(60, 130, 190, 0.25); }
.btn-soft:disabled { background: #deeaf2; color: #a3b3be; box-shadow: none; }
.btn-line { background: #fff; border: 1.5px solid #d0e9fb; color: var(--coral-deep); }
.btn-line:disabled { border-color: #e2eaf0; color: #b3bfc7; }

/* ---------------- 我们 ---------------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px;
  box-shadow: var(--shadow);
}
.stat .who-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.stat .big-pts { margin: 12px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--coral-deep); }
.stat .big-pts small { font-size: 12px; color: var(--sub); font-weight: 500; margin-left: 3px; }
.stat .lines { font-size: 11.5px; color: var(--sub); line-height: 1.9; margin-top: 6px; }
.streak {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.streak .fire { font-size: 26px; }
.streak b { font-size: 18px; }
.history h4 { margin: 0 0 12px; font-size: 14px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.ev {
  position: relative;
  padding: 0 0 14px 18px;
  font-size: 12.5px;
  color: #546069;
  line-height: 1.6;
}
.ev::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbe0fa;
}
.ev::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: #dceaf4;
}
.ev:last-child::after { display: none; }
.ev .t { display: block; font-size: 10.5px; color: #9eacb6; margin-top: 2px; }
.text-btn {
  display: block;
  margin: 18px auto 0;
  border: none;
  background: none;
  color: var(--sub);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.footer-note { text-align: center; color: #b0bdc7; font-size: 11px; margin-top: 18px; }

/* ---------------- FAB & tabbar ---------------- */
.fab {
  position: fixed;
  right: max(20px, calc((100vw - 540px) / 2 + 20px));
  bottom: calc(82px + env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
  box-shadow: 0 10px 24px rgba(60, 130, 190, 0.30);
  cursor: pointer;
  z-index: 20;
  transition: transform 0.18s ease;
  padding-bottom: 3px;
}
.fab:active { transform: scale(0.93); }

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(540px, 100%);
  display: flex;
  justify-content: space-around;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(250, 253, 255, 0.88);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(224, 237, 247, 0.9);
  z-index: 21;
}
.tab {
  border: none;
  background: none;
  color: #9ba8b2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  padding: 6px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--coral-deep); }
.tab.active svg { animation: tab-pop 0.3s ease; }
@keyframes tab-pop { 0% { transform: scale(0.85); } 100% { transform: scale(1); } }

/* ---------------- 首次进入 ---------------- */
.onboarding {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}
.onboard-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 190, 235, 0.35), transparent 62%);
  top: -180px;
  right: -140px;
  filter: blur(6px);
}
.onboard-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 28px;
  padding: 28px 22px 22px;
  box-shadow: var(--shadow-lift);
  border: 1px solid #ecf3f8;
  animation: fade-up 0.5s ease both;
}
.logo {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: linear-gradient(150deg, #d9edfc, #c4e4fa);
  box-shadow: inset 0 -3px 8px rgba(255, 255, 255, 0.7);
}
.onboard-card h1 { margin: 0; text-align: center; font-size: 22px; letter-spacing: 1px; }
.onboard-card .sub { margin: 8px 0 20px; text-align: center; font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.seg {
  display: flex;
  background: #eff4f8;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 18px;
}
.seg-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 9px;
  border-radius: 11px;
  font-size: 13px;
  color: var(--sub);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.seg-btn.active { background: #fff; color: var(--coral-deep); box-shadow: 0 2px 8px rgba(80, 140, 190, 0.12); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 6px; padding-left: 3px; }
.field input {
  width: 100%;
  border: 1.5px solid #ddeaf4;
  background: #f9fbfd;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus { border-color: #a5d5f8; background: #fff; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.btn-primary {
  width: 100%;
  border: none;
  border-radius: 15px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  box-shadow: 0 10px 22px rgba(60, 130, 190, 0.30);
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
}
.btn-primary:active { transform: scale(0.99); }
.hint { text-align: center; font-size: 11.5px; color: #a3b1bb; margin: 12px 0 0; line-height: 1.6; }
.member-pick { margin-top: 16px; }
.member-list { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.member-choice {
  flex: 1;
  border: 1.5px solid #ddeaf4;
  background: #f9fbfd;
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.member-choice .e { display: block; font-size: 24px; margin-bottom: 6px; }

/* ---------------- 弹层 ---------------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 60, 0.36);
  backdrop-filter: blur(2px);
  z-index: 40;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(540px, 100%);
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  z-index: 41;
  box-shadow: 0 -14px 40px rgba(50, 110, 160, 0.18);
  animation: sheet-up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-height: 88dvh;
  overflow-y: auto;
}
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: #d6e4ee; margin: 2px auto 16px; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }
.sheet .sheet-sub { margin: 0 0 18px; font-size: 12.5px; color: var(--sub); }
.sheet .field { margin-bottom: 16px; }
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-chip {
  border: 1.5px solid #ddeaf4;
  background: #f9fbfd;
  color: #697c92;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.seg-chip.on { border-color: #a5d5f8; background: #eef4f9; color: var(--coral-deep); font-weight: 700; }
.emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.emoji-cell {
  border: 1.5px solid transparent;
  background: #f9fbfd;
  border-radius: 12px;
  font-size: 20px;
  padding: 8px 0;
  cursor: pointer;
  font-family: inherit;
}
.emoji-cell.on { border-color: #a5d5f8; background: #eef4f9; }
.stepper { display: flex; align-items: center; gap: 14px; }
.step-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1.5px solid #ddeaf4;
  background: #f9fbfd;
  font-size: 18px;
  color: var(--coral-deep);
  cursor: pointer;
  font-family: inherit;
}
.step-val { font-size: 22px; font-weight: 800; min-width: 62px; text-align: center; }
.step-val small { font-size: 11px; color: var(--sub); font-weight: 500; display: block; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn-primary { flex: 1.6; margin: 0; }
.btn-cancel {
  flex: 1;
  border: 1.5px solid #e0eaf1;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  font-size: 15px;
  color: #697c92;
  cursor: pointer;
  font-family: inherit;
}
.danger-btn {
  width: 100%;
  border: none;
  background: #fff2ee;
  color: #e05a45;
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
}
.amount-row { display: flex; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }

/* ---------------- toast / confetti ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: rgba(22, 40, 58, 0.92);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 60;
  max-width: 86vw;
  text-align: center;
  line-height: 1.4;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 55; overflow: hidden; }
.confetti span {
  position: absolute;
  top: -10vh;
  font-size: 18px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(115vh) rotate(420deg); opacity: 0.2; }
}

@media (min-width: 541px) {
  body { padding: 0; }
  .hero { border-radius: 0 0 32px 32px; }
}

/* ---------------- 谢谢 ---------------- */
.thanks-tag {
  border: 1px solid #d0e9fb;
  background: #f4f9fc;
  color: var(--coral-deep);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  line-height: 1.5;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.thanks-tag.on {
  border-color: #dceffc;
  background: #f8fbfd;
  color: #c08a3e;
  cursor: default;
}

/* ---------------- 月度小结 ---------------- */
.month-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid #d6e8f4;
  background: linear-gradient(150deg, #f1f6fa, #e9f2f8 70%, #e2f2fd);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow);
}
.mc-label { font-size: 13px; font-weight: 700; color: #47799c; }
.mc-nums { margin-top: 5px; font-size: 12px; color: #698faa; }
.mc-arrow { color: #81afd0; font-size: 18px; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 18px;
}
.mnum {
  background: #f6fafc;
  border: 1px solid #e0eff9;
  border-radius: 16px;
  padding: 12px 4px;
  text-align: center;
}
.mnum b { display: block; font-size: 20px; color: var(--coral-deep); letter-spacing: -0.5px; }
.mnum span { font-size: 10px; color: var(--sub); }
.mbar-box { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.mbar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mbar-who { width: 62px; color: #546069; white-space: nowrap; }
.mbar { flex: 1; height: 8px; border-radius: 99px; background: #e6f0f7; overflow: hidden; }
.mbar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7fc4ee, #4e9fdd); }
.mbar-num { width: 76px; text-align: right; color: var(--sub); font-size: 11px; }
.m-note { font-size: 12.5px; color: #5d6f83; line-height: 1.9; background: #f8fbfd; border-radius: 14px; padding: 12px 14px; }
.m-tail { text-align: center; font-size: 12.5px; color: #7896ab; margin: 14px 0 0; }

/* ---------------- 邀请 ---------------- */
.invite-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  border: 1px dashed #c6deef;
  background: #f8fafc;
  font-family: inherit;
  cursor: pointer;
}
.invite-main { font-size: 14px; font-weight: 700; color: var(--coral-deep); }
.invite-sub { font-size: 11.5px; color: var(--sub); }

/* ---------------- 信箱 ---------------- */
.note-compose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.note-compose textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}
.note-compose textarea::placeholder { color: #b2bfc9; }
.note-compose-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.note-count { font-size: 11px; color: #b0bdc7; }
.note-send { flex: 0 0 auto; padding: 9px 16px; border-radius: 12px; font-size: 13px; }

.note {
  position: relative;
  background: linear-gradient(180deg, #fbfcfe, #f2f7fb);
  border: 1px solid #daeaf5;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.note.mine { background: linear-gradient(180deg, #f7fafc, #eef5fa); border-color: #d6e9f6; }
.note.unread { border-color: #bbe0fa; box-shadow: 0 6px 20px rgba(90, 160, 215, 0.16); }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--sub); margin-bottom: 7px; }
.note-who { font-weight: 700; color: #5e6f7b; }
.note-time { margin-left: auto; font-size: 10.5px; color: #a3b1bb; }
.note-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); display: inline-block; }
.note-text { font-size: 14px; line-height: 1.75; color: #384148; white-space: pre-wrap; word-break: break-word; }

.tab { position: relative; }
.tab-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--coral-deep);
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  line-height: 15px;
  text-align: center;
}

/* ---------------- 纪念日 ---------------- */
.dates-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: linear-gradient(140deg, #f1f6fa, #e8f1f8 72%, #e9f2f8);
  border: 1px solid #d5e8f6;
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow);
}
.dc-block { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dc-block b { font-size: 24px; color: #559cce; letter-spacing: -0.5px; }
.dc-block span { font-size: 10.5px; color: #7896ab; }
.dc-muted b { color: #98b8ce; }
.dc-sep { width: 1px; height: 32px; background: #cde1f0; }
.dc-arrow { color: #81afd0; font-size: 16px; margin-left: 2px; }

/* ---------------- 心愿（无星光版） ---------------- */
.wish-info { flex: 1; min-width: 0; }
.wish-flag {
  font-size: 11px;
  color: #c08a3e;
  background: #fff4dd;
  border: 1px solid #f8e4bd;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.wish-do {
  border: none;
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(60, 130, 190, 0.22);
}

/* ---------------- 地图足迹 ---------------- */
.map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--shadow);
}
.map-wrap { min-height: 140px; }
.map-loading { padding: 70px 0; text-align: center; color: var(--sub); font-size: 12.5px; }
.map-svg { width: 100%; height: auto; display: block; }
.map-region { fill: #e0ecf4; stroke: #fff; stroke-width: 1; cursor: pointer; transition: fill 0.2s ease; }
.map-region.on { fill: #a5d5f8; }
.map-region:active { fill: #c7e5fa; }
.map-decor { fill: none; stroke: #c6d8e5; stroke-width: 2; }
.map-hit { fill: transparent; cursor: pointer; }
.map-dot { fill: #bed4e3; pointer-events: none; }
.map-pin circle { fill: var(--coral); stroke: #fff; stroke-width: 2; }
.map-pin text {
  font-size: 24px;
  fill: #46789b;
  text-anchor: middle;
  font-weight: 700;
  paint-order: stroke;
  stroke: #f8fbfd;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.map-tip { text-align: center; font-size: 11.5px; color: #a3b3be; margin: 10px 0 14px; }

.place-list { display: flex; flex-direction: column; gap: 8px; }
.place-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-align: left;
}
.place-name { font-size: 14px; font-weight: 700; }
.place-meta {
  font-size: 11.5px;
  color: var(--sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 62%;
}
.place-lit {
  font-size: 10px;
  font-weight: 600;
  color: #c08a3e;
  background: #fff4dd;
  border-radius: 99px;
  padding: 2px 8px;
  vertical-align: middle;
  margin-left: 4px;
}

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  padding: 0;
  background: #e7f0f6;
  cursor: pointer;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px dashed #c8deed;
  background: #f9fbfd;
  color: #90aec3;
  font-family: inherit;
  font-size: 10.5px;
}
.photo-add b { font-size: 20px; font-weight: 400; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 25, 40, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; }
.lb-bar { display: flex; gap: 12px; }
.lb-del, .lb-close {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.lb-del { background: rgba(255, 255, 255, 0.14); color: #aad8f8; }
.lb-close { background: #fff; color: #2d3640; }

/* 5 个 tab 更紧凑 */
.tab { padding: 6px 10px; }
.tab svg { width: 21px; height: 21px; }

/* ---------------- 今晚吃什么 ---------------- */
.dinner-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: linear-gradient(140deg, #f4f9fc, #e2f2fd);
  border: 1px solid #d0e6f5;
  border-radius: var(--r-lg);
  padding: 13px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow);
}
.dinner-emoji { font-size: 23px; }
.dinner-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.dinner-main b { font-size: 14.5px; }
.dinner-main span { font-size: 11.5px; color: #718fa4; }
.dinner-arrow { color: #81afd0; font-size: 16px; }

.menu-head { align-items: center; gap: 2px; }
.menu-head h3 { flex: 1; }
.back-btn {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: #7896ab;
  padding: 0 8px 2px 0;
  cursor: pointer;
  font-family: inherit;
}

.order-empty {
  text-align: center;
  padding: 18px 16px;
  border: 1.5px dashed #d1e2ee;
  border-radius: 18px;
  background: #f8fbfd;
  color: #82929e;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.order-empty span { font-size: 11.5px; color: #a3b3be; }

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.order-status {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: #eff5fa;
  color: #559cce;
}
.order-status.cooking { background: #eaf2f8; color: #c08a3e; }
.order-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dish-chip {
  border: 1px solid #d3e6f4;
  background: #f6fafc;
  color: #485b68;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.dish-chip i { font-style: normal; color: #9eb5c6; margin-left: 2px; }
.order-note {
  width: 100%;
  border: none;
  border-bottom: 1px dashed #d1e2ee;
  background: transparent;
  padding: 6px 0 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  color: #455159;
}
.order-actions { display: flex; gap: 8px; margin-top: 12px; }
.order-actions .btn-line, .order-actions .btn-soft { flex: 1; padding: 10px; border-radius: 12px; font-size: 13px; }

.dish-cats { margin-bottom: 10px; }
.dish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.dish {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 12px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
}
.dish.on { border-color: #b4dcf9; background: #f4f9fc; }
.dish-emoji { font-size: 21px; }
.dish-name { font-size: 13.5px; font-weight: 600; }
.dish-cat { position: absolute; right: 9px; top: 7px; font-size: 9.5px; color: #a2b4c0; }
.dish-check {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}

/* 分类横滑一行 */
.dish-cats {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dish-cats::-webkit-scrollbar { display: none; }
.dish-cats .seg-chip { flex: 0 0 auto; }

/* ---------------- 智能帮点 / 购物车 ---------------- */
.ai-btn {
  width: 100%;
  margin: 6px 0 14px;
  padding: 13px;
  border-radius: 16px;
  border: 1px dashed #bfdbef;
  background: linear-gradient(140deg, #f4f9fc, #ebf3f8);
  color: #5895c0;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.smart-input { display: flex; gap: 8px; margin-bottom: 14px; }
.smart-input input {
  flex: 1;
  border: 1.5px solid #ddeaf4;
  background: #f9fbfd;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.smart-input .btn-soft { flex: 0 0 auto; width: 86px; border-radius: 14px; padding: 0; font-size: 14px; }
.ai-hint { font-size: 12px; color: #7896ab; margin-bottom: 10px; }
.rec-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.rec {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1.5px solid #ddeaf4;
  border-radius: 16px;
  padding: 12px 14px;
  background: #f9fbfd;
  cursor: pointer;
}
.rec.on { border-color: #b4dcf9; background: #f4f9fc; }
.rec-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbdfed;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  flex: 0 0 auto;
}
.rec.on .rec-check {
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  border-color: transparent;
  color: #fff;
}
.rec-main { display: flex; flex-direction: column; gap: 2px; }
.rec-main b { font-size: 14px; }
.rec-main span { font-size: 11px; color: #7896ab; }

.cart-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(76px + env(safe-area-inset-bottom));
  width: min(500px, calc(100% - 24px));
  background: #fff;
  border: 1px solid #d8e9f5;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(50, 110, 160, 0.18);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 22;
}
.cart-count { font-size: 13px; color: #546069; font-weight: 700; padding-left: 6px; }
.cart-clear {
  border: none;
  background: none;
  color: #7896ab;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.cart-go {
  margin-left: auto;
  border: none;
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  color: #fff;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.dish.ordered { opacity: 0.55; }
.dish.ordered .dish-check { background: #aabbc7; }

.hist-title { margin: 16px 0 6px; font-size: 12.5px; color: #7896ab; }
.hist-row {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #6e7d88;
  padding: 7px 2px;
  border-bottom: 1px dashed #e1ecf4;
}
.hist-date { color: #a3b3be; flex: 0 0 auto; }
.hist-items { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sheet-x {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f6fa;
  color: #7896ab;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

/* ---------------- 6 个 tab ---------------- */
.tab { padding: 6px 6px; }
.tab svg { width: 20px; height: 20px; }
.tab span { font-size: 9.5px; }
.hero-actions { display: flex; gap: 8px; }
.mail-btn { position: relative; font-size: 19px; }
.mail-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #fff;
  color: #67b3e9;
  font-size: 9.5px;
  font-style: normal;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

/* ---------------- 自律打卡 ---------------- */
.habit-title { font-size: 12px; color: #7896ab; margin: 8px 0; }
.habit {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.habit.done { background: #f7fafc; }
.habit-emoji {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #eff5fa;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: 0 0 auto;
}
.habit-main { flex: 1; min-width: 0; }
.habit-name { font-size: 14px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.habit-streak { font-size: 10.5px; color: #c08a3e; font-weight: 500; }
.habit-week { display: flex; align-items: center; gap: 4px; margin-top: 7px; }
.habit-week i {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #e6f0f7;
  color: #9fb2c0;
  font-size: 9px;
  font-style: normal;
  display: grid;
  place-items: center;
}
.habit-week i.on { background: #cae7fb; color: #4688b8; font-weight: 700; }
.habit-count { margin-left: 6px; font-size: 11px; color: #7896ab; }
.habit-check {
  border: 1px solid #c4e4fa;
  background: #f4f9fc;
  color: #559cce;
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.habit-check.on {
  background: linear-gradient(140deg, var(--coral), var(--coral-deep));
  border-color: transparent;
  color: #fff;
}
.habit-more { border: none; background: none; color: #bfccd6; font-size: 16px; cursor: pointer; padding: 0 2px; }

/* ---------------- 菜品照片 ---------------- */
.dish-photo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #eff5fa;
  display: grid;
  place-items: center;
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-photo-pick {
  width: 100%;
  border: 1.5px dashed #c8deed;
  background: #f9fbfd;
  border-radius: 14px;
  padding: 14px;
  color: #90aec3;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.dish-photo-pick.has { padding: 0; height: 130px; overflow: hidden; border-style: solid; }
.dish-photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }

.date-line b { font-size: 17px; font-weight: 800; letter-spacing: 0.3px; }
.dot-sep { opacity: 0.55; margin: 0 2px; }

/* ---------------- 城市选择 ---------------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 16px;
  max-height: 46vh;
  overflow-y: auto;
}
.city-chip {
  border: 1.5px solid #e0edf7;
  background: #f8fcff;
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 12.5px;
  font-family: inherit;
  color: #33475c;
  cursor: pointer;
}
.city-chip.on {
  border-color: #9ccdf0;
  background: #eaf6ff;
  color: #2f7fc7;
  font-weight: 700;
}

/* ---------------- 截止时间 / 生日 / 照片 ---------------- */
.mini-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #e0edf7;
  background: #f8fcff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #33475c;
  outline: none;
}
.due {
  font-size: 10.5px;
  color: #2f7fc7;
  background: #eaf6ff;
  border-radius: 8px;
  padding: 2px 6px;
  white-space: nowrap;
}
.due.overdue { color: #c94b45; background: #fff1f0; }

.bday-title { font-size: 12px; color: #6f879c; margin: 14px 4px 8px; }
.bday-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.bday-emoji { font-size: 18px; }
.bday-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bday-main b { font-size: 13.5px; }
.bday-main span { font-size: 11.5px; color: #7e93a6; }
.bday-arrow { color: #9bb6cd; }

.wish-thumbs { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.wish-thumbs img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.wish-thumbs span { font-size: 11px; color: #7e93a6; }
.habit-photo { font-size: 10.5px; color: #5d8fb5; font-weight: 500; }

.dish-add {
  border-style: dashed;
  border-color: #cfe6f7;
  background: #f7fcff;
  color: #6f93ad;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
}
.dish-add b { font-size: 18px; font-weight: 400; }

/* ---------------- 分类管理 ---------------- */
.cat-manage-chip { border-style: dashed; color: #6f93ad; }
.cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cat-row { display: flex; gap: 8px; align-items: center; }
.cat-input {
  flex: 1;
  border: 1.5px solid #e0edf7;
  background: #f8fcff;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: #33475c;
  outline: none;
}
.cat-del {
  border: none;
  background: #fff1f0;
  color: #c94b45;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.cat-add-row { display: flex; gap: 8px; margin-bottom: 6px; }
.cat-add-row .btn-soft { flex: 0 0 84px; border-radius: 12px; padding: 0; }

.cat-add-dish {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #d6e9f7;
  background: #f4fbff;
  color: #2f7fc7;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   C · 玻璃渐变（iOS 26 风格）
   整页渐变 + 半透明磨砂卡片 + 白色描边
   ============================================================ */
body {
  background: linear-gradient(165deg, #63b3e8 0%, #8fd3f2 42%, #d6ecfb 100%) fixed;
  background-color: #8fd3f2;
  color: #1f3b52;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 92% 6%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(420px 300px at 6% 28%, rgba(255, 255, 255, 0.28), transparent 70%);
  z-index: 0;
}
#main, .onboarding { position: relative; z-index: 1; }

/* 顶部：透明，融进整页渐变 */
.hero {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.hero::after, .hero::before { background: rgba(255, 255, 255, 0.12); }
.greet, .date-line { text-shadow: 0 1px 6px rgba(20, 70, 110, 0.18); }
.hero h2 { text-shadow: 0 2px 10px rgba(20, 70, 110, 0.2); }

/* 区块标题在渐变上改用白色 */
.section-head h3 { color: #fff; text-shadow: 0 1px 8px rgba(20, 70, 110, 0.22); }
.section-note { color: rgba(255, 255, 255, 0.88); }
.ghost-btn { color: #fff; text-shadow: 0 1px 6px rgba(20, 70, 110, 0.2); }

/* 玻璃卡片 */
.todo, .wish, .card-soft, .stat, .habit, .place-row, .order-card,
.dates-card, .month-card, .dish, .note, .bday-row, .note-compose,
.order-empty, .empty, .map-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 24px rgba(30, 80, 130, 0.14);
}
.todo.done { background: rgba(255, 255, 255, 0.46); }
.todo.done .check {
  background: linear-gradient(140deg, #57a8e6, #2f7fc7);
  box-shadow: 0 4px 12px rgba(30, 80, 130, 0.22);
  color: #fff;
}
.todo.done .check svg { opacity: 1; transform: scale(1); }
.todo.done .check { border-color: transparent; }
.check { border-color: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.5); box-shadow: 0 1px 4px rgba(30, 80, 130, 0.10); }
.title { color: #16293c; }
.meta, .wish-sub, .habit-week, .mbar-num, .place-meta { color: rgba(24, 58, 88, 0.68); }
.today-summary { background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.75); }
.today-summary .ring::after { background: rgba(255, 255, 255, 0.92); }

/* 蓝色标签在玻璃上更清晰 */
.pts, .due { background: rgba(255, 255, 255, 0.72); }
.thanks-tag { background: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.9); }
.thanks-tag.on { background: rgba(255, 255, 255, 0.75); }

/* 底部栏 */
.tabbar {
  background: rgba(247, 252, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.tab { color: rgba(16, 46, 74, 0.78); font-weight: 500; }
.tab.active { color: #17629f; }

/* 悬浮按钮 */
.fab {
  background: linear-gradient(150deg, #57a8e6, #2f7fc7);
  box-shadow: 0 12px 28px rgba(25, 90, 150, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

/* 输入类 */
.note-compose textarea, .note-text { color: #16293c; }
.mini-input, .field input, .cat-input, .smart-input input {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.85);
}
.order-note {
  background: transparent;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.75);
  color: #16293c;
}
.field input:focus, .mini-input:focus { border-color: rgba(47, 127, 199, 0.6); background: #fff; }
.order-note { border-bottom-color: rgba(255, 255, 255, 0.8); }

/* 表单/弹层保持高对比 */
.sheet { background: #fbfdff; }
.sheet .field input, .sheet .cat-input, .sheet .mini-input { background: #f4f9fd; border-color: #dfeaf4; }

/* 心愿 / 地图 / 空状态 */
.wish.done { background: rgba(255, 255, 255, 0.45); border-color: rgba(255, 228, 180, 0.9); }
.empty { color: rgba(24, 58, 88, 0.62); border-style: dashed; border-color: rgba(255, 255, 255, 0.8); }
.map-card { background: rgba(255, 255, 255, 0.9); }
.map-tip { color: rgba(255, 255, 255, 0.9); }
.bday-title, .habit-title, .hist-title { color: rgba(255, 255, 255, 0.88); }
.stat .lines, .bday-main span { color: rgba(24, 58, 88, 0.66); }
.month-card, .dates-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.38));
}
.mc-label, .dc-block b { color: #1d6aa8; }
.mc-nums, .dc-block span { color: rgba(24, 58, 88, 0.66); }
.bar { background: rgba(255, 255, 255, 0.55); }
.mbar { background: rgba(255, 255, 255, 0.55); }
.photo-add { background: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.85); color: #4c7fa8; }
.wish-done { background: rgba(255, 247, 230, 0.75); }
.money, .footer-note, .text-btn { color: rgba(24, 58, 88, 0.55); }

/* 完成项在玻璃上保持可读 */
.todo.done .title { color: rgba(24, 58, 88, 0.55); }

/* ---------------- 自定义头像 ---------------- */
.ava { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: -4px; }
.chip .ava { width: 20px; height: 20px; }
.stat .who-row .ava { width: 26px; height: 26px; }
.bday-emoji .ava { width: 30px; height: 30px; }
.note-who .ava { width: 18px; height: 18px; vertical-align: -3px; }
#my-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
#my-avatar { overflow: hidden; padding: 0; }

.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 2px 0 16px; }
.avatar-big {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eef7ff;
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(30, 80, 130, 0.16);
}
.avatar-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-emoji { font-size: 42px; line-height: 1; }
.avatar-edit .btn-line { padding: 9px 20px; border-radius: 12px; font-size: 13px; }

/* ---------------- 心情 ---------------- */
.mood-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(30, 80, 130, 0.14);
}
.mood-person { display: flex; align-items: center; gap: 8px; border: none; background: none; font-family: inherit; cursor: pointer; padding: 0; color: #16293c; }
.mood-person .ava { width: 26px; height: 26px; }
.mood-person > span:last-child { font-size: 13px; }
.mood-sep { color: rgba(24, 58, 88, 0.35); }
.mood-hint { margin-left: auto; font-size: 11px; color: rgba(24, 58, 88, 0.55); }

/* ---------------- 回忆 ---------------- */
.mem-month { font-size: 12px; color: rgba(255, 255, 255, 0.92); margin: 16px 4px 8px; text-shadow: 0 1px 6px rgba(20,70,110,.2); }
.mem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mem-item { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.6); padding: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.mem-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mem-item span { position: absolute; left: 6px; bottom: 5px; right: 6px; font-size: 9px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 背景设置 ---------------- */
.bg-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 13.5px;
  color: #16293c;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 80, 130, 0.12);
}
.bg-row span { margin-left: auto; font-size: 11.5px; color: rgba(24, 58, 88, 0.55); }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.bg-swatch { height: 78px; border-radius: 14px; border: 2px solid rgba(255,255,255,.85); cursor: pointer; position: relative; }
.bg-swatch.on { box-shadow: 0 0 0 3px rgba(47,127,199,.45); }
.bg-upload { width: 100%; }

/* 菜品编辑态 */
.dish { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.dish.editing { border-color: #ffd2c9; }
.dish-del {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e05a45;
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

/* ---------------- 我们的城市 ---------------- */
.city-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.city-col {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-radius: 18px;
  padding: 12px 14px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 80, 130, 0.14);
  color: #1f3b52;
}
.city-who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(24, 58, 88, 0.6); }
.city-who .ava { width: 18px; height: 18px; }
.city-name { font-size: 14px; font-weight: 700; margin-top: 6px; }
.city-time { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; color: #1d6aa8; line-height: 1.3; }
.city-weather { font-size: 12px; color: rgba(24, 58, 88, 0.62); min-height: 16px; }

.city-results { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; margin-top: 10px; }
.city-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e0edf7;
  background: #f8fcff;
  border-radius: 12px;
  padding: 11px 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.city-result b { font-size: 13.5px; color: #16293c; }
.city-result span { font-size: 11px; color: #7e93a6; }
.city-empty { font-size: 12px; color: #8fa6ba; padding: 14px 2px; text-align: center; }

/* ---------------- 地图缩放 ---------------- */
.map-wrap { position: relative; }
.map-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.map-zoom button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.86);
  color: #2f7fc7;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(30, 80, 130, 0.14);
}
.map-svg { touch-action: none; }

/* 心愿卡片上的相机按钮 */
.wish-cam {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  margin-right: 6px;
}

/* ---------------- 日历 ---------------- */
.cal-head { align-items: center; }
.cal-head h3 { flex: 1; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 30px; height: 30px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.7);
  color: #2f7fc7; font-size: 16px; line-height: 1; cursor: pointer; font-family: inherit;
}
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; color: rgba(255,255,255,.9); margin: 4px 0 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  position: relative;
  aspect-ratio: 0.82;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 4px 2px;
  font-family: inherit; cursor: pointer; color: #1f3b52;
}
.cal-cell.blank { background: transparent; border: none; cursor: default; }
.cal-cell.today { border-color: #2f7fc7; box-shadow: 0 0 0 2px rgba(47,127,199,.25); background: rgba(255,255,255,.85); }
.cal-cell.period { background: rgba(255, 205, 220, 0.75); }
.cal-cell.pred { background: rgba(255, 235, 240, 0.8); border-style: dashed; }
.cal-cell.ovu { background: rgba(210, 245, 226, 0.85); }
.cal-num { font-size: 15px; font-weight: 700; line-height: 1.1; }
.cal-lunar { font-size: 9px; color: rgba(24,58,88,.6); }
.cal-dots { display: flex; gap: 2px; height: 5px; }
.cal-dots i { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
.dot-period { background: #ef6f8f; }
.dot-pred { background: #f3b3c4; }
.dot-ovu { background: #6fbf9b; }
.dot-task { background: #4e9fdd; }
.dot-bday { background: #f0a34d; }
.dot-anniv { background: #b07fd8; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 10.5px; color: rgba(24,58,88,.7); margin: 14px 2px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: 0; }

.day-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.day-item { display: flex; align-items: center; gap: 8px; background: #f6fbfe; border: 1px solid #e2eff8; border-radius: 12px; padding: 11px 13px; font-size: 13px; }
.day-item b { font-weight: 600; color: #16293c; }
.day-item em { margin-left: auto; font-style: normal; font-size: 11px; color: #7e93a6; }
.day-empty { text-align: center; color: #8fa6ba; font-size: 13px; padding: 18px; border: 1.5px dashed #dbeaf5; border-radius: 14px; }

/* ---------------- 优先级颜色 ---------------- */
.p1 { --prio: #e05a45; }
.p2 { --prio: #e0a03a; }
.p3 { --prio: #4e9fdd; }
.p4 { --prio: #5aa87a; }
.todo.p1, .todo.p2, .todo.p3, .todo.p4 { border-left: 4px solid var(--prio); }
.dot-task.p1 { background: #e05a45; }
.dot-task.p2 { background: #e0a03a; }
.dot-task.p3 { background: #4e9fdd; }
.dot-task.p4 { background: #5aa87a; }

.cal-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cal-row {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(30, 80, 130, 0.10);
}
.cal-date { flex: 0 0 46px; font-size: 12.5px; font-weight: 700; color: #1d6aa8; }
.cal-date span { display: block; font-size: 10px; color: rgba(24, 58, 88, 0.55); font-weight: 400; margin-top: 2px; }
.cal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-chip { font-size: 11px; padding: 4px 8px; border-radius: 8px; color: #fff; line-height: 1.2; }
.cal-chip.p1 { background: #e05a45; }
.cal-chip.p2 { background: #e0a03a; }
.cal-chip.p3 { background: #4e9fdd; }
.cal-chip.p4 { background: #5aa87a; }
.cal-chip.muted { background: #b07fd8; }
.cal-chip em { font-style: normal; opacity: 0.8; margin-left: 4px; font-size: 10px; }

.day-item.p1, .day-item.p2, .day-item.p3, .day-item.p4 { border-left: 3px solid var(--prio); }
.day-prio { font-size: 10px; color: rgba(24, 58, 88, 0.55); }

.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: rgba(24, 58, 88, 0.7); margin: 14px 2px 6px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal-hint { font-size: 10px; color: rgba(24, 58, 88, 0.62); line-height: 1.8; margin: 0 2px 12px; }
.cal-hint i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin: 0 3px 0 6px; }
.cal-list-head { font-size: 11px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.9); margin: 6px 2px 2px; }

/* ---------------- 本周条 ---------------- */
.week-card {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-radius: 18px;
  padding: 12px 12px 10px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(30, 80, 130, 0.14);
}
.week-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 2px; }
.week-title { font-size: 12px; font-weight: 700; color: #1f3b52; letter-spacing: .5px; }
.week-open { border: none; background: none; color: #2f7fc7; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.week-day {
  border: none; background: transparent; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px; cursor: pointer; font-family: inherit; color: #1f3b52;
}
.week-day .wd { font-size: 10px; color: rgba(24, 58, 88, 0.55); }
.week-day .wn { font-size: 16px; font-weight: 700; line-height: 1.2; }
.week-day .wdots { display: flex; gap: 2px; height: 5px; }
.week-day .wdots i { width: 4px; height: 4px; border-radius: 50%; }
.week-day.today { background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 12px rgba(30, 80, 130, 0.16); }
.week-day.today .wn { color: #1d6aa8; }
.week-day.period { background: rgba(255, 205, 220, 0.5); }

/* Toast 撤销按钮 */
#toast.with-action { display: flex; align-items: center; gap: 12px; padding-right: 10px; }
.toast-act {
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* 自律：频率/记录 */
.habit-sub { font-size: 11px; color: rgba(24, 58, 88, 0.6); margin-top: 2px; }
.habit-today { font-size: 12.5px; background: #f2f9ff; border-radius: 12px; padding: 10px 12px; margin: 6px 0 12px; color: #1f3b52; }
.habit-restore { border: 1px solid #dfeaf4; background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 12px; color: #2f7fc7; font-family: inherit; cursor: pointer; }
.habit.archived { opacity: 0.62; }

/* ---------------- 自律：金币 / 三餐 / 奖励 ---------------- */
.coin-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 236, 179, .9), rgba(255, 247, 214, .85));
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(30, 80, 130, .12);
}
.coin-num { font-size: 30px; font-weight: 800; color: #a8730f; line-height: 1.1; }
.coin-num span { font-size: 16px; margin-left: 4px; }
.coin-label { font-size: 11px; color: #9a7a3d; margin-top: 2px; }
.coin-shop { border: none; background: rgba(255,255,255,.75); color: #a8730f; font-family: inherit; font-size: 12px; font-weight: 700; border-radius: 11px; padding: 9px 12px; cursor: pointer; }

.meal-card { background: rgba(255,255,255,.64); border: 1px solid rgba(255,255,255,.85); border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(30,80,130,.12); }
.meal-title { font-size: 13px; font-weight: 700; color: #1f3b52; margin-bottom: 10px; }
.meal-title span { font-weight: 400; font-size: 11px; color: rgba(24,58,88,.55); margin-left: 6px; }
.meal-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meal-btn { border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.55); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; cursor: pointer; color: #1f3b52; }
.meal-btn.on { background: rgba(255, 232, 170, .85); border-color: #f3d27e; }
.meal-ico { font-size: 18px; }
.meal-label { font-size: 12px; font-weight: 600; }
.meal-state { font-size: 10px; color: rgba(24,58,88,.55); }

.reward-balance { font-size: 13px; color: #1f3b52; margin: 8px 0 12px; }
.reward-balance b { font-size: 20px; color: #a8730f; }
.reward-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.reward-row { display: flex; align-items: center; gap: 10px; background: #fbf7ec; border: 1px solid #f3e7c8; border-radius: 14px; padding: 11px 12px; }
.reward-emoji { font-size: 20px; }
.reward-main { flex: 1; display: flex; flex-direction: column; }
.reward-main b { font-size: 13.5px; color: #16293c; }
.reward-main span { font-size: 11px; color: #a8730f; }
.reward-buy { border: none; background: #f3c65a; color: #5a3d00; font-family: inherit; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.reward-buy:disabled { background: #eee; color: #aaa; cursor: default; }
.reward-add { display: flex; gap: 6px; margin-bottom: 12px; }
.reward-add input { flex: 1; border: 1.5px solid #dfeaf4; background: #f4f9fd; border-radius: 12px; padding: 10px; font-family: inherit; font-size: 13px; outline: none; }
.reward-add input#rw-cost { flex: 0 0 70px; }
.reward-add .btn-line { border-radius: 12px; padding: 0 14px; }
.reward-hist { font-size: 11px; color: #8fa6ba; line-height: 1.8; margin-bottom: 8px; }

.ex-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.ex-row { display: flex; justify-content: space-between; background: #f6fbfe; border: 1px solid #e2eff8; border-radius: 12px; padding: 11px 13px; font-size: 13px; }
.ex-row b { color: #16293c; font-weight: 600; }
.ex-row span { color: #7e93a6; font-size: 12px; }

.habit-empty { width: 100%; border: 1.5px dashed rgba(255,255,255,.85); background: rgba(255,255,255,.35); border-radius: 14px; padding: 14px; font-family: inherit; font-size: 12px; color: rgba(24,58,88,.6); cursor: pointer; margin-bottom: 8px; }
