:root {
  --ink: #24352d;
  --muted: #6f7f75;
  --paper: #fffdfa;
  --cream: #f5f0e6;
  --cream-2: #ebe3d3;
  --sage: #8ca895;
  --sage-dark: #537461;
  --sage-light: #e8f0e9;
  --sun: #e7b96d;
  --sun-soft: #fbf0d8;
  --rose: #c88f86;
  --line: rgba(36, 53, 45, 0.12);
  --shadow: 0 28px 80px rgba(50, 64, 54, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 11% 14%, rgba(231, 185, 109, .18) 0 8%, transparent 8.3%),
    radial-gradient(circle at 88% 83%, rgba(140, 168, 149, .2) 0 11%, transparent 11.3%),
    var(--cream);
}

button, input { font: inherit; }
button { color: inherit; }

.site-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 430px;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  padding: 44px 0;
}

.brand-panel { min-height: 610px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 0; }
.brand-mark { width: 62px; height: 62px; position: relative; border-radius: 50%; background: var(--sun-soft); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 50%; }
.brand-mark::before { width: 23px; height: 23px; background: var(--sun); left: 19px; top: 19px; box-shadow: 0 0 0 8px rgba(231,185,109,.13); }
.brand-mark::after { width: 23px; height: 38px; border: 3px solid var(--sage-dark); border-left: 0; border-bottom: 0; transform: rotate(-32deg); left: 43px; top: 25px; }
.brand-mark span::before, .brand-mark span::after { content:""; position:absolute; width:17px; height:9px; background:var(--sage); border-radius:100% 0 100% 0; }
.brand-mark span::before { left:46px; top:32px; transform:rotate(18deg); }
.brand-mark span::after { left:50px; top:45px; transform:rotate(76deg); }

.eyebrow { letter-spacing: .18em; font-size:13px; font-weight: 750; color: var(--sage-dark); margin: 0 0 22px; }
.brand-panel h1 { font-family: "Songti SC", "STSong", serif; font-size: clamp(42px, 5vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1.18; margin: 0 0 28px; }
.brand-copy { max-width: 510px; color: var(--muted); font-size:18px; line-height: 1.9; margin: 0; }
.brand-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size:14px; }
.brand-note p { margin: 0; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(140,168,149,.16); }

.phone {
  width: 430px;
  height: min(850px, calc(100vh - 64px));
  min-height: 690px;
  background: var(--paper);
  border: 1px solid rgba(36,53,45,.14);
  border-radius: 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.phone-top { height: 28px; position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: center; padding-top: 9px; pointer-events:none; }
.phone-top span { width: 66px; height: 6px; border-radius: 99px; background: rgba(36,53,45,.12); }
.app { height: 100%; overflow: hidden; }

.screen { height: 100%; display: flex; flex-direction: column; background: var(--paper); animation: fade-in .35s ease both; }
.screen-scroll { flex: 1; overflow-y: auto; padding: 34px 24px 106px; scrollbar-width: none; }
.screen-scroll::-webkit-scrollbar { display: none; }

.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }
.date-kicker { color:var(--muted); font-size:14px; margin:0 0 4px; }
.topbar h2 { font-family:"Songti SC", "STSong", serif; font-size:27px; font-weight:650; margin:0; }
.round-icon { width:42px; height:42px; border:0; border-radius:50%; background:var(--sage-light); cursor:pointer; display:grid; place-items:center; transition:.2s ease; }
.round-icon:hover { transform:translateY(-2px); background:#dce9df; }

.hero-card { background:var(--sage-light); border-radius:var(--radius-lg); padding:24px; position:relative; overflow:hidden; margin-bottom:20px; }
.hero-card::after { content:""; position:absolute; width:90px; height:90px; border:18px solid rgba(255,255,255,.5); border-radius:50%; right:-25px; top:-30px; }
.hero-card .small { color:var(--sage-dark); font-size:14px; font-weight:700; margin:0 0 9px; }
.hero-card h3 { font-family:"Songti SC", "STSong", serif; font-size:24px; line-height:1.45; margin:0 0 8px; position:relative; z-index:1; }
.hero-card p { color:var(--muted); margin:0; line-height:1.7; font-size:15px; max-width:280px; }

.section-title { font-size:16px; margin:24px 0 13px; display:flex; justify-content:space-between; align-items:center; }
.section-title span { color:var(--muted); font-size:13px; font-weight:400; }

.choice-grid { display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; }
.energy-choice { border:1px solid var(--line); background:#fff; border-radius:16px; height:66px; cursor:pointer; display:flex; flex-direction:column; justify-content:center; gap:5px; align-items:center; transition:.2s ease; }
.energy-choice b { font-size:18px; }
.energy-choice small { color:var(--muted); font-size:11.5px; }
.energy-choice.selected { border-color:var(--sage-dark); background:var(--sage-light); transform:translateY(-2px); box-shadow:0 7px 18px rgba(83,116,97,.12); }

.chip-row { display:flex; gap:8px; flex-wrap:wrap; }
.chip { padding:10px 15px; border:1px solid var(--line); background:#fff; border-radius:999px; cursor:pointer; font-size:14px; transition:.2s ease; }
.chip.selected { color:#fff; background:var(--sage-dark); border-color:var(--sage-dark); }

.primary-btn, .secondary-btn, .ghost-btn { width:100%; border:0; border-radius:16px; min-height:52px; cursor:pointer; font-weight:700; transition:.2s ease; }
.primary-btn { background:var(--ink); color:#fff; box-shadow:0 10px 24px rgba(36,53,45,.18); }
.primary-btn:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 13px 28px rgba(36,53,45,.23); }
.primary-btn:disabled { opacity:.38; cursor:not-allowed; box-shadow:none; }
.secondary-btn { background:var(--sage-light); color:var(--sage-dark); }
.secondary-btn.soft { background:var(--cream); color:var(--muted); }
.ghost-btn { background:transparent; color:var(--muted); border:1px solid var(--line); }
.action-stack { display:grid; gap:10px; margin-top:18px; }

.action-card { border:1px solid var(--line); border-radius:var(--radius-lg); padding:22px; margin-bottom:16px; background:#fff; box-shadow:0 12px 35px rgba(43,61,51,.06); }
.action-icon { width:54px; height:54px; border-radius:18px; background:var(--sun-soft); display:grid; place-items:center; font-size:25px; margin-bottom:18px; }
.action-label { color:var(--sage-dark); text-transform:uppercase; letter-spacing:.12em; font-size:12px; font-weight:800; margin:0 0 8px; }
.action-card h3 { font-family:"Songti SC", "STSong", serif; font-size:27px; line-height:1.35; margin:0 0 10px; }
.action-card > p { color:var(--muted); font-size:15px; line-height:1.75; margin:0; }
.gentle-note { display:flex; gap:10px; align-items:flex-start; padding:14px 16px; background:var(--cream); border-radius:16px; color:var(--muted); font-size:13px; line-height:1.65; margin-top:18px; }
.gentle-note span { color:var(--sun); font-size:18px; line-height:1.2; }

.week-intro { display:flex; gap:14px; padding:18px; border-radius:20px; background:var(--cream); margin-bottom:18px; }
.week-intro .sprout { font-size:29px; }
.week-intro strong { display:block; font-size:16px; margin-bottom:5px; }
.week-intro p { color:var(--muted); margin:0; font-size:13px; line-height:1.65; }
.goal-card { border:1px solid var(--line); background:#fff; border-radius:20px; padding:18px; margin-bottom:12px; }
.goal-head { display:flex; gap:12px; align-items:center; }
.goal-emoji { width:42px; height:42px; border-radius:14px; background:var(--sage-light); display:grid; place-items:center; font-size:19px; }
.goal-name { flex:1; }
.goal-name strong { display:block; font-size:15px; margin-bottom:4px; }
.goal-name span { color:var(--muted); font-size:12px; }
.goal-count { font-size:13px; color:var(--sage-dark); font-weight:750; }
.progress-track { height:7px; background:var(--cream); border-radius:99px; overflow:hidden; margin:15px 0 12px; }
.progress-fill { height:100%; background:var(--sage); border-radius:99px; transition:width .4s ease; }
.goal-actions { display:flex; gap:8px; }
.mini-btn { flex:1; min-height:37px; border:0; border-radius:12px; background:var(--sage-light); color:var(--sage-dark); font-size:13px; font-weight:700; cursor:pointer; }
.mini-btn.alt { background:var(--cream); color:var(--muted); }

.week-summary { margin-top:22px; padding:22px; background:var(--sun-soft); border-radius:22px; }
.week-summary .summary-number { font-family:"Songti SC", "STSong", serif; font-size:42px; line-height:1; color:#966d31; }
.week-summary h3 { font-size:16px; margin:8px 0 5px; }
.week-summary p { color:#846d4d; font-size:13px; line-height:1.65; margin:0; }

.profile-card { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:20px; margin-bottom:18px; }
.avatar { width:52px; height:52px; background:var(--sun-soft); border-radius:18px; display:grid; place-items:center; font-size:24px; }
.profile-card strong { display:block; margin-bottom:4px; }
.profile-card span { color:var(--muted); font-size:13px; }
.menu-card { border:1px solid var(--line); border-radius:20px; overflow:hidden; margin-bottom:16px; }
.menu-row { display:flex; width:100%; gap:12px; align-items:center; text-align:left; padding:17px 18px; border:0; border-bottom:1px solid var(--line); background:#fff; cursor:pointer; }
.menu-row:last-child { border-bottom:0; }
.menu-row .menu-icon { width:31px; height:31px; border-radius:10px; background:var(--sage-light); display:grid; place-items:center; }
.menu-row strong { font-size:14px; flex:1; }
.menu-row em { font-style:normal; color:var(--muted); font-size:13px; }
.help-card { background:#fff3f0; border:1px solid rgba(200,143,134,.2); border-radius:20px; padding:18px; }
.help-card h3 { font-size:15px; margin:0 0 7px; color:#845850; }
.help-card p { font-size:13px; line-height:1.7; color:#946d66; margin:0 0 13px; }
.help-links { display:flex; gap:8px; }
.help-link { flex:1; display:block; text-decoration:none; text-align:center; color:#fff; background:#9a6259; padding:10px; border-radius:12px; font-size:13px; font-weight:700; }
.help-link.secondary { background:#e7d4d0; color:#845850; }
.disclaimer { color:var(--muted); font-size:11.5px; line-height:1.65; text-align:center; margin:18px 10px 0; }

.bottom-nav { position:absolute; z-index:10; left:0; right:0; bottom:0; height:80px; padding:10px 24px 16px; background:rgba(255,253,250,.93); border-top:1px solid var(--line); backdrop-filter:blur(14px); display:grid; grid-template-columns:repeat(3,1fr); }
.nav-item { border:0; background:transparent; color:#9aa49e; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11.5px; }
.nav-item span { font-size:21px; line-height:1; filter:grayscale(1); opacity:.7; }
.nav-item.active { color:var(--sage-dark); font-weight:800; }
.nav-item.active span { filter:none; opacity:1; }

.onboarding { padding:48px 27px 30px; justify-content:space-between; overflow-y:auto; scrollbar-width:none; }
.onboarding::-webkit-scrollbar { display:none; }
.onboarding-visual { height:190px; position:relative; display:grid; place-items:center; }
.sun-orb { width:92px; height:92px; background:var(--sun-soft); border-radius:50%; display:grid; place-items:center; font-size:44px; box-shadow:0 0 0 18px rgba(251,240,216,.46); animation:float 3s ease-in-out infinite; }
.leaf { position:absolute; width:43px; height:22px; background:var(--sage-light); border-radius:100% 0 100% 0; }
.leaf.one { left:52px; top:55px; transform:rotate(35deg); }
.leaf.two { right:45px; bottom:39px; transform:rotate(-18deg); background:#d4e5d7; }
.onboarding h2 { font-family:"Songti SC", "STSong", serif; font-size:30px; line-height:1.42; margin:0 0 13px; }
.onboarding .lead { color:var(--muted); line-height:1.75; font-size:15px; margin:0 0 26px; }
.focus-list { display:grid; gap:10px; margin-bottom:20px; }
.focus-option { width:100%; padding:14px 16px; border:1px solid var(--line); border-radius:16px; background:#fff; cursor:pointer; display:flex; align-items:center; gap:12px; text-align:left; transition:.2s ease; }
.focus-option .focus-icon { font-size:20px; }
.focus-option strong { font-size:14px; flex:1; }
.focus-option.selected { background:var(--sage-light); border-color:var(--sage); }
.privacy-note { text-align:center; color:var(--muted); font-size:11.5px; margin:12px 0 0; }

.onboarding-v2 { padding-top:34px; }
.onboarding-poetry { min-height:118px; margin:-5px 0 18px; padding:19px; border-radius:22px; display:flex; flex-direction:column; justify-content:flex-end; color:#2e4438; background-image:linear-gradient(90deg, rgba(255,253,248,.94), rgba(255,253,248,.18)), url('./images/poetry-dawn-v2.webp'); background-size:cover; background-position:center 42%; box-shadow:0 12px 28px rgba(56,72,62,.09); }
.onboarding-poetry span { color:var(--sage-dark); font-size:11px; font-weight:800; letter-spacing:.13em; }
.onboarding-poetry blockquote { font-family:"Songti SC", "STSong", serif; font-size:20px; margin:7px 0 4px; }
.onboarding-poetry small { color:#6f7f75; font-size:11px; }
.onboarding-visual.compact { height:128px; }
.onboarding-v2 h2 { font-size:28px; margin-bottom:9px; }
.onboarding-v2 .lead { font-size:14px; margin-bottom:16px; }
.dimension-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.dimension-option {
  min-width:0;
  min-height:68px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 17px;
  gap:8px;
  align-items:center;
  text-align:left;
  cursor:pointer;
  transition:.2s ease;
}
.dimension-option:hover { transform:translateY(-1px); border-color:rgba(83,116,97,.32); }
.dimension-option.selected { background:var(--sage-light); border-color:var(--sage); box-shadow:0 7px 16px rgba(83,116,97,.08); }
.dimension-icon { font-size:21px; }
.dimension-option strong, .dimension-option small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dimension-option strong { font-size:13px; margin-bottom:3px; }
.dimension-option small { color:var(--muted); font-size:11px; }
.dimension-option i { width:17px; height:17px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; color:#fff; font-size:11.5px; font-style:normal; }
.dimension-option.selected i { background:var(--sage-dark); border-color:var(--sage-dark); }
.selection-hint { text-align:center; color:var(--muted); font-size:11.5px; margin:10px 0 15px; }

.quiet-link { border:0; background:transparent; color:var(--muted); font-size:13px; min-height:42px; cursor:pointer; text-decoration:underline; text-decoration-color:rgba(111,127,117,.35); text-underline-offset:4px; }

.home-entry { padding-top:32px; }
.compact-home { padding:20px 20px 96px; }
.home-hero {
  position:relative;
  min-height:218px;
  overflow:hidden;
  border-radius:25px;
  padding:16px 17px 17px;
  color:#263a30;
  background-image:
    linear-gradient(90deg, rgba(255,253,248,.96) 0%, rgba(255,253,248,.82) 58%, rgba(255,253,248,.2) 100%),
    var(--poetry-image);
  background-size:cover;
  background-position:center 45%;
  box-shadow:0 14px 34px rgba(49,67,56,.1);
}
.home-hero::after { content:""; position:absolute; inset:auto 0 0; height:34%; pointer-events:none; background:linear-gradient(0deg, rgba(255,253,248,.34), transparent); }
.home-hero-top { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; color:#62736a; font-size:11.5px; }
.home-hero-top > div { display:flex; gap:7px; }
.home-sound-button, .home-profile-button { width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.72); border-radius:50%; background:rgba(255,255,255,.66); color:#50675a; backdrop-filter:blur(10px); cursor:pointer; }
.home-sound-button { font-size:14px; }
.home-hero-copy { position:relative; z-index:1; width:78%; margin-top:18px; }
.home-hero-copy > p { margin:0 0 3px; color:var(--sage-dark); font-size:11px; font-weight:800; letter-spacing:.14em; }
.home-hero-copy h2 { margin:0 0 12px; font-family:"Songti SC", "STSong", serif; font-size:25px; line-height:1.2; }
.home-hero-copy blockquote { margin:0 0 4px; font-family:"Songti SC", "STSong", serif; font-size:17px; font-weight:650; line-height:1.48; }
.home-hero-copy cite { display:block; margin-bottom:11px; color:#708078; font-size:11px; font-style:normal; }
.home-hero-copy > span { display:inline-block; max-width:100%; overflow:hidden; padding:6px 9px; border-radius:999px; background:rgba(251,240,216,.82); color:#765f3b; font-size:11px; line-height:1.35; white-space:nowrap; text-overflow:ellipsis; }

.home-choice-panel { margin-top:17px; }
.home-choice-heading { display:flex; align-items:center; justify-content:space-between; margin:0 2px 10px; }
.home-choice-heading h3 { margin:0; font-size:14px; }
.home-choice-heading span { color:var(--muted); font-size:11px; }
.home-choice-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.home-choice { min-width:0; min-height:91px; padding:11px 8px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; border:1px solid var(--line); border-radius:18px; background:#fff; text-align:left; cursor:pointer; transition:.2s ease; }
.home-choice:hover { transform:translateY(-2px); box-shadow:0 9px 22px rgba(50,67,56,.08); }
.home-choice > span { width:29px; height:29px; display:grid; place-items:center; margin-bottom:8px; border-radius:10px; background:var(--sage-light); color:var(--sage-dark); font-size:17px; }
.home-choice strong, .home-choice small { display:block; width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-choice strong { font-size:12px; }
.home-choice small { margin-top:3px; color:var(--muted); font-size:11px; }
.home-choice.action { border-color:rgba(231,185,109,.3); background:linear-gradient(145deg, #fffaf0, #fff); }
.home-choice.action > span { background:var(--sun-soft); color:#9a6a25; }
.home-choice.feeling { border-color:rgba(200,143,134,.22); background:linear-gradient(145deg, #fff8f5, #fff); }
.home-choice.feeling > span { background:#f4e1dc; color:#8a5d55; }

.home-more { margin-top:12px; overflow:hidden; border:1px solid var(--line); border-radius:17px; background:#fff; }
.home-more > summary { min-height:47px; padding:0 14px; display:flex; align-items:center; gap:10px; list-style:none; cursor:pointer; }
.home-more > summary::-webkit-details-marker { display:none; }
.home-more > summary > span { flex:1; }
.home-more > summary strong, .home-more > summary small { display:block; }
.home-more > summary strong { font-size:11.5px; }
.home-more > summary small { margin-top:2px; color:var(--muted); font-size:11px; }
.home-more > summary em { color:var(--sage-dark); font-size:11px; font-style:normal; }
.home-more[open] > summary em { font-size:0; }
.home-more[open] > summary em::after { content:"收起"; font-size:11px; }
.home-more-body { padding:2px 12px 13px; }
.home-more-body .moment-grid { margin-bottom:10px; }
.home-more-body .moment-choice { min-height:53px; }
.home-more-body .day-details { margin-top:10px; }
.poetry-entry {
  position:relative;
  min-height:100%;
  display:flex;
  flex-direction:column;
  padding:24px 20px 105px;
  background-image:linear-gradient(180deg, rgba(252,248,239,.08) 0%, rgba(252,248,239,.03) 34%, rgba(34,48,39,.16) 64%, rgba(25,38,31,.28) 100%), var(--poetry-image);
  background-size:cover;
  background-position:center;
}
.poetry-entry::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg, rgba(255,253,248,.58), transparent 20%); }
.poetry-topline { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; color:#3f5148; font-size:12px; letter-spacing:.04em; }
.poetry-profile { width:38px; height:38px; border:1px solid rgba(255,255,255,.6); background:rgba(255,255,255,.58); backdrop-filter:blur(10px); border-radius:50%; cursor:pointer; }
.poetry-spacer { flex:1; min-height:235px; }
.poetry-letter { position:relative; z-index:1; padding:25px 23px 22px; border:1px solid rgba(255,255,255,.64); border-radius:27px; background:rgba(255,253,248,.82); backdrop-filter:blur(18px); box-shadow:0 22px 55px rgba(31,43,36,.16); }
.poetry-letter .poem-kicker { margin-bottom:12px; }
.poetry-letter blockquote { font-family:"Songti SC", "STSong", serif; color:#24352d; font-size:27px; line-height:1.52; letter-spacing:.02em; margin:0 0 8px; }
.poetry-letter cite { display:block; color:#69776f; font-size:12px; font-style:normal; }
.poetry-divider { display:flex; align-items:center; gap:9px; color:#b08a4f; font-size:11px; margin:15px 0 13px; }
.poetry-divider span { flex:1; height:1px; background:rgba(83,116,97,.15); }
.poetry-note { color:#53655b; font-family:"Songti SC", "STSong", serif; font-size:14px; line-height:1.8; margin:0 0 17px; }
.poetry-accept { width:100%; min-height:49px; border:0; border-radius:15px; background:#263a30; color:#fff; font-size:13px; font-weight:750; cursor:pointer; box-shadow:0 10px 24px rgba(36,53,45,.2); }
.poetry-accept span { margin-left:6px; }
.poetry-sos { width:100%; min-height:33px; margin-top:7px; border:0; background:transparent; color:#77847d; font-size:11.5px; cursor:pointer; }
.checkin-entry { padding-top:28px; }
.letter-ribbon { position:relative; width:100%; min-height:116px; border:0; border-radius:21px; overflow:hidden; padding:17px; display:flex; align-items:flex-end; justify-content:space-between; gap:10px; text-align:left; cursor:pointer; background-image:linear-gradient(90deg, rgba(255,253,248,.96) 0%, rgba(255,253,248,.88) 58%, rgba(255,253,248,.18) 100%), var(--poetry-image); background-size:cover; background-position:center 43%; box-shadow:0 12px 30px rgba(56,72,62,.08); }
.letter-ribbon span { position:relative; z-index:1; max-width:75%; }
.letter-ribbon small, .letter-ribbon strong, .letter-ribbon em { display:block; }
.letter-ribbon small { color:var(--sage-dark); font-size:11px; font-weight:800; letter-spacing:.12em; margin-bottom:7px; }
.letter-ribbon strong { font-family:"Songti SC", "STSong", serif; font-size:17px; line-height:1.5; }
.letter-ribbon em { color:var(--muted); font-size:11px; font-style:normal; margin-top:4px; }
.letter-ribbon b { position:relative; z-index:1; align-self:flex-start; padding:6px 8px; border-radius:999px; color:#5a6d62; background:rgba(255,255,255,.7); font-size:11px; white-space:nowrap; }
.day-details { margin-top:15px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.day-details summary { list-style:none; min-height:42px; padding:0 13px; display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:11.5px; cursor:pointer; }
.day-details summary::-webkit-details-marker { display:none; }
.day-details summary span { opacity:.72; }
.day-details .day-tags { padding:0 12px 12px; }
.poem-card {
  min-height:238px;
  border-radius:26px;
  background-size:cover;
  background-position:center;
  overflow:hidden;
  position:relative;
  border:1px solid rgba(83,116,97,.1);
  box-shadow:0 16px 36px rgba(56,72,62,.08);
}
.poem-card::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.9) 44%, rgba(255,253,248,.06) 78%); }
.poem-copy { position:relative; z-index:1; width:68%; padding:25px 22px; }
.poem-kicker { color:var(--sage-dark); font-size:11.5px; font-weight:800; letter-spacing:.14em; margin:0 0 15px; }
.poem-copy blockquote { font-family:"Songti SC", "STSong", serif; font-size:21px; font-weight:650; line-height:1.55; margin:0 0 8px; }
.poem-copy cite { display:block; color:var(--muted); font-size:12px; font-style:normal; margin-bottom:21px; }
.poem-note { display:inline-block; color:#735d3c; background:rgba(251,240,216,.84); border-radius:999px; padding:7px 10px; font-size:11.5px; margin:0; }
.letter-message { color:#596b60; font-size:12px; line-height:1.75; margin:14px 0 12px; }
.letter-btn { border:0; background:rgba(36,53,45,.9); color:#fff; min-height:34px; padding:0 13px; border-radius:999px; font-size:11.5px; font-weight:750; cursor:pointer; }
.letter-opened .letter-btn { background:rgba(83,116,97,.13); color:var(--sage-dark); }
.focus-caption { display:flex; align-items:center; gap:8px; margin:14px 2px 0; white-space:nowrap; overflow:hidden; }
.focus-caption span { color:var(--muted); font-size:11.5px; }
.focus-caption strong { color:var(--sage-dark); font-size:11.5px; overflow:hidden; text-overflow:ellipsis; }
.weather-title { margin-top:18px; }
.weather-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.weather-choice { min-height:73px; border:1px solid var(--line); border-radius:17px; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; transition:.2s ease; }
.weather-choice b { font-size:23px; line-height:1; }
.weather-choice span { color:var(--muted); font-size:12px; }
.weather-choice.selected { border-color:var(--sage); background:var(--sage-light); transform:translateY(-2px); box-shadow:0 8px 18px rgba(83,116,97,.1); }
.weather-choice.selected span { color:var(--sage-dark); font-weight:750; }
.day-tags-wrap { margin-top:16px; }
.day-tags-wrap > p { display:flex; justify-content:space-between; color:var(--ink); font-size:13px; font-weight:700; margin:0 0 9px; }
.day-tags-wrap > p span { color:var(--muted); font-size:11.5px; font-weight:400; }
.day-tags { display:flex; gap:7px; flex-wrap:wrap; }
.day-tag { border:1px solid var(--line); background:#fff; color:var(--muted); border-radius:999px; padding:8px 10px; font-size:11.5px; cursor:pointer; }
.day-tag.selected { color:var(--sage-dark); background:var(--sage-light); border-color:var(--sage); font-weight:700; }
.home-actions { margin-top:18px; }
.sos-entry { min-height:48px; border:1px solid rgba(200,143,134,.22); background:#fff7f4; border-radius:15px; padding:0 13px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:9px; color:#845850; cursor:pointer; text-align:left; }
.sos-entry span { width:25px; height:25px; border-radius:50%; background:#f3ded9; display:grid; place-items:center; }
.sos-entry strong { font-size:12px; }
.sos-entry em { font-style:normal; font-size:18px; opacity:.65; }

.garden-card { position:relative; height:157px; background:#eef4ec; border-radius:25px; overflow:hidden; margin-bottom:16px; border:1px solid rgba(83,116,97,.08); }
.garden-sky { position:absolute; inset:0 0 43px; overflow:hidden; }
.garden-sun { position:absolute; right:27px; top:20px; width:44px; height:44px; display:grid; place-items:center; color:#d79a3f; background:var(--sun-soft); border-radius:50%; font-size:25px; }
.cloud { position:absolute; width:35px; height:11px; border-radius:99px; background:rgba(255,255,255,.72); }
.cloud::before { content:""; position:absolute; width:16px; height:16px; background:inherit; border-radius:50%; left:7px; bottom:2px; }
.cloud-one { left:28px; top:31px; }
.cloud-two { left:116px; top:59px; transform:scale(.72); }
.garden-ground { position:absolute; left:0; right:0; bottom:43px; height:45px; background:#cbdcc9; border-radius:55% 55% 0 0; display:flex; align-items:flex-end; justify-content:center; gap:8px; padding-bottom:6px; }
.plant { font-size:21px; filter:saturate(.75); }
.plant-2 { transform:scale(.78); }
.plant-3 { transform:scale(1.15); }
.plant-4 { transform:scale(.88); }
.plant-5 { transform:scale(1.22); }
.garden-growth { position:relative; z-index:1; font-size:19px; transform:translateY(calc((var(--i, 0) % 3) * 2px)) scale(calc(.82 + (var(--i, 0) % 4) * .06)); filter:saturate(.78); }
.growth-sleep, .growth-care { align-self:flex-start; margin-top:-20px; }
.growth-connect { align-self:flex-start; margin-top:-31px; }
.garden-copy { position:absolute; left:0; right:0; bottom:0; height:44px; background:rgba(255,255,255,.75); display:flex; align-items:center; justify-content:space-between; padding:0 16px; backdrop-filter:blur(7px); }
.garden-copy strong { font-size:13px; }
.garden-copy span { color:var(--muted); font-size:11px; max-width:72%; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.trajectory-card, .review-card { border:1px solid var(--line); border-radius:21px; padding:17px; margin-bottom:14px; background:#fff; }
.card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.card-heading h3, .review-card h3 { font-family:"Songti SC", "STSong", serif; font-size:18px; margin:0; }
.card-heading > span { color:var(--muted); font-size:11px; line-height:1.5; max-width:110px; text-align:right; }
.weather-trail { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin:15px 0 10px; }
.trail-day { min-width:0; display:flex; flex-direction:column; align-items:center; gap:5px; }
.trail-day span { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--cream); color:#b9c0bb; font-size:17px; }
.trail-day.cared span { box-shadow:0 0 0 3px rgba(140,168,149,.16); }
.trail-day small { color:var(--muted); font-size:11px; }
.trajectory-note { color:var(--muted); font-size:11px; margin:0; text-align:center; }
.review-card { background:linear-gradient(145deg, #fbf4e4, #fffdf8); border-color:rgba(231,185,109,.3); }
.review-card h3 { margin-bottom:10px; }
.review-card > p:not(.action-label) { color:#745f40; font-size:12px; line-height:1.65; margin:5px 0; }
.review-card > small { display:block; color:#9a876a; font-size:11px; line-height:1.55; margin-top:10px; }

.compact-action { display:flex; align-items:center; gap:14px; padding:17px; }
.compact-action .action-icon { flex:0 0 auto; margin:0; }
.compact-action h3 { font-size:18px; margin-bottom:4px; }
.compact-action p { margin:0; }
.photo-prompt { margin:0 0 16px; padding:17px; border:1px dashed rgba(83,116,97,.28); border-radius:20px; background:#fbfcf9; }
.photo-prompt > div { display:grid; grid-template-columns:32px 1fr; gap:1px 10px; align-items:center; }
.photo-prompt > div > span { grid-row:1 / span 2; width:32px; height:32px; border-radius:10px; display:grid; place-items:center; background:var(--sage-light); color:var(--sage-dark); }
.photo-prompt strong, .photo-prompt small { display:block; }
.photo-prompt strong { font-size:13px; }
.photo-prompt small { color:var(--muted); font-size:11px; line-height:1.5; }
.photo-prompt label { display:block; margin-top:13px; padding:10px; border-radius:12px; background:var(--sage-light); color:var(--sage-dark); text-align:center; font-size:12px; font-weight:750; cursor:pointer; }
.photo-memory { margin:0 0 16px; padding:10px; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:19px; background:#fff; }
.photo-memory img { width:82px; height:72px; border-radius:13px; object-fit:cover; background:var(--cream); }
.photo-memory strong, .photo-memory span { display:block; }
.photo-memory strong { font-family:"Songti SC", "STSong", serif; font-size:14px; margin-bottom:4px; }
.photo-memory span { color:var(--muted); font-size:11px; }
.repeat-action-card { margin:0 0 16px; padding:16px; border:1px solid rgba(84,115,96,.2); border-radius:20px; background:linear-gradient(145deg, #eef4ed, #fbfcf8); }
.repeat-action-card strong, .repeat-action-card span { display:block; }
.repeat-action-card strong { font-family:"Songti SC", "STSong", serif; font-size:14px; margin-bottom:4px; }
.repeat-action-card span { color:var(--muted); font-size:11px; line-height:1.55; }
.repeat-action-card button { width:100%; min-height:42px; margin-top:12px; border:1px solid rgba(80,113,92,.28); border-radius:13px; background:rgba(255,255,255,.76); color:var(--sage-dark); font-size:12px; font-weight:800; cursor:pointer; }
.today-completion-list { margin:0 0 14px; padding:14px 15px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.today-completion-list > p { margin-bottom:7px; }
.today-completion-list > div { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:8px; min-height:34px; border-top:1px solid rgba(50,65,56,.07); }
.today-completion-list > div:first-of-type { border-top:0; }
.today-completion-list > div > span { font-size:16px; }
.today-completion-list strong { font-size:11.5px; font-weight:700; }
.today-completion-list small { color:var(--muted); font-size:11px; }

.install-nudge, .dimension-library-btn {
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  text-align:left;
  padding:14px;
  margin:0 0 16px;
  cursor:pointer;
}
.install-nudge { background:var(--sun-soft); border-color:rgba(231,185,109,.28); }
.install-icon { width:38px; height:38px; background:#fff; border-radius:12px; display:grid; place-items:center; }
.install-nudge strong, .install-nudge small, .dimension-library-btn span, .dimension-library-btn small { display:block; }
.install-nudge strong, .dimension-library-btn span { font-size:13px; margin-bottom:3px; font-weight:750; }
.install-nudge small, .dimension-library-btn small { color:var(--muted); font-size:11.5px; }
.install-nudge b, .dimension-library-btn b { color:var(--sage-dark); font-size:12px; }
.dimension-library-btn { margin-top:14px; grid-template-columns:1fr auto; }
.dimension-library-btn small { grid-column:1; }
.dimension-library-btn b { grid-column:2; grid-row:1 / span 2; }

.modal-heading { display:flex; align-items:flex-start; justify-content:space-between; text-align:left; margin-bottom:14px; }
.modal-heading h3 { font-size:20px; margin:0; }
.modal-x { width:35px; height:35px; border:0; border-radius:50%; background:var(--cream); color:var(--muted); font-size:23px; cursor:pointer; }
.dimension-modal { max-height:90%; overflow-y:auto; }
.modal-grid { margin-bottom:6px; }
.install-preview-icon { width:78px; height:78px; display:block; margin:0 auto 17px; border-radius:20px; box-shadow:0 10px 25px rgba(36,53,45,.14); }
.companion-modal { padding-top:40px; }
.breathing-orb { width:92px; height:92px; border-radius:50%; margin:0 auto 26px; background:var(--sun-soft); box-shadow:0 0 0 12px rgba(251,240,216,.55), 0 0 0 28px rgba(251,240,216,.24); animation:breathe 5s ease-in-out infinite; }
.breathing-orb.small { width:55px; height:55px; margin:0 auto 17px; box-shadow:0 0 0 9px rgba(251,240,216,.45), 0 0 0 18px rgba(251,240,216,.2); }
.sos-modal { max-height:92%; overflow-y:auto; }
.sos-modal > .modal-x.sos-back { position:absolute; left:22px; top:24px; font-size:28px; }
.sos-intro { text-align:left; margin-top:-4px !important; }
.sos-grid { display:grid; gap:8px; }
.sos-choice { width:100%; min-height:48px; border:1px solid var(--line); background:#fff; border-radius:14px; padding:0 13px; display:grid; grid-template-columns:28px 1fr auto; gap:9px; align-items:center; text-align:left; cursor:pointer; }
.sos-choice span { font-size:18px; }
.sos-choice strong { font-size:13px; }
.sos-choice em { color:var(--muted); font-style:normal; font-size:18px; }
.sos-choice.urgent-choice { margin-top:5px; color:#895a52; background:#fff5f2; border-color:rgba(200,143,134,.3); }
.sos-pause { background:var(--cream); border-radius:18px; padding:24px 14px 15px; margin:7px 0 16px; }
.sos-pause span { color:var(--muted); font-size:11.5px; }
.sos-modal .ghost-btn, .sos-modal .secondary-btn { margin-top:9px; }
.sos-modal.urgent .modal-icon { background:#f6e2de; }
.sos-help { margin:4px 0 12px; }

.timer-setup-copy { text-align:left; margin-top:-3px !important; }
.timer-options { display:grid; gap:9px; }
.timer-options button { min-height:70px; padding:12px 14px; border:1px solid var(--line); border-radius:16px; background:#fff; display:grid; grid-template-columns:1fr auto; text-align:left; cursor:pointer; }
.timer-options button:hover { border-color:var(--sage); background:var(--sage-light); }
.timer-options span, .timer-options small { color:var(--muted); font-size:11px; }
.timer-options strong { grid-row:1 / span 2; grid-column:2; align-self:center; font-family:"Songti SC", "STSong", serif; color:var(--sage-dark); font-size:18px; }
.timer-options small { margin-top:5px; }
.timer-backdrop { position:absolute; z-index:40; inset:0; background-image:linear-gradient(180deg, rgba(22,38,31,.24), rgba(18,34,27,.46)), var(--timer-image); background-size:cover; background-position:center; animation:fade-in .3s ease; }
.timer-screen { height:100%; padding:34px 25px 27px; display:flex; flex-direction:column; color:#fff; background:linear-gradient(180deg, rgba(24,40,32,.08), rgba(24,40,32,.12)); }
.timer-close { align-self:flex-end; width:38px; height:38px; border:1px solid rgba(255,255,255,.45); border-radius:50%; background:rgba(255,255,255,.18); backdrop-filter:blur(10px); color:#fff; font-size:22px; cursor:pointer; }
.timer-poem { margin-top:19px; text-shadow:0 2px 15px rgba(20,34,28,.26); }
.timer-poem blockquote { font-family:"Songti SC", "STSong", serif; font-size:20px; line-height:1.55; margin:0 0 5px; }
.timer-poem cite { font-size:11.5px; font-style:normal; opacity:.8; }
.timer-center { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.timer-ring { --progress:0deg; position:relative; width:194px; height:194px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(rgba(255,255,255,.9) var(--progress), rgba(255,255,255,.18) 0); box-shadow:0 20px 60px rgba(17,28,23,.22); transition:background .5s linear; }
.timer-ring::before { content:""; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(248,246,236,.22); backdrop-filter:blur(15px); }
.timer-ring > div { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; }
.timer-ring small { font-size:11.5px; letter-spacing:.08em; opacity:.82; }
.timer-ring strong { font-family:"Songti SC", "STSong", serif; font-size:43px; line-height:1.25; font-variant-numeric:tabular-nums; }
.timer-ring span { font-size:11px; opacity:.72; }
.timer-center p { max-width:275px; margin:23px 0 0; text-align:center; font-size:12px; line-height:1.7; text-shadow:0 2px 12px rgba(17,28,23,.3); }
.timer-action-copy { display:flex; align-items:center; gap:11px; padding:13px 14px; margin-bottom:10px; border:1px solid rgba(255,255,255,.32); border-radius:16px; background:rgba(255,255,255,.15); backdrop-filter:blur(12px); }
.timer-action-copy > span { font-size:24px; }
.timer-action-copy small, .timer-action-copy strong { display:block; }
.timer-action-copy small { font-size:11px; opacity:.78; margin-bottom:3px; }
.timer-action-copy strong { font-size:13px; }
.timer-finish { min-height:51px; border:0; border-radius:15px; background:rgba(255,253,248,.94); color:#2d4036; font-size:13px; font-weight:800; cursor:pointer; }

.album-modal { max-height:92%; overflow-y:auto; text-align:left; }
.album-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.album-grid figure { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff; }
.album-grid img { display:block; width:100%; aspect-ratio:1 / 1; object-fit:cover; background:var(--cream); }
.album-grid figcaption { padding:9px 10px 10px; }
.album-grid strong, .album-grid span { display:block; }
.album-grid strong { font-size:11.5px; margin-bottom:3px; }
.album-grid span { color:var(--muted); font-size:11px; }
.album-empty { padding:34px 18px; text-align:center; background:var(--cream); border-radius:18px; }
.album-empty > span { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 12px; border-radius:16px; background:#fff; color:var(--sage-dark); }
.album-empty h3 { font-size:18px; }
.album-empty p { margin-bottom:0; }
.album-privacy { margin:15px 5px 0 !important; text-align:center; font-size:11px!important; }

.modal-backdrop { position:absolute; z-index:30; inset:0; background:rgba(31,43,36,.38); backdrop-filter:blur(3px); display:flex; align-items:flex-end; animation:fade-in .2s ease; }
.modal { width:100%; background:var(--paper); border-radius:28px 28px 0 0; padding:28px 25px 32px; text-align:center; animation:slide-up .3s ease both; }
.modal-icon { width:70px; height:70px; margin:0 auto 17px; border-radius:25px; display:grid; place-items:center; background:var(--sun-soft); font-size:33px; }
.modal h3 { font-family:"Songti SC", "STSong", serif; font-size:24px; margin:0 0 8px; }
.modal p { color:var(--muted); font-size:14px; line-height:1.7; margin:0 0 20px; }
.feeling-row { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-bottom:16px; }
.feeling-btn { min-height:48px; border:1px solid var(--line); background:#fff; border-radius:14px; font-size:13px; cursor:pointer; }
.feeling-btn.selected { background:var(--sage-light); border-color:var(--sage); color:var(--sage-dark); font-weight:700; }

.moment-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:12px; }
.moment-choice { min-height:58px; padding:10px 11px; display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:17px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; transition:.2s ease; }
.moment-choice:last-child { grid-column:1 / -1; min-height:50px; }
.moment-choice b { font-size:21px; }
.moment-choice span { font-size:12px; font-weight:700; line-height:1.35; }
.moment-choice.selected { border-color:var(--sage); background:linear-gradient(145deg, #edf4ed, #fbfdf9); box-shadow:0 8px 20px rgba(61,91,73,.08); }
.moment-response { display:flex; gap:11px; align-items:flex-start; margin:2px 0 13px; padding:13px 14px; border-radius:17px; background:linear-gradient(145deg, #f2f6ef, #fbfcf8); color:var(--sage-dark); animation:fade-in .25s ease; }
.moment-response > span { font-size:19px; }
.moment-response strong { display:block; font-family:"Songti SC", "STSong", serif; font-size:13px; line-height:1.55; }
.moment-response p { margin:3px 0 0; color:var(--muted); font-size:11px; line-height:1.55; }
.adaptation-note { display:flex; align-items:flex-start; gap:8px; padding:11px 12px; margin:12px 0 0; border-radius:14px; background:#f0f5ec; color:#526b5a; font-size:11.5px; line-height:1.6; }
.adaptation-note > span { font-size:16px; }

.no-doing-entry { width:100%; min-height:67px; padding:11px 13px; display:grid; grid-template-columns:38px 1fr auto; grid-template-rows:auto auto; align-items:center; column-gap:10px; border:1px solid rgba(99,127,109,.22); border-radius:18px; background:linear-gradient(140deg, #f2f6f0, #fbfaf3); color:var(--ink); text-align:left; cursor:pointer; }
.no-doing-entry > span { grid-row:1 / span 2; width:38px; height:38px; display:grid; place-items:center; border-radius:13px; background:rgba(255,255,255,.78); color:var(--sage-dark); font-size:21px; }
.no-doing-entry strong { align-self:end; font-size:13px; }
.no-doing-entry small { align-self:start; color:var(--muted); font-size:11px; line-height:1.4; }
.no-doing-entry em { grid-column:3; grid-row:1 / span 2; font-style:normal; color:var(--sage-dark); font-size:19px; }

.weekly-letter-card { width:100%; padding:16px; margin-bottom:14px; display:grid; grid-template-columns:45px 1fr; gap:11px; position:relative; border:1px solid rgba(205,169,103,.28); border-radius:21px; background:linear-gradient(145deg, #fbf2de, #fffdf8); color:#5b4b34; text-align:left; cursor:pointer; overflow:hidden; }
.weekly-letter-card::after { content:""; position:absolute; width:100px; height:100px; right:-25px; top:-40px; border-radius:50%; border:1px solid rgba(196,157,89,.15); }
.weekly-letter-mark { width:43px; height:43px; display:grid; place-items:center; border-radius:15px; background:rgba(255,255,255,.75); font-family:"Songti SC", "STSong", serif; font-size:18px; }
.weekly-letter-card small, .weekly-letter-card strong, .weekly-letter-card em { display:block; }
.weekly-letter-card small { color:#9a7f58; font-size:11px; letter-spacing:.08em; margin-bottom:4px; }
.weekly-letter-card strong { font-family:"Songti SC", "STSong", serif; font-size:13px; line-height:1.55; padding-right:30px; }
.weekly-letter-card em { margin-top:5px; color:#9b896c; font-size:11px; font-style:normal; }
.weekly-letter-card b { grid-column:2; color:#84683f; font-size:11px; }

.quiet-options, .style-options { display:grid; gap:9px; }
.quiet-options { grid-template-columns:repeat(3, 1fr); }
.quiet-options button { min-height:105px; padding:13px 7px; border:1px solid var(--line); border-radius:17px; background:#fff; color:var(--ink); cursor:pointer; }
.quiet-options span, .quiet-options strong, .quiet-options small { display:block; }
.quiet-options span { font-size:25px; margin-bottom:8px; }
.quiet-options strong { font-size:12px; margin-bottom:4px; }
.quiet-options small { color:var(--muted); font-size:11px; line-height:1.45; }
.style-options button { min-height:65px; padding:11px 13px; display:grid; grid-template-columns:35px 1fr 20px; grid-template-rows:auto auto; align-items:center; column-gap:9px; border:1px solid var(--line); border-radius:17px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.style-options button.selected { border-color:var(--sage); background:var(--sage-light); }
.style-options span { grid-row:1 / span 2; width:35px; height:35px; display:grid; place-items:center; border-radius:12px; background:var(--cream); color:var(--sage-dark); font-size:18px; }
.style-options strong { align-self:end; font-size:13px; }
.style-options small { align-self:start; color:var(--muted); font-size:11px; }
.style-options i { grid-column:3; grid-row:1 / span 2; color:var(--sage-dark); font-style:normal; font-weight:800; }
.style-preview { margin:13px 2px 0 !important; padding:11px 12px; border-radius:13px; background:var(--cream); text-align:left; font-size:11.5px!important; }

.quiet-session-backdrop { position:absolute; z-index:42; inset:0; color:#fff; animation:fade-in .3s ease; overflow:hidden; }
.quiet-session-backdrop::before, .quiet-session-backdrop::after { content:""; position:absolute; border-radius:50%; filter:blur(3px); animation:quiet-drift 7s ease-in-out infinite alternate; }
.quiet-rain { background:linear-gradient(165deg, #6f817c, #324943 58%, #223730); }
.quiet-rain::before { width:280px; height:280px; left:-80px; top:80px; background:radial-gradient(circle, rgba(205,224,216,.22), transparent 68%); }
.quiet-rain::after { inset:0; border-radius:0; background:repeating-linear-gradient(105deg, transparent 0 16px, rgba(225,240,234,.13) 17px 18px, transparent 19px 32px); animation:rain-fall 1.4s linear infinite; }
.quiet-bowl { background:linear-gradient(155deg, #8f795f, #5d5147 56%, #332f2b); }
.quiet-bowl::before { width:330px; height:330px; left:50%; top:42%; transform:translate(-50%,-50%); border:1px solid rgba(255,233,188,.22); box-shadow:0 0 0 42px rgba(255,231,183,.08), 0 0 0 92px rgba(255,231,183,.035); animation:bowl-ripple 7.8s ease-out infinite; }
.quiet-bowl::after { width:210px; height:90px; left:50%; top:46%; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(ellipse, rgba(248,215,151,.34), rgba(150,114,72,.12) 58%, transparent 70%); box-shadow:inset 0 -18px 25px rgba(31,24,19,.24), 0 18px 35px rgba(18,14,12,.16); animation:bowl-glow 4.1s ease-in-out infinite; }
.quiet-breath { background:linear-gradient(165deg, #e7d9bd, #879d8c 58%, #526e60); }
.quiet-breath::before { width:330px; height:330px; left:50%; top:37%; transform:translate(-50%,-50%); background:radial-gradient(circle, rgba(255,250,224,.32), transparent 67%); animation:breathe-bg 6s ease-in-out infinite; }
.quiet-session-screen { position:relative; z-index:2; height:100%; padding:32px 25px 27px; display:flex; flex-direction:column; align-items:center; text-align:center; }
#quiet-close-btn { align-self:flex-end; width:38px; height:38px; border:1px solid rgba(255,255,255,.42); border-radius:50%; background:rgba(255,255,255,.13); color:#fff; font-size:21px; cursor:pointer; }
.quiet-scene { flex:1; width:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; text-shadow:0 2px 15px rgba(25,42,34,.22); }
.quiet-symbol { font-size:31px; margin-bottom:18px; }
.quiet-visual { width:120px; height:120px; margin:0 auto 24px; border-radius:50%; background:rgba(255,255,255,.13); box-shadow:0 0 0 20px rgba(255,255,255,.06), 0 0 0 44px rgba(255,255,255,.03); }
.quiet-visual.breathing-orb { background:rgba(255,245,207,.34); box-shadow:0 0 0 17px rgba(255,246,216,.13), 0 0 0 39px rgba(255,246,216,.06); animation:breathe-quiet 6s ease-in-out infinite; }
.quiet-scene p { font-family:"Songti SC", "STSong", serif; font-size:18px; letter-spacing:.07em; }
.quiet-count { display:flex; align-items:baseline; gap:4px; }
.quiet-count strong { font-family:"Songti SC", "STSong", serif; font-size:47px; font-variant-numeric:tabular-nums; }
.quiet-count span { font-size:11.5px; opacity:.72; }
#quiet-note { min-height:39px; margin:5px 0 14px; font-size:11.5px; line-height:1.7; opacity:.82; }
#finish-quiet-btn { width:100%; min-height:51px; border:0; border-radius:15px; background:rgba(255,253,248,.94); color:#31483b; font-size:13px; font-weight:800; cursor:pointer; }

.weekly-letter-modal { max-height:94%; overflow-y:auto; padding-top:25px; text-align:left; background:linear-gradient(160deg, #fffaf0, #fffdf9); }
.weekly-letter-modal > .modal-x { float:right; }
.weekly-letter-modal .letter-date { margin:7px 0 6px; color:#9b7c4f; font-size:11px; letter-spacing:.12em; }
.weekly-letter-modal h3 { font-size:27px; }
.weekly-letter-modal blockquote { margin:19px 0 4px; padding:15px 0; border-top:1px solid rgba(188,151,85,.22); border-bottom:1px solid rgba(188,151,85,.22); font-family:"Songti SC", "STSong", serif; font-size:18px; line-height:1.7; color:#5d4c35; }
.weekly-letter-modal cite { display:block; margin-bottom:17px; color:#9d896d; font-size:11px; font-style:normal; }
.weekly-letter-modal .letter-body p { margin:0 0 12px; color:#695d4d; font-family:"Songti SC", "STSong", serif; font-size:13px; line-height:1.9; }

.poetry-top-actions { display:flex; align-items:center; gap:8px; }
.sound-pill { min-height:38px; padding:0 13px; border:1px solid rgba(255,255,255,.7); border-radius:999px; background:rgba(255,255,255,.58); backdrop-filter:blur(12px); color:#41564b; font-size:11.5px; font-weight:750; cursor:pointer; box-shadow:0 7px 20px rgba(29,45,36,.08); }
.sound-pill span { color:#816f4d; }
.night-entry-card { width:100%; min-height:72px; margin:13px 0; padding:12px 14px; display:grid; grid-template-columns:42px 1fr auto; gap:11px; align-items:center; border:1px solid rgba(91,106,122,.2); border-radius:20px; background:linear-gradient(135deg, #edf0ef, #e7e3d8 58%, #f8f3e8); color:#314139; text-align:left; cursor:pointer; box-shadow:0 10px 28px rgba(38,52,45,.06); }
.night-entry-card > span:first-child { width:42px; height:42px; display:grid; place-items:center; border-radius:15px; background:rgba(255,255,255,.72); color:#52685c; font-family:"Songti SC", "STSong", serif; font-size:24px; }
.night-entry-card strong, .night-entry-card small { display:block; }
.night-entry-card strong { font-family:"Songti SC", "STSong", serif; font-size:14px; margin-bottom:4px; }
.night-entry-card small { color:#718078; font-size:11px; }
.night-entry-card b { color:#62766b; font-size:11px; }
.night-entry-card.compact { margin:0; }

.night-backdrop { position:absolute; z-index:44; inset:0; color:#f8f5ec; background-image:linear-gradient(180deg, rgba(19,34,31,.28), rgba(17,28,27,.84) 50%, rgba(12,23,24,.97)), var(--night-image); background-size:cover; background-position:center; animation:fade-in .35s ease; overflow:hidden; }
.night-screen { height:100%; padding:31px 23px 22px; display:flex; flex-direction:column; overflow-y:auto; scrollbar-width:none; background:radial-gradient(circle at 80% 12%, rgba(245,226,176,.16), transparent 31%); }
.night-screen::-webkit-scrollbar { display:none; }
.night-top { display:flex; justify-content:space-between; align-items:center; color:rgba(249,246,236,.75); font-size:11px; letter-spacing:.12em; }
.night-top button { width:38px; height:38px; border:1px solid rgba(255,255,255,.34); border-radius:50%; background:rgba(255,255,255,.1); color:#fff; font-size:21px; cursor:pointer; }
.night-poem { margin:42px 2px 27px; text-shadow:0 3px 18px rgba(8,18,17,.42); }
.night-poem blockquote { max-width:320px; margin:0 0 8px; font-family:"Songti SC", "STSong", serif; font-size:25px; line-height:1.62; letter-spacing:.035em; }
.night-poem cite { display:block; margin-bottom:12px; color:rgba(249,246,236,.72); font-size:11px; font-style:normal; }
.night-poem p { margin:0; color:rgba(249,246,236,.78); font-family:"Songti SC", "STSong", serif; font-size:12px; }
.night-player { padding:18px; border:1px solid rgba(255,255,255,.19); border-radius:25px; background:rgba(247,244,235,.11); backdrop-filter:blur(18px); box-shadow:0 24px 60px rgba(4,12,12,.24); }
.night-now { display:flex; gap:12px; align-items:center; }
.night-now > span { width:48px; height:48px; display:grid; place-items:center; border-radius:16px; background:rgba(255,255,255,.12); font-size:23px; }
.night-now small, .night-now strong, .night-now em { display:block; }
.night-now small { margin-bottom:3px; color:rgba(255,255,255,.6); font-size:11px; letter-spacing:.08em; }
.night-now strong { font-family:"Songti SC", "STSong", serif; font-size:16px; }
.night-now em { margin-top:3px; color:rgba(255,255,255,.58); font-size:11px; font-style:normal; }
.night-tracks { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:16px 0 13px; }
.night-tracks button { min-width:0; min-height:66px; padding:10px; display:grid; grid-template-columns:29px 1fr; grid-template-rows:auto auto; column-gap:7px; align-items:center; border:1px solid rgba(255,255,255,.13); border-radius:15px; background:rgba(255,255,255,.07); color:#fff; text-align:left; cursor:pointer; }
.night-tracks button.selected { border-color:rgba(247,225,168,.62); background:rgba(247,225,168,.15); }
.night-tracks span { grid-row:1 / span 2; font-size:18px; }
.night-tracks strong { align-self:end; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.night-tracks small { align-self:start; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:rgba(255,255,255,.55); font-size:11px; }
.night-controls { display:flex; gap:12px; align-items:center; }
.night-controls > button { flex:1; min-height:43px; border:0; border-radius:13px; background:#f2ead6; color:#2f433a; font-size:11.5px; font-weight:800; cursor:pointer; }
.night-controls > button:disabled { opacity:.45; cursor:default; }
.night-controls label { width:105px; display:flex; flex-direction:column; gap:4px; color:rgba(255,255,255,.55); font-size:11px; }
.night-controls input { width:100%; accent-color:#e6c988; }
.night-whisper { margin:16px 1px 0; padding-top:14px; border-top:1px solid rgba(255,255,255,.11); color:rgba(255,255,255,.73); font-family:"Songti SC", "STSong", serif; font-size:11.5px; line-height:1.75; }
.night-credit { margin-top:10px; color:rgba(255,255,255,.5); font-size:11px; }
.night-credit summary { cursor:pointer; }
.night-credit p { margin:7px 0; line-height:1.5; }
.night-credit a { color:#e7d5aa; }
.night-leave { min-height:43px; margin:12px 0 0; border:0; background:transparent; color:rgba(255,255,255,.67); font-size:11px; cursor:pointer; }

/* Progressive disclosure: keep the first screen calm and reveal secondary choices on demand. */
.rest-hub, .week-insights, .settings-details, .optional-memory { border:1px solid var(--line); border-radius:19px; background:#fff; overflow:hidden; }
.rest-hub summary, .week-insights summary, .settings-details summary, .optional-memory summary { list-style:none; display:flex; align-items:center; gap:12px; min-height:64px; padding:0 16px; cursor:pointer; }
.rest-hub summary::-webkit-details-marker, .week-insights summary::-webkit-details-marker, .settings-details summary::-webkit-details-marker, .optional-memory summary::-webkit-details-marker { display:none; }
.rest-hub summary > span:nth-child(2), .week-insights summary > span, .settings-details summary > span, .optional-memory summary > span { flex:1; }
.rest-hub summary strong, .rest-hub summary small, .week-insights summary strong, .week-insights summary small, .settings-details summary strong, .settings-details summary small, .optional-memory summary span, .optional-memory summary small { display:block; }
.rest-hub summary strong, .week-insights summary strong, .settings-details summary strong, .optional-memory summary span { font-size:13px; }
.rest-hub summary small, .week-insights summary small, .settings-details summary small, .optional-memory summary small { margin-top:3px; color:var(--muted); font-size:11px; }
.rest-hub summary em, .week-insights summary em, .settings-details summary em { color:var(--sage-dark); font-size:11px; font-style:normal; }
.rest-hub[open] summary em, .week-insights[open] summary em, .settings-details[open] summary em { font-size:0; }
.rest-hub[open] summary em::after, .week-insights[open] summary em::after, .settings-details[open] summary em::after { content:'收起'; font-size:11px; }
.rest-hub-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:13px; background:var(--sage-light); color:var(--sage-dark); font-size:19px; }
.rest-hub-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 12px 12px; }
.rest-hub-options button { min-width:0; padding:13px 10px; border:0; border-radius:14px; background:#f7f5ef; text-align:left; cursor:pointer; }
.rest-hub-options button span, .rest-hub-options button strong, .rest-hub-options button small { display:block; }
.rest-hub-options button span { margin-bottom:8px; font-size:18px; }
.rest-hub-options button strong { font-size:12px; }
.rest-hub-options button small { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.45; }
.optional-memory { margin:0 0 16px; }
.optional-memory-body { padding:0 12px 12px; }
.optional-memory .photo-prompt, .optional-memory .photo-memory, .optional-memory .install-nudge { margin-bottom:0; }
.optional-memory .install-nudge { margin-top:10px; }
.week-insights { margin-top:16px; }
.week-insights-body { padding:0 12px 12px; }
.week-insights .trajectory-card, .week-insights .review-card { margin-bottom:10px; border-radius:16px; }
.week-insights .week-summary { margin-top:10px; border-radius:16px; }
.week-footnote { margin:13px 8px 0; color:var(--muted); font-size:11px; line-height:1.6; text-align:center; }
.settings-details { margin:0 0 20px; }
.settings-details .compact-menu { margin:0; border:0; border-top:1px solid var(--line); border-radius:0; }
.menu-row.static-row { cursor:default; }
.menu-row.reset-row strong, .menu-row.reset-row em { color:#977064; }

.toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%, 20px); background:var(--ink); color:#fff; padding:11px 17px; border-radius:999px; font-size:13px; opacity:0; pointer-events:none; transition:.25s ease; z-index:100; }
.toast.show { opacity:1; transform:translate(-50%, 0); }

@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
@keyframes slide-up { from { transform:translateY(30px); opacity:0; } to { transform:translateY(0); opacity:1; } }
@keyframes float { 50% { transform:translateY(-8px); } }
@keyframes breathe { 50% { transform:scale(1.16); box-shadow:0 0 0 18px rgba(251,240,216,.45), 0 0 0 38px rgba(251,240,216,.18); } }
@keyframes breathe-quiet { 50% { transform:scale(1.28); opacity:.75; box-shadow:0 0 0 27px rgba(255,246,216,.12), 0 0 0 59px rgba(255,246,216,.04); } }
@keyframes breathe-bg { 50% { transform:translate(-50%,-50%) scale(1.3); opacity:.55; } }
@keyframes quiet-drift { to { transform:translate(35px, -18px) scale(1.08); } }
@keyframes rain-fall { to { transform:translate(-25px, 60px); } }
@keyframes bowl-ripple { 0% { opacity:.25; transform:translate(-50%,-50%) scale(.62); } 55% { opacity:.72; } 100% { opacity:0; transform:translate(-50%,-50%) scale(1.18); } }
@keyframes bowl-glow { 50% { opacity:.72; filter:brightness(1.16); } }

@media (max-width: 820px) {
  body { background:var(--paper); }
  .site-shell { width:100%; min-height:100vh; display:block; padding:0; }
  .brand-panel { display:none; }
  .phone { width:100%; height:100vh; min-height:620px; border:0; border-radius:0; box-shadow:none; }
  .phone-top { display:none; }
  .screen-scroll { padding-top:24px; }
}

@media (max-height: 720px) and (min-width: 821px) {
  .site-shell { padding:20px 0; }
  .phone { height:680px; min-height:680px; }
  .brand-panel { min-height:570px; }
  .onboarding { padding-top:30px; }
  .onboarding-visual { height:145px; }
  .onboarding .lead { margin-bottom:18px; }
  .focus-list { gap:7px; margin-bottom:15px; }
  .focus-option { padding:11px 14px; }
  .onboarding-v2 { padding-top:22px; }
  .onboarding-visual.compact { display:none; }
  .onboarding-v2 .eyebrow { margin-bottom:10px; }
  .dimension-option { min-height:58px; padding:8px 10px; }
}

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

/* 启动与配置失败状态 */
.boot-splash { height:100%; min-height:420px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; color:var(--muted); background:var(--paper); }
.boot-splash p { margin:0; font-size:15px; letter-spacing:.08em; }
.boot-mark { width:34px; height:34px; border-radius:50%; background:var(--sun-soft); position:relative; animation:boot-breathe 2.4s ease-in-out infinite; }
.boot-mark::after { content:""; position:absolute; inset:9px; border-radius:50%; background:var(--sun); box-shadow:0 0 0 7px rgba(231,185,109,.16); }
@keyframes boot-breathe { 0%,100% { transform:scale(.86); opacity:.7; } 50% { transform:scale(1); opacity:1; } }
.startup-error { min-height:100%; display:grid; place-items:center; padding:32px 22px; background:var(--paper); }
.startup-error-card { max-width:320px; text-align:center; display:grid; gap:12px; justify-items:center; }
.startup-error-icon { font-size:36px; }
.startup-error-card h2 { font-family:"Songti SC","STSong",serif; font-size:26px; margin:0; }
.startup-error-card p { margin:0; color:var(--muted); line-height:1.7; font-size:15px; }
.startup-error-card .muted { font-size:13px; }
.startup-error-card .primary-btn { width:100%; margin-top:8px; }

button:focus-visible, a:focus-visible, input:focus-visible { outline:2px solid var(--sage-dark); outline-offset:3px; }

/* ===== 小象日记 ===== */
.ele-screen { padding-top: 26px; }
.ele-topbar { margin-bottom: 14px; }
.ele-top-actions { display: flex; gap: 6px; }
.ele-top-actions .round-icon { width: 38px; height: 38px; font-size:16px; }

.ele-scene { position: relative; height: 300px; margin: 0 0 16px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #e6eef1 0%, #f5f0e6 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.ele-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,253,250,.55)); z-index: 1; }
.ele-scene.scene-rain { background: linear-gradient(180deg, #cfdce2 0%, #dde3dc 55%, #eee7d8 100%); }
.ele-scene.scene-cloud { background: linear-gradient(180deg, #dce4e2 0%, #eee9dd 100%); }
.ele-scene.scene-sun { background: linear-gradient(180deg, #f6e3bd 0%, #f7f0e1 65%, #f5f0e6 100%); }
.ele-scene.scene-night { background: linear-gradient(180deg, #2f414c 0%, #53666e 58%, #b8a68d 100%); }
.ele-scene.scene-dawn { background: linear-gradient(180deg, #e9d9c7 0%, #f4e8dc 55%, #f6f0e4 100%); }
.ele-scene.scene-park { background: linear-gradient(180deg, #dbe6d2 0%, #eaf0df 60%, #f4f0e2 100%); }
.ele-scene.scene-sea { background: linear-gradient(180deg, #cfe0e6 0%, #b7d1d8 52%, #eadfc9 53%, #f2e9d8 100%); }
.ele-scene.scene-mountain { background: linear-gradient(180deg, #d4dfdc 0%, #b7c9bd 52%, #e9e3d2 100%); }
.ele-scene.scene-studio { background: linear-gradient(180deg, #f2e6d2 0%, #f7f1e4 100%); }

.ele-window { position: absolute; top: 18px; right: 20px; width: 112px; height: 104px; z-index: 2; border: 7px solid rgba(255,253,250,.8); border-radius: 14px; background-image: linear-gradient(180deg, rgba(255,253,250,.06), rgba(255,253,250,.3)), var(--ele-view); background-size: cover; background-position: center; box-shadow: 0 10px 22px rgba(50,64,54,.12); }
.ele-window i, .ele-window b { position: absolute; background: rgba(255,253,250,.78); }
.ele-window i { left: 50%; top: 0; bottom: 0; width: 2px; }
.ele-window b { top: 50%; left: 0; right: 0; height: 2px; }
.ele-scene.scene-night .ele-window { border-color: rgba(255,253,250,.32); }

.ele-weather { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene-rain .ele-weather { background-image: repeating-linear-gradient(105deg, transparent 0 9px, rgba(255,255,255,.46) 9px 10px); background-size: 34px 34px; opacity: .5; animation: ele-rain 1.1s linear infinite; }
.scene-night .ele-weather { background-image: radial-gradient(circle at 22% 22%, rgba(255,253,250,.9) 0 1px, transparent 1.6px), radial-gradient(circle at 68% 16%, rgba(255,253,250,.7) 0 1.2px, transparent 1.8px), radial-gradient(circle at 42% 38%, rgba(255,253,250,.55) 0 1px, transparent 1.5px); background-size: 90px 90px, 130px 130px, 70px 70px; }
.scene-sun .ele-weather::before { content: ""; position: absolute; top: 22px; left: 26px; width: 54px; height: 54px; border-radius: 50%; background: #f3cf8d; box-shadow: 0 0 0 18px rgba(243,207,141,.22); }
.scene-dawn .ele-weather::before { content: ""; position: absolute; top: 28px; left: 30px; width: 62px; height: 62px; border-radius: 50%; background: #f0c9a3; box-shadow: 0 0 0 22px rgba(240,201,163,.2); }

.ele-shelf { position: absolute; left: 14px; top: 14px; z-index: 4; display: flex; flex-wrap: wrap; gap: 5px; max-width: 138px; }
.ele-shelf-item { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,253,250,.82); font-size:15px; box-shadow: 0 4px 10px rgba(50,64,54,.08); }
.ele-friends { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: flex; gap: 5px; }
.ele-friend-chip { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,253,250,.82); font-size:15px; box-shadow: 0 4px 10px rgba(50,64,54,.08); }

.ele-character { position: absolute; left: 50%; bottom: -4px; z-index: 3; width: 236px; max-width: 68%; transform: translateX(-50%); }
.ele-touch { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ele-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 18px rgba(50,64,54,.13)); }
.ele-ground-shadow { fill: rgba(50,64,54,.14); }
.ele-body-shape { fill: #b8c9d4; }
.ele-head { fill: #c7d5de; }
.ele-head-light { fill: #d9e4ea; opacity: .72; }
.ele-ear { fill: #a9bcc9; }
.ele-ear-inner { fill: #e7c3c6; opacity: .92; }
.ele-leg { fill: #a9bcc9; }
.ele-tail { stroke: #a9bcc9; stroke-width: 7; stroke-linecap: round; }
.ele-trunk { fill: #b3c5d0; }
.ele-trunk-tip { fill: #a9bcc9; }
.ele-cheek { fill: #e8aaa8; opacity: .5; }
.ele-eye { fill: #2b3b33; }
.ele-eye-shine { fill: #fffdfa; }
.ele-eye-line, .ele-brow, .ele-mouth { fill: none; stroke: #2b3b33; stroke-linecap: round; }
.ele-eye-line { stroke-width: 2.6; }
.ele-brow { stroke-width: 2; opacity: .7; }
.ele-mouth { stroke-width: 2.4; }
.ele-tear { fill: #8fb8d4; animation: ele-tear 2.6s ease-in-out infinite; }
.ele-zzz { fill: #e8f0e9; font-size:18px; font-weight: 700; animation: ele-float 3s ease-in-out infinite; }
.ele-zzz.small { font-size:13px; opacity: .7; }
.ele-bird { animation: ele-float 3.4s ease-in-out infinite; }
.ele-svg.is-touched { animation: ele-touch .7s ease; }
.ele-svg.is-touched .ele-ear { animation: ele-ear-wiggle .6s ease; }
.ele-character::after { content: ""; position: absolute; inset: auto 20% 8px; height: 10px; border-radius: 50%; background: rgba(50,64,54,.08); z-index: -1; }

.ele-scene-label { position: absolute; left: 14px; bottom: 14px; z-index: 4; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 11px; background: rgba(255,253,250,.72); color: #537461; max-width: 55%; }
.ele-scene-label span { font-size:11px; letter-spacing: .06em; }
.ele-scene-label b { font-size:11.5px; font-weight: 650; color: #24352d; }
.scene-night .ele-scene-label { background: rgba(36,53,45,.42); color: #f5f0e6; }
.scene-night .ele-scene-label b { color: #fffdfa; }

.ele-story-card { background: #fffdfa; border: 1px solid var(--line); border-radius: 24px; padding: 21px; box-shadow: 0 12px 26px rgba(50,64,54,.05); }
.ele-story-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size:11.5px; }
.ele-story-meta > span:first-child { letter-spacing: .08em; }
.ele-mood { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: var(--sage-light); color: var(--sage-dark); font-size:11px; }
.ele-story-card h2 { font-family: "Songti SC", "STSong", serif; font-size:25px; line-height: 1.35; margin: 0 0 10px; }
.ele-event { color: var(--muted); font-size:14.5px; line-height: 1.9; margin: 0; }
.ele-eyebrow { margin: 0 0 8px; color: var(--sage-dark); font-size:11.5px; font-weight: 800; letter-spacing: .14em; }

.ele-choice-section { margin: 19px 0 0; }
.ele-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ele-section-head h3 { font-size:17px; margin: 0; line-height: 1.35; }
.ele-step { display: inline-flex; width: 19px; height: 19px; margin-right: 5px; align-items: center; justify-content: center; vertical-align: -2px; border-radius: 50%; background: var(--sage-dark); color: #fffdfa; font-size:11.5px; font-weight: 700; line-height: 1; }
.ele-day-screen .ele-mood-panel { border-color: rgba(83,116,97,.28); background: linear-gradient(180deg, #fbfdf9, #f6faf5); box-shadow: 0 12px 26px rgba(83,116,97,.07); }
.ele-section-head span { color: var(--muted); font-size:11.5px; }
.ele-ways { display: grid; gap: 8px; }
.ele-way { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 17px; background: #fffdfa; text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ele-way:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(50,64,54,.07); }
.ele-way.recommended { background: var(--sun-soft); border-color: rgba(231,185,109,.55); }
.ele-way-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,253,250,.8); font-size:19px; }
.ele-way span:nth-child(2) { min-width: 0; }
.ele-way strong { display: block; font-size:13.5px; }
.ele-way small { display: block; margin-top: 3px; color: var(--muted); font-size:11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ele-way em { font-style: normal; font-size:11px; color: #9b7434; white-space: nowrap; }

.ele-quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.ele-quick { padding: 10px 8px; border: 1px dashed var(--line); border-radius: 14px; background: transparent; color: var(--muted); font-size:11.5px; cursor: pointer; }
.ele-quick:active { background: var(--cream); }

.ele-progress { margin: 20px 0 4px; }
.ele-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; color: var(--muted); font-size:11.5px; }
.ele-progress-head em { font-style: normal; color: var(--sage-dark); }
.ele-progress-track { height: 5px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.ele-progress-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--sage), var(--sun)); transition: width .5s ease; }
.ele-note { margin: 14px 0 0; color: var(--muted); font-size:12px; line-height: 1.75; text-align: center; }

.ele-invite { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 11px 13px; border: 1px solid rgba(231,185,109,.5); border-radius: 16px; background: var(--sun-soft); text-align: left; cursor: pointer; }
.ele-invite-face { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,253,250,.7); font-size:18px; }
.ele-invite span:nth-child(2) { flex: 1; min-width: 0; }
.ele-invite strong { display: block; font-size:12.5px; }
.ele-invite small { display: block; margin-top: 2px; color: #8d7448; font-size:11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ele-invite b { font-size:11.5px; color: #9b7434; white-space: nowrap; }

.ele-intro-card { margin-top: -4px; }
.ele-intro-card p { color: var(--muted); font-size:14px; line-height: 1.9; margin: 0 0 10px; }
.ele-intro-card .primary-btn, .ele-intro-card .ghost-btn { width: 100%; margin-top: 6px; }
.ele-intro-card .ele-note { margin-top: 12px; }

.ele-diary-line { margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: var(--sage-light); color: var(--sage-dark); font-size:13.5px; line-height: 1.8; }
.ele-action-card { margin-bottom: 14px; }
.ele-active-actions { display: grid; gap: 8px; }
.ele-active-actions .primary-btn, .ele-active-actions .secondary-btn, .ele-active-actions .ghost-btn { width: 100%; }
.ele-active-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ele-end-card { text-align: left; }
.ele-end-card p { color: var(--muted); font-size:14px; line-height: 1.9; }
.ele-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0; }
.ele-stats div { padding: 12px 8px; border-radius: 14px; background: var(--cream); text-align: center; }
.ele-stats strong { display: block; font-family: "Songti SC", "STSong", serif; font-size:24px; font-weight: 600; }
.ele-stats span { display: block; margin-top: 3px; color: var(--muted); font-size:11px; }
.ele-end-card .primary-btn, .ele-end-card .ghost-btn { width: 100%; margin-top: 6px; }

.ele-unavailable { margin: 40px 0; padding: 28px 22px; border: 1px dashed var(--line); border-radius: 24px; text-align: center; background: #fffdfa; }
.ele-unavailable > span { font-size:34px; }
.ele-unavailable h3 { font-family: "Songti SC", "STSong", serif; font-size:21px; margin: 8px 0; }
.ele-unavailable p { color: var(--muted); font-size:13px; line-height: 1.8; }
.ele-unavailable .primary-btn, .ele-unavailable .ghost-btn { width: 100%; margin-top: 8px; }

.ele-book-modal { max-height: 84vh; overflow-y: auto; }
.ele-book-summary { color: var(--muted); font-size:12.5px; line-height: 1.7; margin: 0 0 14px; }
.ele-collection { display: grid; gap: 10px; margin-bottom: 14px; padding: 13px; border-radius: 16px; background: var(--cream); }
.ele-collection strong { display: block; font-size:11.5px; color: var(--sage-dark); margin-bottom: 5px; }
.ele-collection p { margin: 0; display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size:11.5px; }
.ele-book-chapters { display: grid; gap: 7px; margin-bottom: 14px; }
.ele-book-chapter { border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; overflow: hidden; }
.ele-book-chapter > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; cursor: pointer; list-style: none; }
.ele-book-chapter > summary::-webkit-details-marker { display: none; }
.ele-book-chapter > summary span { display: flex; flex-direction: column; gap: 2px; }
.ele-book-chapter > summary strong { font-size:13px; }
.ele-book-chapter > summary small { color: var(--muted); font-size:11px; }
.ele-book-chapter > summary em { font-style: normal; color: var(--sage-dark); font-size:11.5px; }
.ele-book-list { display: grid; gap: 5px; padding: 0 8px 9px; }
.ele-book-entry { border-radius: 10px; background: var(--cream); font-size:12px; }
.ele-book-entry > summary { display: flex; align-items: center; gap: 8px; padding: 8px 9px; cursor: pointer; list-style: none; }
.ele-book-entry > summary::-webkit-details-marker { display: none; }
.ele-book-entry > summary span { color: var(--muted); font-size:11px; white-space: nowrap; }
.ele-book-entry > summary strong { flex: 1; min-width: 0; font-size:12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ele-book-entry > summary em { font-style: normal; font-size:13px; }
.ele-book-entry.locked { display: flex; align-items: center; gap: 8px; padding: 8px 9px; opacity: .6; }
.ele-book-entry.locked span { color: var(--muted); font-size:11px; }
.ele-book-entry.locked strong { flex: 1; font-size:12px; }
.ele-book-entry.locked em { font-style: normal; font-size:11px; color: var(--sage-dark); }
.ele-book-detail { padding: 2px 10px 10px; color: var(--muted); line-height: 1.75; }
.ele-book-detail p { margin: 0 0 6px; }
.ele-book-diary { color: var(--ink); }
.ele-book-note { padding: 6px 8px; border-radius: 8px; background: var(--sage-light); color: var(--sage-dark); }
.ele-book-beauty { color: var(--sage-dark); }
.ele-book-reflect { font-size:11.5px; }

.ele-diary-modal { max-height: 88vh; overflow-y: auto; text-align: left; }
.ele-diary-modal h3 { margin: 0 0 8px; }
.ele-diary-ele { width: 128px; margin: 0 auto 6px; }
.ele-diary-event { color: var(--muted); font-size:12.5px; line-height: 1.8; margin: 0 0 12px; }
.ele-diary-paper { padding: 15px; border-radius: 16px; background: var(--cream); font-size:13.5px; line-height: 1.9; }
.ele-diary-paper p { margin: 0; }
.ele-diary-paper small { display: block; margin-top: 8px; color: var(--muted); font-size:11px; }
.ele-beauty { margin: 12px 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--sun-soft); color: #8d6e3d; font-size:12px; line-height: 1.7; }
.ele-diary-poem { margin: 12px 0; padding: 4px 0 4px 13px; border-left: 2px solid var(--sage); font-family: "Songti SC", "STSong", serif; font-size:15px; line-height: 1.7; color: var(--ink); }
.ele-diary-poem cite { display: block; margin-top: 3px; color: var(--muted); font-style: normal; font-size:11px; }
.ele-reflection { color: var(--muted); font-size:12.5px; line-height: 1.8; margin: 8px 0 12px; }
.ele-unlock { display: flex; align-items: center; gap: 11px; padding: 11px; margin: 10px 0; border-radius: 14px; background: var(--sage-light); }
.ele-unlock > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,253,250,.8); font-size:19px; }
.ele-unlock strong { display: block; font-size:12px; color: var(--sage-dark); }
.ele-unlock p { margin: 3px 0 0; color: var(--muted); font-size:11.5px; line-height: 1.6; }
.ele-note-label { display: block; margin: 10px 0 6px; font-size:11.5px; color: var(--ink); }
.ele-note-label span { color: var(--muted); font-size:11px; }
#ele-diary-note { width: 100%; min-height: 54px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; font-size:13px; resize: vertical; }
.ele-diary-modal .primary-btn { width: 100%; margin-top: 10px; }
.ele-modal-ele { width: 120px; margin: 0 auto; }

@keyframes ele-rain { from { background-position: 0 0; } to { background-position: 0 34px; } }
@keyframes ele-tear { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: .9; transform: translateY(3px); } }
@keyframes ele-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ele-touch { 0% { transform: scale(1); } 35% { transform: scale(1.035, .965); } 70% { transform: scale(.99, 1.01); } 100% { transform: scale(1); } }
@keyframes ele-ear-wiggle { 0%, 100% { transform: rotate(0deg); } 35% { transform: rotate(-3deg); } 70% { transform: rotate(2deg); } }

@media (max-width: 820px) {
  .ele-screen { padding-top: 22px; }
  .ele-scene { height: 286px; }
  .ele-character { width: 222px; max-width: 64%; }
}

.ele-arm { fill: #b3c5d0; }
.ele-trunk { fill: none; stroke: #b3c5d0; stroke-width: 17; stroke-linecap: round; }
.ele-trunk-light { fill: none; stroke: #c9d7df; stroke-width: 4; stroke-linecap: round; opacity: .65; }
.ele-trunk-tip { fill: #b3c5d0; }
.ele-active-screen .ele-scene { height: 252px; }

/* 小象的鼻子更有体积感 */
.ele-trunk { stroke: #9fb3c0; stroke-width: 20; }
.ele-trunk-light { stroke: #cbd9e1; stroke-width: 5; opacity: .85; }
.ele-trunk-tip { fill: #9fb3c0; }

/* 三种散心方式并排，避免首屏被底部导航挡住 */
.ele-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ele-way { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 5px; padding: 11px 6px; }
.ele-way-icon { width: 38px; height: 38px; }
.ele-way strong { font-size:12.5px; }
.ele-way small { display: block; min-height: 24px; font-size:11px; line-height: 1.35; white-space: normal; overflow: visible; text-overflow: clip; }
.ele-way em { font-size:11px; }

.ele-active-actions { margin: 0 0 14px; }
.ele-active-screen .ele-scene { height: 230px; }
.ele-active-card { margin-top: 0; }

.onboarding-poetry { position: relative; overflow: hidden; padding-right: 104px; }
.onboarding-ele { position: absolute; right: 2px; bottom: -12px; width: 106px; opacity: .96; }
.onboarding-ele .ele-svg { filter: drop-shadow(0 8px 12px rgba(50,64,54,.12)); }

.ele-active-hint { margin: 0 0 2px; color: var(--muted); font-size:11.5px; text-align: center; }
.ele-intro-screen .ele-scene { height: 262px; }

.ele-book-modal { text-align: left; }
.ele-book-summary { text-align: left; }
.ele-collection { text-align: left; }
.ele-collection strong { text-align: left; }
.ele-collection p { text-align: left; }

/* 心情、任务板与多任务日记 */
.ele-mood-panel { margin: 16px 0 0; padding: 17px; border: 1px solid var(--line); border-radius: 22px; background: #fffdfa; box-shadow: 0 10px 24px rgba(50,64,54,.04); }
.ele-mood-panel .ele-section-head { margin-bottom: 10px; }
.ele-mood-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
.ele-mood-option { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 3px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; transition: .18s ease; }
.ele-mood-option span { font-size:18px; line-height: 1; }
.ele-mood-option strong { font-size:11px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.ele-mood-option.selected { border-color: var(--sage); background: var(--sage-light); transform: translateY(-1px); }
.ele-mood-option.selected strong { color: var(--sage-dark); }
.ele-mood-note { margin: 10px 0 0; color: var(--muted); font-size:11.5px; line-height: 1.7; }
.ele-text-btn { margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--sage-dark); font-size:11.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.ele-task-section { margin-top: 18px; }
.ele-task-hint { margin: 0 0 9px; color: var(--muted); font-size:11.5px; line-height: 1.65; }
.ele-tasks { display: grid; gap: 8px; }
.ele-task { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: #fffdfa; text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ele-task:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(50,64,54,.07); }
.ele-task.recommended { border-color: rgba(231,185,109,.55); background: #fffdf7; }
.ele-task.done { border-color: var(--sage); background: var(--sage-light); cursor: default; }
.ele-task:disabled { opacity: .62; cursor: default; }
.ele-task-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--cream); font-size:18px; }
.ele-task.done .ele-task-icon { background: rgba(255,253,250,.8); }
.ele-task-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ele-task-kicker { color: var(--sage-dark); font-size:11px; letter-spacing: .02em; }
.ele-task-copy strong { font-size:13.5px; line-height: 1.35; }
.ele-task-copy small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size:11.5px; line-height: 1.5; }
.ele-task-mark { color: var(--sage-dark); font-size:11px; white-space: nowrap; }
.ele-task.done .ele-task-mark { font-size:16px; }
.ele-all-done, .ele-some-done { display: flex; align-items: flex-start; gap: 10px; margin-top: 11px; padding: 12px; border-radius: 15px; background: var(--sun-soft); }
.ele-some-done { background: var(--sage-light); }
.ele-all-done > span, .ele-some-done > span { font-size:22px; line-height: 1; }
.ele-all-done strong { display: block; font-size:12px; }
.ele-all-done p, .ele-some-done p { margin: 3px 0 0; color: var(--muted); font-size:11.5px; line-height: 1.6; }
.ele-diary-cta { width: 100%; margin-top: 10px; }
.ele-sos-link { width: 100%; margin-top: 9px; }

.ele-companion-line { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; background: var(--sage-light); color: var(--sage-dark); font-size:12px; line-height: 1.5; }
.ele-companion-line span { font-size:18px; }
.quiet-companion { margin: 8px 0 0; font-size:11.5px; color: rgba(255,255,255,.72); text-align: center; }
.ele-timer-buddy { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ele-timer-buddy .ele-svg { width: 66px; flex: none; }
.ele-timer-buddy span { flex: 1; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.16); color: rgba(255,255,255,.9); font-size:11.5px; line-height: 1.5; }

.ele-task-saved-modal { text-align: center; }
.ele-saved-ele { width: 142px; margin: 0 auto 4px; }
.ele-saved-count { padding: 10px 12px; border-radius: 12px; background: var(--sage-light); color: var(--sage-dark); font-size:11.5px; line-height: 1.65; }
.ele-saved-actions { display: grid; gap: 8px; margin-top: 12px; }
.ele-saved-actions .primary-btn, .ele-saved-actions .secondary-btn { width: 100%; }

.ele-diary-mood { display: inline-block; margin: 0 0 9px; padding: 5px 9px; border-radius: 99px; background: var(--sage-light); color: var(--sage-dark); font-size:11.5px; }
.ele-diary-tasks { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }
.ele-diary-tasks span { padding: 5px 8px; border-radius: 9px; background: var(--cream); color: var(--muted); font-size:11px; }
.ele-diary-paper p { margin: 0 0 10px; }
.ele-diary-paper p:last-child { margin-bottom: 0; }
.ele-book-tasks { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0 0; color: var(--muted); font-size:11px; }
.ele-book-legacy { color: var(--muted); font-size:11.5px; }
.ele-stats { grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 360px) {
  .ele-mood-option strong { font-size:11px; }
  .ele-task { grid-template-columns: 34px minmax(0,1fr); }
  .ele-task-mark { display: none; }
}

.ele-task.done:disabled { opacity: 1; }

.ele-task-saved-modal { position: relative; }
.ele-task-saved-modal .modal-x { position: absolute; top: 14px; right: 14px; margin: 0; }

/* 心情后出现的候选小事：换一批 + 勾选 + 确定 */
.ele-candidate-section { margin-top: 18px; }
.ele-candidates { display: grid; gap: 8px; }
.ele-candidate { display: grid; grid-template-columns: 22px 38px minmax(0,1fr); align-items: center; gap: 9px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 17px; background: #fffdfa; text-align: left; cursor: pointer; transition: .18s ease; }
.ele-candidate.selected { border-color: var(--sage); background: #f8fbf8; box-shadow: 0 6px 16px rgba(83,116,97,.07); }
.ele-candidate-check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #fff; font-size:12px; }
.ele-candidate.selected .ele-candidate-check { background: var(--sage-dark); border-color: var(--sage-dark); }
.ele-candidate-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ele-candidate-copy small { color: var(--sage-dark); font-size:11px; }
.ele-candidate-copy strong { font-size:13.5px; line-height: 1.35; }
.ele-candidate-copy em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size:11.5px; font-style: normal; line-height: 1.5; }
.ele-candidate-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; margin-top: 10px; }
.ele-candidate-actions .primary-btn, .ele-candidate-actions .secondary-btn { width: 100%; }
.ele-plan-mood { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px; background: var(--cream); color: var(--muted); font-size:11.5px; }
.ele-plan-mood span { color: var(--ink); font-size:12px; }
.ele-plan-mood b { color: var(--sage-dark); font-size:11.5px; font-weight: 650; }
.ele-plan-mood .ele-text-btn { margin: 0 0 0 auto; }

.ele-care-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 14px; }
.ele-care-link { min-height: 38px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); font-size:11.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ele-care-link span { font-size:14px; }
.ele-care-link:active { background: var(--cream); }

.ele-intro-screen .ele-scene { height: 238px; }

/* 更矮的小象场景 + 底部诗词陪伴条 */
.ele-scene { height: 250px; }
.ele-character { width: 190px; bottom: 54px; }
.ele-window { width: 96px; height: 84px; top: 14px; right: 16px; border-width: 6px; }
.ele-shelf { top: 12px; left: 12px; }
.ele-shelf-item, .ele-friend-chip { width: 24px; height: 24px; font-size:13px; }
.ele-friends { right: 12px; bottom: 52px; }
.ele-scene-poem { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; min-height: 42px; padding: 8px 14px 9px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; background: linear-gradient(180deg, rgba(255,253,250,.1), rgba(255,253,250,.9) 38%); backdrop-filter: blur(5px); }
.ele-scene-poem span { min-width: 0; color: #2e4438; font-family: "Songti SC", "STSong", serif; font-size: clamp(12px, 3.45vw, 13.5px); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ele-scene-poem cite { flex: none; color: #6f7f75; font-style: normal; font-size: clamp(9px, 2.3vw, 10.5px); white-space: nowrap; }
@media (max-width: 360px) {
  .ele-day-screen .ele-character { width: 152px; bottom: 56px; }
  .ele-scene-poem span { font-size:13px; }
}
.scene-night .ele-scene-poem { background: linear-gradient(180deg, rgba(36,53,45,.05), rgba(36,53,45,.58) 45%); }
.scene-night .ele-scene-poem span { color: #fffdfa; }
.scene-night .ele-scene-poem cite { color: rgba(255,253,250,.7); }
.ele-intro-screen .ele-scene { height: 230px; }
.ele-intro-screen .ele-character { width: 180px; bottom: 50px; }
.ele-active-screen .ele-scene { height: 222px; }
.ele-active-screen .ele-character { width: 178px; bottom: 48px; }

/* 我的页日记列表与可编辑日记 */
.diary-empty { padding: 14px 12px; color: var(--muted); font-size:12px; line-height: 1.7; text-align: center; }
.diary-empty button { margin-left: 5px; padding: 0; border: 0; background: transparent; color: var(--sage-dark); font-size:12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.diary-row em { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ele-book-entry.diary { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 0; font: inherit; text-align: left; cursor: pointer; }
.ele-book-entry.diary em { margin-left: auto; }
.ele-book-entry.diary:hover { background: var(--sage-light); }
.ele-diary-actions { display: grid; gap: 8px; }
.ele-diary-actions .primary-btn, .ele-diary-actions .secondary-btn { width: 100%; margin-top: 0; }
.ele-diary-edit-modal { position: relative; max-height: 88vh; overflow-y: auto; text-align: left; }
.ele-diary-edit-modal .modal-x { position: absolute; top: 14px; right: 14px; margin: 0; }
.ele-diary-edit-modal textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfa; color: var(--ink); font: inherit; font-size:13px; line-height: 1.8; resize: vertical; }
#ele-diary-edit-text { min-height: 220px; }
.ele-edit-actions { display: grid; gap: 8px; margin-top: 12px; }
.ele-edit-actions .primary-btn, .ele-edit-actions .ghost-btn { width: 100%; margin-top: 0; }

.album-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 14px; }
.album-add { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--line); border-radius: 13px; background: var(--cream); color: var(--sage-dark); font-size:12px; cursor: pointer; transition: .18s ease; }
.album-add span { font-size:16px; }
.album-add:active { background: var(--sage-light); border-color: var(--sage); }

.quiet-sound-replay { margin: 10px auto 0; padding: 7px 14px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.86); font-size:11.5px; cursor: pointer; }
.quiet-sound-replay:active { background: rgba(255,255,255,.22); }

.ele-care-hint { margin: 0 0 7px; color: var(--muted); font-size:11.5px; text-align: center; letter-spacing: .02em; }
.sos-body { max-width: 300px; margin: 0 auto 12px; }
.sos-steps { display: grid; gap: 7px; margin: 0 0 12px; text-align: left; }
.sos-step { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border: 1px solid rgba(74, 99, 84, .12); border-radius: 12px; background: rgba(255, 253, 250, .58); }
.sos-step > span { flex: none; width: 19px; height: 19px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-light); color: var(--sage-dark); font-size:11px; font-weight: 700; }
.sos-step p { margin: 0; color: var(--ink); font-size:12px; line-height: 1.65; }
.sos-after { margin: 0 0 10px; color: var(--muted); font-size:11.5px; line-height: 1.7; }
.sos-step-label { margin: 12px 0 6px; color: var(--sage-dark); font-size:12px; letter-spacing: .04em; text-align:left; }
.sos-modal.urgent .sos-step { border-color: rgba(176, 83, 73, .25); background: rgba(255, 246, 242, .78); }

.ai-polish-note { margin: 0; padding: 10px 13px 12px; color: var(--muted); font-size:11.5px; line-height: 1.65; border-top: 1px dashed var(--line); }
.ele-ai-note { margin: 9px 0 0; color: var(--muted); font-size:11.5px; line-height: 1.6; text-align: center; }
.ele-ai-note.loading { color: var(--sage-dark); }
.ele-ai-revert { margin-top: 8px; }

.week-edit-hint { margin: -2px 0 10px; color: var(--muted); font-size:11.5px; line-height: 1.6; }
.goal-count { display: flex; align-items: center; gap: 5px; }
.goal-step { width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--sage-dark); font: inherit; font-size:14px; line-height: 1; cursor: pointer; }
.goal-step:active { background: var(--sage-light); }
.goal-count span { white-space: nowrap; }
.goal-auto-note { margin-left: auto; color: var(--muted); font-size:11px; }
.goal-actions { align-items: center; }
.style-note { margin: -2px 0 12px; color: var(--muted); font-size:11.5px; line-height: 1.6; }

/* 今日页：尽量在一屏内完成当天操作 */
.ele-day-screen .ele-scene { height: 204px; }
.ele-day-screen .ele-character { width: 168px; bottom: 44px; }
.ele-day-screen .ele-care-hint { margin-top: 16px; }
.ele-day-screen .ele-story-card { padding: 16px 18px; }
.ele-day-screen .ele-story-card h2 { font-size:23px; margin-bottom: 7px; }
.ele-day-screen .ele-mood-panel { margin-top: 10px; padding-top: 12px; padding-bottom: 12px; }
.ele-day-screen .ele-care-row { margin-top: 10px; }
.ele-day-screen .ele-note { display: none; }

.ele-mood-compact { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ele-mood-current { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ele-mood-current span { font-size:17px; }
.ele-mood-current strong { font-size:13px; font-weight: 600; }
.ele-mood-compact .ele-text-btn { flex: none; margin: 0; font-size:11.5px; }

.ele-focus-mode .ele-scene { height: 104px; margin-bottom: 7px; border-radius: 20px; }
.ele-focus-mode .ele-character { width: 108px; bottom: 3px; }
.ele-focus-mode .ele-window,
.ele-focus-mode .ele-shelf,
.ele-focus-mode .ele-friends,
.ele-focus-mode .ele-scene-poem { display: none; }
.ele-focus-mode .ele-story-card { padding: 9px 12px; border-radius: 17px; margin-bottom: 7px; }
.ele-focus-mode .ele-story-card h2 { font-size:18px; margin: 1px 0 2px; }
.ele-focus-mode .ele-story-card .ele-event { margin: 0; font-size:11.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ele-focus-mode .ele-story-meta { font-size:11px; }
.ele-focus-mode .ele-story-meta .ele-mood { padding: 3px 7px; }
.ele-focus-mode .ele-mood-panel { margin: 7px 0; padding: 8px 12px; }
.ele-focus-mode .ele-care-hint { display: none; }
.ele-focus-mode .ele-care-row { margin-top: 7px; }
.ele-focus-mode .ele-candidate-section { margin-top: 7px; }
.ele-focus-mode .ele-section-head h3 { font-size:17px; }
.ele-focus-mode .ele-task-hint { margin: 3px 0 6px; font-size:11.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ele-focus-mode .ele-candidates { gap: 6px; }
.ele-focus-mode .ele-candidate { padding: 7px 9px; border-radius: 14px; grid-template-columns: 20px 32px minmax(0,1fr); gap: 7px; }
.ele-focus-mode .ele-candidate-check { width: 18px; height: 18px; }
.ele-focus-mode .ele-task-icon { width: 32px; height: 32px; font-size:17px; }
.ele-focus-mode .ele-candidate-copy em { -webkit-line-clamp: 1; font-size:11px; line-height: 1.35; }
.ele-focus-mode .ele-candidate-actions { margin-top: 7px; }
.ele-focus-mode .ele-plan-mood { padding: 7px 9px; }
.ele-focus-mode .ele-tasks { gap: 6px; }
.ele-focus-mode .ele-task { padding: 7px 9px; }
.ele-focus-mode .ele-task-copy small { -webkit-line-clamp: 1; }

/* 正在帮小象：压缩到一屏 */
.ele-active-screen .ele-scene { height: 136px; margin-bottom: 7px; }
.ele-active-screen .ele-character { width: 126px; bottom: 8px; }
.ele-active-screen .ele-scene-poem { display: none; }
.ele-active-screen .ele-window { width: 78px; height: 66px; top: 10px; right: 12px; border-width: 5px; }
.ele-active-screen .ele-shelf { top: 8px; left: 8px; }
.ele-active-screen .ele-shelf-item, .ele-active-screen .ele-friend-chip { width: 20px; height: 20px; font-size:11.5px; }
.ele-active-screen .ele-companion-line { margin: 7px 0 0; padding: 7px 10px; font-size:11.5px; }
.ele-active-screen .ele-diary-line { margin: 6px 0 0; padding: 7px 10px; font-size:11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ele-active-screen .ele-active-actions { margin-top: 7px; }
.ele-active-screen .ele-active-hint { margin: 0 0 5px; font-size:11.5px; }
.ele-active-main-actions { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7px; }
.ele-active-main-actions .primary-btn, .ele-active-main-actions .secondary-btn { width: 100%; min-height: 42px; margin: 0; padding: 10px 8px; font-size:13px; }
.ele-active-screen .ele-active-row { gap: 7px; margin-top: 7px; }
.ele-active-screen .ele-active-row .secondary-btn { min-height: 38px; margin-top: 0; padding: 9px 6px; font-size:11.5px; }
.ele-active-screen .ele-active-actions > .ghost-btn { min-height: 32px; margin-top: 6px; padding: 6px; font-size:11.5px; }
.ele-active-screen .ele-action-card { margin-top: 7px; padding: 12px 13px; }
.ele-active-screen .ele-action-card .action-icon { width: 30px; height: 30px; font-size:16px; }
.ele-active-screen .ele-action-card .action-label { font-size:11px; }
.ele-active-screen .ele-action-card h3 { font-size:18px; margin: 2px 0 3px; }
.ele-active-screen .ele-action-card > p { font-size:11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ele-active-screen .ele-action-card .gentle-note { margin-top: 7px; padding: 7px 9px; font-size:11px; }
.ele-active-screen > .ele-note { display: none; }

@media (max-height: 760px) {
  .ele-day-screen .ele-scene { height: 134px; }
  .ele-day-screen .ele-character { width: 118px; bottom: 24px; }
  .ele-day-screen .ele-story-card { padding: 10px 12px; }
  .ele-day-screen .ele-story-card h2 { font-size:18px; }
  .ele-day-screen .ele-story-card .ele-event { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .ele-day-screen .ele-mood-panel { padding-top: 9px; padding-bottom: 9px; }
  .ele-focus-mode .ele-scene { height: 80px; }
  .ele-focus-mode .ele-character { width: 88px; bottom: 2px; }
  .ele-focus-mode .ele-story-card { padding: 7px 10px; margin-bottom: 5px; }
  .ele-focus-mode .ele-story-card h2 { font-size:16px; }
  .ele-focus-mode .ele-story-card .ele-event { display: none; }
  .ele-focus-mode .ele-mood-panel { margin: 5px 0; padding: 6px 10px; }
  .ele-focus-mode .ele-candidate { padding: 6px 8px; }
  .ele-focus-mode .ele-candidate-copy em { display: none; }
  .ele-focus-mode .ele-candidate-actions { margin-top: 5px; }
  .ele-focus-mode .ele-task-hint { display: none; }
  .ele-focus-mode .ele-care-row { margin-top: 5px; }
  .ele-active-screen .ele-scene { height: 108px; }
  .ele-active-screen .ele-character { width: 100px; bottom: 4px; }
  .ele-active-screen .ele-diary-line { display: none; }
  .ele-active-screen .ele-action-card { padding: 9px 11px; }
  .ele-active-screen .ele-action-card .gentle-note { display: none; }
}

/* 小象场景的环境动画 */
.ele-scene { isolation: isolate; }
.ele-scene::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 30% 18%, rgba(255,253,250,.45), transparent 38%); opacity: .5; animation: ele-light-breathe 11s ease-in-out infinite; }
.scene-night::before { background: radial-gradient(circle at 70% 18%, rgba(241,218,169,.25), transparent 42%); opacity: .7; }
.scene-sun::before { background: radial-gradient(circle at 22% 16%, rgba(255,242,204,.55), transparent 44%); }
.scene-dawn::before { background: radial-gradient(circle at 28% 20%, rgba(255,226,196,.5), transparent 44%); }
.scene-sea::before { background: radial-gradient(circle at 50% 46%, rgba(255,253,250,.35), transparent 48%); }
.ele-scene-ambient { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ele-scene-ambient i { position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,253,250,.72); box-shadow: 0 0 6px rgba(255,253,250,.5); opacity: 0; animation: ele-mote 11s linear infinite; }
.ele-scene-ambient i:nth-child(1) { left: 12%; animation-delay: 0s; animation-duration: 13s; }
.ele-scene-ambient i:nth-child(2) { left: 26%; animation-delay: 3.5s; animation-duration: 16s; }
.ele-scene-ambient i:nth-child(3) { left: 44%; animation-delay: 6s; animation-duration: 12s; }
.ele-scene-ambient i:nth-child(4) { left: 61%; animation-delay: 1.8s; animation-duration: 15s; }
.ele-scene-ambient i:nth-child(5) { left: 76%; animation-delay: 8s; animation-duration: 14s; }
.ele-scene-ambient i:nth-child(6) { left: 88%; animation-delay: 4.6s; animation-duration: 17s; }
.scene-park .ele-scene-ambient i,
.scene-mountain .ele-scene-ambient i { background: rgba(231,185,109,.78); box-shadow: 0 0 7px rgba(231,185,109,.45); }
.scene-sun .ele-scene-ambient i,
.scene-dawn .ele-scene-ambient i { background: rgba(255,247,218,.9); box-shadow: 0 0 8px rgba(255,236,181,.55); }
.scene-night .ele-scene-ambient i { background: rgba(245,227,176,.85); box-shadow: 0 0 9px rgba(245,227,176,.55); }
.scene-rain .ele-scene-ambient i { background: rgba(236,246,250,.72); box-shadow: 0 0 6px rgba(220,238,246,.5); }
.scene-cloud .ele-weather { background: radial-gradient(ellipse at 20% 24%, rgba(255,253,250,.5), transparent 40%), radial-gradient(ellipse at 78% 30%, rgba(255,253,250,.42), transparent 42%); filter: blur(7px); opacity: .7; animation: ele-cloud-drift 22s ease-in-out infinite alternate; }
.scene-sun .ele-weather::before,
.scene-dawn .ele-weather::before { animation: ele-sun-breathe 7s ease-in-out infinite; }
.ele-character { animation: ele-breathe 6.5s ease-in-out infinite; transform-origin: 50% 100%; }
.ele-ear { transform-box: fill-box; transform-origin: 80% 20%; animation: ele-ear-sway 7s ease-in-out infinite; }
.ele-tail { transform-box: fill-box; transform-origin: 0 50%; animation: ele-tail-sway 5.5s ease-in-out infinite; }
.ele-window { overflow: hidden; }
.ele-window::before { content: ""; position: absolute; inset: -30% -60%; background: linear-gradient(115deg, transparent 40%, rgba(255,253,250,.22) 50%, transparent 60%); transform: translateX(-60%); animation: ele-window-shine 10s ease-in-out infinite; }
.ele-shelf-item, .ele-friend-chip { animation: ele-object-float 6s ease-in-out infinite; }
.ele-shelf-item:nth-child(2n), .ele-friend-chip:nth-child(2n) { animation-delay: -2s; }
.ele-focus-mode .ele-scene-ambient { opacity: .55; }
@keyframes ele-light-breathe { 0%,100% { opacity:.35; transform:scale(1); } 50% { opacity:.65; transform:scale(1.04); } }
@keyframes ele-mote { 0% { transform:translate3d(0,0,0) scale(.6); opacity:0; } 18% { opacity:.85; } 70% { opacity:.45; } 100% { transform:translate3d(18px,-118px,0) scale(1); opacity:0; } }
@keyframes ele-cloud-drift { 0% { transform:translateX(-2%); } 100% { transform:translateX(3%); } }
@keyframes ele-sun-breathe { 0%,100% { transform:scale(1); opacity:.85; } 50% { transform:scale(1.08); opacity:1; } }
@keyframes ele-breathe { 0%,100% { transform:translateX(-50%) translateY(0) scale(1); } 50% { transform:translateX(-50%) translateY(-4px) scale(1.018); } }
@keyframes ele-ear-sway { 0%,100% { transform:rotate(-3deg); } 50% { transform:rotate(3.2deg); } }
@keyframes ele-tail-sway { 0%,100% { transform:rotate(-3.5deg); } 50% { transform:rotate(4.5deg); } }
@keyframes ele-window-shine { 0%, 55% { transform:translateX(-60%); opacity:0; } 64% { opacity:.8; } 78%, 100% { transform:translateX(60%); opacity:0; } }
@keyframes ele-object-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }

/* 我的页：微光玻璃罐，不显示完成度 */
.profile-card { justify-content: space-between; }
.profile-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.profile-identity > div:last-child { min-width: 0; }
.profile-identity span { display: block; line-height: 1.5; }
.micro-jar-wrap { flex: none; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.micro-jar { position: relative; width: 72px; height: 84px; }
.jar-lid { position: absolute; top: 0; left: 17px; right: 17px; height: 8px; border-radius: 5px; background: #d8b07a; box-shadow: 0 2px 0 rgba(83,116,97,.14); }
.jar-body { position: absolute; left: 7px; right: 7px; bottom: 0; height: 72px; overflow: hidden; border: 1.5px solid rgba(140,168,149,.48); border-radius: 8px 8px 17px 17px; background: linear-gradient(180deg, rgba(255,253,250,.45), rgba(232,240,233,.72)); box-shadow: inset 0 0 12px rgba(140,168,149,.16), 0 5px 12px rgba(50,64,54,.06); }
.jar-body::after { content: ""; position: absolute; left: 7px; top: 8px; width: 4px; bottom: 9px; border-radius: 4px; background: rgba(255,253,250,.5); }
.jar-body i { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #e7b96d; box-shadow: 0 0 7px rgba(231,185,109,.8), 0 0 14px rgba(231,185,109,.35); animation: jar-light 3.8s ease-in-out infinite; animation-delay: var(--delay); }
.micro-jar.is-quiet .jar-body { background: linear-gradient(180deg, rgba(255,253,250,.35), rgba(232,240,233,.5)); }
.micro-jar.is-quiet .jar-body::before { content: ""; position: absolute; left: 50%; bottom: 17px; width: 5px; height: 5px; border-radius: 50%; background: rgba(140,168,149,.28); transform: translateX(-50%); }
.micro-jar-wrap small { max-width: 88px; color: var(--muted); font-size:11px; line-height: 1.4; text-align: center; }
@keyframes jar-light { 0%,100% { opacity:.55; transform:scale(.85); } 50% { opacity:1; transform:scale(1.15); } }

/* 平板/桌面的侧边小象，不遮挡手机内容 */
.ele-side-companion { display: none; position: fixed; z-index: 15; width: 96px; flex-direction: column; align-items: center; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(50,64,54,.12)); }
.ele-side-companion .ele-svg { width: 96px; height: auto; animation: ele-side-breathe 6.5s ease-in-out infinite; transform-origin: 50% 100%; }
.ele-side-companion > span { margin-top: 3px; padding: 4px 8px; border: 1px solid rgba(140,168,149,.24); border-radius: 999px; background: rgba(255,253,250,.86); color: var(--sage-dark); font-size:11px; line-height: 1.3; white-space: nowrap; }
@media (min-width: 720px) and (max-width: 1159px) {
  .ele-side-companion { display: flex; right: 14px; bottom: 94px; width: 88px; }
  .ele-side-companion .ele-svg { width: 88px; }
  .ele-day-screen { padding-right: 104px; }
}
@media (min-width: 1160px) {
  .ele-side-companion { display: flex; left: calc(50% + 40px); bottom: 76px; }
}
@keyframes ele-side-breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.006); } }

/* 选完心情后的双栏头部：故事在左，小象在右 */
.ele-focus-hero { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 9px; margin: 0 0 7px; }
.ele-focus-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; }
.ele-focus-copy .ele-story-meta { margin-bottom: 3px; }
.ele-focus-copy h2 { margin: 0 0 4px; font-family: "Songti SC", "STSong", serif; font-size:18px; line-height: 1.35; }
.ele-focus-copy .ele-event { margin: 0; color: var(--muted); font-size:11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ele-focus-room { position: relative; width: 122px; height: 128px; padding: 0; border: 0; border-radius: 19px; overflow: visible; cursor: pointer; background: transparent; }
.ele-focus-room:active { transform: scale(.985); }
.ele-mini-room { position: absolute; inset: 0; overflow: visible; }
.ele-mini-room::before { content: ""; position: absolute; left: 50%; top: 52%; width: 108px; height: 108px; border-radius: 50%; background: radial-gradient(circle, rgba(231,185,109,.18), transparent 68%); transform: translate(-50%,-50%); }
.ele-mini-ele { position: absolute; left: 50%; bottom: 15px; width: 108px; transform: translateX(-50%); z-index: 3; }
.ele-mini-ele .ele-svg { width: 100%; }
.ele-room-hint { position: absolute; left: 50%; bottom: 1px; z-index: 5; transform: translateX(-50%); padding: 2px 6px; border-radius: 99px; background: rgba(255,253,250,.82); color: var(--sage-dark); font-size:11px; line-height: 1.4; white-space: nowrap; }
.ele-scene-modal { padding: 16px; }
.ele-scene-modal .ele-scene { height: 220px; margin-bottom: 10px; }
.ele-scene-modal-copy { padding: 0 6px 6px; text-align: center; }
.ele-scene-modal-copy h3 { margin: 2px 0 5px; font-family: "Songti SC", "STSong", serif; font-size:21px; }
.ele-scene-modal-copy p:last-child { margin: 0; color: var(--muted); font-size:11.5px; line-height: 1.6; }

/* 折叠态小象的周期性提醒 */
.ele-mini-ele .ele-svg { transform-origin: 50% 100%; animation: ele-mini-nudge 11s ease-in-out infinite; }
.ele-room-hint { animation: ele-hint-pulse 11s ease-in-out infinite; }
@keyframes ele-mini-nudge {
  0%, 68%, 100% { transform: translateY(0) rotate(0) scale(1); }
  72% { transform: translateY(-9px) rotate(-6deg) scale(1.05); }
  76% { transform: translateY(0) rotate(6deg) scale(1.03); }
  80% { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
  84% { transform: translateY(0) rotate(0) scale(1); }
}
@keyframes ele-hint-pulse {
  0%, 70%, 90%, 100% { opacity: .7; box-shadow: none; }
  76%, 82% { opacity: 1; box-shadow: 0 0 0 7px rgba(231,185,109,.18); }
}

/* 本周目标：减少重复说明，弱化手动补记 */
.goal-step { width: 28px; height: 28px; font-size:15px; }
.goal-actions { justify-content: flex-start; }
.goal-manual { flex: 0 0 auto; min-height: 32px; padding: 0 13px; font-size:11.5px; }
.goal-manual:disabled { opacity: .55; cursor: default; }
.goal-auto-note { display: none; }

.goal-manual { flex: none; padding: 2px 0; border: 0; background: transparent; color: var(--muted); font-size:11.5px; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.goal-manual:hover { color: var(--sage-dark); }
.goal-manual:disabled { opacity: .5; cursor: default; text-decoration: none; }
.goal-actions { margin-top: 2px; }

/* 初次进入：把下一步放到注意力中心 */
.ele-first-screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 18px; }
.ele-first-kicker { margin: 0 0 10px; color: var(--sage-dark); font-size:11px; font-weight: 750; letter-spacing: .14em; }
.ele-first-screen h2 { margin: 0 0 7px; font-family: "Songti SC", "STSong", serif; font-size:30px; line-height: 1.35; }
.ele-first-lead { max-width: 280px; margin: 0; color: var(--muted); font-size:12px; line-height: 1.7; }
.ele-first-ele { width: 158px; margin: 10px auto 4px; position: relative; }
.ele-first-ele::before { content: ""; position: absolute; left: 50%; top: 50%; width: 142px; height: 142px; border-radius: 50%; background: radial-gradient(circle, rgba(231,185,109,.18), transparent 70%); transform: translate(-50%,-50%); }
.ele-first-ele .ele-svg { position: relative; width: 100%; animation: ele-first-bob 6s ease-in-out infinite; transform-origin: 50% 100%; }
.ele-first-moods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 324px; margin-top: 6px; }
.ele-first-mood { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 9px 13px; border: 1px solid rgba(83,116,97,.2); border-radius: 15px; background: #fffdfa; color: var(--ink); font-size:13px; text-align: left; cursor: pointer; box-shadow: 0 4px 12px rgba(50,64,54,.035); }
.ele-first-mood b { font-size:20px; line-height: 1; }
.ele-first-mood:active { background: var(--sage-light); transform: scale(.985); }
.ele-first-mood:last-child:nth-child(odd) { grid-column: span 2; justify-content: center; }
.ele-first-note { margin: 12px 0 0; color: var(--muted); font-size:11px; line-height: 1.5; }
.ele-first-help { margin-top: 10px; padding: 3px 0; border: 0; background: transparent; color: var(--sage-dark); font-size:11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes ele-first-bob { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.006); } }

/* 可读性统一：把需要读的内容从 8–10px 提到 10.5–13.5px */
.nav-item { font-size:12px; }
.ele-story-meta { font-size:12px; }
.ele-mood-option strong { font-size:12px; }
.ele-candidate-copy small { font-size:11.5px; }
.ele-candidate-copy strong { font-size:14.5px; }
.ele-candidate-copy em { font-size:12px; line-height: 1.45; }
.ele-candidate-copy { gap: 3px; }
.ele-task-kicker { font-size:11.5px; }
.ele-task-copy strong { font-size:14.5px; }
.ele-task-copy small { font-size:12px; line-height: 1.45; }
.ele-task-hint { font-size:12px; line-height: 1.55; }
.ele-task-mark { font-size:11.5px; }
.ele-plan-mood { font-size:12px; }
.ele-plan-mood span { font-size:12.5px; }
.ele-plan-mood b { font-size:12px; }
.ele-care-link { font-size:12px; }
.ele-mood-current strong { font-size:14px; }
.ele-mood-compact .ele-text-btn { font-size:12px; }
.ele-focus-copy .ele-story-meta { font-size:11.5px; }
.ele-focus-copy .ele-event { font-size:12px; line-height: 1.5; }
.ele-focus-mode .ele-candidate-copy em { font-size:12px; line-height: 1.4; }
.ele-focus-mode .ele-task-hint { font-size:12px; line-height: 1.5; }
.ele-focus-mode .ele-story-meta { font-size:11.5px; }
.ele-first-kicker { font-size:12px; }
.ele-first-lead { font-size:13px; }
.ele-first-mood { font-size:14px; }
.ele-first-note { font-size:12px; }
.ele-first-help { font-size:12px; }
.micro-jar-wrap small { font-size:11.5px; }
.week-edit-hint { font-size:12px; }
.week-footnote { font-size:12px; }
.goal-name span { font-size:13px; }
.goal-manual { font-size:12px; }
.weekly-letter-card small { font-size:11.5px; }
.weekly-letter-card em { font-size:11.5px; }
.weekly-letter-card b { font-size:11.5px; }
@media (max-width: 360px) {
  .ele-mood-option strong { font-size:12px; }
}

/* 放大字号后，给正文留出第二行，避免关键说明被省略 */
.ele-focus-mode .ele-candidate-copy em { -webkit-line-clamp: 2; }
.ele-focus-mode .ele-task-copy small { -webkit-line-clamp: 2; }

@media (max-height: 760px) {
  .ele-focus-mode .ele-task { padding-top: 6px; padding-bottom: 6px; }
}

/* 小象的四种样子 */
.ele-body-shape { fill: var(--ele-body, #b8c9d4); }
.ele-head { fill: var(--ele-head, #c7d5de); }
.ele-head-light { fill: var(--ele-light, #d9e4ea); }
.ele-ear { fill: var(--ele-ear, #a9bcc9); }
.ele-ear-inner { fill: var(--ele-inner, #e7c3c6); }
.ele-leg { fill: var(--ele-ear, #a9bcc9); }
.ele-tail { stroke: var(--ele-ear, #a9bcc9); }
.ele-trunk { fill: none; stroke: var(--ele-trunk, #b3c5d0); }
.ele-trunk-light { fill: none; stroke: var(--ele-trunk-light, #c9d7df); }
.ele-trunk-tip { fill: var(--ele-trunk, #b3c5d0); }
.ele-arm { fill: var(--ele-trunk, #b3c5d0); }
.ele-cheek { fill: var(--ele-cheek, #e8aaa8); }
.ele-look { pointer-events: none; }

.look-modal { max-height: 82vh; overflow-y: auto; }
.look-note { margin: 0 0 12px; color: var(--muted); font-size:12px; line-height: 1.6; }
.look-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.look-options button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 8px 9px; border: 1px solid var(--line); border-radius: 16px; background: #fffdfa; cursor: pointer; }
.look-options button.selected { border-color: var(--sage); background: var(--sage-light); }
.look-preview { display: block; width: 92px; height: 84px; }
.look-preview .ele-svg { width: 92px; }
.look-options strong { font-size:13px; }
.look-options small { color: var(--muted); font-size:11px; line-height: 1.4; }
.look-options i { position: absolute; top: 6px; right: 8px; color: var(--sage-dark); font-size:13px; font-style: normal; }

.ele-first-lead { position: relative; max-width: 300px; margin: 0 0 2px; padding: 7px 12px; border: 1px solid rgba(140,168,149,.22); border-radius: 14px; background: #fffdfa; box-shadow: 0 5px 14px rgba(50,64,54,.05); }
.ele-first-lead::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; border-right: 1px solid rgba(140,168,149,.22); border-bottom: 1px solid rgba(140,168,149,.22); background: #fffdfa; transform: translateX(-50%) rotate(45deg); }

/* 我的 → 设置：备份与数据说明 */
.settings-modal { max-height: 86vh; overflow-y: auto; }
.settings-section { margin: 0 0 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: #fffdfa; }
.settings-section h4 { margin: 0 0 5px; font-size:14px; }
.settings-section p { margin: 0; color: var(--muted); font-size:12px; line-height: 1.65; }
.settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.settings-actions .secondary-btn { min-height: 40px; font-size:12px; padding: 8px 6px; }
.settings-version { margin: 2px 0 12px; color: var(--muted); font-size:11.5px; text-align: center; }

.settings-section { text-align: left; }

/* 卡片最多两行：标题 + 一行说明 */
.ele-candidate-copy em { -webkit-line-clamp: 1; }
.ele-focus-mode .ele-candidate-copy em { -webkit-line-clamp: 1; }
.ele-task-copy small { -webkit-line-clamp: 1; }
.ele-focus-mode .ele-task-copy small { -webkit-line-clamp: 1; }
.ele-focus-hero { grid-template-columns: minmax(0, 1fr) 138px; }
.ele-focus-room { width: 138px; height: 140px; }
.ele-mini-ele { width: 126px; bottom: 16px; }

.settings-more { padding: 0; overflow: hidden; }
.settings-more > h4 { padding: 13px 14px 9px; margin: 0; }
.settings-menu { border-top: 1px solid var(--line); }
.settings-menu .menu-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 14px; background: #fffdfa; }
.settings-menu .menu-row:last-child { border-bottom: 0; }
.settings-menu .menu-row em { font-size:11.5px; }

/* 去认识小象：六个方向围绕小象，中心小象可换样子 */
.onboarding-v2 { padding-top: 18px; padding-bottom: 18px; overflow-y: auto; }
.onboarding-head { text-align: center; }
.onboarding-head .eyebrow { margin-bottom: 7px; }
.onboarding-v2 .onboarding-head h2 { margin: 0 0 7px; font-size:26px; line-height: 1.35; }
.onboarding-v2 .onboarding-head .lead { margin: 0; font-size:12.5px; line-height: 1.6; }
.onboarding-ring { position: relative; width: 100%; max-width: 350px; height: 330px; margin: 6px auto 0; }
.ring-orbit { position: absolute; left: 50%; top: 50%; width: 274px; height: 274px; border: 1px dashed rgba(140,168,149,.34); border-radius: 50%; transform: translate(-50%,-50%); }
.ring-orbit::after { content: ""; position: absolute; left: 50%; top: 50%; width: 172px; height: 172px; border-radius: 50%; background: radial-gradient(circle, rgba(231,185,109,.13), transparent 70%); transform: translate(-50%,-50%); }
.onboarding-ring .dimension-option { position: absolute; z-index: 3; width: 78px; min-height: 54px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; border-radius: 15px; background: #fffdfa; transform: translate(-50%,-50%); }
.onboarding-ring .dimension-option:hover { transform: translate(-50%,-50%) translateY(-2px); }
.onboarding-ring .dimension-option strong { margin: 0; font-size:12px; white-space: nowrap; overflow: visible; text-overflow: clip; }
.onboarding-ring .dimension-option small { display: none; }
.onboarding-ring .dimension-option .dimension-icon { font-size:18px; line-height: 1; }
.onboarding-ring .dimension-option i { position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; font-size:11px; }
.onboarding-ring [data-dimension="sleep"] { left: 50%; top: 9%; }
.onboarding-ring [data-dimension="meal"] { left: 86%; top: 28%; }
.onboarding-ring [data-dimension="care"] { left: 86%; top: 71%; }
.onboarding-ring [data-dimension="move"] { left: 50%; top: 91%; }
.onboarding-ring [data-dimension="space"] { left: 14%; top: 71%; }
.onboarding-ring [data-dimension="connect"] { left: 14%; top: 28%; }
.onboarding-center { position: absolute; left: 50%; top: 50%; z-index: 2; width: 150px; display: flex; flex-direction: column; align-items: center; text-align: center; transform: translate(-50%,-50%); }
.onboarding-ele-btn { width: 142px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.onboarding-ele-btn .ele-svg { width: 100%; animation: onboarding-ele-breathe 6s ease-in-out infinite; transform-origin: 50% 100%; }
.onboarding-look-hint { margin: 2px 0 4px; color: var(--muted); font-size:11px; line-height: 1.4; }
.onboarding-look-dots { display: flex; gap: 5px; align-items: center; justify-content: center; }
.onboarding-look-dot { width: 14px; height: 14px; padding: 0; border: 2px solid #fffdfa; border-radius: 50%; box-shadow: 0 0 0 1px rgba(83,116,97,.22); cursor: pointer; }
.onboarding-look-dot.selected { box-shadow: 0 0 0 2px var(--sage-dark); }
.onboarding-look-name { margin-top: 3px; color: var(--muted); font-size:11px; line-height: 1.4; }
.onboarding-v2 .selection-hint { margin: 4px 0 9px; font-size:11.5px; }
.onboarding-actions { width: 100%; }
.onboarding-actions .primary-btn { width: 100%; }
.onboarding-actions .privacy-note { margin-top: 7px; font-size:11px; }
@keyframes onboarding-ele-breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.018); } }
@media (max-width: 360px) {
  .onboarding-ring { height: 310px; }
  .onboarding-ring .dimension-option { width: 70px; min-height: 50px; }
  .onboarding-ring .dimension-option strong { font-size:11.5px; }
  .onboarding-center { width: 138px; }
  .onboarding-ele-btn { width: 132px; }
  .onboarding-v2 .onboarding-head h2 { font-size:23px; }
}

/* 小象与换样子控件分层：小象在圆环中心，提示和颜色点在环外下方 */
.onboarding-center { width: 168px; }
.onboarding-ele-btn { width: 162px; }
.onboarding-look-row { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 3px; margin: -2px auto 3px; }
.onboarding-look-hint { margin: 0; color: var(--muted); font-size:11px; line-height: 1.4; }
.onboarding-look-dots { margin-top: 1px; }
.onboarding-look-name { margin-top: 2px; color: var(--muted); font-size:11px; line-height: 1.4; }
@media (max-width: 360px) {
  .onboarding-center { width: 156px; }
  .onboarding-ele-btn { width: 150px; }
}

/* 微光纪念：只展示已经留下的，不显示空位 */
.keepsake-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.keepsake-item { position: relative; display: flex; align-items: flex-start; gap: 8px; min-height: 82px; padding: 10px 9px; border: 1px solid var(--line); border-radius: 15px; background: #fffdfa; }
.keepsake-icon { flex: none; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 10px; background: var(--sun-soft); font-size:16px; }
.keepsake-item strong { display: block; margin: 0 0 2px; font-size:12px; line-height: 1.35; }
.keepsake-item small { display: block; color: var(--muted); font-size:11px; line-height: 1.4; }
.keepsake-item em { position: absolute; right: 8px; bottom: 7px; color: #9aa49e; font-size:11px; font-style: normal; }
.keepsake-note { margin: 7px 4px 0; color: var(--muted); font-size:11px; line-height: 1.5; text-align: center; }

/* 完成之后：明显的已完成标记 */
.ele-progress-banner { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 9px; padding: 10px 12px; border: 1px solid rgba(83,116,97,.24); border-radius: 14px; background: var(--sage-light); color: var(--sage-dark); }
.ele-progress-banner.is-all { border-color: rgba(83,116,97,.42); background: #edf6ee; }
.ele-progress-check { flex: none; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-dark); color: #fffdfa; font-size:12px; font-weight: 800; }
.ele-progress-banner strong { display: block; font-size:13px; line-height: 1.4; }
.ele-progress-banner small { display: block; margin-top: 2px; color: var(--muted); font-size:11.5px; line-height: 1.45; }
.ele-task.done .ele-task-mark { font-size:11.5px; letter-spacing: -.02em; }
.ele-diary-done-strip { width: 100%; display: flex; align-items: center; gap: 7px; margin: 0 0 8px; padding: 8px 11px; border: 1px solid rgba(83,116,97,.24); border-radius: 12px; background: var(--sage-light); color: var(--sage-dark); cursor: pointer; text-align: left; }
.ele-diary-done-strip > span { flex: none; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-dark); color: #fffdfa; font-size:11.5px; font-weight: 800; }
.ele-diary-done-strip strong { flex: 1; font-size:12px; font-weight: 650; line-height: 1.4; }
.ele-diary-done-strip em { flex: none; color: var(--sage-dark); font-size:11.5px; font-style: normal; white-space: nowrap; }

/* 回到今天时给已完成的日记留出空间，保持一屏 */
@media (min-height: 761px) {
  .ele-day-screen.has-diary-strip .ele-scene { height: 190px; }
}
@media (max-height: 760px) {
  .ele-day-screen.has-diary-strip .ele-scene { height: 96px; }
  .ele-day-screen.has-diary-strip .ele-character { width: 104px; bottom: 18px; }
  .ele-day-screen.has-diary-strip .ele-diary-done-strip { margin-bottom: 5px; }
}

.ele-add-more-link { flex: none; margin-left: auto; padding: 2px 0; border: 0; background: transparent; color: var(--sage-dark); font-size:11.5px; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }

@media (max-height: 760px) {
  .ele-day-screen.is-all-done .ele-plan-mood { display: none; }
  .ele-day-screen.is-all-done .ele-focus-hero { grid-template-columns: minmax(0, 1fr) 120px; }
  .ele-day-screen.is-all-done .ele-focus-room { width: 120px; height: 122px; }
  .ele-day-screen.is-all-done .ele-mini-ele { width: 110px; bottom: 12px; }
  .ele-day-screen.is-all-done .ele-progress-banner small { display: none; }
  .ele-day-screen.is-all-done .ele-diary-cta { min-height: 44px; margin-top: 6px; }
}

.ele-book-chapter summary { cursor: pointer; }
.ele-book-empty { margin: 2px 0 8px; padding: 8px 10px; color: var(--muted); font-size:11.5px; line-height: 1.5; text-align: center; }

/* 未完成的小事可以在任务页直接移除 */
.ele-task-wrap { position: relative; }
.ele-task-wrap .ele-task { width: 100%; padding-right: 38px; }
.ele-task-remove { position: absolute; top: 5px; right: 6px; z-index: 2; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fffdfa; color: var(--muted); font-size:15px; line-height: 1; cursor: pointer; }
.ele-task-remove:hover { color: var(--rose); border-color: rgba(200,143,134,.45); }

/* 更萌的小象：眨眼、鼻尖、腮红、星光和爱心 */
.ele-eye, .ele-eye-shine { transform-box: fill-box; transform-origin: center; animation: ele-blink 6.8s ease-in-out infinite; }
.ele-cheek { animation: ele-blush 5.4s ease-in-out infinite; }
.ele-ear-left { transform-origin: 82% 18%; animation-duration: 7.8s; }
.ele-ear-right { transform-origin: 18% 18%; animation-name: ele-ear-sway-right; animation-duration: 9.2s; animation-delay: -3.1s; }
.ele-trunk-group { transform-box: fill-box; transform-origin: 42% 4%; animation: ele-trunk-sway 8.6s ease-in-out infinite; }
.ele-trunk-tip { transform-box: fill-box; transform-origin: 50% 50%; animation: ele-tip-bob 4.5s ease-in-out infinite; }
.ele-headphones { transform-box: fill-box; transform-origin: 50% 100%; animation: ele-prop-nod 4.8s ease-in-out infinite; }
.ele-bird { transform-box: fill-box; transform-origin: 50% 100%; animation: ele-bird-hop 5.6s ease-in-out infinite; }
.ele-make > rect:last-of-type, .ele-spoon { transform-box: fill-box; transform-origin: 50% 92%; animation: ele-tool-wiggle 3.8s ease-in-out infinite; }
.ele-steam { transform-box: fill-box; transform-origin: 50% 100%; animation: ele-steam-rise 3.6s ease-in-out infinite; }
.ele-steam.steam-two { animation-delay: -1.7s; }
.ele-heart { transform-box: fill-box; transform-origin: center; animation: ele-heart-breathe 3.4s ease-in-out infinite; }
.ele-zzz { animation: ele-zzz-drift 4.2s ease-in-out infinite; }
.ele-zzz.small { animation-delay: -2.1s; }
.ele-sparkle { fill: #e7b96d; opacity: .55; transform-box: fill-box; transform-origin: center; animation: ele-twinkle 3.8s ease-in-out infinite; }
.ele-sparkle.s1 { animation-delay: .3s; }
.ele-sparkle.s2 { animation-delay: 1.4s; }
.ele-sparkle.s3 { animation-delay: 2.1s; }
.ele-love-float { position: absolute; z-index: 5; color: var(--rose); font-size:14px; line-height: 1; pointer-events: none; opacity: 0; animation: ele-love-float 7s ease-in-out infinite; }
.ele-love-float.l1 { left: 8%; top: 35%; animation-delay: 1.2s; }
.ele-love-float.l2 { right: 7%; top: 52%; font-size:11px; animation-delay: 3.7s; }
.ele-love-float.l3 { left: 20%; top: 63%; color: var(--sun); font-size:10px; animation-delay: 5.1s; }
.ele-first-ele, .onboarding-center, .ele-saved-ele { position: relative; }
.ele-saved-ele { margin: 0 auto; }
.ele-saved-spark { position: absolute; color: var(--sun); font-size:14px; line-height: 1; pointer-events: none; animation: ele-twinkle 3s ease-in-out infinite; }
.ele-saved-spark.s1 { left: 6%; top: 15%; }
.ele-saved-spark.s2 { right: 7%; top: 30%; animation-delay: 1s; }
.ele-saved-spark.s3 { right: 14%; bottom: 18%; color: var(--rose); font-size:11px; animation-delay: 1.8s; }
.ele-tap-heart { position: absolute; left: 50%; top: 22%; z-index: 8; color: var(--rose); font-size:16px; pointer-events: none; animation: ele-heart-pop 1.6s ease-out forwards; }
@keyframes ele-blink { 0%, 87%, 90%, 93%, 100% { transform: scaleY(1); } 88.5%, 91.5% { transform: scaleY(.12); } }
@keyframes ele-blush { 0%,100% { opacity:.5; } 50% { opacity:.7; } }
@keyframes ele-tip-bob { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-1.2px) scale(1.04); } }
@keyframes ele-ear-sway-right { 0%, 72%, 100% { transform:rotate(1deg); } 82% { transform:rotate(-4deg); } 91% { transform:rotate(3deg); } }
@keyframes ele-trunk-sway { 0%, 100% { transform:rotate(-1.2deg) translateY(0); } 42% { transform:rotate(1.8deg) translateY(-1px); } 70% { transform:rotate(.4deg) translateY(0); } }
@keyframes ele-prop-nod { 0%, 72%, 100% { transform:translateY(0) rotate(0); } 82% { transform:translateY(1px) rotate(-1.5deg); } 91% { transform:translateY(0) rotate(1deg); } }
@keyframes ele-bird-hop { 0%, 64%, 100% { transform:translateY(0) rotate(0); } 70% { transform:translateY(-4px) rotate(-3deg); } 77% { transform:translateY(0) rotate(2deg); } }
@keyframes ele-tool-wiggle { 0%, 70%, 100% { transform:rotate(0); } 80% { transform:rotate(-4deg); } 90% { transform:rotate(3deg); } }
@keyframes ele-steam-rise { 0% { opacity:0; transform:translateY(3px) scale(.9); } 35% { opacity:.75; } 100% { opacity:0; transform:translateY(-7px) scale(1.05); } }
@keyframes ele-heart-breathe { 0%, 100% { transform:scale(.94); } 50% { transform:scale(1.08); } }
@keyframes ele-zzz-drift { 0%, 100% { opacity:.35; transform:translate(0, 2px); } 50% { opacity:.9; transform:translate(2px, -3px); } }
@keyframes ele-twinkle { 0%,100% { opacity:.25; transform:scale(.7) rotate(0); } 50% { opacity:.9; transform:scale(1.1) rotate(12deg); } }
@keyframes ele-love-float { 0%, 72%, 100% { opacity:0; transform:translateY(6px) scale(.8); } 78% { opacity:.8; } 88% { opacity:.5; transform:translateY(-10px) scale(1); } 94% { opacity:0; transform:translateY(-16px) scale(1.05); } }
@keyframes ele-heart-pop { 0% { opacity:0; transform:translate(-50%, 4px) scale(.6); } 20% { opacity:1; } 100% { opacity:0; transform:translate(calc(-50% + var(--drift, 0px)), -34px) scale(1.1); } }
.ele-touch:focus-visible { outline: 3px solid rgba(83,116,97,.35); outline-offset: 5px; border-radius: 42%; }
@media (prefers-reduced-motion: reduce) {
  .ele-character,
  .ele-svg *,
  .ele-love-float,
  .ele-mini-room::after { animation: none !important; }
}
.ele-mini-room::after { content: "♡"; position: absolute; right: 7px; top: 24px; z-index: 4; color: var(--rose); font-size:11px; opacity: 0; animation: ele-love-float 7s ease-in-out 2s infinite; }

.quiet-no-record { margin: 7px 0 0; color: rgba(255,255,255,.62); font-size:11px; line-height: 1.5; text-align: center; }
.night-no-record { margin: 8px 0 0; color: rgba(255,253,250,.52); font-size:10.5px; line-height: 1.5; text-align: center; }

/* SOS 呼吸圈：提高与奶油底的对比，呼吸时也保持清晰 */
.sos-pause { background: #f1e9da; }
.sos-pause .breathing-orb.small {
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border: 2px solid rgba(83,116,97,.38);
  background: radial-gradient(circle at 34% 28%, #fff9e9 0 12%, #f2ce87 36%, #dda84f 72%, #c88d37 100%);
  box-shadow: 0 0 0 4px rgba(83,116,97,.2), 0 0 0 11px rgba(231,185,109,.34), 0 0 0 20px rgba(83,116,97,.08);
  animation: sos-breathe 5s ease-in-out infinite;
}
.sos-pause span { color: #4f6357; font-size:12.5px; font-weight: 600; }
@keyframes sos-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(83,116,97,.2), 0 0 0 11px rgba(231,185,109,.34), 0 0 0 20px rgba(83,116,97,.08); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(83,116,97,.24), 0 0 0 16px rgba(231,185,109,.4), 0 0 0 28px rgba(83,116,97,.1); }
}

@media (max-height: 760px) {
  .ele-day-screen:not(.has-diary-strip) .ele-scene { height: 124px; }
  .ele-day-screen:not(.has-diary-strip) .ele-character { width: 112px; bottom: 22px; }
}

/* 第一步页：把三个照顾入口收成单独的底部支持区 */
.ele-first-support { width: 100%; max-width: 324px; margin: 18px auto 0; padding-top: 11px; border-top: 1px dashed rgba(83,116,97,.22); }
.ele-first-support-label { margin: 0 0 7px; color: var(--muted); font-size: 10.5px; line-height: 1.5; text-align: center; }
.ele-first-support .ele-care-row { margin-top: 0; }
.ele-first-support .ele-care-link { min-height: 38px; font-size: 11.5px; }

/* 步骤数字与标题保持同一基线，避免圆形编号被文字挤掉 */
.ele-section-head h3 { display: flex; align-items: center; gap: 7px; }
.ele-step {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin: 0;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fffdfa;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(83,116,97,.1);
}

/* 步骤数字使用纯白，增强与深色圆底的对比 */
.ele-step { color: #ffffff; font-size: 12.5px; font-weight: 800; }

/* 步骤编号浮到标题左上角，不再和标题挤在同一行 */
.ele-section-head { position: relative; min-height: 27px; padding-left: 33px; }
.ele-section-head h3 { display: block; }
.ele-section-head .ele-step {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: 0;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(20,35,28,.32);
  box-shadow: 0 0 0 3px rgba(83,116,97,.12), 0 3px 7px rgba(83,116,97,.16);
}

/* 两个主要动作保持同宽 */
.ele-active-main-actions { grid-template-columns: 1fr 1fr; }

/* 「再陪它做一件」做成可点击的按钮，而不是文字链接 */
.ele-progress-banner .ele-add-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(83,116,97,.32);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--sage-dark);
  font-size: 10.5px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.ele-progress-banner .ele-add-more-link:active { background: var(--sage-light); }

/* 日记里的照片：让相册和当天的小事发生关联 */
.ele-diary-photo { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; }
.ele-diary-photo img { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; background: var(--cream); }
.ele-diary-photo-mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--cream); color: var(--sage-dark); font-size: 17px; }
.ele-diary-photo > div { flex: 1; min-width: 0; }
.ele-diary-photo strong { display: block; font-size: 11px; margin-bottom: 2px; }
.ele-diary-photo small { display: block; color: var(--muted); font-size: 9.5px; line-height: 1.4; }
.ele-diary-photo-add { flex: none; padding: 6px 8px; border-radius: 9px; background: var(--sage-light); color: var(--sage-dark); font-size: 9.5px; font-weight: 650; cursor: pointer; }

/* 今日微光卡 */
.ele-share-card-link { width: 100%; margin-top: 2px; padding: 8px 6px; border: 0; background: transparent; color: var(--sage-dark); font-size: 11px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.share-card-modal { max-height: 92%; overflow-y: auto; }
.share-card-preview { width: 100%; aspect-ratio: 4 / 5; margin: 2px 0 12px; display: grid; place-items: center; border-radius: 18px; background: var(--cream); color: var(--muted); overflow: hidden; }
.share-card-preview img { width: 100%; height: 100%; display: block; object-fit: contain; }
.share-card-preview span { padding: 24px; font-size: 11px; line-height: 1.6; text-align: center; }
.share-card-actions { display: grid; gap: 8px; }
.share-card-actions .primary-btn, .share-card-actions .secondary-btn { width: 100%; margin: 0; }
.share-card-note { margin: 9px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; text-align: center; }

.album-intro { margin: -2px 0 10px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }

.ele-saved-photo { margin: 9px 0 10px; padding: 8px 9px; }
.ele-saved-photo strong { font-size: 10.5px; }
.ele-saved-photo small { font-size: 9px; }

/* 做事时给这件事留一张画面 */
.ele-task-photo { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(83,116,97,.18); color: var(--muted); }
.ele-task-photo img { width: 30px; height: 30px; flex: none; border-radius: 8px; object-fit: cover; background: var(--cream); }
.ele-task-photo-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--cream); color: var(--sage-dark); font-size: 14px; }
.ele-task-photo-add { flex: none; color: var(--sage-dark); font-size: 10px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ele-task-photo > span { font-size: 9px; }
.ele-task-photo input { display: none; }
.share-card-hint { margin: 8px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; text-align: center; }
.share-card-preview img { -webkit-touch-callout: default; cursor: zoom-in; }

@media (max-height: 760px) {
  .ele-active-screen .ele-scene { height: 94px; }
  .ele-active-screen .ele-character { width: 92px; bottom: 2px; }
}

/* 保存/分享按钮文字垂直居中 */
.share-card-actions .primary-btn,
.share-card-actions .secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 14px 12px;
  text-align: center;
}
/* 微信里让图片更容易长按保存 */
.share-card-preview img { -webkit-user-select: auto; user-select: auto; -webkit-touch-callout: default; }

/* 完成所有小事后，从今日页也能找到微光卡 */
.ele-progress-more { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ele-progress-share { padding: 2px 0; border: 0; background: transparent; color: var(--sage-dark); font-size: 9.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* 完成横幅里的两个操作：右侧等宽、上下对齐 */
.ele-progress-more { align-items: stretch; min-width: 88px; gap: 4px; }
.ele-progress-more .ele-add-more-link { width: 100%; min-height: 30px; }
.ele-progress-share {
  width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(83,116,97,.22);
  border-radius: 999px;
  background: rgba(255,253,250,.62);
  color: var(--sage-dark);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.ele-progress-share:active { background: var(--sage-light); }

/* 完成横幅的按钮列贴最右侧，文字占用剩余空间 */
.ele-progress-banner > div:not(.ele-progress-more) { flex: 1; min-width: 0; }
.ele-progress-banner .ele-progress-more { margin-left: auto; }

/* 安静待一会：占据原来底部整行按钮的位置 */
.ele-active-quiet-full { width: 100%; min-height: 42px; margin: 0; }

/* 小象树洞 */
.treehole-modal { max-height: 92%; overflow-y: auto; }
.treehole-lead { margin: -2px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.65; }
#treehole-input { width: 100%; min-height: 140px; resize: vertical; padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; background: #fffdfa; color: var(--ink); font-family: inherit; font-size: 14px; line-height: 1.8; outline: none; }
#treehole-input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(140,168,149,.14); }
.treehole-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.treehole-actions .primary-btn, .treehole-actions .secondary-btn { width: 100%; margin: 0; padding: 10px 8px; font-size: 12px; }
.treehole-privacy { margin: 9px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; text-align: center; }
.treehole-history { margin-top: 12px; border-top: 1px dashed rgba(83,116,97,.2); padding-top: 9px; }
.treehole-history summary { color: var(--muted); font-size: 10.5px; cursor: pointer; }
.treehole-history-list { display: grid; gap: 6px; margin-top: 7px; }
.treehole-history-item { display: grid; grid-template-columns: 58px 1fr 24px; gap: 7px; align-items: start; padding: 7px 8px; border-radius: 10px; background: var(--cream); }
.treehole-history-item span { color: var(--muted); font-size: 9px; padding-top: 2px; }
.treehole-history-item p { margin: 0; font-size: 10.5px; line-height: 1.55; color: var(--ink); }
.treehole-history-item button { border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.sos-treehole { width: 100%; margin-top: 10px; padding: 8px 6px; border: 0; background: transparent; color: var(--sage-dark); font-size: 10.5px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.treehole-reply-modal { text-align: left; }
.treehole-reply-modal h3 { margin: 4px 0 8px; }
.treehole-reply-body { color: var(--ink); font-size: 13.5px; line-height: 1.85; margin: 0 0 12px; }
.treehole-reply-quote { margin: 0 0 13px; padding: 10px 12px; border-left: 2px solid rgba(83,116,97,.25); background: var(--cream); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.treehole-reply-actions { display: grid; gap: 7px; }
.treehole-reply-actions .primary-btn, .treehole-reply-actions .secondary-btn { width: 100%; margin: 0; }
.treehole-delete { border: 0; background: transparent; color: var(--muted); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; padding: 4px; cursor: pointer; }
.treehole-crisis { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff5f0; border: 1px solid rgba(200,143,134,.3); color: #7c5149; }
.treehole-crisis strong { display: block; font-size: 11px; margin-bottom: 4px; }
.treehole-crisis p { margin: 0 0 8px; font-size: 10.5px; line-height: 1.65; }

/* SOS 选项精简后的树洞入口 */
.sos-treehole-card {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 1px dashed rgba(83,116,97,.3);
  border-radius: 14px;
  background: rgba(237,246,238,.55);
  color: var(--sage-dark);
  cursor: pointer;
}
.sos-treehole-card .sos-treehole-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fffdfa; font-size: 13px; }
.sos-treehole-card strong { display: block; font-size: 11.5px; line-height: 1.4; }
.sos-treehole-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.sos-treehole-card em { font-style: normal; color: var(--muted); font-size: 16px; }

/* 树洞入口放在 SOS 顶部 */
.sos-treehole-card { margin: 0 0 10px; }
.treehole-privacy { margin: -4px 0 9px; }
.treehole-count-row { display: flex; justify-content: space-between; gap: 8px; margin: 5px 1px 0; color: var(--muted); font-size: 9px; }
.treehole-boundary { margin: 9px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; text-align: center; }

/* 树洞历史：从折叠小条改成独立、舒展的卡片 */
.treehole-history-card { margin-top: 15px; padding-top: 13px; border-top: 1px dashed rgba(83,116,97,.2); }
.treehole-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.treehole-history-head strong { font-size: 12px; color: var(--ink); }
.treehole-history-head span { color: var(--muted); font-size: 9.5px; }
.treehole-history-list { display: grid; gap: 8px; }
.treehole-history-item { display: grid; grid-template-columns: 62px 1fr 24px; gap: 8px; align-items: start; padding: 10px 11px; border: 1px solid rgba(83,116,97,.1); border-radius: 12px; background: var(--cream); }
.treehole-history-item span { color: var(--muted); font-size: 9.5px; padding-top: 2px; }
.treehole-history-item p { margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--ink); }
.treehole-history-item button { border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }

/* 树洞标题下的那句话贴近标题；历史默认折叠 */
.treehole-modal .modal-heading { margin-bottom: 3px; }
.treehole-lead { margin: 0 0 10px; text-align: left; }
.treehole-history-head { cursor: pointer; list-style: none; padding: 2px 0; }
.treehole-history-head::-webkit-details-marker { display: none; }
.treehole-history-head span { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.treehole-history-head strong { font-size: 12px; color: var(--ink); }
.treehole-history-head small { color: var(--muted); font-size: 9.5px; }
.treehole-history-head em { font-style: normal; color: var(--sage-dark); font-size: 10px; }
.treehole-history-card[open] .treehole-history-toggle { font-size: 0; }
.treehole-history-card[open] .treehole-history-toggle::before { content: '收起'; font-size: 10px; }

.treehole-history-card:not([open]) .treehole-history-list { display: none; }

/* 微光纪念只显示名字，点开看详情 */
.keepsake-item { width: 100%; min-height: 50px; align-items: center; padding: 10px 11px; cursor: pointer; text-align: left; }
.keepsake-item strong { flex: 1; min-width: 0; margin: 0; font-size: 12px; }
.keepsake-item em { position: static; margin-left: auto; color: var(--muted); font-size: 15px; }
.keepsake-detail-copy { color: var(--ink); font-size: 13px; line-height: 1.8; margin: 0 0 8px; }
.keepsake-detail-date { color: var(--muted); font-size: 10px; margin: 0 0 14px; }
.keepsake-modal { text-align: center; }
.keepsake-modal .modal-icon { margin: 0 auto 8px; }

/* 相册中明确标出来自哪件小事 */
.album-source { display: block; margin-top: 4px; color: var(--sage-dark); font-size: 9px; line-height: 1.4; }

/* 周计划：点击方向查看具体可做的事 */
.goal-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.goal-open .goal-emoji { flex: none; }
.goal-open .goal-name { min-width: 0; }
.goal-detail-toggle { width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 2px; padding: 6px 0 0; border: 0; background: transparent; color: var(--muted); font-size: 10.5px; cursor: pointer; }
.goal-card.open .goal-detail-toggle span { transform: rotate(180deg); }
.goal-detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(83,116,97,.2); }
.goal-detail-lead { margin: 0 0 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.goal-detail-item { display: grid; grid-template-columns: 21px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px solid rgba(83,116,97,.08); }
.goal-detail-item:last-child { border-bottom: 0; }
.goal-detail-level { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--sage-dark); font-size: 9.5px; font-weight: 700; }
.goal-detail-item.current .goal-detail-level { background: var(--sage-dark); color: #fff; }
.goal-detail-item strong { display: block; font-size: 11.5px; line-height: 1.45; margin-bottom: 2px; }
.goal-detail-item small { display: block; color: var(--muted); font-size: 10px; line-height: 1.55; }

/* 呼吸光点：更柔和的层次与呼吸提示 */
.quiet-visual.breathing-orb {
  position: relative;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle at 35% 28%, #fff9e9 0 12%, #f4d997 38%, #dfa94f 72%, #c88d37 100%);
  box-shadow: 0 0 0 16px rgba(255,246,216,.13), 0 0 0 40px rgba(255,246,216,.055), 0 14px 40px rgba(42,38,25,.16);
  animation: breathe-quiet 6s ease-in-out infinite;
}
.quiet-visual.breathing-orb::before {
  content: "";
  position: absolute;
  inset: -14%;
  border: 1px solid rgba(255,250,233,.5);
  border-radius: 50%;
  animation: breath-ring 6s ease-in-out infinite;
}
.quiet-visual.breathing-orb::after {
  content: "";
  position: absolute;
  left: 29%;
  top: 22%;
  width: 23%;
  height: 23%;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  filter: blur(2px);
}
.breath-cue { position: relative; width: 170px; height: 26px; margin: -7px auto 8px; color: rgba(255,253,242,.92); font-family: "Songti SC", "STSong", serif; font-size: 13px; letter-spacing: .14em; text-align: center; }
.breath-cue span { position: absolute; inset: 0; opacity: 0; animation-duration: 6s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.breath-in { animation-name: breath-cue-in; }
.breath-out { animation-name: breath-cue-out; }
@keyframes breath-cue-in {
  0%, 42% { opacity: 1; transform: translateY(0); }
  50%, 100% { opacity: 0; transform: translateY(5px); }
}
@keyframes breath-cue-out {
  0%, 46% { opacity: 0; transform: translateY(5px); }
  54%, 94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(5px); }
}
@keyframes breath-ring {
  0%, 100% { transform: scale(.88); opacity: .35; }
  50% { transform: scale(1.34); opacity: .75; }
}

.quiet-breath .quiet-symbol { display: none; }

/* 呼吸光点中心再柔和一点：降低高光和白点亮度 */
.quiet-visual.breathing-orb {
  background: radial-gradient(circle at 48% 44%, #f7e4bb 0 14%, #eecb8b 36%, #d9a552 70%, #c58d3c 100%);
  box-shadow: 0 0 0 16px rgba(255,246,216,.11), 0 0 0 40px rgba(255,246,216,.045), 0 16px 42px rgba(42,38,25,.14);
  filter: saturate(.92);
}
.quiet-visual.breathing-orb::after {
  left: 32%;
  top: 26%;
  width: 20%;
  height: 20%;
  background: rgba(255,248,230,.34);
  filter: blur(5px);
}

/* 陪它一起做：可选的声音入口 */
.timer-sound-open { width: 100%; min-height: 44px; margin: 2px 0 9px; padding: 0 11px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; background: rgba(255,255,255,.12); color: #fff; text-align: left; cursor: pointer; backdrop-filter: blur(12px); }
.timer-sound-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); font-size: 14px; }
.timer-sound-copy small { display: block; margin-bottom: 1px; color: rgba(255,255,255,.62); font-size: 9px; }
.timer-sound-copy strong { display: block; font-size: 11.5px; }
.timer-sound-open em { font-style: normal; color: rgba(255,255,255,.7); font-size: 9.5px; white-space: nowrap; }
.timer-sound-modal { max-height: 90%; overflow-y: auto; }
.timer-sound-lead { margin: -2px 0 11px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.timer-sound-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.timer-sound-option { min-width: 0; min-height: 78px; padding: 10px; display: grid; grid-template-columns: 25px 1fr; grid-template-rows: auto auto; column-gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fffdfa; text-align: left; cursor: pointer; }
.timer-sound-option.selected { border-color: rgba(83,116,97,.45); background: var(--sage-light); }
.timer-sound-option > span { grid-row: 1 / span 2; font-size: 17px; }
.timer-sound-option strong { font-size: 11.5px; align-self: end; }
.timer-sound-option small { color: var(--muted); font-size: 9.5px; line-height: 1.4; align-self: start; }
.timer-sound-option i { grid-column: 3; grid-row: 1 / span 2; color: var(--sage-dark); font-style: normal; font-size: 12px; }
.timer-sound-controls { display: grid; gap: 9px; margin-top: 12px; }
.timer-sound-controls .secondary-btn { width: 100%; margin: 0; }
.timer-sound-volume { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.timer-sound-volume input { flex: 1; accent-color: var(--sage-dark); }
.timer-sound-silent { margin: 2px 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; text-align: center; }
.timer-sound-note { margin: 10px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

.timer-sound-option { grid-template-columns: 25px 1fr auto; }

/* 首次只选小象样子，不要求先做周计划 */
.onboarding-look-only .onboarding-ring { height: 286px; }
.onboarding-look-only .onboarding-look-row { margin-top: 2px; }
.onboarding-look-only .onboarding-actions { margin-top: 6px; }

/* 陪伴计时页：小象和光影的轻微呼吸 */
.timer-screen { position: relative; overflow: hidden; }
.timer-screen > * { position: relative; z-index: 1; }
.timer-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,247,220,.5) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 22%, rgba(255,247,220,.36) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 84% 62%, rgba(255,247,220,.32) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 74%, rgba(255,247,220,.28) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 56% 48%, rgba(255,247,220,.2) 0 1px, transparent 2px);
  animation: timer-dust 12s ease-in-out infinite alternate;
}
.timer-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 70%;
  height: 55%;
  right: -18%;
  top: 7%;
  background: radial-gradient(ellipse at center, rgba(255,243,205,.13), transparent 68%);
  animation: timer-window-light 8s ease-in-out infinite alternate;
}
.ele-timer-buddy .ele-svg { width: 74px; transform-origin: center bottom; animation: timer-ele-breathe 5.5s ease-in-out infinite; }
.ele-timer-buddy .ele-ear { transform-box: fill-box; transform-origin: center; animation: timer-ear 8s ease-in-out infinite; }
.ele-timer-buddy .ele-tail { transform-box: fill-box; transform-origin: left bottom; animation: timer-tail 4.8s ease-in-out infinite; }
@keyframes timer-ele-breathe { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-2px) scale(1.025); } }
@keyframes timer-ear { 0%,88%,100% { transform:rotate(0); } 92% { transform:rotate(3deg); } 96% { transform:rotate(-2deg); } }
@keyframes timer-tail { 0%,100% { transform:rotate(-2deg); } 50% { transform:rotate(5deg); } }
@keyframes timer-dust { 0% { transform:translate3d(0,0,0); opacity:.5; } 100% { transform:translate3d(8px,-10px,0); opacity:.9; } }
@keyframes timer-window-light { 0% { opacity:.35; transform:translateX(-6px); } 100% { opacity:.7; transform:translateX(5px); } }
@media (prefers-reduced-motion: reduce) {
  .ele-timer-buddy .ele-svg,
  .ele-timer-buddy .ele-ear,
  .ele-timer-buddy .ele-tail,
  .timer-screen::before,
  .timer-screen::after { animation: none; }
}

/* 计时页：小象成为主画面，计时缩成小钟 */
.timer-screen { padding: 26px 24px 22px; }
.timer-close { position: absolute; top: 26px; right: 24px; z-index: 6; align-self: auto; }
.timer-poem-compact { margin: 0 48px 5px 0; max-width: 290px; }
.timer-poem-compact blockquote { font-size: 14px; line-height: 1.55; margin: 0 0 3px; }
.timer-poem-compact cite { font-size: 10px; }
.timer-clock { align-self: flex-start; display: grid; grid-template-columns: 8px auto auto; column-gap: 8px; row-gap: 5px; align-items: center; margin: 0 0 3px; padding: 8px 12px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 14px; background: rgba(27,47,38,.3); backdrop-filter: blur(14px); box-shadow: 0 10px 28px rgba(16,30,24,.12); }
.timer-clock-dot { width: 7px; height: 7px; border-radius: 50%; background: #f3d28a; box-shadow: 0 0 0 4px rgba(243,210,138,.16); animation: clock-dot 3.2s ease-in-out infinite; }
.timer-clock-copy small { display: block; color: rgba(255,255,255,.62); font-size: 8.5px; line-height: 1.3; }
.timer-clock-copy strong { display: block; font-family: "Songti SC", "STSong", serif; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.timer-clock-duration { color: rgba(255,255,255,.68); font-size: 8.5px; white-space: nowrap; }
.timer-clock-progress { grid-column: 1 / -1; height: 2px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.14); }
.timer-clock-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: rgba(255,244,205,.85); transition: width .4s linear; }
.timer-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 0; }
.timer-stage::before { content: ""; position: absolute; width: 290px; height: 220px; left: 50%; top: 50%; transform: translate(-50%,-52%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255,246,210,.18), transparent 70%); pointer-events: none; }
.timer-ele-hero { position: relative; z-index: 1; width: 218px; max-width: 72%; margin: 0 auto; }
.timer-ele-hero .ele-svg { width: 100%; animation: timer-ele-breathe 5.5s ease-in-out infinite; transform-origin: center bottom; filter: drop-shadow(0 15px 28px rgba(11,25,19,.18)); }
.timer-ele-hero .ele-ear { transform-box: fill-box; transform-origin: center; animation: timer-ear 8s ease-in-out infinite; }
.timer-ele-hero .ele-tail { transform-box: fill-box; transform-origin: left bottom; animation: timer-tail 4.8s ease-in-out infinite; }
.timer-solo-orb { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,246,210,.65), rgba(255,246,210,.12) 60%, transparent 72%); animation: breathe-quiet 6s ease-in-out infinite; }
.timer-stage #timer-note { position: relative; z-index: 1; max-width: 280px; margin: 8px 0 0; text-align: center; font-size: 11.5px; line-height: 1.6; text-shadow: 0 2px 12px rgba(17,28,23,.3); }
.timer-buddy-line { position: relative; z-index: 1; margin: 6px 0 0; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.5; text-align: center; }
@keyframes clock-dot { 0%,100% { opacity:.55; } 50% { opacity:1; } }

@media (max-height: 760px) {
  .timer-screen { padding: 18px 19px 16px; }
  .timer-close { top: 18px; right: 19px; width: 34px; height: 34px; }
  .timer-poem-compact { margin-right: 42px; margin-bottom: 2px; }
  .timer-poem-compact blockquote { font-size: 12px; line-height: 1.45; }
  .timer-poem-compact cite { display: none; }
  .timer-clock { padding: 6px 10px 7px; }
  .timer-clock-copy strong { font-size: 21px; }
  .timer-clock-duration { font-size: 8px; }
  .timer-ele-hero { width: 154px; }
  .timer-stage #timer-note { margin-top: 5px; font-size: 10.5px; }
  .timer-buddy-line { margin-top: 3px; font-size: 9px; }
  .timer-action-copy { padding: 9px 11px; margin-bottom: 7px; }
  .timer-action-copy small { font-size: 9px; }
  .timer-action-copy strong { font-size: 11.5px; }
  .timer-sound-open { min-height: 38px; margin-bottom: 7px; }
  .timer-finish { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .timer-ele-hero .ele-svg,
  .timer-ele-hero .ele-ear,
  .timer-ele-hero .ele-tail,
  .timer-clock-dot,
  .timer-solo-orb { animation: none; }
}

/* 计时页：卡通房间背景 */
.timer-backdrop.timer-cartoon { background: #2b443d; background-image: none; }
.timer-cartoon .timer-screen { background: linear-gradient(180deg, rgba(14,29,24,.3), rgba(14,29,24,.04) 42%, rgba(14,29,24,.48)); }
.timer-cartoon .timer-room-art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.timer-cartoon .timer-screen > * { position: relative; z-index: 1; }
.timer-cartoon .timer-room-art { z-index: 0; }
.timer-cartoon .timer-screen::before { opacity: .8; }
.timer-cartoon .timer-screen::after { opacity: .7; }
.timer-cartoon .timer-lamp-art { animation: timer-lamp-breathe 7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.timer-ele-hero { animation: timer-ele-wander 10s ease-in-out infinite; }
.timer-ele-hero .ele-eye, .timer-ele-hero .ele-eye-shine { transform-box: fill-box; transform-origin: center; animation: timer-ele-blink 7.5s ease-in-out infinite; }
@keyframes timer-ele-wander {
  0%, 100% { transform: translateX(-5px) rotate(-1deg); }
  45% { transform: translateX(7px) rotate(1.2deg); }
  70% { transform: translateX(2px) rotate(.2deg); }
}
@keyframes timer-ele-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.055); }
}
@keyframes timer-ear {
  0%, 82%, 100% { transform: rotate(0); }
  88% { transform: rotate(6deg); }
  94% { transform: rotate(-4deg); }
}
@keyframes timer-tail {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(12deg); }
}
@keyframes timer-ele-blink {
  0%, 89%, 100% { transform: scaleY(1); }
  92%, 94% { transform: scaleY(.08); }
}
@keyframes timer-lamp-breathe {
  from { opacity: .7; }
  to { opacity: 1; }
}
@media (max-height: 760px) {
  .timer-ele-hero { animation-duration: 11s; }
}
@media (prefers-reduced-motion: reduce) {
  .timer-ele-hero,
  .timer-ele-hero .ele-eye,
  .timer-ele-hero .ele-eye-shine,
  .timer-cartoon .timer-lamp-art { animation: none; }
}

/* 房间图层固定在背景，不参与内容排版 */
.timer-cartoon .timer-screen > .timer-room-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* 关闭按钮固定在右上；小象动作再明显一点 */
.timer-cartoon .timer-screen > .timer-close {
  position: absolute;
  top: 26px;
  right: 24px;
  z-index: 6;
}
.timer-ele-hero { animation: timer-ele-wander 9s ease-in-out infinite; }
.timer-ele-hero .ele-leg {
  transform-box: fill-box;
  transform-origin: center top;
  animation: timer-leg 4.6s ease-in-out infinite;
}
@keyframes timer-ele-wander {
  0%, 100% { transform: translateX(-12px) rotate(-1.8deg); }
  48% { transform: translateX(14px) translateY(-2px) rotate(1.8deg); }
  72% { transform: translateX(3px) rotate(.3deg); }
}
@keyframes timer-ele-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.07); }
}
@keyframes timer-leg {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(2deg); }
}
@media (max-height: 760px) {
  .timer-cartoon .timer-screen > .timer-close { top: 18px; right: 19px; }
}

/* 计时页：浅暖色房间 */
.timer-backdrop.timer-cartoon { background: #f1dfc9; }
.timer-cartoon .timer-screen { background: linear-gradient(180deg, rgba(255,248,238,.1), rgba(255,248,238,.01) 44%, rgba(95,73,51,.12)); color: #31463c; }
.timer-cartoon .timer-poem { text-shadow: none; color: #31463c; }
.timer-cartoon .timer-poem cite { color: #6f7568; opacity: .9; }
.timer-cartoon .timer-close { border-color: rgba(62,78,66,.24); background: rgba(255,250,242,.62); color: #31463c; backdrop-filter: blur(12px); }
.timer-cartoon .timer-clock { border-color: rgba(91,73,52,.14); background: rgba(255,249,239,.76); color: #31463c; box-shadow: 0 10px 28px rgba(93,68,42,.1); }
.timer-cartoon .timer-clock-copy small { color: #7b7a6b; }
.timer-cartoon .timer-clock-duration { color: #747566; }
.timer-cartoon .timer-clock-progress { background: rgba(83,73,56,.14); }
.timer-cartoon .timer-clock-progress i { background: #c28e4e; }
.timer-cartoon .timer-stage #timer-note { color: #3f4b40; text-shadow: none; padding: 7px 13px; border-radius: 12px; background: rgba(255,249,239,.72); backdrop-filter: blur(8px); }
.timer-cartoon .timer-buddy-line { color: #6f7568; }
.timer-cartoon .timer-action-copy { border-color: rgba(91,73,52,.14); background: rgba(255,249,239,.8); color: #31463c; }
.timer-cartoon .timer-action-copy small { color: #7a7568; opacity: 1; }
.timer-cartoon .timer-sound-open { border-color: rgba(91,73,52,.14); background: rgba(255,249,239,.8); color: #31463c; }
.timer-cartoon .timer-sound-open em { color: #6e7566; }
.timer-cartoon .timer-finish { background: #31463c; color: #fff9ee; box-shadow: 0 9px 24px rgba(60,72,58,.18); }

.timer-cartoon .timer-sound-copy small { color: #7a7568; }
.timer-cartoon .timer-sound-icon { background: rgba(83,73,56,.1); }
.timer-cartoon .timer-buddy-line { color: #5f5d4e; }

.feeling-hint { margin: 8px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; text-align: center; }

.keepsake-light { display: inline-block; margin: 0 0 8px; padding: 4px 9px; border-radius: 99px; background: var(--sage-light); color: var(--sage-dark); font-size: 10px; }
.keepsake-next { margin: 9px 4px 0; padding: 8px 10px; border-radius: 11px; background: rgba(224,232,219,.5); color: var(--sage-dark); font-size: 10.5px; line-height: 1.55; text-align: center; }

/* 日记本：最近一条的快捷入口 */
.ele-book-latest { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(83,116,97,.18); border-radius: 13px; background: var(--sage-light); color: var(--sage-dark); text-align: left; cursor: pointer; }
.ele-book-latest span { font-size: 9.5px; opacity: .75; white-space: nowrap; }
.ele-book-latest strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ele-book-latest em { color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; }

/* 树洞历史：可再次打开回应 */
.treehole-history-item { cursor: pointer; }
.treehole-history-item:focus-visible { outline: 2px solid rgba(83,116,97,.4); outline-offset: 1px; }
.treehole-history-item button { cursor: pointer; }
.treehole-history-hint { margin: 7px 2px 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; text-align: center; }

/* ------------------------------------------------------------
   整体润色：纸张感、可读性、线性图标
   ------------------------------------------------------------ */
:root {
  --ink: #24352d;
  --muted: #627369;
  --paper: #fffaf3;
  --cream: #f4eadc;
  --cream-2: #e9dcc8;
  --line: rgba(36,53,45,.14);
  --sage-dark: #4d6b5a;
}

.screen {
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(83,116,97,.035) 0.7px, transparent 0.9px),
    linear-gradient(180deg, rgba(255,252,246,.55), rgba(246,238,225,.15));
  background-size: 9px 9px, 100% 100%;
}
.modal {
  background-image:
    radial-gradient(rgba(83,116,97,.025) 0.7px, transparent 0.9px);
  background-size: 10px 10px;
}

/* 正文里的细小文字稍微放大，降低阅读负担 */
.ele-story-meta, .ele-mood { font-size: 12px; }
.ele-focus-copy .ele-event { font-size: 12.5px; }
.ele-candidate-copy em { font-size: 12px; }
.ele-task-copy small { font-size: 11.5px; }
.ele-plan-mood, .ele-care-link { font-size: 11.5px; }
.ele-book-summary, .treehole-lead { font-size: 12px; line-height: 1.7; }
.treehole-history-item p { font-size: 12px; }
.treehole-history-item span { font-size: 10px; }
.keepsake-note, .keepsake-next { font-size: 11.5px; }
.disclaimer { font-size: 12px; }
.goal-name span, .menu-row em { font-size: 13px; }

/* 主操作图标改成统一的细线图标 */
.line-icon {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.round-icon .line-icon { width: 19px; height: 19px; }
.bottom-nav .nav-item > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  font-size: 0;
  filter: none;
  opacity: .78;
}
.bottom-nav .nav-item > span .line-icon { width: 21px; height: 21px; }
.bottom-nav .nav-item.active > span { opacity: 1; color: var(--sage-dark); }
.bottom-nav .nav-item { font-size: 12px; }

/* 卡片统一成更暖的纸张色 */
.ele-focus-copy, .ele-mood-panel, .ele-story-card, .ele-task, .goal-card,
.menu-card, .profile-card, .keepsake-item, .ele-candidate {
  background-color: #fffdf8;
}
.ele-focus-copy, .ele-mood-panel, .ele-story-card, .goal-card, .menu-card, .profile-card {
  box-shadow: 0 10px 24px rgba(69,83,66,.045);
}

/* 首次选择小象：给空白页一点房间感 */
.onboarding-look-only .onboarding-ring::before {
  content: "";
  position: absolute;
  inset: 28px 12px 18px;
  z-index: 0;
  border: 1px dashed rgba(83,116,97,.25);
  border-radius: 42px;
  background: radial-gradient(ellipse at 50% 58%, rgba(255,250,241,.98), rgba(247,238,224,.78) 68%, transparent 75%);
}
.onboarding-look-only .onboarding-center { z-index: 2; }
.onboarding-look-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* 小屏适配 */
@media (max-width: 380px) {
  .screen-scroll { padding-left: 18px; padding-right: 18px; }
  .topbar { margin-bottom: 20px; }
  .topbar h2 { font-size: 23px; line-height: 1.3; }
  .ele-top-actions { gap: 4px; }
  .ele-top-actions .round-icon { width: 34px; height: 34px; }
  .ele-focus-hero { grid-template-columns: minmax(0,1fr) 104px; gap: 7px; }
  .ele-focus-room { width: 104px; height: 112px; }
  .ele-focus-copy { padding: 9px 10px; }
  .ele-focus-copy h2 { font-size: 17px; }
  .ele-focus-copy .ele-story-meta { font-size: 10.5px; row-gap: 3px; flex-wrap: wrap; }
  .ele-focus-copy .ele-story-meta > span:first-child { white-space: nowrap; }
  .ele-focus-copy .ele-mood { padding: 4px 7px; font-size: 10px; }
  .ele-focus-copy .ele-event { font-size: 11.5px; }
  .ele-day-screen .ele-section-head h3 { font-size: 16px; }
  .ele-care-row { gap: 5px; }
  .ele-care-link { padding-left: 4px; padding-right: 4px; font-size: 10.5px; }
  .bottom-nav { padding-left: 18px; padding-right: 18px; }
}

/* 菜单和小头像也使用同一套线性图标 */
.menu-row .menu-icon .line-icon { width: 18px; height: 18px; }
.avatar .line-icon { width: 29px; height: 29px; color: var(--sage-dark); }
.ele-top-actions .round-icon .line-icon { width: 18px; height: 18px; }

/* 我的页：微光纪念横向滑动，减少纵向长度 */
.keepsake-shelf {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.keepsake-shelf::-webkit-scrollbar { display: none; }
.keepsake-shelf .keepsake-item {
  flex: 0 0 164px;
  min-height: 78px;
  scroll-snap-align: start;
}

/* 小细节：避免罐子说明在窄屏折行 */
.micro-jar-wrap small { font-size: 11px; }
/* 首次页只保留纸卡边框，避免双重虚线 */
.onboarding-look-only .ring-orbit { display: none; }

/* 明确使用浅色配色，避免系统深色模式影响表单 */
:root { color-scheme: light; }

/* 手机底部安全区 */
.bottom-nav { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav { height: calc(80px + env(safe-area-inset-bottom, 0px)); }
.screen-scroll { padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px)); }

/* 任务类型也使用同一套小线稿 */
.task-line-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: var(--sage-dark);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ele-task-icon .task-line-icon, .ele-candidate .ele-task-icon .task-line-icon { width: 19px; height: 19px; }
.ele-diary-tasks .task-line-icon { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 2px; }

.ele-day-footer-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

/* 读诗听音：纸张遮罩与线性音轨图标 */
.night-screen { position: relative; }
.night-screen > * { position: relative; z-index: 1; }
.night-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,246,220,.08) 0.7px, transparent 0.9px),
    linear-gradient(180deg, rgba(255,244,218,.05), rgba(24,38,32,.08));
  background-size: 9px 9px, 100% 100%;
  mix-blend-mode: soft-light;
  opacity: .55;
}
.night-screen::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(248,238,213,.18);
  border-radius: 26px;
}
.night-backdrop { filter: saturate(.82) sepia(.06); }
.night-tracks .line-icon, .night-now .line-icon { width: 20px; height: 20px; color: #f5e7cf; }
.night-tracks span { display: grid; place-items: center; }
.night-now > span .line-icon { width: 24px; height: 24px; }
.album-add .line-icon { width: 18px; height: 18px; }
.album-empty .line-icon { width: 34px; height: 34px; }

/* 先静 30 秒：选项页与播放页统一成纸卡 + 线稿 */
.quiet-options button.quiet-option {
  position: relative;
  min-height: 142px;
  padding: 0 8px 13px;
  border: 1px solid rgba(83,116,97,.16);
  border-radius: 20px;
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 9px 22px rgba(60,74,59,.05);
}
.quiet-option-art {
  height: 70px;
  margin: 0 -8px 9px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(83,116,97,.1);
  color: #4d6b5a;
}
.quiet-option-art .line-icon { width: 29px; height: 29px; stroke-width: 1.55; }
.quiet-art-rain { background: linear-gradient(160deg, #dbe8e2, #b8d1ca); color: #4d6b63; }
.quiet-art-bowl { background: linear-gradient(160deg, #efe0c8, #d5b997); color: #795e43; }
.quiet-art-breath { background: linear-gradient(160deg, #f6ead2, #d8e2cf); color: #5d7563; }
.quiet-option strong { font-size: 12.5px; margin-bottom: 5px; }
.quiet-option small { font-size: 10.5px; line-height: 1.45; }

/* 播放页的纸框和轻纹理 */
.quiet-session-screen { position: relative; }
.quiet-session-screen::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 25px;
}
.quiet-session-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background-image: radial-gradient(rgba(255,248,226,.1) 0.7px, transparent 0.9px);
  background-size: 9px 9px;
  mix-blend-mode: soft-light;
}
.quiet-session-screen > * { position: relative; z-index: 1; }
.quiet-symbol .line-icon { width: 34px; height: 34px; color: rgba(255,255,255,.88); stroke-width: 1.5; }
.quiet-breath .quiet-symbol .line-icon { color: var(--sage-dark); }

/* 先静 30 秒的选项页：作为一页纸展开，而不是被底部裁掉 */
.companion-backdrop { align-items: stretch; }
.companion-backdrop .companion-modal {
  height: 100%;
  max-height: 100%;
  padding: 40px 24px calc(26px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.companion-modal .modal-heading { margin-bottom: 18px; }
.companion-modal > p { margin-bottom: 18px; }
.companion-modal .quiet-options { margin-top: 4px; }

/* 30 秒播放页：三种场景各自有一块小插画，但结构一致 */
.quiet-illustration {
  width: 184px;
  height: 184px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 48px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 18px 38px rgba(20,33,27,.12);
}
.quiet-illustration .quiet-art-svg { width: 132px; height: 132px; }
.quiet-illustration-rain { background: linear-gradient(160deg, #dcebe7, #a9c8c3); }
.quiet-illustration-bowl { background: linear-gradient(160deg, #f0dfc4, #c7a37a); }
.quiet-illustration-breath { background: linear-gradient(160deg, #f6ead2, #d6e2cd); animation: quiet-art-breathe 6s ease-in-out infinite; }
@keyframes quiet-art-breathe { 0%,100% { transform:scale(.985); } 50% { transform:scale(1.025); } }
@media (max-height: 700px) {
  .quiet-illustration { width: 150px; height: 150px; margin-bottom: 13px; }
  .quiet-illustration .quiet-art-svg { width: 108px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiet-illustration-breath { animation: none; }
}
