:root {
  --oat: #f3e8d2;
  --paper: #fff9ee;
  --paper-2: #f8edda;
  --cacao: #3b2e28;
  --cacao-2: #251914;
  --muted: #74665d;
  --line: rgba(74, 55, 44, 0.13);
  --lime: #b8d65b;
  --lime-deep: #8dad2f;
  --coral: #ed806a;
  --coral-deep: #b95542;
  --mist: #b9d8cf;
  --white: #fffdf6;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 0 16px 45px rgba(59, 46, 40, 0.13);
  --display: "STKaiti", "KaiTi", "FZKai-Z03", serif;
  --body: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: #ded1bd;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--cacao);
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% 20%, rgba(237, 128, 106, 0.2), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(184, 214, 91, 0.2), transparent 30%),
    #ded1bd;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(141, 173, 47, 0.5);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-a {
  top: -190px;
  right: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.75), rgba(185,216,207,.25) 42%, transparent 70%);
}

.ambient-b {
  bottom: -240px;
  left: -100px;
  background: radial-gradient(circle at 55% 45%, rgba(184,214,91,.38), rgba(237,128,106,.13) 45%, transparent 70%);
}

.brand-panel {
  position: fixed;
  z-index: 1;
  left: clamp(28px, 8vw, 130px);
  top: 50%;
  width: min(390px, 28vw);
  transform: translateY(-50%);
}

.brand-lockup,
.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-lockup {
  font-size: clamp(25px, 2.4vw, 40px);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 26px;
  height: 26px;
  background: var(--cacao);
  border-radius: 55% 45% 50% 50%;
}

.brand-mark i:first-child { left: 0; top: 1px; transform: rotate(20deg); }
.brand-mark i:last-child { right: 0; bottom: 0; width: 19px; height: 19px; transform: rotate(-18deg); }
.brand-mark.small { width: 30px; height: 20px; }
.brand-mark.small i { width: 18px; height: 18px; }
.brand-mark.small i:last-child { width: 13px; height: 13px; }
.brand-mark.light i { background: var(--oat); }

.brand-kicker,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-panel .brand-kicker { margin-top: 22px; }

.brand-panel h2 {
  margin: 24px 0 16px;
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 74px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.brand-panel > p:last-of-type {
  max-width: 340px;
  color: #65564d;
  font-size: 15px;
  line-height: 1.85;
}

.palette { display: flex; gap: 12px; margin-top: 34px; }
.palette i { width: 25px; height: 25px; border: 3px solid rgba(255,255,255,.58); border-radius: 50%; background: var(--swatch); box-shadow: 0 4px 10px rgba(59,46,40,.14); }

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100vw - 32px));
  height: min(900px, calc(100dvh - 32px));
  margin: 16px calc(15vw - 18px) 16px auto;
  overflow: hidden;
  border: 7px solid var(--cacao);
  border-radius: 42px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(50, 35, 27, 0.26), inset 0 0 0 1px rgba(255,255,255,.7);
}

.view {
  position: absolute;
  inset: 0 0 76px;
  display: none;
  min-height: 0;
  flex-direction: column;
  background:
    radial-gradient(circle at 85% 13%, rgba(237,128,106,.11), transparent 26%),
    var(--paper);
}

.view.active {
  display: flex;
  animation: view-in 380ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 20px 28px;
}

.view-scroll::-webkit-scrollbar { display: none; }

.app-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px 8px;
}

.mini-brand { font-size: 14px; }
.privacy-note { color: #77685e; font-size: 9px; line-height: 1.35; text-align: right; }
.privacy-note b { color: var(--cacao); font-weight: 600; }

.hero-copy {
  position: relative;
  padding-top: 14px;
}

.hero-copy h1,
.page-heading h1,
.relax-copy h1 {
  margin: 7px 0 8px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy > p:last-of-type,
.page-heading > p:last-child,
.relax-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.hand-note {
  position: absolute;
  top: 50px;
  right: 3px;
  transform: rotate(-7deg);
  color: #5d4c42;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1.25;
}

.hand-note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 68px;
  height: 8px;
  border-bottom: 1px solid var(--cacao);
  border-radius: 50%;
}

.weather-stage {
  position: relative;
  height: 205px;
  margin-top: 4px;
}

.weather-orb {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 190px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 47% 53% 58% 42% / 45% 41% 59% 55%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.94) 0 8%, transparent 30%),
    radial-gradient(circle at 30% 70%, rgba(184,214,91,.78), transparent 40%),
    radial-gradient(circle at 72% 38%, rgba(237,128,106,.88), transparent 43%),
    radial-gradient(circle at 70% 76%, rgba(185,216,207,.9), transparent 43%),
    rgba(255,249,238,.9);
  box-shadow: inset -10px -10px 30px rgba(59,46,40,.06), inset 14px 10px 25px rgba(255,255,255,.7), 0 18px 35px rgba(106,81,66,.12);
  animation: orb-breathe 7s ease-in-out infinite;
}

.weather-orb::before,
.weather-orb::after,
.weather-orb i {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.44);
}

.weather-orb::before { inset: 12px 18px 20px 12px; }
.weather-orb::after { inset: 31px 24px 16px 34px; border-color: rgba(59,46,40,.08); }
.weather-orb i:nth-child(1) { width: 32px; height: 18px; top: 36px; right: 29px; filter: blur(5px); background: rgba(255,255,255,.8); }
.weather-orb i:nth-child(2) { width: 45px; height: 45px; bottom: 33px; left: 25px; filter: blur(11px); background: rgba(255,255,255,.42); }
.weather-orb i:nth-child(3) { width: 28px; height: 28px; bottom: 22px; right: 30px; border: 0; background: rgba(255,255,255,.35); }

@keyframes orb-breathe {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); border-radius: 47% 53% 58% 42% / 45% 41% 59% 55%; }
  50% { transform: translateX(-50%) scale(1.035) rotate(2deg); border-radius: 54% 46% 45% 55% / 52% 57% 43% 48%; }
}

.weather-status {
  position: absolute;
  right: 2px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
  font-size: 9px;
}
.weather-status b { color: var(--cacao); font-size: 11px; }

.last-record { margin-top: -1px; }
.last-record span { display: block; font-size: 11px; }
.last-record strong { display: block; margin-top: 1px; font-family: var(--display); font-size: 35px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.action-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.action-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  border: 0;
  border-radius: 26px 17px 25px 17px;
  background: #fff6e7;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(59,46,40,.04);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.action-card:active { transform: scale(.97); }
.action-card.success { background: linear-gradient(145deg, #d9eba4, #f7f2d6); }
.action-card.effort { background: linear-gradient(145deg, #f7c5ac, #fff0dc); }
.action-card.discomfort { background: linear-gradient(145deg, #cbe5dd, #f4eee2); }
.action-card b, .action-card small { position: absolute; left: 12px; z-index: 2; }
.action-card b { bottom: 29px; font-size: 13px; white-space: nowrap; }
.action-card small { bottom: 12px; color: #77665d; font-size: 8px; }

.soft-shape { position: absolute; top: 16px; left: 50%; display: block; width: 45px; height: 31px; transform: translateX(-50%); filter: drop-shadow(0 5px 8px rgba(59,46,40,.08)); }
.soft-shape.bean { border-radius: 62% 38% 48% 52%; background: linear-gradient(135deg, #8fb749, #c7e274); transform: translateX(-50%) rotate(-13deg); }
.soft-shape.ribbon { border-radius: 50%; background: linear-gradient(160deg, #ef7e68, #f5ac95); clip-path: polygon(0 30%, 28% 13%, 55% 35%, 100% 4%, 88% 66%, 55% 88%, 28% 59%, 5% 95%); }
.soft-shape.cloud { border-radius: 42% 58% 65% 35%; background: linear-gradient(135deg, #9ec9c0, #d7e6db); box-shadow: 15px 5px 0 -8px #aed2cc, -12px 6px 0 -7px #8fbfb7; }

.walk-card {
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 0;
  border-radius: 25px 16px 25px 16px;
  background: #fff7e7;
  align-items: center;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
}
.walk-card span:nth-child(2) { display: flex; flex-direction: column; }
.walk-card small { color: var(--muted); font-size: 9px; }
.walk-card b { margin-top: 2px; font-size: 14px; }
.round-arrow { display: grid; width: 30px; height: 30px; border-radius: 50%; place-items: center; color: var(--cacao); background: var(--lime); font-size: 25px; font-style: normal; line-height: 1; }

.cluster-icon { position: relative; width: 45px; height: 40px; }
.cluster-icon i { position: absolute; width: 24px; height: 24px; border-radius: 48% 52% 54% 46%; background: linear-gradient(145deg, #b8d65b, #6e9b42); }
.cluster-icon i:nth-child(1) { left: 3px; top: 2px; }
.cluster-icon i:nth-child(2) { right: 1px; top: 7px; }
.cluster-icon i:nth-child(3) { left: 11px; bottom: 0; }

.quiet-quote { margin: 18px 0 4px; color: #685950; font-family: var(--display); font-size: 12px; text-align: center; }

.reveal { animation: rise 520ms cubic-bezier(.2,.8,.2,1) both; }
.delay-1 { animation-delay: 60ms; }
.delay-2 { animation-delay: 120ms; }
.delay-3 { animation-delay: 180ms; }
.delay-4 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.page-heading {
  flex: 0 0 auto;
  padding: 22px 20px 15px;
}
.page-heading.compact { padding-bottom: 10px; }
.page-heading h1 { font-size: 31px; }

.calendar-scroll,
.insights-scroll,
.profile-scroll { padding-top: 2px; }

.calendar-card,
.weather-calendar-card,
.trend-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-md);
  background: rgba(255, 252, 244, 0.78);
  box-shadow: 0 12px 28px rgba(59,46,40,.06);
}

.month-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.month-switcher strong { font-family: var(--display); font-size: 20px; }
.month-switcher button { display: grid; width: 42px; height: 42px; border: 0; border-radius: 50%; place-items: center; background: var(--paper-2); font-size: 25px; }

.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.weekdays { margin: 17px 0 8px; color: var(--muted); font-size: 10px; }
.calendar-grid { gap: 5px 2px; }
.calendar-day { position: relative; display: grid; min-height: 39px; border: 0; border-radius: 50%; place-items: center; background: transparent; font-size: 11px; }
.calendar-day.muted { opacity: .25; }
.calendar-day.today { background: var(--cacao); color: var(--white); font-weight: 800; }
.calendar-day::after { content: ""; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; }
.calendar-day.smooth::after { background: var(--lime-deep); }
.calendar-day.effort::after { background: var(--coral); }
.calendar-day.missed::after { background: #8a8179; }

.legend,
.heat-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 9px; }
.legend span,
.heat-legend span { display: flex; align-items: center; gap: 4px; }
.dot,
.heat-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot.smooth,.heat-legend .smooth { background: var(--lime); }
.dot.effort,.heat-legend .hard { background: var(--coral); }
.dot.missed { background: #8a8179; }
.heat-legend .normal { background: #e2ccaa; }
.heat-legend .discomfort { background: #777168; }
.heat-legend .empty { background: #e9e2d6; }

.section-title,
.card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-title { margin: 24px 2px 12px; }
.section-title small,
.card-head small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.section-title h2,
.card-head h2 { margin: 3px 0 0; font-family: var(--display); font-size: 19px; }
.section-title button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--lime); font-size: 12px; font-weight: 800; }

.record-list { display: grid; gap: 10px; }
.record-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 20px 13px 20px 13px; background: rgba(255,252,244,.7); }
.record-item .record-glyph { display: grid; width: 42px; height: 42px; border-radius: 50%; place-items: center; background: var(--paper-2); color: var(--coral-deep); font-family: var(--display); font-size: 17px; }
.record-item b { display: block; font-size: 12px; }
.record-item small { color: var(--muted); font-size: 9px; }
.record-item time { color: var(--muted); font-size: 9px; }
.empty-state { padding: 28px 10px; color: var(--muted); text-align: center; font-size: 12px; }

.metric-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.metric-row article { min-height: 106px; padding: 13px 10px; border-radius: 22px 13px 22px 13px; background: #e9f0e3; }
.metric-row article.peach { background: #f9d8c8; }
.metric-row article.lime { background: #e1edb5; }
.metric-row small,.metric-row span { display: block; font-size: 8px; }
.metric-row strong { display: block; margin: 8px 0 6px; font-family: var(--display); font-size: 29px; font-variant-numeric: tabular-nums; }
.metric-row em { font-family: var(--body); font-size: 10px; font-style: normal; }
.metric-row #insightLongest { white-space: nowrap; letter-spacing: -.055em; }
.metric-row #insightLongest em { margin: 0 1px; letter-spacing: 0; }
.metric-row span { color: var(--muted); }

.weather-calendar-card,
.trend-card { margin-top: 10px; }
.card-head > span { color: var(--muted); font-family: var(--display); font-size: 10px; line-height: 1.35; text-align: right; }
.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 16px; }
.heat-cell { aspect-ratio: 1; border-radius: 50%; background: #e9e2d6; box-shadow: inset 0 2px 4px rgba(59,46,40,.08); }
.heat-cell.smooth { background: linear-gradient(145deg, #d7e89d, #9ec54f); }
.heat-cell.normal { background: linear-gradient(145deg, #f5ead8, #dbc296); }
.heat-cell.hard { background: linear-gradient(145deg, #f2a18e, #e36f59); }

.trend-badge { padding: 6px 8px; border-radius: 10px; color: var(--cacao) !important; background: #eef3d7; font-family: var(--body) !important; font-size: 8px !important; }
.trend-card svg { width: 100%; height: 125px; margin-top: 8px; overflow: visible; }
.chart-area { fill: url(#area); }
.chart-line { fill: none; stroke: var(--lime-deep); stroke-width: 4; stroke-linecap: round; }
.trend-card circle { fill: var(--coral); stroke: var(--white); stroke-width: 3; }
.axis { display: flex; justify-content: space-between; margin-top: -5px; color: var(--muted); font-size: 8px; }

.insight-note {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 15px;
  border-radius: 23px 14px 23px 14px;
  background: linear-gradient(140deg, #e5efa9, #fff1cf 72%);
}
.insight-note .bulb { display: grid; width: 32px; height: 32px; border-radius: 50%; place-items: center; color: var(--cacao); background: var(--lime); }
.insight-note small,.insight-note b,.insight-note p { display: block; }
.insight-note small { color: var(--muted); font-size: 8px; }
.insight-note b { margin-top: 3px; font-size: 11px; line-height: 1.45; }
.insight-note p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }

.secondary-button,
.save-button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 20px;
  color: var(--white);
  background: var(--cacao);
  font-size: 13px;
  font-weight: 800;
}

.dark-view {
  color: var(--white);
  background:
    radial-gradient(circle at 70% 45%, rgba(184,214,91,.12), transparent 30%),
    linear-gradient(160deg, #2d1f18, #1e1511 70%);
}
.dark-header .privacy-note { color: rgba(255,255,255,.55); }
.dark-header .privacy-note b { color: var(--oat); }
.relax-scroll { padding-top: 8px; }
.relax-copy .eyebrow { color: var(--lime); }
.relax-copy h1 { font-size: 35px; }
.relax-copy > p:last-child { color: rgba(255,255,255,.62); }

.breathing-stage { position: relative; height: 310px; margin: 5px -20px 0; overflow: hidden; }
.breath-ring { position: absolute; left: 50%; top: 48%; border: 1px solid rgba(184,214,91,.26); border-radius: 50%; transform: translate(-50%,-50%); }
.breath-ring.r1 { width: 220px; height: 220px; }
.breath-ring.r2 { width: 275px; height: 275px; opacity: .6; }
.breath-ring.r3 { width: 335px; height: 335px; opacity: .3; }
.breathing-stage.running .breath-ring { animation: breathe-ring 8s ease-in-out infinite; }
.breathing-stage.running .r2 { animation-delay: -1s; }
.breathing-stage.running .r3 { animation-delay: -2s; }
@keyframes breathe-ring { 0%,100% { transform: translate(-50%,-50%) scale(.94); opacity: .22; } 50% { transform: translate(-50%,-50%) scale(1.05); opacity: .75; } }

.breath-core { position: absolute; left: 50%; top: 46%; display: flex; width: 160px; height: 160px; border-radius: 45% 55% 52% 48%; transform: translate(-50%,-50%); align-items: center; justify-content: center; flex-direction: column; color: var(--cacao); background: radial-gradient(circle at 35% 30%, #efffb7, var(--lime) 48%, #738f27 100%); box-shadow: 0 0 46px rgba(184,214,91,.28), inset 10px 12px 22px rgba(255,255,255,.32); animation: core-float 7s ease-in-out infinite; }
.breath-core span { font-size: 10px; font-weight: 800; }
.breath-core strong { margin-top: 3px; font-size: 22px; font-variant-numeric: tabular-nums; }
@keyframes core-float { 0%,100% { border-radius: 45% 55% 52% 48%; transform: translate(-50%,-50%) rotate(-2deg); } 50% { border-radius: 54% 46% 43% 57%; transform: translate(-50%,-50%) rotate(2deg); } }

.meditation-figure { position: absolute; left: 50%; bottom: 3px; width: 122px; height: 95px; transform: translateX(-50%); opacity: .85; }
.meditation-figure i { position: absolute; display: block; border: 2px solid var(--oat); }
.meditation-figure .head { top: 0; left: 51px; width: 21px; height: 21px; border-radius: 50%; background: var(--oat); }
.meditation-figure .body { top: 24px; left: 43px; width: 38px; height: 48px; border-radius: 50% 50% 28% 28%; border-bottom: 0; }
.meditation-figure .leg { bottom: 0; width: 70px; height: 34px; border-radius: 50%; border-top: 0; }
.meditation-figure .leg.left { left: 2px; transform: rotate(-8deg); }
.meditation-figure .leg.right { right: 2px; transform: rotate(8deg); }

.exercise-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.exercise-tabs button { min-height: 92px; padding: 10px 5px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px 12px 18px 12px; color: var(--oat); background: rgba(255,255,255,.07); }
.exercise-tabs button.active { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.exercise-tabs i,.exercise-tabs b,.exercise-tabs small { display: block; }
.exercise-tabs i { height: 27px; color: var(--lime); font-size: 23px; font-style: normal; }
.exercise-tabs b { margin-top: 5px; font-size: 10px; }
.exercise-tabs small { margin-top: 4px; color: rgba(255,255,255,.48); font-size: 7px; }
.lime-button { display: flex; width: 100%; min-height: 52px; margin-top: 14px; padding: 0 14px 0 20px; border: 0; border-radius: 22px; align-items: center; justify-content: space-between; color: var(--cacao); background: var(--lime); font-size: 13px; font-weight: 900; }
.lime-button span { display: grid; width: 26px; height: 26px; border-radius: 50%; place-items: center; color: var(--oat); background: var(--cacao); font-size: 22px; }
.safety-note { margin: 11px 0 0; color: rgba(255,255,255,.45); font-size: 9px; text-align: center; }

.profile-hero { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 20px; align-items: center; border-radius: 32px 16px 32px 16px; background: linear-gradient(145deg,#dfeab5,#f9d2bc); }
.profile-orb { width: 105px; aspect-ratio: 1; border-radius: 52% 48% 57% 43%; background: radial-gradient(circle at 32% 28%,#fff 0 8%,transparent 28%),radial-gradient(circle at 28% 68%,#b8d65b,transparent 38%),radial-gradient(circle at 72% 35%,#ed806a,transparent 38%),#b9d8cf; box-shadow: inset 8px 9px 17px rgba(255,255,255,.46); }
.profile-hero small { color: var(--muted); font-size: 9px; }
.profile-hero strong { display: block; margin: 4px 0; font-family: var(--display); font-size: 30px; }
.profile-hero p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.profile-stats-entry {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 105px;
  margin-top: 12px;
  padding: 17px 18px;
  border: 0;
  border-radius: 27px 16px 27px 16px;
  grid-template-columns: 1fr 104px;
  align-items: center;
  overflow: hidden;
  color: #fff8e9;
  background:
    radial-gradient(circle at 89% 8%, rgba(190,220,91,.19), transparent 32%),
    linear-gradient(132deg, #4b352b 0%, #2f201a 72%);
  box-shadow: 0 13px 26px rgba(59,46,40,.12), inset 0 1px rgba(255,255,255,.08);
  text-align: left;
}
.profile-stats-entry::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -41px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(190,220,91,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(190,220,91,.035), 0 0 0 31px rgba(190,220,91,.025);
}
.profile-stats-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; }
.profile-stats-copy small { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.profile-stats-copy b { margin-top: 4px; font-family: var(--display); font-size: 24px; letter-spacing: -.035em; }
.profile-stats-copy em { margin-top: 2px; color: rgba(255,248,233,.78); font-size: 10px; font-style: normal; font-weight: 800; }
.profile-stats-copy > i { margin-top: 5px; color: rgba(255,248,233,.46); font-size: 8px; font-style: normal; }
.profile-stats-visual { position: relative; z-index: 1; display: flex; height: 64px; align-items: flex-end; justify-content: center; gap: 6px; }
.profile-stats-visual > i { width: 12px; border-radius: 7px 7px 3px 3px; background: linear-gradient(#d8ed82,#91b52e); box-shadow: inset 0 1px rgba(255,255,255,.36); }
.profile-stats-visual > i:nth-child(1) { height: 24px; opacity: .68; }
.profile-stats-visual > i:nth-child(2) { height: 39px; opacity: .84; }
.profile-stats-visual > i:nth-child(3) { height: 54px; }
.profile-stats-visual > b { display: grid; width: 27px; height: 27px; margin: 0 0 12px 3px; border-radius: 50%; place-items: center; color: var(--cacao); background: var(--lime); font-size: 21px; }
.profile-stats-entry:active { transform: translateY(1px); }

.settings-group { margin-top: 11px; }
.settings-group button { display: flex; width: 100%; min-height: 73px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; background: transparent; text-align: left; }
.settings-group button > span { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; align-items: center; }
.settings-group button i { grid-row: 1/3; display: grid; width: 30px; height: 30px; border-radius: 50%; place-items: center; background: var(--paper-2); font-size: 15px; font-style: normal; }
.settings-group button b { font-size: 12px; }
.settings-group button small { color: var(--muted); font-size: 8px; }
.settings-group em { font-style: normal; }
.toggle { position: relative; display: inline-block; width: 40px; height: 23px; border-radius: 20px; background: #d8cec0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 5px rgba(59,46,40,.18); transition: transform 180ms ease; }
.toggle.on { background: var(--lime-deep); }
.toggle.on::after { transform: translateX(17px); }
.medical-boundary { margin-top: 18px; padding: 15px; border-left: 3px solid var(--coral); border-radius: 4px 15px 15px 4px; background: rgba(237,128,106,.1); }
.medical-boundary b { font-size: 10px; }
.medical-boundary p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.6; }

.bottom-nav {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 76px;
  grid-template-columns: repeat(5,1fr);
  padding: 8px 9px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(59,46,40,.09);
  background: rgba(255,249,238,.94);
  backdrop-filter: blur(15px);
}
.bottom-nav button { position: relative; display: flex; min-width: 44px; min-height: 44px; border: 0; align-items: center; justify-content: center; flex-direction: column; gap: 3px; background: transparent; color: #8b817a; }
.bottom-nav button::before { content: ""; position: absolute; top: -9px; width: 28px; height: 3px; border-radius: 3px; background: transparent; }
.bottom-nav span { height: 22px; font-size: 21px; line-height: 1; }
.bottom-nav b { font-size: 9px; font-weight: 600; }
.bottom-nav button.active { color: var(--cacao); transform: translateY(-2px); }
.bottom-nav button.active::before { background: var(--lime-deep); }
.dark-view.active ~ .bottom-nav { background: rgba(37,25,20,.94); }

.sheet-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(34,24,19,.48);
  backdrop-filter: blur(5px);
}

.record-sheet {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(430px, 100%);
  max-height: 91dvh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 13px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 34px 34px 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 70px rgba(40,28,22,.25);
  animation: sheet-in 380ms cubic-bezier(.2,.8,.2,1) both;
}
[hidden] { display: none !important; }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 42px; height: 5px; margin: 0 auto 15px; border-radius: 5px; background: #d8cbb8; }
.sheet-close { position: absolute; top: 16px; right: 18px; display: grid; width: 40px; height: 40px; border: 0; border-radius: 50%; place-items: center; background: var(--paper-2); font-size: 22px; }
.record-sheet > h2 { margin: 6px 0 3px; font-family: var(--display); font-size: 27px; }
.record-sheet > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.record-sheet form { margin-top: 18px; }
.record-sheet fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.record-sheet legend { width: 100%; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.record-sheet legend small { color: var(--muted); font-size: 9px; font-weight: 400; }

.segmented { display: grid; gap: 7px; }
.segmented.outcomes { grid-template-columns: repeat(3,1fr); }
.segmented.completeness { grid-template-columns: repeat(2,1fr); }
.segmented label { cursor: pointer; }
.segmented input,
.bristol-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented label > span { display: flex; min-height: 57px; border: 1px solid var(--line); border-radius: 17px 11px 17px 11px; align-items: center; justify-content: center; flex-direction: column; background: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; }
.segmented small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; font-weight: 400; }
.segmented input:checked + span { border-color: var(--lime-deep); background: #e7f0bd; box-shadow: inset 0 0 0 1px var(--lime-deep); }

.bristol-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.bristol-row label { position: relative; display: flex; height: 66px; border: 1px solid var(--line); border-radius: 15px 9px 15px 9px; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; }
.bristol-row label:has(input:checked) { border-color: var(--lime-deep); background: #edf3d2; box-shadow: inset 0 0 0 1px var(--lime-deep); }
.bristol-row b { margin-top: 6px; font-size: 8px; }
.stool { display: block; width: 25px; height: 16px; background: #a86d3f; }
.stool.s1 { background: radial-gradient(circle at 25% 30%,#a86d3f 0 19%,transparent 21%),radial-gradient(circle at 72% 28%,#a86d3f 0 20%,transparent 22%),radial-gradient(circle at 48% 72%,#a86d3f 0 22%,transparent 24%); }
.stool.s2 { border-radius: 45%; background: radial-gradient(circle at 20% 50%,#a86d3f 0 25%,transparent 27%),radial-gradient(circle at 50% 35%,#a86d3f 0 29%,transparent 31%),radial-gradient(circle at 80% 55%,#a86d3f 0 25%,transparent 27%); }
.stool.s3 { border-radius: 43% 57% 50% 50%; transform: rotate(-7deg); background: repeating-linear-gradient(90deg,#986039 0 7px,#b17b4b 7px 9px); }
.stool.s4 { border-radius: 68% 32% 58% 42%; transform: rotate(-12deg); background: linear-gradient(135deg,#b27b4c,#8f5735); }
.stool.s5 { border-radius: 50%; background: radial-gradient(ellipse at 20% 50%,#a86d3f 0 24%,transparent 26%),radial-gradient(ellipse at 50% 50%,#a86d3f 0 28%,transparent 30%),radial-gradient(ellipse at 80% 50%,#a86d3f 0 24%,transparent 26%); }
.stool.s6 { border-radius: 45% 55%; background: #bc8b62; clip-path: polygon(0 30%,25% 8%,47% 28%,68% 10%,100% 38%,81% 70%,54% 58%,30% 86%,5% 72%); }
.stool.s7 { border-radius: 44% 56% 65% 35%; background: #c39a76; filter: blur(1px); }

.range-labels { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font-size: 8px; }
.range-labels span:last-child { text-align: right; }
.range-labels strong { padding: 4px 8px; border-radius: 9px; color: var(--cacao); background: #edf3d2; font-size: 9px; }
input[type="range"] { width: 100%; height: 28px; margin: 5px 0 0; accent-color: var(--lime-deep); }
.save-button { margin-top: 0; background: var(--coral-deep); }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 104px;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border-radius: 18px;
  color: var(--white);
  background: var(--cacao);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,12px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 980px) {
  .brand-panel { display: none; }
  .phone-shell { margin-inline: auto; }
}

@media (max-width: 520px) {
  body { background: var(--paper); }
  .ambient { display: none; }
  .phone-shell { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .view { inset: 0 0 calc(70px + env(safe-area-inset-bottom)); }
  .bottom-nav { height: calc(70px + env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  .view-scroll { padding-inline: 15px; }
  .action-grid { gap: 5px; }
  .action-card b { left: 8px; font-size: 11px; }
  .metric-row strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* B版精调：以原始设计稿为视觉母版，并按 iPhone 17 Pro Max 440×956pt 校准 */
:root {
  --paper: #fbf2e1;
  --paper-2: #f6ead5;
  --display: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --hand: "STKaiti", "KaiTi", serif;
}

body {
  display: grid;
  place-items: center;
}

.brand-panel { display: none; }

.phone-shell {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 956px;
  aspect-ratio: auto;
  margin: 0;
  border-width: 6px;
  border-radius: 48px;
  background-color: var(--paper);
  box-shadow: 0 32px 90px rgba(50, 35, 27, .25), inset 0 0 0 1px rgba(255,255,255,.72);
  transform: translate(-50%, -50%) scale(var(--preview-scale, 1));
}

.view { inset: 0 0 78px; }
.bottom-nav { height: 78px; }
.view-scroll { padding-inline: 22px; }
.app-header { padding: 16px 22px 9px; }

.hero-copy { padding-top: 14px; }
.hero-copy h1,
.page-heading h1,
.relax-copy h1 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.075em;
}
.hero-copy h1 { margin-top: 9px; font-size: 37px; line-height: 1.12; }
.hero-copy > p:last-of-type { max-width: 210px; font-size: 13px; }
.hand-note { top: 69px; right: 7px; font-family: var(--hand); font-size: 13px; }

.weather-stage { height: 274px; margin-top: 1px; }
.weather-orb {
  top: -16px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background-color: var(--paper);
  background-image: url("./assets/body-weather-orb-v4.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: none;
  filter: saturate(1.04) contrast(1.01);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 70%, rgba(0,0,0,.98) 76%, rgba(0,0,0,.78) 84%, rgba(0,0,0,.34) 92%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 70%, rgba(0,0,0,.98) 76%, rgba(0,0,0,.78) 84%, rgba(0,0,0,.34) 92%, transparent 100%);
}
.weather-orb::before,
.weather-orb::after,
.weather-orb i { display: none; }
.weather-status { display: none; }

.last-record span { font-size: 12px; }
.last-record strong { margin-top: 2px; font-family: var(--display); font-size: 41px; font-weight: 900; }

.action-grid { gap: 10px; margin-top: 15px; }
.action-card { min-height: 132px; border-radius: 27px; }
.action-card b { left: 14px; bottom: 31px; font-size: 14px; }
.action-card small { left: 14px; bottom: 13px; font-size: 9px; }
.action-card.success { background: linear-gradient(145deg, #eef3d3, #fffaf0); }
.action-card.effort { background: linear-gradient(145deg, #f9d1bf, #fff7ea); }
.action-card.discomfort { background: linear-gradient(145deg, #d8e9e4, #fbf5e9); }
.soft-shape {
  top: 13px;
  width: 70px;
  height: 59px;
  border-radius: 22px;
  transform: translateX(-50%) !important;
  background-image: linear-gradient(145deg, var(--shape-light,#d8f18a), var(--shape-dark,#82ae2d)) !important;
  box-shadow: inset 8px 9px 14px rgba(255,255,255,.48), 0 9px 18px rgba(91,100,47,.14) !important;
  clip-path: none !important;
  filter: saturate(1.04) !important;
}
.soft-shape.bean { width: 62px; height: 38px; border-radius: 65% 35% 55% 45% !important; transform: translateX(-50%) rotate(-8deg) !important; }
.soft-shape.ribbon { --shape-light:#ffc3ad; --shape-dark:#ec765f; width: 64px; height: 34px; border-radius: 50% 35% 55% 42% !important; transform: translateX(-50%) rotate(7deg) !important; }
.soft-shape.cloud { --shape-light:#dbf1ea; --shape-dark:#79bdb3; width: 60px; height: 38px; border-radius: 56% 44% 62% 38% !important; }

.walk-card { min-height: 92px; margin-top: 14px; padding: 12px 15px; border-radius: 28px; }
.walk-card small { font-size: 10px; }
.walk-card b { font-size: 16px; }
.cluster-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: radial-gradient(ellipse at 36% 30%, #dcf29b 0 18%, transparent 19%), radial-gradient(ellipse at 62% 48%, #a9d451 0 23%, transparent 24%), radial-gradient(ellipse at 38% 72%, #7fb22e 0 21%, transparent 22%);
}
.cluster-icon i { display: none; }
.round-arrow { width: 36px; height: 36px; }
.quiet-quote { font-family: var(--hand); }

.page-heading { padding: 27px 22px 17px; }
.page-heading h1 { font-size: 35px; }
.page-heading > p:last-child { font-size: 12px; }

.metric-row { gap: 9px; }
.metric-row article { min-height: 119px; padding: 15px 12px; border-radius: 20px; }
.metric-row small, .metric-row span { font-size: 9px; }
.metric-row strong { margin: 10px 0 8px; font-size: 34px; font-weight: 900; }
.calendar-card,
.weather-calendar-card,
.trend-card { border-radius: 23px; background: rgba(255,252,245,.84); }
.heat-cell { box-shadow: inset 0 3px 7px rgba(59,46,40,.08), 0 3px 8px rgba(59,46,40,.05); }

.dark-view {
  background-color: #251711;
  background-image: linear-gradient(160deg, rgba(70,44,31,.45), rgba(27,17,13,.75));
}
.relax-copy h1 { font-size: 38px; }
.relax-copy > p:last-child { font-size: 13px; }
.breathing-stage {
  height: 390px;
  margin: 1px -22px 0;
  overflow: hidden;
  background-color: #251711;
  background-image: url("./assets/relax-scene-v2.png");
  background-repeat: no-repeat;
  background-size: auto 450px;
  background-position: center bottom;
  filter: saturate(.82) brightness(.82) contrast(1.02);
}
.breath-ring,
.meditation-figure { display: none; }
.breath-core {
  top: 39%;
  width: 150px;
  height: 110px;
  border-radius: 50%;
  color: #30221a;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 10px rgba(240,255,175,.8);
}
.breath-core span { font-size: 11px; }
.breath-core strong { font-size: 23px; }
.exercise-tabs { gap: 7px; margin-top: -4px; }
.exercise-tabs button { min-height: 104px; border-radius: 18px; }
.exercise-tabs b { font-size: 11px; }
.exercise-tabs small { font-size: 8px; }
.lime-button { min-height: 58px; border-radius: 29px; font-size: 15px; }

.bottom-nav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav button:first-child svg circle { fill: currentColor; stroke: none; }
.bottom-nav button:first-child svg path { fill: none; }
.bottom-nav b { font-size: 10px; }

.sheet-backdrop { background: rgba(35,23,17,.62); }
.record-sheet {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: 440px;
  height: 956px;
  max-height: none;
  aspect-ratio: auto;
  padding: 18px 22px 28px;
  border: 6px solid var(--cacao);
  border-radius: 48px;
  background:
    radial-gradient(circle at 84% 14%, rgba(237,128,106,.1), transparent 28%),
    var(--paper);
  transform: translate(-50%, -50%) scale(var(--preview-scale, 1));
  animation: record-page-in 360ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes record-page-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 24px)) scale(var(--preview-scale, 1)); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(var(--preview-scale, 1)); }
}
.record-topbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 17px; }
.sheet-handle { display: none; }
.sheet-close { top: 64px; right: 20px; background: rgba(59,46,40,.07); }
.record-sheet > .eyebrow { display: none; }
.record-sheet > h2 { margin: 2px 0 4px; font-family: var(--display); font-size: 31px; font-weight: 900; letter-spacing: -.055em; }
.record-sheet > p:not(.eyebrow) { font-size: 11px; }
.record-sheet form { margin-top: 15px; }
.record-sheet fieldset { margin-bottom: 10px; padding: 13px; border-radius: 18px; background: rgba(255,252,246,.76); box-shadow: inset 0 0 0 1px rgba(59,46,40,.035); }
.record-sheet legend { float: left; margin-bottom: 9px; font-size: 13px; }
.record-sheet legend + * { clear: both; }
.segmented label > span { min-height: 75px; border-radius: 13px; }
.segmented.outcomes label > span::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 48% 52% 56% 44%;
  background: #d8d0c7;
}
.segmented.outcomes label:nth-child(1) > span::before { background: linear-gradient(145deg,#b9dd61,#87af32); }
.segmented.outcomes label:nth-child(2) > span::before { background: linear-gradient(145deg,#f4aa8d,#e8816c); }
.segmented.outcomes label:nth-child(3) > span::before { background: linear-gradient(145deg,#d8d2c9,#bfb7ad); }
.bristol-row { gap: 5px; }
.bristol-row label { height: 76px; border-radius: 13px; }
.bristol-row b { margin-top: 4px; font-size: 9px; }
.stool {
  width: 40px;
  height: 38px;
  border-radius: 12px !important;
  transform: none !important;
  clip-path: none !important;
  filter: none !important;
  background-color: var(--paper) !important;
  background-image: none !important;
}
.stool.s1 { background-position: -521px -566px !important; }
.stool.s2 { background-position: -574px -566px !important; }
.stool.s3 { background-position: -628px -566px !important; }
.stool.s4 { background-position: -681px -566px !important; }
.stool.s5 { background-position: -734px -566px !important; }
.stool.s6 { background-position: -787px -566px !important; }
.stool.s7 { background-position: -840px -566px !important; }
.save-button { min-height: 56px; border-radius: 28px; background: linear-gradient(90deg,#f47f62,#eb785f); font-size: 15px; }

@media (max-width: 520px) {
  .phone-shell {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 100dvh;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    transform: none;
  }
  .view { inset: 0 0 calc(74px + env(safe-area-inset-bottom)); }
  .bottom-nav { height: calc(74px + env(safe-area-inset-bottom)); }
  .record-sheet {
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    aspect-ratio: auto;
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    transform: none;
  }
  @keyframes record-page-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
}

/* 第三轮截图对照精修 */
.bottom-nav button::before { display: none; }

.action-card.success,
.action-card.effort,
.action-card.discomfort {
  background: rgba(255, 252, 245, .9);
}
.soft-shape { border-radius: 14px; }
.cluster-icon {
  position: relative;
  width: 70px;
  height: 66px;
  border-radius: 0;
  background: none;
}
.cluster-icon i {
  position: absolute;
  display: block;
  width: 40px;
  height: 26px;
  border-radius: 62% 38% 57% 43%;
  background: linear-gradient(145deg, rgba(205,235,126,.92), #72a63d 72%);
  box-shadow: inset 6px 5px 9px rgba(255,255,255,.3), 0 7px 12px rgba(78,112,39,.14);
}
.cluster-icon i:nth-child(1) { top: 3px; left: 14px; transform: rotate(39deg); }
.cluster-icon i:nth-child(2) { top: 23px; left: 2px; transform: rotate(-28deg); }
.cluster-icon i:nth-child(3) { right: 3px; bottom: 4px; transform: rotate(45deg); }
.quiet-quote { display: none; }

/* 首页图层：球体保持原位，但始终位于文字与功能内容下方 */
.view[data-view="today"] .view-scroll {
  position: relative;
  isolation: isolate;
}
.view[data-view="today"] .hero-copy {
  position: relative;
  z-index: 3;
}
.view[data-view="today"] .hand-note { z-index: 4; }
.view[data-view="today"] .weather-stage {
  position: relative;
  z-index: 0;
}
.view[data-view="today"] .weather-orb {
  z-index: 0;
  pointer-events: none;
}
.view[data-view="today"] .last-record,
.view[data-view="today"] .action-grid,
.view[data-view="today"] .walk-card {
  position: relative;
  z-index: 2;
}

.insights-brandbar { padding-bottom: 1px; }
.insights-brandbar + .page-heading { padding-top: 7px; padding-bottom: 11px; }
.insights-brandbar + .page-heading .eyebrow { display: none; }
.tiny-sprout { display: inline-block; margin-left: 4px; color: var(--lime-deep); font-size: 14px; transform: rotate(-16deg); }
.insights-scroll { padding-top: 0; }
.weather-calendar-card {
  min-height: 252px;
  padding: 14px 13px 12px;
  overflow: hidden;
}
.b-calendar-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 25px;
  color: var(--cacao);
}
.b-calendar-head strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.b-calendar-head span { font-size: 12px; font-weight: 800; }
.b-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 91px;
  gap: 10px;
  min-height: 198px;
}
.b-calendar-main { min-width: 0; }
.weather-calendar-card .heat-legend {
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 1px;
  color: #7c7168;
  font-size: 7px;
  white-space: nowrap;
}
.weather-calendar-card .heat-legend span { gap: 3px; }
.weather-calendar-card .heat-legend i { width: 7px; height: 7px; }
.heat-weekdays,
.heatmap {
  display: grid;
  grid-template-columns: repeat(7, 20px);
  justify-content: space-between;
}
.heat-weekdays {
  margin-top: 11px;
  color: #4d433d;
  font-size: 9px;
  text-align: center;
}
.heatmap {
  gap: 14px 0;
  margin-top: 10px;
}
.heatmap::before {
  content: "";
  grid-column: span 2;
}
.heat-cell {
  width: 20px;
  height: 20px;
  box-shadow: inset 0 3px 6px rgba(59,46,40,.08), 0 3px 7px rgba(59,46,40,.05);
}
.calendar-evidence-note {
  position: relative;
  min-width: 0;
  padding: 12px 0 0 13px;
  border-left: 1px solid rgba(59,46,40,.36);
  color: #4f4037;
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.45;
  transform: rotate(-2deg);
}
.calendar-evidence-note svg {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 77px;
  height: 62px;
  overflow: visible;
}
.calendar-evidence-note svg path:first-child {
  fill: none;
  stroke: #a6bd3f;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.calendar-evidence-note svg path:not(:first-child) {
  fill: #aacb4b;
  stroke: none;
}

/* Images 生成的半透明身体天气珠：同一精灵图保证五种状态质感统一 */
.weather-calendar-card .heat-cell {
  border-radius: 50%;
  background-color: transparent;
  background-image: url("./assets/body-weather-pearls-v1.png");
  background-repeat: no-repeat;
  background-size: 126px 42px;
  filter: saturate(.94) drop-shadow(0 2px 3px rgba(80, 61, 47, .12));
  box-shadow: none;
}
.weather-calendar-card .heat-cell.smooth { background-position: -4px center; }
.weather-calendar-card .heat-cell.normal { background-position: -29px center; }
.weather-calendar-card .heat-cell.hard { background-position: -53px center; }
.weather-calendar-card .heat-cell.discomfort { background-position: -78px center; }
.weather-calendar-card .heat-cell.empty { background-position: -103px center; opacity: .78; }

.weather-calendar-card .heat-legend i {
  border-radius: 50%;
  background-color: transparent;
  background-image: url("./assets/body-weather-pearls-v1.png");
  background-repeat: no-repeat;
  background-size: 44px 15px;
  filter: saturate(.94);
}
.weather-calendar-card .heat-legend .smooth { background-position: -1px center; }
.weather-calendar-card .heat-legend .normal { background-position: -10px center; }
.weather-calendar-card .heat-legend .hard { background-position: -18px center; }
.weather-calendar-card .heat-legend .discomfort { background-position: -27px center; }
.weather-calendar-card .heat-legend .empty { background-position: -36px center; opacity: .78; }

.trend-card { padding: 14px 16px 10px; }
.trend-card svg { height: 94px; margin-top: 3px; }
.chart-line.secondary { stroke: var(--coral); stroke-width: 2.5; opacity: .8; }
.trend-card circle { r: 4px; }
.insight-note { min-height: 72px; margin-bottom: 10px; background: rgba(255,252,245,.86); box-shadow: inset 0 0 0 1px var(--line); }
.insight-note .bulb { background: linear-gradient(145deg,#d8ea76,#9cc246); box-shadow: inset 4px 4px 8px rgba(255,255,255,.35); }
.secondary-button { display: none; }

.phone-shell.is-dark {
  border-color: #2a1c16;
  background: #2b1c15;
}
.relax-scroll { position: relative; isolation: isolate; padding-top: 3px; }
.relax-copy { position: relative; z-index: 3; }
.relax-copy .eyebrow { display: none; }
.relax-copy h1 { margin-top: 3px; font-size: 39px; }
.relax-hand-note {
  position: absolute;
  z-index: 2;
  top: 46px;
  right: 7px;
  color: rgba(255,248,234,.8);
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.35;
  transform: rotate(-8deg);
}
.relax-hand-note::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -10px;
  width: 55px;
  height: 16px;
  border-top: 1px solid rgba(255,248,234,.72);
  border-radius: 50%;
  transform: rotate(-13deg);
}
.breathing-stage {
  position: relative;
  z-index: 1;
  height: 396px;
  margin-top: 0;
  overflow: visible;
  background: none;
  filter: none;
}
.breathing-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -60px;
  right: 0;
  bottom: auto;
  left: 0;
  height: 520px;
  background: url("./assets/relax-scene-v2.png") center bottom / auto 520px no-repeat;
  filter: saturate(.76) brightness(.9) contrast(1.01);
  pointer-events: none;
}
.breath-core {
  z-index: 2;
  top: 36%;
  opacity: 0;
  transition: opacity 220ms ease;
}
.breathing-stage.running .breath-core { opacity: 1; }
.exercise-tabs { position: relative; z-index: 2; gap: 8px; margin-top: 8px; }
.exercise-tabs button {
  min-height: 134px;
  padding: 16px 6px 12px;
  border-radius: 21px;
  background: rgba(58, 42, 33, .96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 5px 14px rgba(20,12,9,.13);
}
.exercise-tabs i { height: 34px; font-size: 28px; }
.exercise-tabs b { margin-top: 8px; font-size: 12px; }
.exercise-tabs small { margin-top: 6px; font-size: 9px; }
.lime-button { min-height: 66px; margin-top: 15px; padding-inline: 24px 14px; font-size: 17px; }
.lime-button span { width: 32px; height: 32px; }
.softening-note {
  margin: 14px 0 0;
  color: rgba(255,248,234,.58);
  font-size: 11px;
  text-align: center;
}
.softening-note span { margin-right: 5px; color: var(--lime); font-size: 24px; font-weight: 900; vertical-align: -2px; }
.safety-note { display: none; }

.exercise-guide {
  position: relative;
  z-index: 3;
  margin-top: 12px;
  padding: 15px 16px 13px;
  border: 1px solid rgba(184,214,91,.22);
  border-radius: 20px 14px 20px 14px;
  color: var(--oat);
  background: rgba(255,255,255,.055);
}
.exercise-guide-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; color: rgba(255,248,234,.62); font-size: 9px; line-height: 1.45; }
.exercise-guide-head span { max-width: 280px; }
.exercise-guide-head b { flex: 0 0 auto; color: var(--lime); font-variant-numeric: tabular-nums; }
.exercise-guide h2 { margin: 7px 0 4px; font-size: 15px; }
.exercise-guide > p { min-height: 34px; margin: 0; color: rgba(255,248,234,.77); font-size: 10px; line-height: 1.65; }
.exercise-reference-note { display: block; margin-top: 5px; color: #e8be77; font-size: 8px; letter-spacing: .02em; }
.exercise-progress { height: 3px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.1); }
.exercise-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .5s linear; }
.exercise-guide ol { display: grid; margin: 10px 0 0; padding: 0; grid-template-columns: repeat(4,1fr); gap: 5px; list-style: none; }
.exercise-guide li { display: flex; min-width: 0; gap: 4px; align-items: center; color: rgba(255,248,234,.38); font-size: 8px; }
.exercise-guide li b { display: grid; width: 15px; height: 15px; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; place-items: center; font-size: 7px; }
.exercise-guide li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exercise-guide li.active { color: var(--lime); }
.exercise-safety {
  position: relative;
  z-index: 3;
  display: grid;
  margin-top: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(232,190,119,.2);
  border-radius: 16px 10px 16px 10px;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  color: rgba(255,248,234,.76);
  background: linear-gradient(105deg,rgba(255,245,220,.075),rgba(184,214,91,.035));
}
.exercise-safety > span { display: grid; width: 23px; height: 23px; border: 1px solid rgba(232,190,119,.54); border-radius: 50%; place-items: center; color: #e8be77; font: 900 11px var(--display); }
.exercise-safety b { display: block; color: var(--oat); font-size: 10px; }
.exercise-safety p { margin: 4px 0 0; color: rgba(255,248,234,.54); font-size: 8px; line-height: 1.65; }
.exercise-safety strong { color: rgba(255,248,234,.76); font-weight: 700; }
.special-population-note { position: relative; z-index: 3; margin: 7px 13px 18px; color: rgba(255,248,234,.4); font-size: 7px; line-height: 1.55; text-align: center; }
.delete-record-button { display: block; width: 100%; min-height: 46px; margin-top: 10px; border: 1px solid rgba(169,79,69,.28); border-radius: 22px; color: #a94f45; background: rgba(255,255,255,.55); font: 800 12px var(--display); }
.delete-record-button[hidden] { display: none; }
.reminder-time-row { display: flex; min-height: 58px; padding: 9px 12px 9px 35px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; }
.reminder-time-row > span { display: flex; flex-direction: column; font-size: 11px; font-weight: 800; }
.reminder-time-row small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.reminder-time-row input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; color: var(--cacao); background: rgba(255,255,255,.55); font: 700 12px var(--display); }
.settings-group button:disabled { cursor: not-allowed; opacity: .55; }
.chart-empty { fill: var(--muted); font: 12px var(--display); }

.sheet-close {
  top: 60px;
  width: 32px;
  height: 32px;
  color: rgba(59,46,40,.68);
  font-size: 18px;
}
.record-sheet { padding-bottom: 92px; overflow: hidden; }
.record-sheet form { padding-bottom: 0; }
.completion-labels strong { color: var(--muted); background: transparent; font-weight: 400; }
#completeRange { accent-color: var(--lime-deep); }
.save-button {
  position: absolute;
  right: 22px;
  bottom: 86px;
  left: 22px;
  width: auto;
  min-height: 61px;
}
.record-bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 74px;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px 12px 6px;
  border-top: 1px solid rgba(59,46,40,.09);
  background: rgba(255,249,238,.94);
}
.record-bottom-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: #8b817a;
  font-size: 19px;
}
.record-bottom-nav span:nth-child(2) { color: var(--cacao); }
.record-bottom-nav b { font-size: 9px; font-weight: 600; }

.mini-brand { font-size: 17px; }
.brand-mark.small { width: 36px; height: 24px; }
.brand-mark.small i { width: 22px; height: 22px; }
.brand-mark.small i:last-child { width: 16px; height: 16px; }
.privacy-note { font-size: 11px; }
.hero-copy { padding-top: 4px; }
.hero-copy .eyebrow { display: none; }
.hero-copy h1 { margin-top: 2px; font-size: 45px; line-height: 1.055; }
.hero-copy > p:last-of-type { max-width: 240px; font-size: 15px; line-height: 1.45; }
.hand-note { top: 125px; font-size: 16px; }
.weather-stage { height: 238px; }
.weather-orb { top: -28px; width: 350px; height: 350px; }
.last-record strong { font-size: 53px; }
.action-card b { font-size: 17px; }
.action-card small { font-size: 11px; }
.walk-card { min-height: 110px; }
.walk-card b { font-size: 19px; }

.record-topbar { margin-bottom: 42px; }
.record-sheet > h2 { font-size: 37px; }
.record-sheet form { margin-top: 34px; }
.segmented.outcomes label > span { min-height: 132px; }
.bristol-row { gap: 4px; }
.bristol-row label { height: 145px; }
.stool { width: 42px; height: 46px; }
.sheet-close { width: 26px; height: 26px; opacity: .5; }
.record-sheet fieldset:has(#completeRange) {
  margin-bottom: 0;
  padding: 7px 13px 4px;
}
.record-sheet fieldset:has(#completeRange) legend { margin-bottom: 2px; }
.record-sheet fieldset:has(#completeRange) .range-labels { line-height: 1; }
#completeRange { height: 19px; margin-top: 0; }

@media (max-width: 520px) and (max-height: 900px) {
  .record-sheet { overflow-x: hidden; overflow-y: auto; }
}

@media (max-height: 820px) and (min-width: 521px) {
  .phone-shell,
  .record-sheet { transform-origin: center; }
}

/* ===== 详细记录与完整统计 ===== */
.stats-entry-card {
  display: flex;
  width: 100%;
  min-height: 82px;
  margin: 10px 0 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 23px;
  align-items: center;
  justify-content: space-between;
  color: var(--cacao);
  background: linear-gradient(125deg, rgba(235,242,205,.96), rgba(255,250,239,.92));
  box-shadow: inset 0 0 0 1px rgba(108,139,42,.12), 0 8px 18px rgba(59,46,40,.045);
  text-align: left;
}
.stats-entry-card span { display: flex; flex-direction: column; gap: 3px; }
.stats-entry-card small { color: var(--lime-deep); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.stats-entry-card b { font-family: var(--display); font-size: 15px; }
.stats-entry-card em { color: var(--muted); font-size: 9px; font-style: normal; }
.stats-entry-card > i {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
  color: var(--paper);
  background: var(--cacao);
  font-size: 22px;
  font-style: normal;
}

.record-list .record-item {
  width: 100%;
  color: var(--cacao);
  font-family: inherit;
  text-align: left;
}
.record-copy { min-width: 0; }
.record-copy b { display: flex; align-items: center; gap: 6px; }
.record-warning {
  display: inline-grid;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  place-items: center;
  color: #fff8ee;
  background: var(--coral-deep);
  font-size: 9px;
  font-style: normal;
}

.record-sheet {
  overflow: hidden;
  padding-bottom: 74px;
}
.record-sheet .record-topbar { margin-bottom: 12px; }
.record-sheet > h2 { font-size: 31px; }
.record-sheet > p:not(.eyebrow) { font-size: 11px; }
.record-sheet form {
  position: absolute;
  top: 151px;
  right: 18px;
  bottom: 74px;
  left: 18px;
  margin: 0;
  padding: 0 4px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.record-sheet form::-webkit-scrollbar,
.stats-scroll::-webkit-scrollbar { display: none; }
.record-sheet fieldset,
.record-sheet fieldset:has(#completeRange) {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,252,246,.78);
  box-shadow: inset 0 0 0 1px rgba(59,46,40,.045);
}
.record-sheet legend,
.record-sheet fieldset:has(#completeRange) legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  line-height: 1.3;
}
.record-time-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.record-time-field legend { width: auto; margin: 0 !important; }
.record-time-field input {
  width: 220px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cacao);
  background: rgba(255,255,255,.62);
  font-family: inherit;
  font-size: 16px;
}
.record-sheet .segmented.outcomes label > span {
  min-height: 80px;
  padding: 8px 4px;
}
.record-sheet .segmented.outcomes label > span::before {
  width: 29px;
  height: 29px;
  margin-bottom: 5px;
}
.record-sheet .bristol-row label { height: 86px; }
.record-sheet .stool { width: 40px; height: 40px; }
.duration-options { grid-template-columns: repeat(4, 1fr); }
.duration-options label > span { min-height: 56px; border-radius: 14px; }
.duration-options small { font-size: 8px; }
.advanced-toggle {
  display: flex;
  width: 100%;
  min-height: 62px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(118,145,53,.2);
  border-radius: 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--cacao);
  background: linear-gradient(115deg, #edf3d3, rgba(255,251,241,.9));
  text-align: left;
}
.advanced-toggle span { display: flex; flex-direction: column; gap: 3px; }
.advanced-toggle b { font-size: 13px; }
.advanced-toggle small { color: var(--muted); font-size: 9px; }
.advanced-toggle i {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  place-items: center;
  color: var(--paper);
  background: var(--lime-deep);
  font-size: 18px;
  font-style: normal;
}
.advanced-record-fields { animation: detail-open 280ms ease both; }
@keyframes detail-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.compact-options { grid-template-columns: repeat(3, 1fr); }
.compact-options label > span,
.tiny-options label > span { min-height: 45px; border-radius: 13px; }
.color-options {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
.color-options label { cursor: pointer; }
.color-options input,
.check-chips input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.color-options span {
  display: flex;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 6px;
  padding: 8px 2px;
  color: var(--muted);
  background: rgba(255,255,255,.5);
  font-size: 8px;
}
.color-options span::before {
  content: "";
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, rgba(255,255,255,.65), transparent 29%), var(--swatch);
  box-shadow: inset -4px -5px 8px rgba(45,30,18,.12), 0 3px 7px rgba(59,46,40,.1);
}
.color-options input:checked + span {
  border-color: var(--lime-deep);
  color: var(--cacao);
  background: #edf3d2;
  box-shadow: inset 0 0 0 1px var(--lime-deep);
}
.check-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.check-chips span {
  display: grid;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.54);
  font-size: 10px;
}
.check-chips input:checked + span {
  border-color: var(--coral);
  color: var(--cacao);
  background: #f9d9cc;
}
.aid-chips span { padding-inline: 11px; }
.life-clue-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
}
.life-clue-row + .life-clue-row { margin-top: 8px; }
.life-clue-row > b { color: var(--muted); font-size: 10px; }
.life-options { grid-template-columns: repeat(3, 1fr); }
.life-options label > span { min-height: 40px; border-radius: 12px; }
.blood-options { grid-template-columns: .75fr 1fr 1.25fr; }
.blood-options label > span { min-height: 52px; padding-inline: 3px; border-radius: 13px; }
.blood-options label:nth-child(n+2) input:checked + span {
  border-color: var(--coral-deep);
  background: #f8d2c7;
  box-shadow: inset 0 0 0 1px var(--coral-deep);
}
.field-help { margin: 7px 2px 0; color: var(--muted); font-size: 8px; }
.advanced-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.advanced-two-col fieldset { min-width: 0; }
.tiny-options { grid-template-columns: repeat(2, 1fr); }
.record-sheet textarea {
  width: 100%;
  min-height: 86px;
  padding: 11px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  color: var(--cacao);
  background: rgba(255,255,255,.58);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.record-sheet textarea:focus { border-color: var(--lime-deep); }
.record-sheet .save-button {
  position: sticky;
  right: auto;
  bottom: -1px;
  left: auto;
  z-index: 4;
  width: 100%;
  min-height: 58px;
  margin: 4px 0 0;
  box-shadow: 0 -9px 18px rgba(251,242,225,.9), 0 8px 18px rgba(209,92,68,.16);
}

.record-alert {
  position: absolute;
  z-index: 15;
  inset: 0;
  display: grid;
  padding: 28px;
  place-items: center;
  background: rgba(48,32,25,.57);
  backdrop-filter: blur(7px);
}
.record-alert-card {
  width: 100%;
  padding: 28px 24px 22px;
  border-radius: 28px;
  color: var(--cacao);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(35,21,15,.28);
  text-align: center;
}
.alert-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  border-radius: 50%;
  place-items: center;
  color: #fff8ee;
  background: var(--coral-deep);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 900;
}
.record-alert-card small { color: var(--coral-deep); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.record-alert-card h3 { margin: 7px 0 10px; font-family: var(--display); font-size: 22px; }
.record-alert-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; text-align: left; }
.record-alert-card button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 24px;
  color: var(--cacao);
  background: var(--lime);
  font-weight: 800;
}

.stats-sheet {
  position: fixed;
  z-index: 110;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 956px;
  overflow: hidden;
  border: 6px solid var(--cacao);
  border-radius: 48px;
  color: var(--cacao);
  background:
    radial-gradient(circle at 88% 8%, rgba(184,214,91,.17), transparent 27%),
    radial-gradient(circle at 10% 27%, rgba(237,128,106,.1), transparent 24%),
    var(--paper);
  box-shadow: 0 32px 90px rgba(50,35,27,.3);
  transform: translate(-50%, -50%) scale(var(--preview-scale, 1));
}
.stats-topbar {
  display: grid;
  height: 86px;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  padding: 27px 22px 12px;
  align-items: center;
}
.stats-topbar button {
  display: grid;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--cacao);
  background: rgba(59,46,40,.07);
  font-size: 27px;
}
.stats-topbar div { display: flex; flex-direction: column; gap: 1px; }
.stats-topbar div small { color: var(--lime-deep); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.stats-topbar div b { font-family: var(--display); font-size: 17px; }
.stats-topbar > span { color: var(--muted); font-size: 9px; line-height: 1.35; text-align: right; }
.stats-scroll {
  position: absolute;
  inset: 86px 0 0;
  padding: 2px 22px 34px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.stats-heading h2 { margin: 4px 0 5px; font-family: var(--display); font-size: 34px; letter-spacing: -.065em; }
.stats-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.stats-period-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 17px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(59,46,40,.07);
}
.stats-period-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}
.stats-period-tabs button.active {
  color: var(--cacao);
  background: rgba(255,252,246,.95);
  box-shadow: 0 3px 10px rgba(59,46,40,.09);
  font-weight: 800;
}
.stats-period-label { margin: 9px 2px 12px; color: var(--muted); font-size: 9px; }
.stats-grid,
.stats-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.stats-summary-grid article {
  min-height: 91px;
  padding: 13px 14px;
  border-radius: 20px;
  background: rgba(255,252,246,.84);
  box-shadow: inset 0 0 0 1px rgba(59,46,40,.05), 0 8px 18px rgba(59,46,40,.035);
}
.stats-summary-grid article:nth-child(2),
.stats-summary-grid article:nth-child(5) { background: rgba(232,240,220,.88); }
.stats-summary-grid article:nth-child(3),
.stats-summary-grid article:nth-child(4) { background: rgba(249,222,207,.72); }
.stats-summary-grid article.alert-stat { background: rgba(248,208,197,.85); }
.stats-summary-grid small { display: block; color: var(--muted); font-size: 9px; }
.stats-summary-grid strong { display: block; margin-top: 10px; font-family: var(--display); font-size: 24px; letter-spacing: -.04em; }
.stats-summary-grid em { margin-left: 2px; font-family: inherit; font-size: 10px; font-style: normal; }
.stats-secondary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 9px 0 0;
  padding: 10px 4px;
  border-top: 1px solid rgba(59,46,40,.08);
  border-bottom: 1px solid rgba(59,46,40,.08);
}
.stats-secondary-metrics span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 8px;
}
.stats-secondary-metrics span + span { border-left: 1px solid rgba(59,46,40,.08); }
.stats-secondary-metrics b { color: var(--cacao); font-size: 11px; }
.stats-card {
  margin-top: 11px;
  padding: 16px;
  border-radius: 23px;
  background: rgba(255,252,246,.86);
  box-shadow: inset 0 0 0 1px rgba(59,46,40,.05), 0 9px 22px rgba(59,46,40,.04);
}
.stats-card-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.stats-card-head small { color: var(--lime-deep); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.stats-card-head h3 { margin: 3px 0 0; font-family: var(--display); font-size: 17px; }
.stats-card-head > span { color: var(--muted); font-size: 9px; }
.bristol-bars { display: grid; gap: 7px; }
.bristol-stat-row {
  display: grid;
  grid-template-columns: 64px 1fr 45px;
  gap: 9px;
  align-items: center;
}
.bristol-stat-row > span { display: flex; align-items: center; gap: 4px; }
.bristol-stat-row .stool {
  width: 36px;
  height: 33px;
  flex: 0 0 36px;
  transform: scale(.82) !important;
  transform-origin: center;
}
.bristol-stat-row > span b { font-size: 9px; }
.bristol-stat-row > div { height: 9px; overflow: hidden; border-radius: 8px; background: #eee6d9; }
.bristol-stat-row > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d7ea79, #98bd39); }
.bristol-stat-row:nth-child(-n+2) > div i { background: linear-gradient(90deg, #f4b192, #ed806a); }
.bristol-stat-row > strong { font-size: 11px; text-align: right; }
.bristol-stat-row > strong small { margin-left: 3px; color: var(--muted); font-size: 7px; font-weight: 400; }
.time-distribution { display: grid; gap: 12px; }
.time-distribution > div { display: grid; grid-template-columns: 59px 1fr 20px; gap: 9px; align-items: center; }
.time-distribution span { display: flex; flex-direction: column; }
.time-distribution b { font-size: 10px; }
.time-distribution small { color: var(--muted); font-size: 7px; }
.time-distribution > div > i { height: 10px; overflow: hidden; border-radius: 9px; background: #eee6d9; }
.time-distribution em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b9d65b, #d9e89a); }
.time-distribution strong { font-size: 10px; text-align: right; }
.color-stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.color-stat-list > span {
  display: flex;
  min-height: 76px;
  padding: 9px 6px;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(246,238,224,.7);
}
.color-stat-list > span > i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.65), transparent 30%), var(--color);
  box-shadow: inset -3px -4px 7px rgba(45,30,18,.1);
}
.color-stat-list b { margin-top: 5px; font-size: 9px; }
.color-stat-list small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.empty-stat { grid-column: 1 / -1; margin: 10px 0; color: var(--muted); font-size: 10px; text-align: center; }
.stats-gentle-note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  margin-top: 11px;
  padding: 15px;
  border-radius: 22px;
  align-items: center;
  background: linear-gradient(120deg, #eef3d4, rgba(255,252,245,.9));
}
.stats-gentle-note > span {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  color: var(--cacao);
  background: var(--lime);
  font-size: 24px;
  font-weight: 900;
}
.stats-gentle-note b { font-size: 11px; }
.stats-gentle-note p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.stats-medical-note { margin: 14px 8px 0; color: var(--muted); font-size: 8px; line-height: 1.65; text-align: center; }

@media (max-width: 520px) {
  .stats-sheet {
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    transform: none;
  }
  .stats-topbar { padding-top: calc(27px + env(safe-area-inset-top)); height: calc(86px + env(safe-area-inset-top)); }
  .stats-scroll { top: calc(86px + env(safe-area-inset-top)); }
  .record-sheet form { top: calc(151px + env(safe-area-inset-top)); }
}

/* ===== Bristol 1–7：高辨识度柔和立体图标 ===== */
.stool {
  position: relative;
  display: block;
  overflow: visible;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  background-position: center !important;
  background-size: auto !important;
  filter: drop-shadow(0 2px 2px rgba(91,53,27,.19)) !important;
}
.stool::before,
.stool::after {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
}

/* 1：彼此分离的硬颗粒 */
.stool.s1 {
  background:
    radial-gradient(circle at 18% 29%, #f3c37e 0 3%, #a76331 13%, #74401f 20%, transparent 22%),
    radial-gradient(circle at 48% 18%, #e9b269 0 3%, #965528 14%, #6f3b1d 21%, transparent 23%),
    radial-gradient(circle at 79% 33%, #efbd75 0 3%, #a55e2d 14%, #75401f 21%, transparent 23%),
    radial-gradient(circle at 28% 66%, #efb872 0 3%, #985527 15%, #6f3a1b 22%, transparent 24%),
    radial-gradient(circle at 62% 57%, #f1bd76 0 3%, #a05a2b 15%, #743d1c 22%, transparent 24%),
    radial-gradient(circle at 81% 76%, #eab06a 0 3%, #925024 14%, #683618 21%, transparent 23%) !important;
}

/* 2：颗粒已经连成明显的结块条状 */
.stool.s2 {
  background:
    radial-gradient(ellipse at 14% 55%, #9a5628 0 17%, transparent 19%),
    radial-gradient(ellipse at 31% 42%, #b36b34 0 21%, transparent 23%),
    radial-gradient(ellipse at 50% 55%, #8c4a22 0 23%, transparent 25%),
    radial-gradient(ellipse at 69% 42%, #ad642f 0 21%, transparent 23%),
    radial-gradient(ellipse at 87% 57%, #81411e 0 17%, transparent 19%) !important;
  transform: rotate(-5deg) !important;
}
.stool.s2::after { inset: 11px 8px 13px; border-radius: 45%; background: linear-gradient(155deg, rgba(245,188,116,.46), transparent 42%); }

/* 3：成形条状，表面有清楚裂纹 */
.stool.s3::before {
  inset: 10px 1px 11px;
  border-radius: 55% 43% 49% 58%;
  transform: rotate(-7deg);
  background: linear-gradient(145deg,#d58b45 2%,#a55d2c 48%,#75401f 100%);
  box-shadow: inset 4px 4px 7px rgba(255,215,149,.28), inset -3px -3px 5px rgba(76,35,14,.18);
}
.stool.s3::after {
  inset: 12px 5px 14px 6px;
  transform: rotate(-7deg);
  background:
    linear-gradient(63deg, transparent 43%, rgba(89,43,20,.72) 45% 51%, transparent 53%) 3px 2px / 8px 10px no-repeat,
    linear-gradient(115deg, transparent 43%, rgba(89,43,20,.68) 45% 51%, transparent 53%) 14px 0 / 9px 11px no-repeat,
    linear-gradient(68deg, transparent 43%, rgba(89,43,20,.62) 45% 51%, transparent 53%) 24px 4px / 8px 9px no-repeat;
}

/* 4：最光滑、最长的一整条 */
.stool.s4::before {
  inset: 12px 0 11px;
  border-radius: 66% 34% 61% 39% / 58% 48% 52% 42%;
  transform: rotate(-11deg);
  background: linear-gradient(152deg,#e6a55c 0%,#b66d34 48%,#82471f 100%);
  box-shadow: inset 6px 5px 8px rgba(255,225,167,.35), inset -4px -4px 7px rgba(78,37,16,.16);
}
.stool.s4::after { top: 14px; left: 8px; width: 22px; height: 5px; border-radius: 50%; transform: rotate(-12deg); background: rgba(255,224,164,.42); filter: blur(1px); }

/* 5：边缘清楚的独立软块 */
.stool.s5 {
  background:
    radial-gradient(ellipse at 17% 57%, #f0b46c 0 5%, #bf7538 20%, #955127 26%, transparent 28%),
    radial-gradient(ellipse at 50% 42%, #f2ba72 0 5%, #c67b3c 22%, #985229 29%, transparent 31%),
    radial-gradient(ellipse at 83% 61%, #eeb069 0 5%, #b96c32 20%, #8d4922 26%, transparent 28%) !important;
}

/* 6：松散、毛边的糊状团 */
.stool.s6::before {
  inset: 9px 2px 8px;
  clip-path: polygon(2% 58%,10% 35%,24% 31%,31% 11%,49% 24%,62% 8%,76% 29%,94% 34%,99% 59%,83% 72%,75% 94%,54% 82%,39% 96%,25% 77%,8% 80%);
  background: linear-gradient(145deg,#e1a05e,#b76d37 50%,#8d4b26);
  box-shadow: inset 5px 5px 8px rgba(255,218,153,.25);
}
.stool.s6::after {
  left: 9px;
  top: 14px;
  width: 24px;
  height: 15px;
  border-radius: 45% 55% 39% 61%;
  background: radial-gradient(circle at 35% 30%,rgba(255,217,155,.48),transparent 34%);
}

/* 7：浅而扩散的水样形态 */
.stool.s7::before {
  right: 0;
  bottom: 9px;
  left: 0;
  height: 13px;
  border-radius: 54% 46% 60% 40% / 66% 61% 39% 34%;
  background: radial-gradient(ellipse at 34% 25%,rgba(255,223,164,.76),transparent 27%), linear-gradient(145deg,rgba(211,157,91,.82),rgba(151,91,45,.88));
  box-shadow: inset 0 3px 7px rgba(255,230,183,.38);
}
.stool.s7::after {
  bottom: 13px;
  left: 10px;
  width: 23px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 25%,rgba(255,232,191,.72),rgba(190,127,69,.72) 62%,transparent 65%);
}

.bristol-row b { line-height: 1; text-align: center; }
.bristol-row b small { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; font-weight: 500; white-space: nowrap; }
.bristol-row label:has(input:checked) b small { color: var(--lime-deep); font-weight: 800; }
.record-sheet .bristol-row label { height: 92px; }

/* ===== Bristol 1–7：参考分类图重绘的矢量版本 ===== */
.stool,
.stool.s1,
.stool.s2,
.stool.s3,
.stool.s4,
.stool.s5,
.stool.s6,
.stool.s7 {
  --stool-main: #ae672f;
  --stool-dark: #74401f;
  --stool-light: #edb56d;
  overflow: visible;
  transform: none !important;
  background: none !important;
  filter: drop-shadow(0 2px 1px rgba(80,44,22,.2)) !important;
}
.stool.s1 { --stool-main: #7c431f; --stool-dark: #562b14; --stool-light: #bc783d; }
.stool.s2 { --stool-main: #8c4c22; --stool-dark: #602f16; --stool-light: #c47a3d; }
.stool.s3 { --stool-main: #a45a28; --stool-dark: #71381a; --stool-light: #d78e49; }
.stool.s4 { --stool-main: #b66c31; --stool-dark: #7e421d; --stool-light: #e7a45a; }
.stool.s5 { --stool-main: #c68039; --stool-dark: #8e501f; --stool-light: #efb65f; }
.stool.s6 { --stool-main: #d09643; --stool-dark: #986124; --stool-light: #f0c26f; }
.stool.s7 { --stool-main: #d9a44e; --stool-dark: #9f6a29; --stool-light: #f4cb7c; }
.stool::before,
.stool::after { content: none !important; display: none !important; }
.bristol-shape { display: block; width: 100%; height: 100%; overflow: visible; }
.bristol-shape .stool-main { fill: var(--stool-main); stroke: var(--stool-dark); stroke-width: 1.35; stroke-linejoin: round; }
.bristol-shape .stool-shine { fill: var(--stool-light); opacity: .58; }
.bristol-shape .stool-seam,
.bristol-shape .stool-crack { fill: none; stroke: var(--stool-dark); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.record-sheet .stool { width: 44px; height: 40px; }
.bristol-stat-row .stool { width: 40px; height: 29px; flex-basis: 40px; transform: none !important; }
.bristol-stat-row { grid-template-columns: 68px 1fr 45px; }

.advanced-toggle b em {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 8px;
  color: var(--lime-deep);
  background: rgba(184,214,91,.2);
  font-size: 7px;
  font-style: normal;
  vertical-align: 1px;
}
.amount-options label > span { min-height: 82px; padding: 8px 4px; }
.amount-options b,
.amount-options small { display: block; }
.amount-options b { margin-top: 4px; font-size: 10px; }
.amount-options small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.amount-symbol {
  position: relative;
  display: block;
  width: 42px;
  height: 28px;
  margin: 0 auto 1px;
}
.amount-symbol::before,
.amount-symbol::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  height: 12px;
  border: 1px solid #885021;
  border-radius: 70% 30% 62% 38% / 66% 54% 46% 34%;
  transform: translateX(-50%) rotate(-8deg);
  background: linear-gradient(150deg,#efb562,#b76c2f 58%,#84451e);
  box-shadow: inset 3px 3px 4px rgba(255,218,148,.36), 0 2px 2px rgba(79,44,22,.14);
}
.amount-symbol.low::before { width: 15px; }
.amount-symbol.low::after { display: none; }
.amount-symbol.normal::before { width: 26px; }
.amount-symbol.normal::after { display: none; }
.amount-symbol.high::before { left: 48%; width: 34px; }
.amount-symbol.high::after { left: 62%; bottom: 14px; width: 16px; height: 10px; transform: translateX(-50%) rotate(7deg); }

/* ===== 有生命感的球体：安静、缓慢、不会干扰记录 ===== */
.view[data-view="today"] .weather-orb {
  will-change: transform;
  animation: today-orb-living 10.8s cubic-bezier(.45,.05,.55,.95) infinite;
}
.view[data-view="today"] .weather-orb::before {
  content: "";
  position: absolute;
  display: block;
  inset: 42px 49px 55px 39px;
  border: 0;
  border-radius: 44% 56% 61% 39% / 49% 43% 57% 51%;
  opacity: .32;
  background:
    radial-gradient(circle at 28% 32%, rgba(255,255,255,.82), transparent 30%),
    radial-gradient(circle at 72% 62%, rgba(207,255,239,.34), transparent 42%);
  filter: blur(13px);
  mix-blend-mode: soft-light;
  animation: today-orb-light 13.6s ease-in-out infinite;
  pointer-events: none;
}
.view[data-view="today"] .weather-orb::after {
  content: "";
  position: absolute;
  display: block;
  inset: 25px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 49% 51% 46% 54% / 52% 45% 55% 48%;
  opacity: .35;
  animation: today-orb-skin 10.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes today-orb-living {
  0%,100% { transform: translateX(-50%) translateY(1px) scale(.992) rotate(-.55deg); }
  28% { transform: translateX(-50%) translateY(-3px) scale(1.018,1.026) rotate(.45deg); }
  58% { transform: translateX(-50%) translateY(-1px) scale(1.032,.999) rotate(.8deg); }
  78% { transform: translateX(-50%) translateY(2px) scale(1.006,1.016) rotate(-.2deg); }
}
@keyframes today-orb-light {
  0%,100% { transform: translate(-5px,3px) rotate(-4deg) scale(.96); opacity: .24; }
  45% { transform: translate(9px,-8px) rotate(5deg) scale(1.08); opacity: .42; }
  72% { transform: translate(3px,7px) rotate(1deg) scale(1.02); opacity: .31; }
}
@keyframes today-orb-skin {
  0%,100% { transform: rotate(-1.2deg) scale(.985); opacity: .24; }
  50% { transform: rotate(1.4deg) scale(1.018); opacity: .46; }
}

.breathing-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -60px;
  right: 0;
  left: 0;
  height: 520px;
  transform-origin: 45% 42%;
  background: url("./assets/relax-scene-v2.png") center bottom / auto 520px no-repeat;
  filter: saturate(.84) brightness(.96) contrast(1.02);
  opacity: .76;
  -webkit-mask-image: radial-gradient(circle 145px at 45% 42%, #000 0 68%, rgba(0,0,0,.88) 78%, transparent 100%);
  mask-image: radial-gradient(circle 145px at 45% 42%, #000 0 68%, rgba(0,0,0,.88) 78%, transparent 100%);
  animation: relax-orb-living 10.4s cubic-bezier(.45,.05,.55,.95) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
.breathing-stage .breath-ring {
  z-index: 2;
  left: 45%;
  top: 40.5%;
  display: block;
  border-color: rgba(205,232,109,.3);
  box-shadow: inset 0 0 12px rgba(205,232,109,.035), 0 0 13px rgba(205,232,109,.025);
  animation: relax-ring-living 10.4s ease-in-out infinite;
  pointer-events: none;
}
.breathing-stage .breath-ring.r1 { width: 224px; height: 224px; animation-delay: 0s; }
.breathing-stage .breath-ring.r2 { width: 276px; height: 276px; animation-delay: -1.45s; }
.breathing-stage .breath-ring.r3 { width: 328px; height: 328px; animation-delay: -2.9s; }
.breathing-stage .breath-core { z-index: 3; }
.breathing-stage.running::after { animation-duration: 8s; opacity: .88; }
.breathing-stage.running .breath-ring { animation-name: relax-ring-guided; animation-duration: 8s; }
@keyframes relax-orb-living {
  0%,100% { transform: scale(.992) rotate(-.35deg); opacity: .7; }
  34% { transform: scale(1.018,1.027) rotate(.3deg); opacity: .82; }
  62% { transform: scale(1.032,.998) rotate(.55deg); opacity: .88; }
  82% { transform: scale(1.008,1.015) rotate(-.15deg); opacity: .77; }
}
@keyframes relax-ring-living {
  0%,100% { transform: translate(-50%,-50%) scale(.965); opacity: .12; }
  48% { transform: translate(-50%,-50%) scale(1.025); opacity: .37; }
  70% { transform: translate(-50%,-50%) scale(1.045); opacity: .16; }
}
@keyframes relax-ring-guided {
  0%,100% { transform: translate(-50%,-50%) scale(.94); opacity: .16; }
  50% { transform: translate(-50%,-50%) scale(1.055); opacity: .58; }
}
.view:not(.active) .weather-orb,
.view:not(.active) .breathing-stage::after,
.view:not(.active) .breath-ring { animation-play-state: paused; }

/* 绿色球体独立层：覆盖静态球体，保证肉眼可见的真实呼吸形变 */
.breathing-stage::after { content: none; display: none; }
.relax-orb-motion {
  position: absolute;
  z-index: 1;
  top: 54px;
  left: 46.8%;
  display: block;
  width: 261px;
  height: 261px;
  transform: translateX(-50%) scale(1);
  transform-origin: 50% 46%;
  background: url("./assets/relax-orb-cutout-v2.png") center / 100% 100% no-repeat;
  filter: saturate(.86) brightness(.94) contrast(1.02) drop-shadow(0 0 11px rgba(205,232,109,.13));
  animation: relax-orb-separated 10.4s cubic-bezier(.42,0,.58,1) infinite;
  will-change: transform, filter;
  pointer-events: none;
}
.breathing-stage.running .relax-orb-motion {
  animation-duration: 8s;
  filter: saturate(.92) brightness(.98) contrast(1.02) drop-shadow(0 0 17px rgba(205,232,109,.2));
}
.relax-orb-motion::before {
  content: "";
  position: absolute;
  display: block;
  inset: 48px 44px 51px 47px;
  border-radius: 48% 52% 57% 43%;
  opacity: .42;
  background:
    radial-gradient(circle at 34% 32%, rgba(245,255,185,.82), transparent 26%),
    radial-gradient(circle at 70% 68%, rgba(202,239,92,.36), transparent 38%);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: relax-light-orbit 8s ease-in-out infinite;
}
.relax-orb-motion::after {
  content: "";
  position: absolute;
  display: block;
  inset: 29px 27px 31px 28px;
  border: 1px solid rgba(247,255,192,.46);
  border-radius: 52% 48% 45% 55% / 48% 55% 45% 52%;
  opacity: .38;
  animation: relax-surface-wave 8s ease-in-out infinite;
}
@keyframes relax-orb-separated {
  0%,100% { transform: translateX(-50%) scale(1) rotate(-.25deg); }
  24% { transform: translateX(-50%) scale(1.025,1.045) rotate(.18deg); }
  50% { transform: translateX(-50%) scale(1.075,1.045) rotate(.55deg); }
  74% { transform: translateX(-50%) scale(1.035,1.065) rotate(-.12deg); }
}
@keyframes relax-light-orbit {
  0%,100% { transform: translate(-14px,8px) scale(.92) rotate(-6deg); opacity: .28; }
  42% { transform: translate(14px,-11px) scale(1.12) rotate(7deg); opacity: .62; }
  72% { transform: translate(5px,13px) scale(1.02) rotate(2deg); opacity: .4; }
}
@keyframes relax-surface-wave {
  0%,100% { transform: rotate(-2deg) scale(.96); opacity: .22; }
  50% { transform: rotate(2.3deg) scale(1.05); opacity: .58; }
}
.view:not(.active) .relax-orb-motion { animation-play-state: paused; }

/* 用户明确启用球体律动时，仅保留这两处慢速装饰运动。 */
@media (prefers-reduced-motion: reduce) {
  .view.active .weather-orb {
    animation: today-orb-living 10.8s cubic-bezier(.45,.05,.55,.95) infinite !important;
  }
  .view.active .weather-orb::before {
    animation: today-orb-light 13.6s ease-in-out infinite !important;
  }
  .view.active .weather-orb::after {
    animation: today-orb-skin 10.8s ease-in-out infinite !important;
  }
  .view.active .relax-orb-motion,
  .view.active .relax-orb-motion::before,
  .view.active .relax-orb-motion::after,
  .view.active .breath-ring {
    animation-duration: 8s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ===== 账号、云同步与隐私 ===== */
.account-entry {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 92px;
  margin: 12px 0;
  padding: 16px 15px;
  border: 0;
  border-radius: 17px 29px 17px 29px;
  grid-template-columns: 48px 1fr 30px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  color: var(--cacao);
  background:
    radial-gradient(circle at 93% 12%, rgba(255,255,255,.85), transparent 27%),
    linear-gradient(115deg, rgba(232,241,208,.96), rgba(255,239,220,.94));
  box-shadow: inset 0 0 0 1px rgba(59,46,40,.045), 0 10px 26px rgba(84,68,48,.08);
  text-align: left;
}
.account-entry::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -34px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(139,177,48,.22);
  border-radius: 45% 55% 63% 37%;
}
.account-symbol { position: relative; width: 47px; height: 47px; }
.account-symbol i { position: absolute; border-radius: 50%; background: rgba(144,182,52,.88); box-shadow: inset 5px 5px 10px rgba(255,255,255,.38); }
.account-symbol i:first-child { width: 34px; height: 34px; left: 0; bottom: 1px; }
.account-symbol i:last-child { width: 27px; height: 27px; right: 0; top: 0; background: rgba(237,128,106,.78); }
.account-copy { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; }
.account-copy small { color: var(--lime-deep); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.account-copy b { margin: 3px 0 2px; font-family: var(--display); font-size: 16px; }
.account-copy em { overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.account-arrow { position: relative; z-index: 1; display: grid; width: 28px; height: 28px; border-radius: 50%; place-items: center; color: var(--paper); background: var(--cacao); font-size: 21px; }
.account-entry.signed-in { background: linear-gradient(118deg, rgba(207,229,137,.96), rgba(229,241,201,.9)); }
.account-entry.signed-in .account-symbol i:last-child { background: rgba(255,250,232,.92); }

.account-sheet {
  position: fixed;
  z-index: 115;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 956px;
  overflow: hidden;
  border: 6px solid var(--cacao);
  border-radius: 48px;
  color: var(--cacao);
  background:
    radial-gradient(circle at 92% 8%, rgba(184,214,91,.2), transparent 28%),
    radial-gradient(circle at 4% 42%, rgba(237,128,106,.1), transparent 25%),
    var(--paper);
  box-shadow: 0 32px 90px rgba(50,35,27,.3);
  transform: translate(-50%, -50%) scale(var(--preview-scale, 1));
  transform-origin: center;
}
.account-topbar { display: grid; height: 86px; padding: 27px 22px 12px; grid-template-columns: 42px 1fr auto; gap: 9px; align-items: center; }
.account-topbar > button { display: grid; width: 36px; height: 36px; border: 0; border-radius: 50%; place-items: center; color: var(--cacao); background: rgba(59,46,40,.07); font-size: 27px; }
.account-topbar > div { display: flex; flex-direction: column; }
.account-topbar > div small { color: var(--lime-deep); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.account-topbar > div b { font-family: var(--display); font-size: 17px; }
.account-topbar > span { color: var(--muted); font-size: 9px; line-height: 1.35; text-align: right; }
.account-scroll { position: absolute; inset: 86px 0 0; padding: 4px 22px 34px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.account-scroll::-webkit-scrollbar { display: none; }
.account-heading { position: relative; min-height: 174px; padding-right: 112px; }
.account-heading .eyebrow { margin: 14px 0 4px; color: var(--lime-deep); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.account-heading h2 { margin: 0 0 7px; font-family: var(--display); font-size: 35px; letter-spacing: -.065em; }
.account-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.cloud-orb { position: absolute; top: 3px; right: 2px; width: 104px; height: 104px; border-radius: 51% 49% 43% 57%; background: radial-gradient(circle at 27% 27%,rgba(255,255,255,.95),transparent 25%),radial-gradient(circle at 35% 68%,#c6df70,transparent 38%),radial-gradient(circle at 73% 33%,#ef9a83,transparent 36%),#d7e6df; box-shadow: inset 9px 8px 17px rgba(255,255,255,.48), 0 18px 35px rgba(94,114,60,.12); animation: account-orb 8s ease-in-out infinite alternate; }
@keyframes account-orb { to { border-radius: 43% 57% 55% 45%; transform: translateY(5px) rotate(4deg); } }
.local-data-note { display: grid; padding: 13px 14px; border-radius: 18px; grid-template-columns: 43px 1fr; gap: 11px; align-items: center; background: rgba(255,252,246,.72); box-shadow: inset 0 0 0 1px rgba(59,46,40,.055); }
.local-data-note > span { display: grid; width: 43px; height: 43px; border-radius: 15px 22px 16px 20px; place-items: center; color: var(--cacao); background: var(--lime); font-size: 10px; font-weight: 900; }
.local-data-note div { display: flex; flex-direction: column; }
.local-data-note b { font-size: 13px; }
.local-data-note small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.phone-login-form { display: grid; gap: 12px; margin-top: 14px; }
.phone-login-form > label:not(.consent-check) { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.phone-login-form input[type="tel"], .phone-login-form input[type="text"], .phone-login-form input:not([type]) { font-size: 16px; }
#loginPhone, #loginCode { width: 100%; height: 52px; padding: 0 14px; border: 1px solid rgba(59,46,40,.09); border-radius: 15px; outline: 0; color: var(--cacao); background: rgba(255,252,246,.86); font-family: inherit; font-size: 16px; }
#loginPhone:focus, #loginCode:focus { border-color: var(--lime-deep); box-shadow: 0 0 0 3px rgba(154,190,62,.13); }
.code-field { display: grid; grid-template-columns: 1fr 116px; gap: 8px; }
.code-field button { border: 0; border-radius: 15px; color: var(--cacao); background: #e5ecc9; font-size: 11px; font-weight: 800; }
.code-field button:disabled { opacity: .55; }
.consent-check { display: grid; grid-template-columns: 19px 1fr; gap: 7px; align-items: start; color: var(--muted); font-size: 9px; line-height: 1.5; }
.consent-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--lime-deep); }
.consent-check a { color: var(--cacao); font-weight: 800; text-decoration-color: rgba(59,46,40,.25); }
.consent-check.sensitive { padding: 10px; border-radius: 13px; background: rgba(237,128,106,.09); }
.consent-check.sync-choice { padding-top: 2px; }
.account-primary-button { display: flex; width: 100%; min-height: 58px; padding: 0 10px 0 18px; border: 0; border-radius: 18px 30px 18px 30px; align-items: center; justify-content: space-between; color: var(--cacao); background: var(--lime); font-size: 14px; font-weight: 900; }
.account-primary-button span { display: grid; width: 28px; height: 28px; border-radius: 50%; place-items: center; color: var(--paper); background: var(--cacao); font-size: 21px; }
.account-primary-button:disabled { opacity: .6; }
.wechat-future { display: grid; margin: 14px 0 0; padding: 14px; border-top: 1px solid var(--line); grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.wechat-future > i { display: grid; width: 40px; height: 40px; border-radius: 50%; place-items: center; color: #fff; background: #73aa48; font-size: 10px; font-style: normal; font-weight: 900; }
.wechat-future > span { display: flex; flex-direction: column; }
.wechat-future b { font-size: 12px; }
.wechat-future small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.signed-in-card { display: grid; padding: 18px; border-radius: 29px 17px 29px 17px; grid-template-columns: 54px 1fr; gap: 13px; align-items: center; background: linear-gradient(125deg,#dcebac,#f8e6d0); }
.signed-in-mark { display: grid; width: 52px; height: 52px; border-radius: 48% 52% 58% 42%; place-items: center; color: var(--paper); background: var(--lime-deep); font-size: 23px; }
.signed-in-card div { display: flex; flex-direction: column; }
.signed-in-card small { color: var(--lime-deep); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.signed-in-card b { margin: 3px 0; font-family: var(--display); font-size: 19px; }
.signed-in-card p { margin: 0; color: var(--muted); font-size: 9px; }
.sync-now-button { display: flex; width: 100%; min-height: 74px; margin-top: 13px; padding: 13px 15px; border: 1px solid rgba(59,46,40,.07); border-radius: 17px; align-items: center; justify-content: space-between; color: var(--cacao); background: rgba(255,252,246,.72); text-align: left; }
.sync-now-button span { display: flex; flex-direction: column; }
.sync-now-button small { color: var(--muted); font-size: 9px; }
.sync-now-button b { margin-top: 3px; font-size: 12px; }
.sync-now-button i { font-size: 22px; font-style: normal; }
.sync-now-button.syncing i { animation: sync-spin 800ms linear infinite; }
@keyframes sync-spin { to { transform: rotate(360deg); } }
.account-actions { margin-top: 12px; }
.account-actions > a, .account-actions > button { display: flex; width: 100%; min-height: 68px; padding: 11px 5px; border: 0; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; color: var(--cacao); background: transparent; text-align: left; text-decoration: none; }
.account-actions span { display: flex; flex-direction: column; }
.account-actions b { font-size: 12px; }
.account-actions small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.account-actions i { font-style: normal; }
.account-actions .danger-action b { color: #a94f45; }
.account-boundary { margin: 18px 8px 0; color: var(--muted); font-size: 8px; line-height: 1.7; text-align: center; }

@media (max-width: 520px) {
  .account-sheet { top: 0; left: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; transform: none; }
  .account-topbar { height: calc(74px + env(safe-area-inset-top)); padding-top: calc(15px + env(safe-area-inset-top)); }
  .account-scroll { inset: calc(74px + env(safe-area-inset-top)) 0 0; padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-orb, .sync-now-button i { animation: none !important; }
}

/* 浏览器内不重复预留系统顶部；独立安装时仍避开刘海区域。 */
@media (max-width: 520px) and (display-mode: standalone) {
  .view { top: env(safe-area-inset-top); }
}
