:root {
  --ink: #1f2c2f;
  --ink-soft: #35484a;
  --muted: #748084;
  --quiet: #9aa09e;
  --line: rgba(50, 94, 76, 0.075);
  --paper: #fffdfa;
  --soft: #f6f1e6;
  --mint: #e4f3e6;
  --green: #2f6f5a;
  --green-soft: #568b75;
  --green-deep: #1f5c46;
  --coral: #dc806d;
  --sun: #f2be57;
  --blue: #e5f1f4;
  --rose: #f3d8cf;
  --sage: #edf3e6;
  --warm-panel: rgba(255, 252, 245, 0.9);
  --shadow: 0 18px 44px rgba(48, 72, 63, 0.075);
  --soft-shadow: 0 10px 24px rgba(48, 72, 63, 0.04);
  --card-radius: 18px;
  --section-gap: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 6%, rgba(247, 201, 111, 0.1), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(217, 235, 242, 0.36), transparent 30%),
    linear-gradient(145deg, #fffaf5 0%, #f8f5ee 46%, #f3faf5 100%);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.65;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid rgba(55, 111, 91, 0.42);
  outline-offset: 2px;
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid rgba(36, 48, 54, 0.05);
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.brand > div {
  min-width: 0;
  flex: 1;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, #5f927a, #d4876d);
  box-shadow: 0 8px 18px rgba(55, 111, 91, 0.12);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
}

.brand div span {
  margin-top: 3px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}

.nav-tabs {
  display: grid;
  gap: 6px;
}

.mobile-tabs {
  display: none;
}

.nav-tab {
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink-soft);
  text-align: left;
  position: relative;
  padding: 0 12px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.nav-tab:hover,
.nav-tab.is-active {
  border-color: transparent;
  background: #ffffff;
}

.daily-card {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(55, 111, 91, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

blockquote {
  margin: 0 0 16px;
  color: #38454a;
  line-height: 1.65;
}

.ghost-button,
.primary-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
  border-color: transparent;
  color: #fff;
  font-weight: 850;
  background: var(--green-soft);
  box-shadow: 0 10px 22px rgba(47, 111, 90, 0.12);
}

.ghost-button:hover {
  border-color: var(--green);
}

.main-panel {
  padding: 22px clamp(18px, 4vw, 48px) 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(55, 111, 91, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-icon-button span,
.profile-icon-button::before {
  border: 2px solid var(--green);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(55, 111, 91, 0.42);
  box-shadow: 0 0 0 3px rgba(55, 111, 91, 0.08);
}

.profile-icon-button span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateY(-5px);
}

.profile-icon-button::before {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 17px;
  height: 9px;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom: 0;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #203331;
  box-shadow: 0 18px 52px rgba(38, 63, 58, 0.14);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 34, 31, 0.7), rgba(17, 34, 31, 0.24) 55%, rgba(17, 34, 31, 0.04)),
    linear-gradient(0deg, rgba(12, 24, 23, 0.44), transparent 58%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 390px;
  max-width: 620px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4.5vw, 56px);
  color: #fff;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: #ffe9ae;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 680px;
  text-wrap: balance;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.hero-quote-button {
  width: max-content;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.home-entry-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 12px;
  margin: 14px 0 var(--section-gap);
}

.home-entry-card {
  position: relative;
  display: grid;
  min-height: 90px;
  align-content: center;
  justify-items: start;
  gap: 4px;
  overflow: hidden;
  border: 0;
  border-radius: var(--card-radius);
  padding: 14px 15px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-entry-card::before {
  content: "";
  position: absolute;
  right: -38px;
  top: -48px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.home-entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 46%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.26));
  pointer-events: none;
}

.home-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(55, 80, 70, 0.12);
}

.home-entry-card > * {
  position: relative;
  z-index: 1;
}

.home-entry-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: var(--green-soft);
  box-shadow: 0 10px 20px rgba(55, 111, 91, 0.1);
}

.home-entry-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.home-entry-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-entry-card.is-letter {
  background:
    linear-gradient(135deg, rgba(247, 201, 111, 0.24), rgba(255, 253, 248, 0.88)),
    #fff;
}

.home-entry-card.is-tree {
  background:
    linear-gradient(135deg, rgba(217, 235, 242, 0.72), rgba(255, 253, 248, 0.9)),
    #fff;
}

.home-entry-card.is-safe {
  background:
    linear-gradient(135deg, rgba(217, 240, 223, 0.78), rgba(255, 253, 248, 0.9)),
    #fff;
}

.home-entry-card.is-letter .home-entry-icon {
  background: #c98b5a;
}

.home-entry-card.is-tree .home-entry-icon {
  background: #5a8797;
}

.home-feed-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 6px;
  border-radius: 0;
  background: transparent;
}

.home-section-head .eyebrow {
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 800;
}

.home-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0;
}

.home-section-head > span {
  flex: 0 0 auto;
  max-width: 44%;
  color: rgba(53, 72, 74, 0.62);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
  white-space: normal;
}

.home-compose-panel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  margin: 4px 0 20px;
  padding: 20px;
  border: 1px solid rgba(55, 111, 91, 0.06);
  border-radius: 30px;
  background:
    radial-gradient(circle at 96% 8%, rgba(247, 201, 111, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 240, 0.9));
  box-shadow: 0 18px 42px rgba(55, 80, 70, 0.07);
}

.home-compose-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  color: #a75f19;
  font-weight: 850;
  background: rgba(247, 201, 111, 0.22);
  box-shadow: inset 0 0 0 1px rgba(167, 95, 25, 0.08);
}

.home-compose-form {
  display: grid;
  gap: 10px;
}

.home-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-compose-head strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.home-compose-head span {
  color: rgba(53, 72, 74, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.home-compose-form input,
.home-compose-form textarea,
.home-compose-form select {
  width: 100%;
  border: 0;
  outline-color: var(--green);
  color: var(--ink);
  box-shadow: none;
  background: rgba(240, 238, 232, 0.68);
}

.home-compose-form input,
.home-compose-form select {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(53, 72, 74, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.home-compose-form textarea {
  min-height: 106px;
  border-radius: 24px;
  padding: 18px 20px;
  resize: vertical;
  line-height: 1.65;
  color: var(--ink-soft);
}

.home-compose-tools {
  display: grid;
  grid-template-columns: minmax(0, 150px) 1fr 132px;
  gap: 10px;
  align-items: center;
}

.home-compose-tools::before {
  content: "☺  □";
  color: rgba(83, 95, 95, 0.58);
  font-size: 18px;
  letter-spacing: 10px;
}

.home-compose-tools .primary-button {
  min-height: 42px;
  border-radius: 999px;
  background: #eba20b;
  color: #34240c;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(235, 162, 11, 0.16);
}

.feed-grid,
.treehole-list,
.safety-grid,
.plan-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feed-grid {
  align-items: start;
  grid-auto-flow: dense;
  gap: 18px;
  padding: 0 0 18px;
}

.content-card,
.blessing-card,
.treehole-card,
.urgent-help-card,
.safety-grid article,
.plan-card,
.member-console,
.membership-note,
.profile-card,
.profile-header {
  overflow: hidden;
  border: 1px solid rgba(55, 111, 91, 0.045);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.urgent-help-card {
  position: relative;
  margin-bottom: 16px;
  padding: 22px;
  border-color: transparent;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 14%, rgba(247, 201, 111, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(217, 240, 223, 0.74), rgba(255, 253, 248, 0.92)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.urgent-help-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.32;
}

.urgent-help-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.urgent-help-card p:last-child {
  margin-bottom: 0;
}

.urgent-help-card::after {
  content: "安心";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.66);
}

.content-card {
  position: relative;
  align-self: start;
  border-color: transparent;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 248, 0.96));
  box-shadow: 0 12px 30px rgba(55, 80, 70, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-card.is-blessing-feed {
  border-radius: 32px;
  padding-top: 4px;
  background:
    radial-gradient(circle at 94% 10%, rgba(247, 201, 111, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 251, 241, 0.98));
  box-shadow: 0 13px 30px rgba(150, 109, 45, 0.06);
}

.content-card.is-blessing-feed::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 34px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  border: 1px solid rgba(170, 112, 42, 0.16);
  border-top: 0;
  background:
    linear-gradient(145deg, transparent 48%, rgba(247, 201, 111, 0.3) 49% 51%, transparent 52%),
    rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.content-card.is-blessing-feed::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 96px;
  pointer-events: none;
}

.content-card.is-treehole-feed {
  background:
    radial-gradient(circle at 92% 8%, rgba(217, 235, 242, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 250, 0.98));
}

.content-card.is-content-feed:nth-child(7n) {
  background:
    radial-gradient(circle at 96% 78%, rgba(125, 190, 151, 0.2), transparent 26%),
    linear-gradient(145deg, #0e6045, #14513e);
  color: #fff;
}

.content-card.is-content-feed:nth-child(7n) .card-body p,
.content-card.is-content-feed:nth-child(7n) .card-title-row .eyebrow,
.content-card.is-content-feed:nth-child(7n) .content-meta span {
  color: rgba(255, 255, 255, 0.84);
}

.content-card.is-content-feed:nth-child(7n) .thumb span,
.content-card.is-content-feed:nth-child(7n) .source-pill,
.content-card.is-content-feed:nth-child(7n) .feed-type-pill,
.content-card.is-content-feed:nth-child(7n) .content-meta {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.content-card.is-content-feed:nth-child(7n) .content-meta strong {
  color: #95f1bc;
}

.content-card.is-blessing-feed .thumb span {
  color: #8a5b33;
  background: rgba(247, 201, 111, 0.28);
}

.content-card.is-blessing-feed .thumb,
.content-card.is-blessing-feed .feed-type-pill,
.content-card.is-blessing-feed .card-title-row .share-button {
  display: none;
}

.content-card.is-blessing-feed .card-title-row {
  margin-bottom: 10px;
}

.content-card.is-treehole-feed .thumb span {
  color: #4f7582;
  background: rgba(217, 235, 242, 0.62);
}

.content-card.is-blessing-feed .source-pill {
  color: #8a5b33;
  background: rgba(247, 201, 111, 0.22);
}

.content-card.is-blessing-feed .feed-type-pill {
  color: #8a5b33;
  background: rgba(247, 201, 111, 0.22);
}

.content-card.is-blessing-feed .card-body p {
  position: relative;
  padding: 0;
  color: rgba(63, 54, 44, 0.86);
  font-size: 15px;
  line-height: 1.82;
}

.content-card.is-blessing-feed .card-body p::before {
  display: none;
}

.blessing-letter-body {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 239, 0.7));
}

.blessing-letter-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(170, 112, 42, 0.08);
  pointer-events: none;
}

.blessing-letter-body .letter-line {
  color: rgba(138, 91, 51, 0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.content-card.is-blessing-feed .content-meta {
  background: rgba(255, 245, 220, 0.72);
}

.blessing-feed-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
  color: rgba(138, 91, 51, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.content-card.is-treehole-feed .source-pill {
  color: #4f7582;
  background: rgba(217, 235, 242, 0.5);
}

.content-card:active,
.home-entry-card:active,
.letter-card:active,
.treehole-card:active,
.profile-card:active,
.safety-grid article:active {
  transform: translateY(1px) scale(0.995);
}

.content-card.has-reader {
  cursor: pointer;
}

.content-card.has-reader:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(55, 80, 70, 0.12);
}

.thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 0;
  padding: 18px 20px 0;
  color: var(--green);
  font-weight: 800;
  background: transparent;
  overflow: hidden;
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.thumb::before {
  display: none;
}

.thumb::after {
  display: none;
}

.thumb span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  min-width: 42px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--green);
  font-size: 12px;
  line-height: 1;
  background: rgba(217, 240, 223, 0.66);
  box-shadow: none;
}

.thumb small {
  position: relative;
  z-index: 1;
  display: none;
}

.media-thumb {
  position: relative;
  min-height: 168px;
  padding: 0;
  overflow: hidden;
  background: var(--soft);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.media-thumb small {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.thumb.funny {
  background: transparent;
}

.thumb.gentle {
  background: transparent;
}

.thumb.nature {
  background: transparent;
}

.thumb.story {
  background: transparent;
}

.card-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 14px 26px 24px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.feed-author-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.card-title-row .eyebrow {
  margin: 0;
  color: rgba(53, 72, 74, 0.7);
  font-size: 12px;
  font-weight: 850;
}

.feed-type-pill {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
  background: rgba(217, 240, 223, 0.48);
}

.source-pill {
  flex: 0 0 auto;
  min-height: 26px;
  border: 0;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 900;
  background: rgba(217, 240, 223, 0.42);
}

.share-button {
  cursor: pointer;
}

.share-button:hover {
  background: rgba(217, 240, 223, 0.72);
}

.card-body h3,
.safety-grid h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.34;
}

.card-body p,
.safety-grid p,
.treehole-card p,
.blessing-card p {
  margin: 0;
  color: rgba(53, 72, 74, 0.82);
  font-size: 15px;
  line-height: 1.78;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 13px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(246, 241, 226, 0.42);
}

.feed-sentinel {
  margin: 0 18px 18px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.content-meta strong {
  color: var(--green-deep);
  font-weight: 900;
  white-space: nowrap;
}

.content-meta span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.card-actions > span {
  overflow-wrap: anywhere;
}

.reaction-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.small-button,
.icon-button {
  min-height: 32px;
  border: 1px solid rgba(55, 111, 91, 0.1);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--paper);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.icon-button {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0;
  color: var(--green);
  font-size: 17px;
  line-height: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-button span {
  display: inline-grid;
  min-width: 1.2em;
  place-items: center;
}

.icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg path {
  fill: none;
}

.icon-button:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.small-button.is-active,
.icon-button.is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--green-soft);
}

.reaction-bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.reaction-bloom span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  background: rgba(55, 111, 91, 0.9);
  box-shadow: 0 0 0 0 rgba(247, 201, 111, 0.46);
  animation: bloom-core 1.35s ease-out forwards;
}

.reaction-bloom svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reaction-bloom i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0;
  animation: bloom-petal 1.35s ease-out forwards;
}

.reaction-bloom i:nth-child(2) {
  --x: -72px;
  --y: -36px;
  background: var(--coral);
}

.reaction-bloom i:nth-child(3) {
  --x: 68px;
  --y: -42px;
  background: var(--mint);
}

.reaction-bloom i:nth-child(4) {
  --x: -58px;
  --y: 52px;
  background: var(--blue);
}

.reaction-bloom i:nth-child(5) {
  --x: 72px;
  --y: 46px;
  background: var(--sun);
}

.reaction-bloom i:nth-child(6) {
  --x: 0;
  --y: -82px;
  background: #fff7ec;
}

.reaction-bloom i:nth-child(7) {
  --x: 0;
  --y: 82px;
  background: var(--coral);
}

@keyframes bloom-core {
  0% {
    opacity: 0;
    transform: scale(0.42);
    box-shadow: 0 0 0 0 rgba(247, 201, 111, 0.46);
  }
  45% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 22px rgba(247, 201, 111, 0.18);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
    box-shadow: 0 0 0 42px rgba(247, 201, 111, 0);
  }
}

@keyframes bloom-petal {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.section-heading {
  margin: 18px 0 16px;
  padding: 18px 20px 19px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 0%, rgba(247, 201, 111, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 253, 248, 0.52));
  box-shadow: 0 12px 28px rgba(55, 80, 70, 0.035);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.28;
}

.membership-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 168px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-option {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
}

.billing-option.is-active {
  color: #fff;
  background: var(--green-soft);
}

.membership-note {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px 18px;
  background: #fff;
}

.membership-note strong {
  color: var(--green);
}

.membership-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.plan-card {
  position: relative;
  padding: 22px;
}

.plan-card.is-featured {
  border-color: rgba(231, 120, 98, 0.42);
  background: linear-gradient(180deg, #fff, #fff6ef);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  background: var(--mint);
}

.plan-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.plan-price strong {
  font-size: 32px;
}

.plan-price span {
  color: var(--muted);
}

.plan-card p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  min-height: 172px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  color: #3d4b50;
  line-height: 1.45;
}

.plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 800;
}

.plan-card button {
  width: 100%;
}

.member-console {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  background: #fff;
}

.member-console h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.member-console p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px;
  border-color: transparent;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 12%, rgba(247, 201, 111, 0.25), transparent 28%),
    linear-gradient(135deg, rgba(217, 240, 223, 0.68), rgba(255, 253, 248, 0.92)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.avatar {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(145deg, #5d8b77, #df8a76);
  box-shadow: 0 12px 26px rgba(55, 111, 91, 0.12);
}

.profile-header h3,
.profile-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.28;
}

.profile-header p:last-child,
.profile-card p {
  margin: 0;
  color: rgba(53, 72, 74, 0.68);
  font-size: 14px;
  line-height: 1.68;
}

.profile-card {
  position: relative;
  min-height: 218px;
  padding: 20px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(232, 240, 223, 0.62));
  box-shadow: var(--soft-shadow);
}

.profile-card:nth-child(2n) {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(217, 235, 242, 0.66));
}

.profile-card:nth-child(3n) {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(247, 201, 111, 0.22));
}

.profile-card-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: var(--green-soft);
  box-shadow: 0 10px 20px rgba(55, 111, 91, 0.09);
}

.profile-card button {
  margin-top: 16px;
}

.profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 120px;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(55, 80, 70, 0.05);
}

.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(53, 72, 74, 0.68);
  font-size: 13px;
  line-height: 1.6;
  background: rgba(239, 248, 239, 0.78);
}

.profile-form input {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 11px 12px;
  outline-color: var(--green);
  background: var(--paper);
}

.blessing-card {
  min-height: 198px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.blessing-board {
  display: block;
  margin-bottom: 14px;
}

.blessing-card:nth-child(2n) {
  background: var(--mint);
}

.blessing-card:nth-child(3n) {
  background: var(--blue);
}

.blessing-inbox {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 20px;
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(247, 201, 111, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(217, 240, 223, 0.58), rgba(255, 253, 248, 0.86)),
    #fff;
  box-shadow: 0 14px 34px rgba(55, 80, 70, 0.055);
}

.blessing-inbox div {
  display: grid;
  gap: 4px;
}

.blessing-inbox span,
.blessing-inbox p,
.blessing-card small,
.blessing-card-foot {
  color: rgba(53, 72, 74, 0.66);
}

.blessing-inbox strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.blessing-delivery {
  justify-self: end;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.blessing-inbox p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.blessing-send-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 13px;
  margin-bottom: 16px;
  padding: 20px;
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 94% 18%, rgba(217, 235, 242, 0.5), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(217, 240, 223, 0.5)),
    #fff;
  box-shadow: 0 14px 34px rgba(55, 80, 70, 0.055);
}

.blessing-send-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.blessing-send-copy p:last-child {
  margin: 0;
  color: rgba(53, 72, 74, 0.68);
  font-size: 14px;
  line-height: 1.68;
}

.blessing-send-form {
  display: grid;
  gap: 10px;
}

.blessing-send-form textarea {
  width: 100%;
  min-height: 112px;
  border: 0;
  border-radius: 24px;
  padding: 16px 18px;
  outline-color: var(--green);
  background: rgba(240, 238, 232, 0.62);
  resize: vertical;
}

.blessing-send-form .primary-button {
  justify-self: end;
  min-width: 116px;
}

.sent-blessing-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.sent-blessing-item {
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.sent-blessing-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.sent-blessing-item span {
  color: var(--quiet);
  font-size: 12px;
}

.letter-tray {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.letter-card {
  position: relative;
  min-height: 132px;
  padding: 68px 14px 14px;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), transparent 42%),
    #f6f0df;
  box-shadow: 0 10px 24px rgba(36, 48, 54, 0.055);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 6px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.letter-card:hover,
.letter-card.is-open {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(55, 111, 91, 0.11);
}

.letter-pocket,
.letter-flap {
  position: absolute;
  pointer-events: none;
}

.letter-pocket {
  inset: auto 0 0;
  height: 82px;
  background:
    linear-gradient(34deg, transparent 49%, rgba(55, 111, 91, 0.08) 50%, transparent 51%),
    linear-gradient(326deg, transparent 49%, rgba(255, 255, 255, 0.52) 50%, transparent 51%),
    linear-gradient(180deg, transparent 0 24px, rgba(225, 230, 211, 0.42) 25px);
  border-top: 0;
}

.letter-flap {
  inset: 0 0 auto;
  height: 66px;
  background:
    linear-gradient(145deg, transparent 49%, rgba(255, 255, 255, 0.56) 50%),
    linear-gradient(215deg, transparent 49%, rgba(55, 111, 91, 0.08) 50%),
    linear-gradient(180deg, rgba(235, 229, 211, 0.72), rgba(218, 227, 210, 0.36));
  border-bottom: 0;
  transform-origin: top center;
  transition: transform 0.48s ease, opacity 0.48s ease;
}

.letter-paper-preview {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 52px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 246, 0.95)),
    #fff;
  border: 0;
  transform: translateY(26px);
  opacity: 0.64;
  transition: transform 0.42s ease, opacity 0.42s ease;
  pointer-events: none;
}

.letter-heart {
  position: absolute;
  right: 18px;
  top: 63px;
  width: 18px;
  height: 18px;
  background: rgba(55, 111, 91, 0.72);
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(55, 111, 91, 0.12);
  pointer-events: none;
}

.letter-heart::before,
.letter-heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.letter-heart::before {
  left: -9px;
}

.letter-heart::after {
  top: -9px;
}

.letter-card.is-opening .letter-flap,
.letter-card.is-open .letter-flap {
  transform: rotateX(72deg) translateY(-6px);
  opacity: 0.65;
}

.letter-card.is-opening .letter-paper-preview,
.letter-card.is-open .letter-paper-preview {
  transform: translateY(-10px);
  opacity: 1;
}

.letter-card.is-opening {
  animation: letter-open-breathe 0.52s ease both;
}

.letter-number,
.letter-card small {
  color: var(--muted);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.letter-card strong {
  color: #244036;
  font-size: 15px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.42);
}

.letter-card.is-open small {
  color: var(--green);
  font-weight: 800;
}

.letter-card.is-read:not(.is-open) {
  opacity: 0.72;
}

.letter-card.is-read:not(.is-open) .letter-heart {
  opacity: 0.42;
}

.letter-card.is-read:not(.is-open) strong {
  color: var(--muted);
}

.blessing-card.is-letter-open {
  min-height: 220px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 18%, rgba(217, 240, 223, 0.6), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), transparent 52%),
    #fffaf4;
  animation: letter-paper-rise 0.28s ease both;
}

.letter-body {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

@keyframes letter-open-breathe {
  0% {
    transform: translateY(0) scale(1);
  }

  55% {
    transform: translateY(-5px) scale(1.015);
  }

  100% {
    transform: translateY(-3px) scale(1);
  }
}

@keyframes letter-paper-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blessing-card-head,
.blessing-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.blessing-card-head span {
  color: var(--green-deep);
  font-weight: 900;
}

.blessing-card-foot {
  color: var(--muted);
  font-size: 12px;
}

.blessing-card-foot span:first-child {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--green-deep);
  font-weight: 900;
}

.guest-auth-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.72);
}

.guest-auth-call strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.mood-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 118px;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 20px;
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(217, 235, 242, 0.5), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(217, 240, 223, 0.52)),
    #fff;
  box-shadow: 0 14px 34px rgba(55, 80, 70, 0.055);
}

.blessing-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.blessing-form label {
  display: grid;
  gap: 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.blessing-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline-color: var(--green);
  background: var(--paper);
}

.mood-form label {
  display: grid;
  gap: 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.mood-form select,
.mood-form textarea,
.composer-form input,
.composer-form select,
.composer-form textarea {
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 13px 15px;
  outline-color: var(--green);
  background: rgba(255, 255, 255, 0.76);
}

.mood-form textarea {
  min-height: 96px;
  resize: vertical;
}

.mood-form .primary-button {
  min-height: 46px;
  border-radius: 999px;
}

.composer-panel {
  margin-top: 18px;
}

.composer-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) 132px;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 12%, rgba(217, 235, 242, 0.72), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(217, 240, 223, 0.48)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.composer-form label {
  display: grid;
  gap: 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.composer-wide {
  grid-column: 1 / -2;
}

.composer-form textarea {
  min-height: 92px;
  resize: vertical;
}

.composer-form .primary-button {
  min-height: 46px;
  border-radius: 14px;
}

.my-posts,
.encourage-list,
.collection-list,
.admin-list,
.treehole-profile-list,
.safety-record-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.my-post-item,
.encourage-item,
.collection-item,
.admin-item,
.safety-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 240, 223, 0.42)),
    #fff;
  box-shadow: 0 8px 20px rgba(55, 80, 70, 0.04);
}

.my-post-item::before,
.encourage-item::before,
.collection-item::before,
.admin-item::before,
.safety-record-item::before {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(55, 111, 91, 0.88);
  box-shadow: 0 8px 18px rgba(55, 111, 91, 0.12);
}

.encourage-item::before {
  background: #c98b5a;
}

.collection-item::before {
  background: #5a8797;
}

.admin-item::before {
  background: var(--green-soft);
}

.my-post-item > div,
.encourage-item > div,
.collection-item > div,
.admin-item > div,
.safety-record-item > div {
  min-width: 0;
  flex: 1;
}

.my-post-item strong,
.encourage-item strong,
.collection-item strong,
.admin-item strong,
.safety-record-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.my-post-item span,
.encourage-item span,
.collection-item span,
.admin-item span,
.safety-record-item span {
  color: rgba(53, 72, 74, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.encourage-panel,
.collection-panel,
.admin-panel,
.treehole-profile-panel,
.safety-record-panel {
  margin-top: 18px;
}

.admin-item {
  align-items: flex-start;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.form-warning {
  grid-column: 1 / -1;
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(231, 120, 98, 0.34);
  border-radius: 8px;
  color: #8b3b2d;
  font-size: 13px;
  line-height: 1.55;
  background: #fff3ef;
}

.form-warning.is-visible {
  display: block;
}

@media (max-width: 640px) {
  .content-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.treehole-card {
  position: relative;
  min-height: 150px;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(232, 240, 223, 0.62));
  box-shadow: 0 14px 34px rgba(55, 80, 70, 0.055);
}

.treehole-card::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(55, 111, 91, 0.08);
  border-radius: 50%;
}

.treehole-card:nth-child(2n) {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(217, 235, 242, 0.66));
}

.treehole-card:nth-child(3n) {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(247, 201, 111, 0.24));
}

.treehole-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.treehole-card strong {
  color: var(--green);
}

.treehole-card-head span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.62);
}

.treehole-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.safety-grid article {
  position: relative;
  min-height: 168px;
  padding: 18px;
  border-radius: var(--card-radius);
  border-color: transparent;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(232, 240, 223, 0.64));
  box-shadow: var(--soft-shadow);
}

.safety-grid article:nth-child(2) {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(217, 235, 242, 0.66));
}

.safety-grid article:nth-child(3) {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(247, 201, 111, 0.22));
}

.safety-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: var(--green-soft);
  box-shadow: 0 10px 20px rgba(55, 111, 91, 0.09);
}

.content-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(820px, calc(100vh - 24px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 94% 8%, rgba(217, 235, 242, 0.65), transparent 30%),
    #fffdf8;
  overflow: hidden;
}

.content-dialog::backdrop {
  background: rgba(21, 31, 34, 0.48);
}

.content-dialog-inner {
  position: relative;
  display: flex;
  max-height: min(820px, calc(100vh - 24px));
  flex-direction: column;
  padding: 0;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(55, 80, 70, 0.08);
}

.dialog-scroll {
  overflow: auto;
  padding: 18px 18px 8px;
}

.dialog-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 138px;
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 18px;
  color: var(--green);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(135deg, rgba(55, 111, 91, 0.14), transparent 50%),
    rgba(246, 241, 226, 0.82);
  overflow: hidden;
}

.dialog-thumb.media-thumb {
  min-height: 260px;
  padding: 0;
}

.dialog-thumb.media-thumb img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.dialog-thumb span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  background: var(--green-soft);
}

.dialog-thumb small {
  color: var(--green);
  font-weight: 700;
}

.content-dialog h2 {
  margin: 0 0 16px;
  max-width: 620px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.28;
}

.content-dialog p#dialogBody {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.dialog-meta {
  margin: 20px 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  color: var(--green);
  font-weight: 700;
  background: rgba(232, 240, 223, 0.54);
}

.dialog-reactions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 12px 18px 16px;
  border-top: 0;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .nav-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .sidebar .daily-card {
    margin-top: 16px;
  }

  .feed-grid,
  .blessing-board,
  .treehole-list,
  .safety-grid,
  .plan-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-entry-card {
    min-height: 92px;
  }

  .mood-form {
    grid-template-columns: 1fr;
  }

  .blessing-form {
    grid-template-columns: 1fr;
  }

  .blessing-inbox {
    grid-template-columns: 1fr;
  }

  .blessing-send-panel {
    grid-template-columns: 1fr;
  }

  .letter-tray {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .composer-form {
    grid-template-columns: 1fr;
  }

  .composer-wide {
    grid-column: auto;
  }

  .membership-heading,
  .member-console,
  .profile-header {
    align-items: stretch;
    flex-direction: column;
  }

  .membership-note {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .content-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 96px);
    margin-top: auto;
    margin-bottom: calc(78px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 18px 18px;
  }

  .content-dialog-inner {
    max-height: calc(100vh - 96px);
  }

  .dialog-scroll {
    padding: 14px 14px 6px;
  }

  .dialog-thumb {
    min-height: 118px;
  }

  .content-dialog p#dialogBody {
    font-size: 16px;
    line-height: 1.8;
  }

  .dialog-reactions {
    padding: 10px 14px 14px;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .main-panel {
    padding: 4px 14px 28px;
  }

  .sidebar {
    position: static;
    top: auto;
    z-index: 1;
    padding: 6px 14px 4px;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .brand {
    min-height: 40px;
    margin-bottom: 0;
    padding: 0 2px;
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 15px;
    background: linear-gradient(145deg, rgba(95, 146, 122, 0.88), rgba(212, 135, 109, 0.78));
    box-shadow: 0 7px 14px rgba(55, 111, 91, 0.1);
  }

  .brand strong {
    font-size: 18px;
    line-height: 1.1;
  }

  .brand div span {
    margin-top: 1px;
    font-size: 11px;
  }

  .profile-icon-button {
    width: 32px;
    height: 32px;
    border-color: rgba(55, 111, 91, 0.08);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
  }

  .sidebar .nav-tabs {
    display: none;
  }

  .sidebar .daily-card {
    display: none;
  }

  .mobile-tabs {
    position: fixed;
    right: 14px;
    bottom: 10px;
    left: 14px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    max-width: 520px;
    margin: 0 auto;
    padding: 6px;
    border-top: 0;
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.82);
    backdrop-filter: blur(20px);
    box-shadow: 0 14px 34px rgba(55, 80, 70, 0.12);
  }

  .mobile-tabs .nav-tab {
    display: grid;
    min-height: 48px;
    align-content: center;
    gap: 2px;
    padding: 4px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }

  .mobile-tabs .nav-tab::before {
    content: "";
    display: block;
    color: var(--green);
    font-size: 16px;
    line-height: 1;
  }

  .mobile-tabs .nav-tab[data-view="home"]::before {
    content: "⌂";
  }

  .mobile-tabs .nav-tab[data-view="blessing"]::before {
    content: "♡";
  }

  .mobile-tabs .nav-tab[data-view="treehole"]::before {
    content: "✦";
  }

  .mobile-tabs .nav-tab[data-view="safe"]::before {
    content: "✓";
  }

  .mobile-tabs .nav-tab.is-active {
    border-color: transparent;
    color: var(--green);
    background: rgba(217, 240, 223, 0.7);
    box-shadow: none;
  }

  .mobile-tabs .nav-tab:focus-visible {
    outline: 2px solid rgba(55, 111, 91, 0.28);
    outline-offset: -2px;
  }

  .nav-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 316px;
    border-radius: 18px;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(16, 30, 28, 0.72), rgba(16, 30, 28, 0.12) 70%),
      linear-gradient(90deg, rgba(16, 30, 28, 0.28), transparent 60%);
  }

  .hero-copy {
    position: absolute;
    bottom: 0;
    padding: 16px 18px 17px;
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: 330px;
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-copy .eyebrow {
    min-height: 26px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero-quote-button {
    min-height: 36px;
    font-size: 13px;
  }

  .home-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 8px 0 14px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 8px 20px rgba(55, 80, 70, 0.035);
  }

  .home-entry-card {
    min-height: 58px;
    border-radius: 13px;
    padding: 8px 8px 7px;
    background: transparent;
    box-shadow: none;
    justify-items: center;
    text-align: center;
  }

  .home-entry-card::before,
  .home-entry-card::after {
    display: none;
  }

  .home-entry-card strong {
    font-size: 13px;
    font-weight: 900;
  }

  .home-entry-card small {
    display: none;
  }

  .home-entry-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: none;
  }

  .home-feed-section {
    padding: 0;
    border-radius: 0;
  }

  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 2px 2px 6px;
    border-radius: 0;
  }

  .home-section-head > span {
    max-width: 100%;
    font-size: 11px;
    text-align: left;
    white-space: normal;
  }

  .home-compose-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    border-radius: 28px;
  }

  .home-compose-avatar {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .home-compose-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .home-compose-form textarea {
    min-height: 116px;
    border-radius: 22px;
    padding: 16px;
  }

  .home-compose-tools {
    grid-template-columns: minmax(0, 1fr) 98px;
  }

  .home-compose-tools::before {
    display: none;
  }

  .mobile-tabs .nav-tab[data-view="home"]::before {
    content: "\2302";
  }

  .mobile-tabs .nav-tab[data-view="blessing"]::before {
    content: "\2661";
  }

  .mobile-tabs .nav-tab[data-view="treehole"]::before {
    content: "\2726";
  }

  .mobile-tabs .nav-tab[data-view="safe"]::before {
    content: "\2713";
  }

  .feed-grid {
    padding: 0 0 14px;
  }

  .feed-sentinel {
    margin: 0 14px 14px;
  }

  .feed-grid,
  .blessing-board,
  .treehole-list,
  .safety-grid,
  .plan-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .letter-tray {
    grid-template-columns: 1fr;
  }
}
