:root {
  --ink: #173b2c;
  --ink-soft: #315846;
  --forest: #123629;
  --leaf: #317153;
  --mint: #dcead7;
  --cream: #f5f1e7;
  --paper: #fffdf7;
  --line: #d9dfd2;
  --amber: #c77228;
  --rose: #ad4c3c;
  --shadow: 0 18px 50px rgba(29, 56, 43, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99;
  padding: 10px 16px;
  background: white;
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: #f7f3e8;
  background:
    radial-gradient(circle at 77% 45%, rgba(101, 151, 112, .22), transparent 21%),
    linear-gradient(145deg, #0d2c22, #1c4a36 70%, #245942);
}
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.brand { text-decoration: none; font-weight: 750; letter-spacing: .04em; }
.brand span { margin-right: 8px; color: #accb9f; font-size: 1.3em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: rgba(255, 255, 255, .76); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: white; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  align-items: center;
  min-height: 710px;
  padding-block: 62px 94px;
}
.kicker {
  margin-bottom: 20px;
  color: #b9d6ac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}
.kicker.dark { color: var(--leaf); }
.hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-family: ui-serif, "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(54px, 7vw, 92px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.hero-date { margin-bottom: 18px; color: rgba(255, 255, 255, .68); }
.daily-message {
  max-width: 650px;
  min-height: 58px;
  margin: 0 0 28px;
  padding-left: 18px;
  color: rgba(255, 255, 255, .8);
  border-left: 2px solid #a9c79d;
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ritual-actions { gap: 12px; }
.meditation-cta {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 15px;
  align-items: center;
  min-width: min(100%, 330px);
  min-height: 92px;
  padding: 15px 20px;
  color: var(--forest);
  text-align: left;
  background: #e1ecd9;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.meditation-cta:hover { background: #eef5e9; transform: translateY(-2px); }
.meditation-cta:active { transform: scale(.985); }
.meditation-cta-mark { display: grid; place-items: center; width: 52px; height: 52px; color: #deebd7; background: var(--forest); border-radius: 50%; font-size: 22px; }
.meditation-cta small, .meditation-cta strong { display: block; }
.meditation-cta small { margin-bottom: 1px; color: #698071; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.meditation-cta strong { font-family: ui-serif, "Songti SC", serif; font-size: 25px; font-weight: 650; }
.meditation-cta > span:last-child { font-size: 24px; }
.chanting-cta { background: #f0dfc3; }
.chanting-cta:hover { background: #f8ead4; }
.chanting-cta .meditation-cta-mark { color: #f7e9d4; background: #5f412d; font-family: ui-serif, "Songti SC", serif; }
.hero-secondary { color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 700; text-underline-offset: 5px; }
.sync-state { margin: 13px 0 0; color: rgba(255, 255, 255, .48); font-size: 11px; }
.primary-button {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: 15px 22px;
  color: var(--forest);
  background: #dce8d5;
  border-radius: 999px;
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.hero-summary {
  position: relative;
  display: grid;
  place-content: center;
  width: 280px;
  height: 280px;
  margin-left: auto;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
}
.hero-summary p { margin: 0 0 2px; color: rgba(255, 255, 255, .65); font-size: 14px; }
.hero-summary strong { font-family: ui-serif, Georgia, serif; font-size: 72px; font-weight: 400; line-height: 1; }
.hero-summary strong span { color: white; font-size: inherit; }
.hero-summary strong i { color: rgba(255, 255, 255, .35); font-size: .45em; font-style: normal; }
.hero-summary span { color: #b9d6ac; font-size: 14px; }
.summary-orbit { position: absolute; border: 1px solid rgba(185, 214, 172, .18); border-radius: 50%; }
.orbit-one { inset: -32px; }
.orbit-two { inset: -70px; }
.hero-leaf { position: absolute; border: 1px solid rgba(185, 214, 172, .19); border-radius: 100% 0 100% 0; transform: rotate(-24deg); }
.leaf-one { right: -110px; bottom: -220px; width: 430px; height: 600px; }
.leaf-two { right: 115px; bottom: -330px; width: 390px; height: 590px; }

.meditation-section {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(145, 181, 139, .24), transparent 27%),
    linear-gradient(180deg, #edf3e9, #f6f3e9);
}
.meditation-heading > p { color: #62756a; }
.meditation-connect-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid #cbd8c5;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
}
.connect-orb { display: grid; place-items: center; width: 72px; height: 72px; color: white; background: var(--leaf); border-radius: 50%; font-size: 30px; }
.meditation-connect-card h3 { margin-bottom: 4px; font-family: ui-serif, "Songti SC", serif; font-size: 27px; }
.meditation-connect-card p { margin: 0; color: #6b7b72; }
.meditation-connect-card :is(button, a) {
  min-height: 48px;
  padding: 11px 22px;
  color: var(--forest);
  background: #e4eee0;
  border: 1px solid #ccddc6;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
}
.meditation-connect-card a { text-decoration: none; }

.private-page-callout {
  padding: 22px;
  text-align: center;
  color: #53665b;
  background: rgba(255, 255, 255, .54);
  border: 1px solid rgba(37, 78, 57, .12);
  border-radius: 18px;
}
.private-page-callout p { margin: 0 0 14px; }
.private-page-callout a {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  align-items: center;
  color: var(--forest);
  background: #e4eee0;
  border: 1px solid #ccddc6;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}
.ritual-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ritual-card {
  position: relative;
  min-width: 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(42, 79, 58, .12);
  border-radius: 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 45px rgba(38, 75, 54, .07);
}
.chanting-ritual { background: linear-gradient(145deg, rgba(255, 253, 247, .92), rgba(244, 228, 201, .72)); }
.ritual-card-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.ritual-card-head h3 { margin-bottom: 4px; font-family: ui-serif, "Songti SC", serif; font-size: 36px; font-weight: 560; }
.ritual-card-head p:not(.eyebrow) { margin: 0; color: #718077; font-size: 13px; }
.ritual-card-head button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}
.activity-save-state {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 10px 0 0;
  padding: 7px 13px;
  color: #163e2c;
  background: #dce9d5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.activity-save-state[hidden], .modal-close[hidden] { display: none; }
.chanting-ritual .ritual-card-head button { background: #684832; }
.ritual-record-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 14px;
  color: #65756c;
  background: rgba(48, 83, 61, .06);
  border: 1px solid rgba(48, 83, 61, .08);
  border-radius: 14px;
  font-size: 13px;
}
.ritual-record-state strong { color: #4d6256; }
.ritual-record-state.is-recorded { color: #28533a; background: #e1eddb; border-color: #c9ddc2; }
.ritual-record-state.is-recorded strong { color: #173f2b; }
.chanting-ritual .ritual-record-state.is-recorded { color: #6b4932; background: #f1e3cf; border-color: #e4ceb0; }
.chanting-ritual .ritual-record-state.is-recorded strong { color: #5a3b28; }
.ritual-today { display: flex; align-items: baseline; gap: 7px; margin: 48px 0 24px; }
.ritual-today span { color: #718077; font-size: 13px; }
.ritual-today strong { font-family: ui-serif, Georgia, serif; font-size: clamp(68px, 8vw, 94px); font-weight: 420; line-height: .8; }
.ritual-today small { color: #718077; }
.ritual-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ritual-meta span { padding: 5px 10px; color: #5d6f65; background: rgba(62, 107, 77, .08); border-radius: 999px; font-size: 12px; }
.ritual-meta strong { color: var(--ink); }
.heatmap { display: grid; grid-template-columns: repeat(10, 24px); gap: 7px; }
.heatmap-cell { width: 24px; aspect-ratio: 1; padding: 0; background: #dce5d7; border: 0; border-radius: 7px; }
.heatmap-cell[data-level="1"] { background: #bfd5b7; }
.heatmap-cell[data-level="2"] { background: #8fb495; }
.heatmap-cell[data-level="3"] { background: #55866a; }
.heatmap-cell[data-level="4"] { background: #24583f; }
.heatmap-cell.is-today { outline: 2px solid var(--amber); outline-offset: 2px; }
.activity-history-board {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 30px;
  border: 1px solid rgba(42, 79, 58, .13);
  border-radius: 30px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 18px 45px rgba(38, 75, 54, .06);
}
.activity-history-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.activity-history-title h3 { margin: 2px 0 0; font-family: ui-serif, "Songti SC", serif; font-size: 34px; font-weight: 560; }
.activity-history-title > p { max-width: 420px; margin: 0; color: #66776e; font-size: 13px; }
.activity-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-history-card { min-width: 0; padding: 20px; background: #f4f7f1; border: 1px solid rgba(42, 79, 58, .1); border-radius: 22px; }
.activity-history-card.chanting-history { background: #faf3e8; border-color: rgba(104, 72, 50, .12); }
.activity-history-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.activity-history-card header > div { display: flex; align-items: center; gap: 10px; }
.activity-history-card h4 { margin: 0; font-family: ui-serif, "Songti SC", serif; font-size: 22px; font-weight: 600; }
.activity-history-card header > strong { color: #4b6254; font-size: 12px; text-align: right; }
.chanting-history header > strong { color: #6e513d; }
.history-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--forest); border-radius: 50%; font-size: 14px; }
.chanting-history .history-mark { background: #684832; }
.activity-history-card ol { margin: 0; padding: 0; list-style: none; }
.activity-history-card li:not(.history-empty) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(42, 79, 58, .1); }
.activity-history-card time { color: #596e61; font-size: 13px; }
.activity-history-card li strong { color: var(--ink); font-size: 15px; }
.activity-history-card li span { padding: 4px 8px; color: #2f6544; background: #deecd8; border-radius: 999px; font-size: 10px; font-weight: 800; }
.chanting-history li span { color: #6b4932; background: #efdfc9; }
.history-empty { padding: 24px 0 8px; color: #718077; font-size: 13px; }
.history-footnote { margin: 8px 0 0; color: #7a887f; font-size: 11px; }
.milestone-card { margin-top: 22px; padding: 16px; color: #5b4635; background: rgba(255, 255, 255, .52); border: 1px solid rgba(104, 72, 50, .12); border-radius: 18px; }
.milestone-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.milestone-card span { font-size: 12px; }
.milestone-card strong { font-family: ui-serif, "Songti SC", serif; font-size: 20px; }
.milestone-card progress { width: 100%; height: 8px; margin: 12px 0 7px; overflow: hidden; border: 0; border-radius: 999px; }
.milestone-card progress::-webkit-progress-bar { background: #e8dfd2; }
.milestone-card progress::-webkit-progress-value { background: #8b664b; border-radius: 999px; }
.milestone-card progress::-moz-progress-bar { background: #8b664b; border-radius: 999px; }
.milestone-card p { margin: 0; color: #7b6757; font-size: 12px; }

.meditation-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  overflow-y: auto;
  color: #f8f5eb;
  background:
    radial-gradient(circle at 75% 25%, rgba(135, 176, 136, .18), transparent 25%),
    linear-gradient(150deg, #081f18, #173f2f 70%, #245642);
}
.meditation-modal-inner { display: grid; place-items: center; width: min(980px, calc(100% - 40px)); min-height: 100%; margin: auto; padding: 70px 0; }
.modal-close { position: fixed; top: max(18px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; color: white; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.meditation-step { width: 100%; text-align: center; }
.modal-kicker { margin-bottom: 14px; color: #b8d3aa; font-size: 11px; font-weight: 850; letter-spacing: .22em; }
.meditation-step h2 { max-width: 780px; margin: 0 auto 18px; font-family: ui-serif, "Songti SC", serif; font-size: clamp(42px, 7vw, 76px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.modal-instruction { margin: 0 auto 28px; color: #c5d5c9; font-size: 15px; }
.duration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 800px; margin-inline: auto; }
.duration-grid button {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-height: 170px;
  color: #f8f5eb;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 28px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.duration-grid button:hover { background: rgba(204, 227, 191, .16); transform: translateY(-2px); }
.duration-grid button:active { transform: scale(.985); }
.duration-grid strong { font-family: ui-serif, Georgia, serif; font-size: clamp(66px, 9vw, 102px); font-weight: 400; line-height: 1; }
.duration-grid span { color: #b9cbbd; font-size: 16px; }
.duration-grid small { flex-basis: 100%; margin-top: -22px; color: #9eb6a5; font-size: 11px; letter-spacing: .08em; }
.custom-duration-toggle { margin-top: 24px; padding: 8px; color: rgba(255, 255, 255, .7); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.custom-duration { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; max-width: 700px; margin: 22px auto 0; padding: 20px; text-align: left; background: rgba(255, 255, 255, .07); border-radius: 20px; }
.custom-duration label { display: grid; gap: 6px; color: #b8cabd; font-size: 12px; font-weight: 750; }
.custom-duration input, .connect-form input { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--ink); background: white; border: 0; border-radius: 12px; outline: 0; }
.custom-duration button, .connect-form button, .success-actions button { min-height: 48px; padding: 10px 20px; color: var(--forest); background: #dce9d5; border: 0; border-radius: 999px; font-weight: 800; cursor: pointer; }
.chanting-form { display: grid; gap: 18px; width: min(520px, 100%); margin-inline: auto; text-align: left; }
.chanting-form label { display: grid; gap: 7px; color: #bfd0c4; font-size: 12px; font-weight: 760; }
.chanting-form input { min-height: 54px; padding: 10px 14px; color: var(--ink); background: white; border: 0; border-radius: 14px; }
.chanting-form button { min-height: 62px; color: #3d281a; background: #f0dfc3; border: 0; border-radius: 999px; font-size: 17px; font-weight: 820; cursor: pointer; }
.chanting-form .chanting-choice { display: grid; grid-template-columns: 1fr auto; gap: 3px 18px; align-items: center; min-height: 150px; padding: 24px 34px; border-radius: 28px; text-align: left; }
.chanting-choice strong { font-family: ui-serif, "Songti SC", serif; font-size: clamp(38px, 8vw, 62px); font-weight: 500; }
.chanting-choice span { font-size: clamp(22px, 5vw, 32px); }
.chanting-choice small { grid-column: 1 / -1; color: #80624d; font-size: 12px; letter-spacing: .12em; }
.modal-feedback { min-height: 24px; margin: 16px 0 0; color: #f2b89e; font-size: 13px; }
.fallback-receipt { display: inline-block; margin-top: 4px; color: #d9e9d2; font-size: 12px; text-underline-offset: 5px; }
.connect-step { max-width: 660px; }
.connect-step > p:not(.modal-kicker, .modal-feedback) { max-width: 520px; margin: -16px auto 28px; color: rgba(255, 255, 255, .64); }
.connect-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; max-width: 570px; margin-inline: auto; text-align: left; }
.connect-form label { grid-column: 1 / -1; color: #b8cabd; font-size: 12px; font-weight: 750; }
.saving-step, .success-step { max-width: 760px; }
.saving-orb { width: 90px; height: 90px; margin: 0 auto 30px; border: 2px solid rgba(255, 255, 255, .16); border-top-color: #c2dcb6; border-radius: 50%; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.saving-step h2 { margin-bottom: 14px; }
.saving-step > p:last-child { color: rgba(255, 255, 255, .6); }
.success-mark { display: grid; place-items: center; width: 86px; height: 86px; margin: 0 auto 26px; color: var(--forest); background: #dce9d5; border-radius: 50%; font-size: 40px; }
.success-step h2 { margin-bottom: 24px; }
.success-step blockquote { max-width: 680px; margin: 0 auto 18px; color: #dbe8d5; font-family: ui-serif, "Songti SC", serif; font-size: clamp(22px, 3vw, 30px); line-height: 1.7; }
.success-summary { color: rgba(255, 255, 255, .58); }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.success-actions .undo-button { color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .1); }

.section { padding-block: 96px; scroll-margin-top: 10px; }
.today-section { padding-block: 72px; background: var(--paper); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}
.section-heading h2 {
  margin-bottom: 0;
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.section-heading > p { max-width: 430px; margin-bottom: 5px; color: #718074; font-size: 14px; }
.task-board { display: grid; gap: 12px; }
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.completed-tasks {
  overflow: hidden;
  border: 1px solid #d4dfcf;
  border-radius: 14px;
  background: #f4f8f1;
}
.completed-tasks summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  color: #547061;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.completed-tasks summary::-webkit-details-marker { display: none; }
.completed-tasks summary::after {
  content: "⌄";
  margin-left: 8px;
  font-size: 16px;
  transition: transform .18s ease;
}
.completed-tasks[open] summary::after { transform: rotate(180deg); }
.completed-tasks summary span:last-child { margin-left: auto; }
.completed-task-grid { padding: 0 8px 8px; }
.task-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: background .18s ease, border-color .18s ease;
}
.task-card.overdue { border-color: #e6c8bd; background: #fffaf7; }
.task-card.today { border-color: #bed1b6; }
.task-card.no-icon { grid-template-columns: minmax(0, 1fr) auto; padding-left: 15px; }
.task-card.is-complete { border-color: #bdd1b6; background: #eef5e9; }
.task-card.is-complete .task-copy h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.task-card.is-complete .task-detail { opacity: .64; }
.task-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  background: var(--leaf);
  border-radius: 50%;
  font-size: 15px;
}
.overdue .task-icon { background: var(--rose); }
.task-copy { min-width: 0; }
.task-heading { display: flex; align-items: baseline; min-width: 0; gap: 8px; }
.task-action { flex: 0 0 auto; color: #718078; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.task-copy h3 { overflow: hidden; margin: 0; font-size: 17px; font-weight: 720; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.task-detail { overflow: hidden; margin: 3px 0 0; color: #627269; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { display: flex; align-items: center; justify-content: end; gap: 8px; }
.due-badge { padding: 3px 7px; color: var(--leaf); background: #edf4e9; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.overdue .due-badge { color: var(--rose); background: #f8e7e1; }
.task-check { position: relative; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--ink-soft); font-size: 11px; font-weight: 750; white-space: nowrap; }
.task-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--leaf); cursor: pointer; }
.task-check input:disabled { cursor: default; opacity: 1; }
.task-card.is-receipted .task-check { color: #668071; }
.supplement-only { min-height: 48px; background: #f8faf6; }
.supplement-only .task-copy h3 { font-size: 15px; }
.supplement-group { min-height: 62px; }
.supplement-group .task-detail { overflow: visible; white-space: normal; text-overflow: clip; }
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px;
  border: 1px dashed #bccab7;
  border-radius: var(--radius);
  background: #f4f8f1;
}
.empty-state > span { display: grid; place-items: center; width: 52px; height: 52px; color: white; background: var(--leaf); border-radius: 50%; }
.empty-state h3 { margin-bottom: 3px; }
.empty-state p { margin-bottom: 0; color: #718074; }
.upcoming {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-top: 56px;
  padding: 32px;
  color: #eef5e9;
  background: var(--forest);
  border-radius: var(--radius);
}
.upcoming-title h3 { margin: 0; font-family: ui-serif, "Songti SC", serif; font-size: 28px; }
.upcoming-title .eyebrow { color: #a9c79d; }
.upcoming-list { display: grid; }
.upcoming-row { display: grid; grid-template-columns: 85px 1fr; gap: 22px; padding: 17px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.upcoming-row:last-child { border-bottom: 0; }
.upcoming-row time { display: flex; flex-direction: column; color: #abc5a0; }
.upcoming-row time strong { color: white; font-size: 18px; }
.upcoming-row time span { color: rgba(255, 255, 255, .46); font-size: 11px; text-transform: uppercase; }
.upcoming-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.upcoming-row li { color: rgba(255, 255, 255, .82); }
.subtle { margin: 18px 0; color: rgba(255, 255, 255, .64); }

.receipt-card {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #cfdbca;
  border-radius: 18px;
  background: linear-gradient(145deg, #f0f6ec, #fffdf7 68%);
}
.receipt-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.receipt-intro > div { display: flex; align-items: baseline; gap: 12px; }
.receipt-intro .kicker { margin-bottom: 0; }
.receipt-intro h2 { margin: 0; font-family: ui-serif, "Songti SC", serif; font-size: 27px; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.receipt-intro > p:last-child { max-width: 560px; margin-bottom: 0; color: #65766c; font-size: 12px; }
.receipt-toolbar { display: grid; grid-template-columns: 1fr 150px; gap: 10px; align-items: end; margin-bottom: 10px; }
.receipt-toolbar label, .note-field { display: grid; gap: 7px; color: #596c61; font-size: 12px; font-weight: 750; }
.receipt-toolbar input, .note-field textarea {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid #c9d4c4;
  border-radius: 13px;
  outline: 0;
  font: inherit;
}
.receipt-toolbar input { min-height: 40px; padding: 8px 10px; }
.note-field textarea { min-height: 64px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.receipt-toolbar input:focus, .note-field textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(49, 113, 83, .12); }
.selection-summary { min-height: 40px; padding: 9px 12px; color: #53675b; background: #e6efe1; border-radius: 11px; font-size: 12px; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.submit-receipt, .clear-receipt { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.submit-receipt { display: inline-flex; align-items: center; gap: 14px; color: white; background: var(--forest); }
.submit-receipt:hover { background: #1c4d39; }
.submit-receipt:disabled { cursor: wait; opacity: .62; }
.clear-receipt { color: var(--ink-soft); background: #e7ece3; }
.receipt-help, .receipt-status { margin: 8px 0 0; color: #77857d; font-size: 10px; }
.receipt-status { min-height: 16px; color: var(--ink-soft); font-weight: 700; }

.collection-section { background: var(--cream); }
.item-section { background: #e8eee3; }
.collection-heading { align-items: center; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(360px, 100%);
  padding: 11px 16px;
  border: 1px solid #cdd5c7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
}
.search-field input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; font-size: 14px; }
.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.entity-card { overflow: hidden; border: 1px solid rgba(45, 81, 62, .12); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 30px rgba(41, 67, 53, .04); }
.entity-card[hidden] { display: none; }
.plant-card figure { position: relative; height: 235px; margin: 0; overflow: hidden; background: #d7e1d1; }
.plant-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.plant-photo { display: block; width: 100%; height: 100%; }
.plant-card:hover figure img { transform: scale(1.025); }
.plant-card figcaption { position: absolute; left: 16px; bottom: 14px; padding: 4px 9px; color: white; background: rgba(15, 42, 31, .72); border-radius: 999px; font-size: 11px; backdrop-filter: blur(6px); }
.plant-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(23, 59, 44, .35); font-family: ui-serif, Georgia, serif; font-size: 90px; background: radial-gradient(circle at 50% 75%, #b6cbae, #dce7d7 62%); }
.entity-body { padding: 22px; }
.entity-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.entity-heading h3 { margin-bottom: 10px; font-family: ui-serif, "Songti SC", serif; font-size: 26px; font-weight: 620; line-height: 1.15; }
.entity-heading .eyebrow { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status.healthy { color: #2e704e; background: #e4f0df; }
.status.watching { color: #9a5d21; background: #f7e9ce; }
.status.neutral { color: #69746e; background: #e8ece8; }
.location { display: flex; gap: 7px; margin-bottom: 18px; color: #718077; font-size: 13px; }
.due-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.due-pair > div, .item-next { padding: 12px; background: #f1f4ed; border-radius: 14px; }
.due-pair span, .item-next span { display: block; margin-bottom: 2px; color: #7c887f; font-size: 11px; }
.due-pair strong, .item-next strong { display: block; font-size: 13px; }
.due-pair strong.overdue, .item-next strong.overdue { color: var(--rose); }
.due-pair strong.today, .item-next strong.today { color: var(--leaf); }
.due-pair strong.soon, .item-next strong.soon { color: var(--ink); }
.due-pair strong.neutral, .item-next strong.neutral { color: #77817b; }
dl { display: grid; gap: 10px; margin: 0; }
dl > div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: start; font-size: 12px; }
dt { color: #8a948d; }
dd { margin: 0; color: #425a4e; }
.item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item-card { position: relative; min-height: 340px; padding-top: 72px; }
.item-mark { position: absolute; top: 22px; left: 22px; display: grid; place-items: center; width: 48px; height: 48px; color: #eef5e9; background: var(--ink); border-radius: 16px; font-size: 20px; }
.item-next { margin-bottom: 20px; padding: 14px; }
.filter-empty { padding: 50px; text-align: center; color: #718077; border: 1px dashed #bcc7b8; border-radius: var(--radius); }

footer { padding-block: 34px; color: rgba(255, 255, 255, .7); background: #0c2a20; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; gap: 8px; align-items: center; color: white; }

@media (max-width: 940px) {
  .hero { min-height: 760px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 650px; }
  .hero-summary { display: none; }
  .entity-grid, .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upcoming { grid-template-columns: 1fr; gap: 12px; }
  .ritual-dashboard { grid-template-columns: 1fr; }
  .activity-history-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: 0; }
  .nav-links { gap: 16px; }
  .nav-links a:nth-child(n+3) { display: none; }
  .hero-inner { align-items: start; min-height: 0; padding-block: 50px 76px; }
  .hero h1 { font-size: clamp(46px, 13vw, 58px); }
  .daily-message { min-height: 70px; }
  .meditation-cta { width: 100%; }
  .hero-secondary { width: 100%; padding-left: 4px; }
  .section { padding-block: 68px; }
  .today-section { padding-block: 44px; }
  .section-heading, .collection-heading { align-items: stretch; flex-direction: column; }
  .today-section .section-heading { gap: 8px; margin-bottom: 16px; }
  .today-section .section-heading h2 { font-size: 38px; }
  .today-section .section-heading > p { margin-bottom: 0; font-size: 12px; }
  .task-grid, .entity-grid, .item-grid { grid-template-columns: 1fr; }
  .task-grid { gap: 6px; }
  .task-board { gap: 8px; }
  .completed-tasks summary { min-height: 44px; padding: 8px 12px; }
  .completed-task-grid { padding: 0 6px 6px; }
  .task-card { grid-template-columns: 30px minmax(0, 1fr) auto; min-height: 58px; padding: 8px 10px; gap: 8px; }
  .task-card.no-icon { grid-template-columns: minmax(0, 1fr) auto; padding-left: 12px; }
  .task-icon { width: 28px; height: 28px; font-size: 13px; }
  .task-meta { flex-direction: column; align-items: end; gap: 3px; }
  .task-copy h3 { font-size: 16px; }
  .task-detail { font-size: 11px; }
  .supplement-only { min-height: 44px; }
  .supplement-group { min-height: 58px; }
  .due-badge { width: fit-content; }
  .upcoming { padding: 24px; }
  .receipt-card { margin-top: 12px; padding: 14px; }
  .receipt-intro { display: block; margin-bottom: 10px; }
  .receipt-intro > div { margin-bottom: 4px; }
  .receipt-intro h2 { font-size: 24px; }
  .receipt-intro > p:last-child { font-size: 11px; }
  .receipt-toolbar { grid-template-columns: minmax(0, 1fr) 126px; gap: 7px; }
  .receipt-toolbar label { gap: 4px; }
  .receipt-toolbar input { padding-inline: 7px; font-size: 11px; }
  .meditation-connect-card { grid-template-columns: 54px 1fr; padding: 22px; }
  .connect-orb { width: 54px; height: 54px; }
  .meditation-connect-card :is(button, a) { grid-column: 2; width: fit-content; }
  .ritual-card { padding: 22px; border-radius: 24px; }
  .ritual-card-head h3 { font-size: 32px; }
  .ritual-card-head { gap: 12px; }
  .ritual-card-head button { padding-inline: 13px; }
  .ritual-today { margin-top: 38px; }
  .activity-history-board { padding: 20px; border-radius: 24px; }
  .activity-history-title { align-items: start; flex-direction: column; gap: 8px; }
  .activity-history-title h3 { font-size: 30px; }
  .activity-history-card { padding: 16px; }
  .activity-history-card header { align-items: start; flex-direction: column; gap: 9px; }
  .activity-history-card header > strong { text-align: left; }
  .activity-history-card li:not(.history-empty) { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .activity-history-card li span { grid-column: 2; grid-row: 1; }
  .activity-history-card li strong { grid-column: 2; }
  .heatmap { grid-template-columns: repeat(10, minmax(18px, 1fr)); width: 100%; gap: 5px; }
  .heatmap-cell { width: 100%; border-radius: 5px; }
  .meditation-modal-inner { width: min(100% - 28px, 980px); padding: 82px 0 45px; }
  .meditation-step h2 { margin-bottom: 28px; font-size: 44px; }
  .duration-grid { gap: 10px; }
  .duration-grid button { min-height: 142px; border-radius: 22px; }
  .duration-grid strong { font-size: 64px; }
  .custom-duration { grid-template-columns: 1fr 1fr; }
  .custom-duration button { grid-column: 1 / -1; }
  .connect-form { grid-template-columns: 1fr; }
  .upcoming-row { grid-template-columns: 68px 1fr; }
  .plant-card figure { height: 260px; }
  .footer-inner { align-items: start; flex-direction: column; }
}

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