:root {
  --sage: #7a8f6a;
  --sage-deep: #5d7250;
  --sage-dark: #3f4f38;
  --sage-soft: #a8b89c;
  --sage-mist: #dfe6d8;
  --beige: #f3eee4;
  --beige-warm: #e8dfd0;
  --cream: #fffcf6;
  --sand: #d9ceb8;
  --gold: #c9a84c;
  --gold-soft: #e2c97a;
  --sun: #f0df9a;
  --ink: #2f3a2c;
  --ink-soft: #5a6754;
  --muted: #7d8776;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(63, 79, 56, 0.12);
  --shadow-soft: 0 10px 30px rgba(63, 79, 56, 0.08);
  --radius: 22px;
  --radius-pill: 999px;
  --font-serif: "Noto Serif KR", "Song Myung", serif;
  --font-sans: "Pretendard", "Noto Sans KR", sans-serif;
  --header-h: calc(4.5rem + env(safe-area-inset-top, 0px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  background-color: var(--cream);
  -webkit-user-select: none;
  user-select: none;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: visible;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sage-deep);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* Brand mark */
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.35rem;
  object-fit: contain;
}

.brand-logo--hero {
  height: clamp(4.6rem, 11vw, 7.8rem);
  max-width: min(100%, 32rem);
  filter: drop-shadow(0 2px 10px rgba(255, 252, 246, 0.55)) drop-shadow(0 1px 2px rgba(243, 238, 228, 0.8));
}

.brand-logo--light {
  height: 2.2rem;
}

.site-header .brand-logo {
  height: 2.45rem;
}

.site-footer .brand-logo {
  height: 2.2rem;
}

/* Buttons */
.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  max-height: 3rem;
  padding: 0 1.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--sage);
  color: var(--white);
  border: none;
  box-shadow: 0 10px 28px rgba(93, 114, 80, 0.28);
}

.btn--primary:hover {
  background: var(--sage-deep);
}

.btn--primary:disabled,
.btn--primary:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: rgba(255, 252, 246, 0.18);
  color: var(--cream);
  border: 1px solid rgba(255, 252, 246, 0.35);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    background: rgba(255, 252, 246, 0.28);
  }
}

.btn--ghost:focus:not(:focus-visible) {
  outline: none;
}

.btn--outline {
  background: transparent;
  color: var(--sage-dark);
  border: 1px solid rgba(93, 114, 80, 0.28);
}

.btn--outline:hover {
  background: rgba(122, 143, 106, 0.08);
}

.btn--sm {
  height: 2.5rem;
  min-height: 2.5rem;
  max-height: 2.5rem;
  padding: 0 1.15rem;
  font-size: 0.9rem;
}

/* Site header
 * 상태바(theme-color / safe-area)와 동일한 크림 단색을 씁니다.
 * 반투명이면 뒤 컨텐츠 색이 비쳐 상태바와 어긋납니다.
 */
.site-header-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 59;
  height: env(safe-area-inset-top, 0px);
  background: var(--cream);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0 0.85rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(93, 114, 80, 0.12);
  box-shadow: 0 8px 28px rgba(63, 79, 56, 0.08);
  transition: box-shadow 0.3s ease;
}

/* 홈은 본문 스크롤을 잠그므로, 일반 페이지의 스크롤바가 차지하는 폭을
 * 헤더 콘텐츠에도 동일하게 반영해 페이지 간 우측 정렬을 맞춥니다. */
.page-home .site-header {
  padding-right: var(--scrollbar-width, 0px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(63, 79, 56, 0.12);
}

.site-header--solid,
.site-header--acrylic,
.site-header--acrylic.is-scrolled {
  background: var(--cream);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header--acrylic {
  border-bottom-color: rgba(93, 114, 80, 0.08);
  box-shadow: 0 10px 28px rgba(63, 79, 56, 0.06);
}

.site-header--acrylic.is-scrolled {
  box-shadow: 0 12px 32px rgba(63, 79, 56, 0.1);
}

.site-header--acrylic > * {
  position: relative;
  z-index: 3;
}

.site-header__inner {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.8rem;
}

.site-header__inner--subpage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.site-header__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  margin: 0;
  max-width: min(70%, calc(100% - 7.5rem));
  text-align: center;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sage-dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.site-header__back,
.site-header__actions--subpage {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* 서브페이지: 좁은 화면에서는 메뉴만, 넓은 화면에서 알림·내 정보 아이콘 */
.header-actions .site-header__utility {
  display: none;
}

.site-header .brand {
  color: var(--sage-dark);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--sage-dark);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--sage-deep);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.language-switcher a {
  color: inherit;
  opacity: 0.48;
  text-decoration: none;
}

.language-switcher a.is-active {
  opacity: 1;
  font-weight: 600;
}

.mobile-nav__language {
  display: none;
}

@media (max-width: 640px) {
  .site-header .language-switcher {
    display: none;
  }

  .mobile-nav__language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 1.25rem 1.25rem;
    padding-bottom: 0.9rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(93, 114, 80, 0.14);
    color: var(--muted);
    font-size: 0.8rem;
  }

  .mobile-nav__language .language-switcher {
    display: inline-flex;
    margin: 0;
  }

  html[lang="ja"] .language-switcher {
    gap: 0.22rem;
    margin-right: 0.15rem;
    font-size: 0.62rem;
  }
}

.icon-btn {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  color: var(--sage-dark);
  background: rgba(122, 143, 106, 0.12);
  transition: background 0.25s ease;
}

.icon-btn:hover {
  background: rgba(122, 143, 106, 0.22);
}

.icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.icon-btn i {
  font-size: 1.05rem;
  line-height: 1;
}

.nav-toggle {
  display: inline-grid;
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .site-header--subpage .nav-toggle {
    display: inline-grid;
  }

  .site-header--subpage .header-actions .site-header__utility {
    display: inline-grid;
  }

  .site-header--subpage .site-header__title {
    max-width: min(60%, calc(100% - 12rem));
  }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 58, 44, 0.35);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.mobile-nav:not(.is-open) .mobile-nav__backdrop {
  opacity: 0 !important;
  transition: none;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  inset: 0 0 0 auto;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow);
  color: inherit;
  display: flex;
  flex-direction: column;
}

.mobile-nav__panel[open] {
  display: flex;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

@media (max-width: 700px) {
  .page-letter .envelope-picker + .paper-picker ~ .letter-form__submit,
  .page-letter .letter-form__submit { width: 100%; }
  #account-panel-letters .account-panel__title { display: none; }
  #account-panel-letters .account-panel__meta { width: 100%; text-align: center; }
  #account-panel-letters .letters-trash { justify-content: center; text-align: center; }
  .page-deposits .deposits-actions,
  .page-members .deposits-actions,
  .page-memorial-reminders .deposits-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.55rem;
  }

  .page-deposits .deposits-actions .btn,
  .page-members .deposits-actions .btn,
  .page-memorial-reminders .deposits-actions .btn {
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 700px) {
  .page-deposit-history .deposits-table {
    width: 100%;
  }

  .page-deposit-history .deposits-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .page-deposit-history .deposits-table tbody tr {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 1.1rem;
    background: #fffdf8;
    border: 1px solid rgba(93, 114, 80, 0.12);
    box-shadow: 0 8px 20px rgba(63, 79, 56, 0.07);
  }

  .page-deposit-history .deposits-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    padding: 0.28rem 0;
    border: 0;
    font-size: 0.9rem;
    text-align: right;
  }

  .page-deposit-history .deposits-table td::before {
    flex: 0 0 auto;
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
  }

  .page-deposit-history .deposits-table td:nth-child(4) {
    order: -1;
    display: block;
    margin-bottom: 0.25rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(93, 114, 80, 0.1);
    color: var(--sage-dark);
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 600;
    text-align: left;
  }

  .page-deposit-history .deposits-table td:nth-child(4)::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .page-deposit-history .deposits-table-wrap {
    overflow: visible;
  }

  .page-deposit-history .account-panel__intro {
    padding: 0;
  }

  .page-deposit-history .account-panel--wide {
    padding: 0.95rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  }

  .page-deposit-history .deposits-table,
  .page-deposit-history .deposits-table tbody,
  .page-deposit-history .deposits-table tr,
  .page-deposit-history .deposits-table td {
    display: block;
    width: 100%;
  }

  .page-deposit-history .deposits-table thead {
    display: none;
  }

  .page-deposit-history .deposits-table tr {
    margin-bottom: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(93, 114, 80, 0.12);
    border-radius: 1rem;
    background: rgba(255, 252, 246, 0.72);
  }

  .page-deposit-history .deposits-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(93, 114, 80, 0.1);
    text-align: right;
  }

  .page-deposit-history .deposits-table td:last-child {
    border-bottom: 0;
  }

  .page-deposit-history .deposits-table td::before {
    flex: 0 0 auto;
    color: var(--ink-soft);
    content: attr(data-label);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
  }

  .page-deposit-history .deposits-table td > * {
    text-align: right;
  }

  .page-deposit-history .deposits-status {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .page-deposits .deposits-filters__actions,
  .page-members .deposits-filters__actions,
  .page-memorial-reminders .deposits-filters__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.65rem;
  }

  .page-deposits .deposits-filters__actions .btn,
  .page-members .deposits-filters__actions .btn,
  .page-memorial-reminders .deposits-filters__actions .btn {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
  }

  .page-deposits .deposits-table .deposits-actions .btn.btn--sm,
  .page-members .deposits-table .deposits-actions .btn.btn--sm,
  .page-memorial-reminders .deposits-table .deposits-actions .btn.btn--sm {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (max-width: 700px) {
  body.page-deposit-history .account-panel .deposits-table tbody tr { display:grid !important; gap:.35rem; padding:1rem 1.05rem 1.05rem; border-radius:1.1rem; background:#fffdf8; border:1px solid rgba(93,114,80,.12); box-shadow:0 8px 20px rgba(63,79,56,.07); }
  body.page-deposit-history .account-panel .deposits-table td { display:flex !important; align-items:center; justify-content:space-between; width:100%; padding:.28rem 0; border:0 !important; font-size:.9rem; text-align:right; }
  body.page-deposit-history .account-panel .deposits-table td::before { content:attr(data-label); flex:0 0 auto; color:var(--muted); font-size:.78rem; font-weight:600; text-align:left; }
  body.page-deposit-history .account-panel .deposits-table td:nth-child(4) { order:-1; display:block !important; margin-bottom:.25rem; padding-bottom:.7rem; border-bottom:1px solid rgba(93,114,80,.1) !important; color:var(--sage-dark); font-family:var(--font-serif); font-size:1.08rem; font-weight:600; text-align:left; }
  body.page-deposit-history .account-panel .deposits-table td:nth-child(4)::before { display:none; }
}

@media (max-width: 700px) {
  body.page-deposit-history .account-panel--wide { padding: 0.95rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav.is-open {
    transition: none;
  }
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(93, 114, 80, 0.12);
  flex-shrink: 0;
}

.mobile-nav__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}

.mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem 1.6rem;
  display: flex;
  flex-direction: column;
}

/* Brand story landing page */
.brand-story { overflow: hidden; background: #f6f3eb; color: var(--ink, #27352a); }
.brand-story__hero, .brand-story__promise { position: relative; min-height: min(760px, 86vh); display: grid; align-items: center; overflow: hidden; color: #fff; }
.brand-story__hero-image, .brand-story__promise-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-story__hero-image { animation: brandStoryDrift 14s ease-in-out infinite alternate; }
.brand-story__hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 31, 22, .72) 0%, rgba(17, 31, 22, .34) 48%, rgba(17, 31, 22, .06) 100%); }
.brand-story__hero-content { position: relative; z-index: 1; padding-top: 7rem; padding-bottom: 5rem; }
.brand-story__eyebrow { margin: 0 0 1.35rem; color: #a9bd9d; font: 600 .7rem/1.2 var(--font-sans, sans-serif); letter-spacing: .2em; }
.brand-story__hero h1, .brand-story__promise h2 { max-width: 700px; margin: 0; font: 400 clamp(2.6rem, 5vw, 5.2rem)/1.2 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.055em; }
.brand-story__hero h1 em, .brand-story__promise h2 em, .brand-story__section-copy h2 em { color: #c0d0b7; font-style: normal; }
.brand-story__hero-content > p:not(.brand-story__eyebrow) { margin: 2rem 0 0; color: rgba(255,255,255,.82); font: 300 1.08rem/1.9 var(--font-sans, sans-serif); }
.brand-story__scroll { display: inline-flex; gap: .8rem; align-items: center; margin-top: 3.8rem; color: #fff; font-size: .85rem; letter-spacing: .08em; }
.brand-story__scroll span { font-size: 1.25rem; transition: transform .25s ease; }
.brand-story__scroll:hover span { transform: translateY(4px); }
.brand-story__intro { padding: 9rem 0; background: #f6f3eb; }
.brand-story__intro-grid, .brand-story__memory-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(3rem, 10vw, 10rem); align-items: center; }
.brand-story__section-copy h2 { margin: 0 0 2rem; color: #344737; font: 400 clamp(2.2rem, 4vw, 4rem)/1.3 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.06em; }
.brand-story__section-copy > p:not(.brand-story__eyebrow) { max-width: 580px; margin: 0 0 1.15rem; color: #697268; font-size: 1rem; line-height: 2; word-break: keep-all; }

/* Japanese does not use whitespace between words. Keep-all, which is useful
   for Korean copy, can force long Japanese runs outside narrow columns. */
html[lang="ja"] .brand-story__section-copy > p:not(.brand-story__eyebrow),
html[lang="ja"] .forest-story__section-copy > p:not(.forest-story__eyebrow),
html[lang="ja"] .forest-story-card__story {
  word-break: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

html[lang="ja"] .brand-story__section-copy h2,
html[lang="ja"] .brand-story__hero h1,
html[lang="ja"] .brand-story__promise h2 {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.brand-story__quote { padding: 3.5rem 2.5rem; border: 1px solid rgba(114, 137, 105, .25); text-align: center; color: #53674d; }
.brand-story__quote-mark { display: block; height: 2.3rem; font: 4rem/1 var(--font-serif, serif); color: #9eaf94; }
.brand-story__quote blockquote { margin: 1.2rem 0 1.8rem; font: 400 clamp(1.5rem, 2.5vw, 2.2rem)/1.55 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.06em; }
.brand-story__quote-rule { display: block; width: 2.5rem; height: 1px; margin: 0 auto 1rem; background: #9eaf94; }
.brand-story__quote p { margin: 0; color: #8a9387; font-size: .78rem; letter-spacing: .12em; }
.brand-story__memory { padding: 8rem 0; background: #40543e; }
.brand-story__memory-media { position: relative; overflow: hidden; }
.brand-story__memory-media img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.brand-story__section-copy--light h2 { color: #f4f0e7; }
.brand-story__section-copy--light > p:not(.brand-story__eyebrow) { color: rgba(244, 240, 231, .72); }
.brand-story__section-copy--light .brand-story__eyebrow { color: #b8cbb0; }
.btn--light { display: inline-flex; gap: .8rem; align-items: center; margin-top: 1.5rem; border: 1px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--light:hover { border-color: #fff; background: rgba(255,255,255,.13); }
.brand-story__promise { min-height: 670px; }
.brand-story__promise-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(45, 62, 49, .72), rgba(45, 62, 49, .18)); }
.brand-story__promise-content { position: relative; z-index: 1; }
.brand-story__promise-content > p:not(.brand-story__eyebrow) { margin: 1.8rem 0 0; color: rgba(255,255,255,.82); font-size: 1rem; }
@keyframes brandStoryDrift { from { transform: scale(1.02); } to { transform: scale(1.08); } }
@media (max-width: 759px) {
  .brand-story__hero, .brand-story__promise { min-height: 680px; }
  .brand-story__hero-content { padding-top: 5rem; }
  .brand-story__hero-overlay, .brand-story__promise-overlay { background: linear-gradient(90deg, rgba(17, 31, 22, .76), rgba(17, 31, 22, .28)); }
  .brand-story__intro { padding: 5.5rem 0; }
  .brand-story__intro-grid, .brand-story__memory-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .brand-story__quote { padding: 2.5rem 1.5rem; }
  .brand-story__memory { padding: 5.5rem 0; }
  .brand-story__promise { min-height: 600px; }
}

/* Forest stories archive */
.forest-story--archive { background: #f5f1e8; }
.forest-story__archive-hero { position: relative; min-height: min(680px, 82vh); display: grid; align-items: center; overflow: hidden; color: #fff; }
.forest-story__archive-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: forestStoryDrift 15s ease-in-out infinite alternate; }
.forest-story__archive-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 43, 29, .78), rgba(25, 43, 29, .28) 65%, rgba(25, 43, 29, .08)); }
.forest-story__archive-content { position: relative; z-index: 1; padding-top: 6.5rem; padding-bottom: 4.5rem; }
.forest-story__archive-content h1 { max-width: 700px; margin: 0; font: 400 clamp(2.7rem, 5vw, 5rem)/1.2 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.06em; }
.forest-story__archive-content h1 em, .forest-story__archive-cta h2 em { color: #c2d3b7; font-style: normal; }
.forest-story__archive-content > p:not(.forest-story__eyebrow) { margin: 1.8rem 0 0; color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.9; }
.forest-story__hero-copy { max-width: 34rem; min-height: 4.2rem; }
.forest-story__hero-copy [data-walk-hero-text] {
  display: block;
  white-space: pre-line;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.forest-story__hero-copy.is-fading [data-walk-hero-text] {
  opacity: 0;
  transform: translateY(0.45rem);
}
.forest-story__archive-list { padding: 7.5rem 0 8.5rem; }
.forest-story-detail { padding: 6rem 0; background: #e8ede1; }
.forest-story-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: center; }
.forest-story-detail__photo { overflow: hidden; background: #d8e1d1; }
.forest-story-detail__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.forest-story-detail__content { position: relative; }
.forest-story-detail__back { display: inline-block; margin-bottom: 3rem; color: #687866; font-size: .8rem; }
.forest-story-detail__relation { margin: 0 0 .6rem; color: #81927b; font-size: .8rem; }
.forest-story-detail h2 { margin: 0; color: #344737; font: 400 clamp(2.5rem, 4vw, 4.3rem)/1.2 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.06em; }
.forest-story-detail__dates { margin: .8rem 0 2rem; color: #9aa698; font-size: .8rem; }
.forest-story-detail blockquote { margin: 0 0 2rem; color: #657362; font: 400 1.1rem/1.9 var(--font-serif, 'Noto Serif KR', serif); word-break: keep-all; }
.forest-story-detail__memories { border-top: 1px solid rgba(82, 105, 78, .25); }
.forest-story-detail__memories div { padding: 1rem 0; border-bottom: 1px solid rgba(82, 105, 78, .25); }
.forest-story-detail__memories strong { display: block; margin-bottom: .35rem; color: #7d9177; font-size: .72rem; font-weight: 500; }
.forest-story-detail__memories p { margin: 0; color: #687568; font-size: .88rem; line-height: 1.8; word-break: keep-all; }
.forest-story__list-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.forest-story__list-head h2 { margin: 0; color: #344737; font: 400 clamp(2rem, 3.5vw, 3.4rem)/1.25 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.06em; }
.forest-story__list-head > p,
.forest-story__list-refresh { margin: 0; color: #7b8478; font-size: .9rem; line-height: 1.7; text-align: right; }
.forest-story__list-refresh { display: inline-flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.forest-story__refresh-btn {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #52694e;
  background: rgba(82, 105, 78, .1);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.forest-story__refresh-btn:hover { background: rgba(82, 105, 78, .18); color: #3e513d; }
.forest-story__refresh-btn:disabled { opacity: .55; cursor: wait; }
.forest-story__refresh-btn.is-spinning i { animation: forestStoryRefreshSpin .7s linear infinite; }
.forest-story__refresh-btn i { font-size: .85rem; line-height: 1; }
@keyframes forestStoryRefreshSpin { to { transform: rotate(360deg); } }

.forest-story__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.forest-story-card { overflow: hidden; background: #fbf9f3; box-shadow: 0 14px 35px rgba(56, 70, 54, .08); }
.forest-story-card__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe5d8; }
.forest-story-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease, ease); }
.forest-story-card:hover .forest-story-card__photo img { transform: scale(1.05); }
.forest-story-card__badge { position: absolute; top: 1rem; left: 1rem; padding: .42rem .65rem; color: #fff; background: rgba(57, 79, 56, .78); font-size: .68rem; letter-spacing: .06em; }
.forest-story-card__body { position: relative; min-height: 17.2rem; padding: 1.55rem 1.55rem 4.2rem; }
.forest-story-card__meta { display: flex; justify-content: space-between; gap: 1rem; color: #8a9585; font-size: .73rem; }
.forest-story-card__meta time { color: #adb4a9; }
.forest-story-card h3 { margin: .75rem 0 1.1rem; color: #3e513d; font: 500 1.65rem/1.2 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.05em; }
.forest-story-card__story-label { margin: 0 0 .4rem; color: #9aaa91; font-size: .73rem; }
.forest-story-card__story { display: -webkit-box; min-height: 4.6em; margin: 0; overflow: hidden; color: #697268; font-size: .92rem; line-height: 1.8; word-break: keep-all; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.forest-story-card__story--empty { color: #a6ada1; }
.forest-story-card__link { position: absolute; right: 1.55rem; bottom: 1.7rem; left: 1.55rem; display: inline-flex; gap: .5rem; align-items: center; color: #52694e; font-size: .78rem; }
.forest-story-card__link span { transition: transform .25s ease; }
.forest-story-card__link:hover span { transform: translateX(4px); }
.forest-story__empty { padding: 5rem 1rem; text-align: center; background: rgba(255,255,255,.48); }
.forest-story__empty > span { color: #9bad91; font-size: 1.6rem; }
.forest-story__empty h3 { margin: 1rem 0 .75rem; color: #465a43; font: 500 1.45rem var(--font-serif, 'Noto Serif KR', serif); }
.forest-story__empty p { margin: 0; color: #7b8478; line-height: 1.8; }
.forest-story__empty .btn { margin-top: 1.5rem; }
.forest-story__archive-cta { position: relative; min-height: 430px; display: grid; align-items: center; overflow: hidden; color: #fff; background: #40543e var(--forest-story-cta-image) center 58% / cover no-repeat; }
.forest-story__archive-cta::before { content: ''; position: absolute; inset: 0; background: rgba(30, 51, 33, .65); }
.forest-story__archive-cta-inner { position: relative; z-index: 1; width: 100%; text-align: center; }
.forest-story__archive-cta h2 { margin: 0; font: 400 clamp(2rem, 4vw, 3.8rem)/1.3 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.06em; }
.forest-story__archive-cta .btn { margin-top: 1.5rem; }
.garden-stage--public .garden-actions { display: block; }
.garden-stage--public .garden-actions__more,
.garden-stage--public .garden-switcher,
.garden-stage--public [data-garden-action="letter"] { display: none !important; }
.garden-stage--public .garden-actions__menu { display: flex; gap: .55rem; }
.garden-stage--public .garden-actions [data-ambient="sun"],
.garden-stage--public .garden-actions [data-ambient="wind"],
.garden-stage--public .garden-actions [data-garden-bg-open],
.garden-stage--public .garden-audio-credit__list { display: none !important; }
.garden-mobile-story-hint { display: none; }
@media (max-width: 900px) { .forest-story__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .forest-story__archive-hero { min-height: 620px; }
  .forest-story__archive-content { padding-top: 5rem; }
  .forest-story__hero-copy { min-height: 5.6rem; }
  .forest-story__archive-list { padding: 5.5rem 0 6rem; }
  .forest-story-detail { padding: 4.5rem 0; }
  .forest-story-detail__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .forest-story-detail__back { margin-bottom: 2rem; }
  .forest-story__list-head { display: block; margin-bottom: 2.2rem; }
  .forest-story__list-head > p,
  .forest-story__list-refresh { margin-top: 1rem; text-align: left; justify-content: flex-start; }
  .forest-story__cards { grid-template-columns: 1fr; }
  .forest-story__archive-cta { min-height: 380px; }
}

@media (max-width: 859px) {
  .garden-stage--public .garden-actions__menu {
    position: static;
    display: flex;
    gap: .55rem;
    width: auto;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 759px) {
  /*
   * 나의 정원 모바일
   * 전역 theme-color / html·body 틴트는 쓰지 않음 (다른 페이지 상태바에 잔상).
   * 상태바·화면 채움은 .garden-stage 고정 레이어 안에서만 처리.
   */
  body.page-garden {
    margin: 0;
    min-height: 100dvh;
    background-color: var(--cream);
    overscroll-behavior: none;
  }

  .page-garden {
    width: 100%;
    min-height: 100dvh;
    background: transparent;
  }

  .page-garden .garden-stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    /* fixed 루트는 투명 — Safari 상태바 샘플링이 전역 틴트로 남지 않게 */
    background-color: transparent;
  }

  .page-garden .garden-stage__bg,
  .page-garden .garden-stage__veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  .page-garden .garden-stage__bg {
    z-index: 0;
    background-color: #2f3a2c;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .page-garden .garden-stage__veil {
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(47, 58, 44, 0.4) 0%, rgba(47, 58, 44, 0.12) 48%, rgba(47, 58, 44, 0.05) 100%),
      linear-gradient(180deg, rgba(47, 58, 44, 0.08) 0%, transparent 22%, rgba(47, 58, 44, 0.35) 100%);
  }

  .page-garden .garden-top {
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    background: transparent;
  }

  .page-garden button {
    -webkit-tap-highlight-color: transparent;
  }

  .page-garden .garden-audio-credit {
    left: 50%;
    right: auto;
    bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    max-width: calc(100% - 1.5rem);
    width: max-content;
  }

  .page-garden .garden-audio-credit__marquee {
    max-width: min(15.5rem, calc(100vw - 7.5rem));
  }

  .garden-stage--has-tribute .garden-tribute-message { display: none; }
  .garden-stage--has-tribute .garden-mobile-story-hint {
    position: fixed;
    top: 50%;
    right: max(.65rem, env(safe-area-inset-right, 0px));
    z-index: 6;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 4.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: rgba(255, 252, 246, .9);
    background: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
    transform: translateY(-50%);
    animation: mobileStoryHint 1.7s ease-in-out infinite;
    pointer-events: auto;
  }
  .garden-stage--has-tribute .garden-mobile-story-hint span {
    position: relative;
    display: block;
    width: 1.25rem;
    height: 3.25rem;
    border: 1px solid rgba(255, 252, 246, .55);
    border-radius: 999px;
    background: rgba(47, 58, 44, .28);
    box-shadow: 0 1px 8px rgba(20, 27, 18, .35);
  }
  .garden-stage--has-tribute .garden-mobile-story-hint span::before,
  .garden-stage--has-tribute .garden-mobile-story-hint span::after {
    content: '';
    position: absolute;
    left: 50%;
    width: .42rem;
    height: .42rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
  }
  .garden-stage--has-tribute .garden-mobile-story-hint span::before { top: .65rem; transform: translateX(-50%) rotate(225deg); }
  .garden-stage--has-tribute .garden-mobile-story-hint span::after { top: 1.95rem; transform: translateX(-50%) rotate(45deg); }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-mobile-story-hint {
    z-index: 7;
    animation: mobileStoryHint 1.7s ease-in-out infinite;
  }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-mobile-story-hint span { transform: none; }
  .garden-stage--has-tribute .garden-info { transition: transform .8s cubic-bezier(.22, .75, .24, 1), opacity .65s ease; }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-info { transform: translateY(-105vh); opacity: 0; pointer-events: none; }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-tribute-message:not([hidden]) {
    display: block;
    position: absolute;
    left: 50%;
    width: min(420px, calc(100% - 2rem));
    margin: 0;
    box-sizing: border-box;
    transform: translateX(-50%);
  }
  /*
   * 추모글: 바깥은 overflow visible 로 ::before 미스트가 부드럽게 번지게 두고
   * (overflow 를 바깥에 걸면 미스트가 사각으로 잘려 박스로 보임)
   * 스크롤은 가족 이야기와 같이 안쪽 __body 에서만 처리
   */
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-tribute-message:not([hidden]):not(.garden-memories-message):not(.garden-guestbook) {
    display: flex;
    flex-direction: column;
    top: 50%;
    bottom: auto;
    padding: 1.5rem 1.6rem;
    max-height: calc(100dvh - 9.5rem - env(safe-area-inset-bottom, 0px));
    overflow: visible;
    transform: translate(-50%, -50%);
    animation: mobileTributeInCenter .8s cubic-bezier(.22, .75, .24, 1) both;
  }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-tribute-message:not([hidden]):not(.garden-memories-message):not(.garden-guestbook) .garden-tribute-message__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  /* 가족 이야기: 상·하단 여유를 두고 본문만 스크롤 */
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-memories-message:not([hidden]) {
    display: flex;
    flex-direction: column;
    top: 50%;
    bottom: auto;
    max-height: calc(100dvh - 9.5rem - env(safe-area-inset-bottom, 0px));
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    overflow: visible;
    transform: translate(-50%, -50%);
    animation: mobileTributeInCenter .8s cubic-bezier(.22, .75, .24, 1) both;
  }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-memories-message:not([hidden]) .garden-memories-message__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  /* 방명록: 가족 이야기와 같은 중앙 패널 규칙을 따르되, 폼과 목록이 함께 들어가므로
     내부 목록(__body)만 스크롤한다. */
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-guestbook:not([hidden]) {
    display: flex;
    flex-direction: column;
    top: 50%;
    bottom: auto;
    max-height: calc(100dvh - 9.5rem - env(safe-area-inset-bottom, 0px));
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    overflow: visible;
    transform: translate(-50%, -50%);
    animation: mobileTributeInCenter .8s cubic-bezier(.22, .75, .24, 1) both;
  }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-guestbook:not([hidden]) .garden-guestbook__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  /* 방명록 입력 중에는 스와이프 제스처가 아니라 실제 입력이 되어야 한다. */
  .garden-guestbook__input,
  .garden-guestbook__textarea {
    touch-action: auto;
  }
  .garden-stage--has-tribute.is-mobile-tribute-open .garden-panel { top: 0; bottom: 0; transform: none; align-items: flex-start; }
  /* 글 표시 중에도 헤더의 사운드 버튼은 유지 */
}

@keyframes mobileStoryHint { 0%, 100% { transform: translateY(-50%); opacity: .68; } 50% { transform: translateY(calc(-50% + 5px)); opacity: 1; } }
@keyframes mobileTributeIn { from { opacity: 0; transform: translate(-50%, 1.5rem); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes mobileTributeInCenter { from { opacity: 0; transform: translate(-50%, calc(-50% + 1.5rem)); } to { opacity: 1; transform: translate(-50%, -50%); } }

.mobile-nav__body a {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 -0.5rem;
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(93, 114, 80, 0.1);
  border-radius: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--sage-dark);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease);
}

.mobile-nav__body a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(122, 143, 106, 0.14);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.mobile-nav__body a:hover,
.mobile-nav__body a:focus-visible {
  color: var(--sage-deep);
}

.mobile-nav__body a:hover::before,
.mobile-nav__body a:focus-visible::before {
  transform: scaleX(1);
}

.mobile-nav__body a > i {
  position: relative;
  width: 1.25rem;
  text-align: center;
  font-size: 1rem;
  color: var(--sage);
  flex-shrink: 0;
  transition: color 0.3s var(--ease);
}

.mobile-nav__body a:hover > i,
.mobile-nav__body a:focus-visible > i {
  color: var(--sage-deep);
}

.mobile-nav__body a.is-active {
  color: var(--sage-deep);
  font-weight: 600;
}

.mobile-nav__body a.is-active::before {
  transform: scaleX(1);
  background: rgba(122, 143, 106, 0.18);
}

.mobile-nav__body a.is-active > i {
  color: var(--sage-deep);
}

/* Side drawer (notify / account) */
.side-drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.4s;
}

.side-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.side-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 58, 44, 0.35);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.side-drawer:not(.is-open) .side-drawer__backdrop {
  opacity: 0 !important;
  transition: none;
}

.side-drawer.is-open .side-drawer__backdrop {
  opacity: 1;
}

.side-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: -12px 0 40px rgba(63, 79, 56, 0.14);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.side-drawer__panel[open] {
  display: flex;
}

.side-drawer.is-open .side-drawer__panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .side-drawer,
  .side-drawer.is-open {
    transition: none;
  }
}

.side-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(93, 114, 80, 0.12);
}

.side-drawer__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}

.side-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem 1.25rem 1.6rem;
}

.notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.notify-list__empty {
  margin: 1.2rem 0.2rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  text-align: center;
}

.notify-list__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(122, 143, 106, 0.08);
  border: 1px solid rgba(93, 114, 80, 0.08);
}

.notify-list__item:has(.notify-list__link) {
  padding: 0;
}

.notify-list__link {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.95rem 1rem;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.notify-list__link:hover {
  background: rgba(122, 143, 106, 0.12);
}

.notify-list__item.is-unread {
  background: rgba(226, 201, 122, 0.16);
  border-color: rgba(201, 168, 76, 0.28);
}

.notify-list__icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.9);
  color: var(--sage-deep);
  font-size: 0.95rem;
}

.notify-list__text {
  margin: 0 0 0.3rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink);
}

.notify-list__time {
  font-size: 0.8rem;
  color: var(--muted);
}

.icon-btn__badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #c45c4a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 252, 246, 0.95);
}

.account-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border-radius: 1.1rem;
  background: rgba(122, 143, 106, 0.1);
  border: 1px solid rgba(93, 114, 80, 0.1);
}

.account-card__avatar {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.95);
  color: var(--sage-deep);
  font-size: 1.15rem;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.account-card__avatar--image { overflow: hidden; }
.account-card__avatar--image img { width: 100%; height: 100%; object-fit: cover; }

.account-card__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.account-card__meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.account-menu {
  display: grid;
  gap: 0.35rem;
}

.account-menu a {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0.85rem;
  border-radius: 0.9rem;
  color: var(--sage-dark);
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease);
}

.account-menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(122, 143, 106, 0.14);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.account-menu a:hover,
.account-menu a:focus-visible {
  color: var(--sage-deep);
}

.account-menu a:hover::before,
.account-menu a:focus-visible::before {
  transform: scaleX(1);
}

.account-menu i {
  position: relative;
  width: 1.25rem;
  text-align: center;
  color: var(--sage);
  transition: color 0.3s var(--ease);
}

.account-menu a:hover i,
.account-menu a:focus-visible i {
  color: var(--sage-deep);
}

.account-menu__logout {
  margin: 0;
}

.account-menu__logout button {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 0.85rem;
  border-radius: 0.9rem;
  color: var(--sage-dark);
  font-weight: 500;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease);
}

.account-menu__logout button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(122, 143, 106, 0.14);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.account-menu__logout button:hover,
.account-menu__logout button:focus-visible {
  color: var(--sage-deep);
}

.account-menu__logout button:hover::before,
.account-menu__logout button:focus-visible::before {
  transform: scaleX(1);
}

.account-menu__logout i {
  position: relative;
  width: 1.25rem;
  text-align: center;
  color: var(--sage);
  transition: color 0.3s var(--ease);
}

.account-menu__logout button:hover i,
.account-menu__logout button:focus-visible i {
  color: var(--sage-deep);
}

.account-card--guest {
  margin-bottom: 1rem;
}

.account-guest__message {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.account-guest__cta {
  width: 100%;
}

/* Login page */
.page-login {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(226, 201, 122, 0.22), transparent 42%),
    radial-gradient(ellipse at 85% 0%, rgba(168, 184, 156, 0.35), transparent 45%),
    linear-gradient(180deg, #fbf8f1 0%, var(--cream) 42%, #e8efe3 100%);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 2rem) 1.25rem 3.5rem;
}

.login-panel {
  width: min(26rem, 100%);
  padding: 2rem 1.6rem 1.75rem;
  border-radius: 1.4rem;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(93, 114, 80, 0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.login-panel__eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sage);
}

.login-panel__brand {
  margin: 0 0 0.85rem;
}

.login-panel__brand .brand-logo {
  margin-inline: auto;
}

.login-panel__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}

.login-panel__desc {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.login-alert {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(180, 90, 70, 0.1);
  border: 1px solid rgba(180, 90, 70, 0.22);
  color: #8a4334;
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.register-steps {
  display: flex;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.register-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  line-height: 1.35;
}

.register-step span {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--beige-warm);
}

.register-step.is-active { color: var(--sage-deep); font-weight: 600; }
.register-step.is-active span { color: var(--white); background: var(--sage-deep); }
.login-panel__step-title { margin: 0 0 1.25rem; font-size: 1.15rem; }
.register-terms { padding: 1rem; border: 1px solid var(--beige-warm); border-radius: 0.75rem; color: var(--ink-soft); font-size: 0.9rem; }
.register-consent { display: flex; justify-content: flex-start; gap: 0.45rem; align-items: center; margin: 1rem 0 1.25rem; }
.register-consent input { width: 1rem; height: 1rem; margin: 0; flex: 0 0 auto; accent-color: var(--sage-deep); }
.register-consent span { line-height: 1.4; }
.register-terms-more { margin-left: 0.15rem; padding: 0; color: var(--sage-deep); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 0.18em; }
.register-terms-more:hover { color: var(--sage-dark); }
.register-terms-modal { width: 32rem; max-width: calc(100vw - 2.5rem); height: 38rem; max-height: calc(100vh - 2.5rem); }
.register-terms-modal .app-modal__inner { display: flex; flex-direction: column; height: 100%; min-height: 0; text-align: left; }
.register-terms-modal__body { color: var(--ink-soft); font-size: 0.88rem; }
.register-terms-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 0.55rem; }
.register-terms-modal__body h3 { margin: 1rem 0 0.2rem; color: var(--sage-dark); font-size: 0.95rem; }
.register-terms-modal__body h3:first-child { margin-top: 0; }
.register-terms-modal__body p { margin: 0; }
.register-terms-modal__note { margin-top: 1rem !important; padding-top: 0.85rem; border-top: 1px solid rgba(93, 114, 80, 0.14); font-size: 0.78rem; color: var(--muted); }
.register-terms-modal .app-modal__action { flex: 0 0 auto; margin-top: 1.5rem; }
.register-step-help { margin: 0.35rem 0 1.25rem; color: var(--muted); font-size: 0.82rem; }
.register-step-panel[data-register-step="3"] { display: grid; gap: 1rem; }
.register-step-panel[hidden] { display: none !important; }
.register-step-panel[data-register-step="3"] .login-panel__step-title { margin-bottom: 0.15rem; }
.register-email-code { display: grid; gap: 0.75rem; margin-top: 0.25rem; }
.register-email-code[hidden] { display: none !important; }
.register-email-code .register-step-help { margin: 0; }

.login-field {
  display: grid;
  gap: 0.4rem;
}

.login-field__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.login-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-dark);
}

.login-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(93, 114, 80, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 252, 246, 0.95);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.login-input::placeholder {
  color: rgba(125, 135, 118, 0.75);
}

.login-input:focus {
  border-color: rgba(122, 143, 106, 0.55);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(168, 184, 156, 0.28);
}

.login-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.9rem;
  cursor: pointer;
}

.login-remember.register-consent {
  justify-content: flex-start;
  gap: 0.45rem;
}

.login-remember__label {
  line-height: 1.4;
}

.login-remember__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.login-remember__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.login-remember__track {
  display: block;
  width: 2.6rem;
  height: 1.45rem;
  border-radius: var(--radius-pill);
  background: rgba(93, 114, 80, 0.22);
  box-shadow: inset 0 1px 2px rgba(47, 58, 44, 0.08);
  transition: background 0.25s var(--ease);
}

.login-remember__thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 1px 4px rgba(47, 58, 44, 0.18);
  transition: transform 0.25s var(--ease);
  pointer-events: none;
}

.login-remember__switch input:checked + .login-remember__track {
  background: var(--sage);
}

.login-remember__switch input:checked + .login-remember__track .login-remember__thumb {
  transform: translateX(1.15rem);
}

.login-remember__switch input:focus-visible + .login-remember__track {
  box-shadow: 0 0 0 3px rgba(168, 184, 156, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .login-remember__track,
  .login-remember__thumb {
    transition: none;
  }
}

.login-form__submit {
  width: 100%;
  margin-top: 0.15rem;
}

/* 모바일 로그인: 공통 헤더를 사용하고 폼은 페이지 위에 자연스럽게 배치합니다. */
@media (max-width: 759px) {
  .page-login .login-shell {
    display: block;
    min-height: 100dvh;
    padding: calc(var(--header-h) + 1.5rem) 1.25rem 2.5rem;
  }

  .page-login .login-panel {
    width: 100%;
    padding: 1rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
}

/* Error pages (404 / 405 / 500) */
.page-error {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(226, 201, 122, 0.2), transparent 42%),
    radial-gradient(ellipse at 88% 0%, rgba(168, 184, 156, 0.32), transparent 46%),
    linear-gradient(180deg, #fbf8f1 0%, var(--cream) 45%, #e8efe3 100%);
}

.error-shell {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 1.75rem) 1.25rem 3rem;
}

.error-panel {
  width: min(28rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 2.15rem 1.6rem 1.85rem;
  text-align: center;
  border-radius: 1.5rem;
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(93, 114, 80, 0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.error-panel__icon {
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(226, 201, 122, 0.45), transparent 55%),
    rgba(223, 230, 216, 0.85);
  border: 1px solid rgba(93, 114, 80, 0.14);
  color: var(--sage-deep);
  font-size: 1.55rem;
}

.error-panel__eyebrow {
  margin: 0;
  color: var(--sage);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.error-panel__code {
  margin: 0;
  color: var(--sage-soft);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-panel__title {
  margin: 0.15rem 0 0;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.error-panel__desc {
  margin: 0.15rem 0 0;
  max-width: 22rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.error-panel__hint {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.error-panel__actions {
  display: grid;
  gap: 0.65rem;
  justify-items: stretch;
  width: 100%;
  margin-top: 0.85rem;
}

.error-panel__actions .btn {
  width: 100%;
}

.error-panel__secondary {
  background: rgba(223, 230, 216, 0.55);
  color: var(--sage-deep);
  border: 1px solid rgba(93, 114, 80, 0.14);
}

.error-panel__secondary:hover {
  background: rgba(168, 184, 156, 0.35);
}

.contact-fallback-panel {
  width: min(31rem, 100%);
}

.contact-fallback__form {
  width: 100%;
  margin-top: 0.45rem;
  text-align: left;
}

.contact-fallback__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-fallback-panel > .error-panel__actions {
  margin-top: 0.35rem;
}

.contact-fallback-modal[hidden] {
  display: none;
}

.contact-fallback-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.contact-fallback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 48, 31, 0.38);
  backdrop-filter: blur(3px);
}

.contact-fallback-modal__dialog {
  position: relative;
  width: min(22rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(93, 114, 80, 0.14);
  border-radius: 1.35rem;
  background: #fffdf8;
  box-shadow: 0 1.5rem 4rem rgba(45, 60, 39, 0.2);
  text-align: center;
}

.contact-fallback-modal__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.15rem;
  border-radius: 50%;
  background: rgba(223, 230, 216, 0.9);
  color: var(--sage-deep);
  font-size: 1.3rem;
}

.contact-fallback-modal__icon.is-error {
  background: rgba(244, 225, 211, 0.9);
  color: #9b614c;
}

.contact-fallback-modal__title {
  margin: 0;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-fallback-modal__message {
  margin: 0.1rem 0 0.55rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.contact-fallback-modal__dialog .btn {
  width: min(12rem, 100%);
}

.contact-fallback-modal-open {
  overflow: hidden;
}

.contact-fallback__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-fallback__textarea {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  padding: 0.8rem 0.9rem;
  resize: vertical;
  border: 1px solid rgba(93, 114, 80, 0.18);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  box-sizing: border-box;
}

.contact-fallback__textarea:focus {
  outline: 2px solid rgba(126, 151, 111, 0.35);
  outline-offset: 1px;
}

@media (min-width: 520px) {
  .error-panel {
    padding: 2.4rem 2rem 2rem;
  }

  .error-panel__actions {
    grid-template-columns: 1fr;
    max-width: 18rem;
    margin-inline: auto;
  }
}

.login-social-divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 1rem; color: var(--ink-soft); font-size: 0.8rem; }
.login-social-divider::before, .login-social-divider::after { content: ""; flex: 1; height: 1px; background: rgba(93, 114, 80, 0.16); }
.login-social-buttons { display: grid; gap: 0.55rem; }
.login-social-button { justify-content: center; gap: 0.5rem; width: 100%; padding: 0.72rem 1rem; border: 1px solid rgba(93, 114, 80, 0.14); background: #fffdf8; color: var(--sage-dark); text-decoration: none; }
.login-social-icon { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; font-weight: 700; line-height: 1; }
.login-social-icon--google { color: #4285f4; font-size: 1rem; }
.login-social-icon--kakao { color: #191919; font-size: 0.95rem; }
.login-social-icon--naver { border-radius: 0.2rem; background: #fff; color: #03a94d; font-size: 0.85rem; }
.login-social-icon svg { display: block; width: 1.2rem; height: 1.2rem; }
.login-social-icon--kakao svg { fill: #191919; width: 1.15rem; height: 1.15rem; }
.login-social-icon--naver span { color: #03c75a; }
.login-social-button:hover { background: rgba(168, 184, 156, 0.18); }
.login-social-button--kakao { background: #fee500; border-color: #fee500; color: #191919; }
.login-social-button--naver { background: #03c75a; border-color: #03c75a; color: white; }
.login-social-button.is-disabled,
.login-social-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
  pointer-events: none;
  transform: none;
}
.login-social-button.is-disabled:hover,
.login-social-button:disabled:hover {
  transform: none;
}

.login-switch {
  margin: 1.15rem 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.login-switch a {
  margin-left: 0.35rem;
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.login-switch a:hover {
  color: var(--sage-dark);
}

.login-switch--secondary {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.forgot-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 1.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(93, 114, 80, 0.07);
}

.forgot-sent__icon {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--sage-deep);
}

.forgot-sent__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.login-hint {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(93, 114, 80, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  word-break: break-all;
}

.login-hint code {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--sage-deep);
}

/* Account page */
.page-account,
.page-deposits,
.page-deposit-history,
.page-members,
.page-memorial-reminders {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(226, 201, 122, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 0%, rgba(168, 184, 156, 0.28), transparent 46%),
    linear-gradient(180deg, #fbf8f1 0%, var(--cream) 40%, #e8efe3 100%);
}

.account-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
}

.account-hero {
  margin-bottom: 1.15rem;
}

.account-hero__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.page-account .account-hero {
  display: none;
}

.page-account .account-shell[data-account-view="hub"] .account-tabs {
  display: none;
}

.page-account .account-shell[data-account-view="detail"] .account-hub,
.page-account .account-shell[data-account-view="detail"] .account-hub__logout {
  display: none;
}

.page-account .account-tabs__list {
  display: none;
}

.account-hub {
  display: flex;
  flex-direction: column;
  width: min(28rem, 100%);
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.account-hub__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 1.5rem;
  text-align: center;
}

.account-hub__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: rgba(168, 184, 156, 0.22);
  border: 2px solid rgba(93, 114, 80, 0.14);
  color: var(--sage);
  font-size: 2.15rem;
  overflow: visible;
  box-shadow: 0 10px 28px rgba(63, 79, 56, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-hub__avatar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(63, 79, 56, 0.14);
}

.account-hub__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.account-hub__avatar--fallback {
  border-style: dashed;
}

.account-hub__avatar-hint {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fffdf8;
  font-size: 0.75rem;
  box-shadow: 0 4px 12px rgba(63, 79, 56, 0.2);
}

.account-hub__name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
}

.account-hub__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}

.account-hub__name-edit {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(168, 184, 156, 0.22);
  color: var(--sage-dark);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.account-hub__name-edit:hover {
  background: rgba(168, 184, 156, 0.38);
  color: var(--sage-deep);
}

.account-hub__name-edit i {
  font-size: 0.78rem;
}

.account-hub__email {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.account-hub__menu {
  display: grid;
  gap: 1.35rem;
}

.account-hub__group {
  display: grid;
  gap: 0.7rem;
}

.account-hub__group-label {
  margin: 0 0 0.15rem 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.account-hub__btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.4rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(93, 114, 80, 0.12);
  background: #fffdf8;
  color: var(--sage-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(63, 79, 56, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.account-hub__btn:hover {
  background: #fff;
  border-color: rgba(93, 114, 80, 0.22);
  box-shadow: 0 10px 24px rgba(63, 79, 56, 0.1);
  transform: translateY(-1px);
}

.account-hub__btn i {
  width: 1.35rem;
  text-align: center;
  color: var(--sage);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.account-hub__btn--danger {
  color: #8a4b45;
}

.account-hub__btn--danger i {
  color: #b56a62;
}

.account-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin:1.5rem 0; }
.access-period-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:1.25rem 0 1.5rem; padding-bottom:.7rem; border-bottom:1px solid rgba(91,73,54,.14); }
.access-period-tabs { display:flex; align-items:center; gap:.15rem; }
.access-period-tab { position:relative; display:inline-flex; align-items:center; min-height:2.25rem; padding:.35rem .85rem; color:var(--color-text-muted,#756b61); font-size:.9rem; font-weight:600; text-decoration:none; }
.access-period-tab::after { position:absolute; right:.7rem; bottom:-.72rem; left:.7rem; height:2px; background:transparent; content:""; }
.access-period-tab:hover { color:var(--color-text,#3e3329); }
.access-period-tab.is-active { color:var(--sage-dark,#526448); }
.access-period-tab.is-active::after { background:var(--sage-dark,#526448); }
.access-period-range { margin:0; color:var(--color-text-muted,#756b61); font-size:.82rem; white-space:nowrap; }
.access-period-range { display:inline-flex; align-items:center; gap:.45rem; border:0; background:none; cursor:pointer; font:inherit; }
.access-period-range:hover { color:var(--sage-dark,#526448); }
.access-calendar-modal { width:min(22rem,calc(100% - 2rem)); padding:0; border:0; border-radius:1rem; background:#fbf8f1; color:var(--ink); box-shadow:0 1rem 4rem rgba(44,33,24,.28); }
.access-calendar-modal::backdrop { background:rgba(36,29,23,.48); backdrop-filter:blur(2px); }
.access-calendar-modal__inner { position:relative; padding:1.35rem; }
.access-calendar-modal h2 { margin:0 0 1rem; color:var(--sage-dark); font-size:1.1rem; }
.access-calendar-modal__close { position:absolute; top:.85rem; right:1rem; width:2rem; height:2rem; border:0; background:none; color:var(--muted); font-size:1rem; cursor:pointer; }
.access-calendar-modal__nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:.8rem; }
.access-calendar-modal__nav button { display:inline-grid; place-items:center; width:2rem; height:2rem; border:0; border-radius:50%; background:rgba(122,143,106,.1); color:var(--sage-dark); font-size:.8rem; cursor:pointer; }
.access-calendar__week,.access-calendar__days { display:grid; grid-template-columns:repeat(7,1fr); gap:.2rem; text-align:center; }
.access-calendar__week { margin-bottom:.3rem; color:var(--muted); font-size:.75rem; }
.access-calendar__days span,.access-calendar__days button { min-height:2.15rem; display:grid; place-items:center; }
.access-calendar__days button { width:2.15rem; height:2.15rem; justify-self:center; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink); cursor:pointer; font:inherit; }
.access-calendar__days button:hover:not(:disabled),.access-calendar__days button.is-selected,.access-calendar__days button.is-month-active { background:var(--sage-dark); color:#fff; }
.access-calendar__days button.is-week-hover { background:rgba(122,143,106,.22); color:var(--sage-dark); }
.access-calendar__days button.is-week-hover.is-selected { background:var(--sage-dark); color:#fff; }
.access-calendar__months { display:grid; grid-template-columns:repeat(3,1fr); gap:.45rem; }
.access-calendar__months button { min-height:2.5rem; border:0; border-radius:.65rem; background:rgba(122,143,106,.08); color:var(--ink); cursor:pointer; font:inherit; }
.access-calendar__months button:hover:not(:disabled),.access-calendar__months button.is-selected { background:var(--sage-dark); color:#fff; }
.access-calendar__months button:disabled { color:rgba(63,79,56,.25); cursor:not-allowed; }
.access-calendar__days button:disabled { color:rgba(63,79,56,.25); cursor:not-allowed; }
.access-calendar-modal__hint { margin:1rem 0 0; color:var(--muted); font-size:.75rem; line-height:1.4; }
.access-stats-page { position:relative; }
.access-stats-loader { position:fixed; z-index:2147483647; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center; gap:.45rem; width:100vw; height:100vh; height:100dvh; margin:0; background:rgba(35,31,25,.58); color:#fff; font-size:1rem; font-weight:600; text-align:center; backdrop-filter:blur(3px); }
.access-stats-loader.is-visible { display:flex; }
.access-stats-loader i { animation:access-stats-spin .8s linear infinite; font-size:2.5rem; filter:drop-shadow(0 2px 5px rgba(0,0,0,.25)); }
@keyframes access-stats-spin { to { transform:rotate(360deg); } }
.account-stat-card { padding:1.15rem; border:1px solid rgba(91,73,54,.14); border-radius:1rem; background:rgba(255,255,255,.55); }
.account-stat-card span { display:block; color:var(--color-text-muted,#756b61); font-size:.85rem; }
.account-stat-card strong { display:block; margin-top:.35rem; color:var(--color-text,#3e3329); font-size:1.7rem; }
.account-stat-card small { font-size:.72rem; font-weight:500; }
.access-page-detail { padding:0; border:0; background:none; cursor:pointer; font:inherit; text-align:left; }
.access-page-detail strong { color:var(--sage-dark,#526448); text-decoration:underline; }
.access-page-modal-title { font-weight:600; }
.access-page-modal-path { display:block; margin-top:.2rem; color:var(--muted); font-size:.78rem; }
.access-bot-modal .account-table td strong { display:block; }
.access-bot-modal .account-table td small { display:block; margin-top:.2rem; color:var(--muted); font-size:.78rem; }
.access-stats-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; margin:1.5rem 0; }
.account-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.account-table th,.account-table td { padding:.7rem .55rem; border-bottom:1px solid rgba(91,73,54,.12); text-align:left; }
.account-table th { color:var(--color-text-muted,#756b61); font-weight:600; }
.access-bot-detail { padding:0; border:0; background:none; color:#6f8e76; text-decoration:underline; cursor:pointer; font:inherit; }
.access-bot-modal { width:min(680px,calc(100% - 2rem)); max-height:80vh; padding:0; border:0; border-radius:1rem; background:#fbf8f1; color:var(--color-text,#3e3329); box-shadow:0 1rem 4rem rgba(44,33,24,.28); }
.access-bot-modal::backdrop { background:rgba(36,29,23,.45); }
.access-bot-modal .app-modal__inner { position:relative; padding:1.5rem; }
.access-bot-modal .app-modal__close { position:absolute; top:1rem; right:1rem; border:0; background:none; font-size:1.6rem; cursor:pointer; }
.access-bot-modal .app-modal__title { margin:0 2rem 1.2rem 0; }
.access-bot-modal .account-table td:first-child { max-width:480px; overflow-wrap:anywhere; font-size:.82rem; }
.access-chart { margin-top:1.5rem; padding:1.25rem; border:1px solid rgba(91,73,54,.14); border-radius:1rem; background:rgba(255,255,255,.38); }
.access-chart + section { margin-top:1.5rem; }
.access-chart__head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.access-chart__legend { display:flex; gap:.8rem; flex-wrap:wrap; color:var(--color-text-muted,#756b61); font-size:.8rem; }
.access-chart__legend span { display:inline-flex; align-items:center; gap:.3rem; }
.access-chart__swatch { width:.65rem; height:.65rem; border-radius:50%; display:inline-block; }
.access-chart__swatch--total,.access-chart__bar--total { background:#6f8e76; }
.access-chart__swatch--new,.access-chart__bar--new { background:#d29a62; }
.access-chart__swatch--returning,.access-chart__bar--returning { background:#8d78a8; }
.access-chart__area-wrap { position:relative; margin-top:1.5rem; overflow-x:auto; }
.access-chart__area { display:block; width:100%; min-width:620px; height:280px; overflow:visible; }
.access-chart__axis { stroke:rgba(91,73,54,.2); stroke-width:1; }
.access-chart__area-fill { opacity:.16; }
.access-chart__area-fill--total { fill:#6f8e76; }
.access-chart__area-fill--new { fill:#d29a62; }
.access-chart__area-fill--returning { fill:#8d78a8; }
.access-chart__area-line { fill:none; stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; }
.access-chart__area-line--total { stroke:#6f8e76; }
.access-chart__area-line--new { stroke:#d29a62; }
.access-chart__area-line--returning { stroke:#8d78a8; }
.access-chart__label { fill:var(--color-text-muted,#756b61); font-size:11px; }
.access-chart__hit-area { fill:rgba(91,73,54,.035); cursor:crosshair; pointer-events:all; }
.access-chart__hit-area:hover { fill:rgba(91,73,54,.09); }
.access-chart__data-point { stroke:#fffaf4; stroke-width:1.5; }
.access-chart__data-point--total { fill:#6f8e76; }
.access-chart__data-point--new { fill:#d29a62; }
.access-chart__data-point--returning { fill:#8d78a8; }
.access-chart__tooltip { position:absolute; z-index:2; display:flex; flex-direction:column; gap:.25rem; min-width:125px; padding:.65rem .75rem; border:1px solid rgba(91,73,54,.18); border-radius:.65rem; background:rgba(255,252,247,.96); box-shadow:0 .35rem 1rem rgba(60,45,30,.14); color:var(--color-text,#4d443c); font-size:.76rem; pointer-events:none; transform:translateX(-50%); white-space:nowrap; }
.access-chart__tooltip[hidden] { display:none; }
.access-chart__tooltip strong { margin-bottom:.1rem; font-size:.8rem; }
.access-chart__tooltip span { display:flex; align-items:center; gap:.35rem; }
.access-chart__tooltip-dot { width:.45rem; height:.45rem; border-radius:50%; }
.access-chart__tooltip-dot--total { background:#6f8e76; }
.access-chart__tooltip-dot--new { background:#d29a62; }
.access-chart__tooltip-dot--returning { background:#8d78a8; }
.security-logs-table-wrap { width:100%; min-width:0; overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
.security-logs-table-wrap .account-table { min-width:48rem; }
@media (max-width:700px) { .account-stat-grid,.access-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .account-stat-card strong { font-size:1.35rem; } }
@media (max-width:700px) { .page-access-stats .access-stats-grid { grid-template-columns:1fr; } }
@media (max-width:700px) {
  .page-deposits .deposits-actions,
  .page-members .deposits-actions,
  .page-memorial-reminders .deposits-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.55rem;
  }

  .page-deposits .deposits-actions .btn,
  .page-members .deposits-actions .btn,
  .page-memorial-reminders .deposits-actions .btn {
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }
}
@media (max-width:700px) { .access-period-row { align-items:center; flex-direction:row; justify-content:space-between; gap:.25rem; padding-bottom:.7rem; } .access-period-tabs { flex:1 1 auto; min-width:0; } .access-period-tab { padding-inline:.65rem; font-size:.82rem; } .access-period-range { flex:0 0 auto; margin-top:0; font-size:.75rem; } }
@media (max-width:700px) { .access-chart__head { flex-direction:column; } .access-chart__area { height:230px; } }

.account-hub__logout {
  display: none;
}

@media (max-width: 759px) {
  .page-account .account-shell[data-account-view="hub"] .account-hub__logout {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    margin: 0;
    padding: 0.75rem 1.15rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0) 0%, var(--cream) 28%, var(--cream) 100%);
    border-top: 1px solid rgba(93, 114, 80, 0.1);
  }

  .page-account .account-shell[data-account-view="detail"] .account-hub__logout {
    display: none;
  }
}

.account-hub__logout button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(93, 114, 80, 0.14);
  background: rgba(168, 184, 156, 0.16);
  color: var(--sage-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.account-hub__logout button:hover {
  background: rgba(168, 184, 156, 0.28);
}

.account-hub__logout button i {
  color: var(--sage);
}

.account-tabs {
  --account-tab-surface: #fffdf8;
  --account-tab-border: rgba(93, 114, 80, 0.14);
  display: flex;
  flex-direction: column;
}

.account-tabs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0;
}

.account-tabs__tab {
  appearance: none;
  position: relative;
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(93, 114, 80, 0.14);
  border-radius: 0.85rem;
  background: rgba(168, 184, 156, 0.16);
  color: rgba(63, 79, 56, 0.78);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-tabs__tab:hover {
  background: rgba(168, 184, 156, 0.28);
  color: var(--sage-dark);
}

.account-tabs__tab.is-active {
  background: var(--sage-dark);
  color: #fffdf8;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(63, 79, 56, 0.16);
}

.account-tabs__tab.is-active:hover {
  background: var(--sage-deep);
  color: #fffdf8;
}

.account-tabs__tab:focus-visible {
  outline: 2px solid rgba(93, 114, 80, 0.35);
  outline-offset: 2px;
  z-index: 1;
}

.account-tabs__body {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.15rem 1.85rem;
  border-radius: 1.25rem;
  background: var(--account-tab-surface);
  border: 1px solid var(--account-tab-border);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

/* 비밀번호 변경: 바깥 카드 제거 + 본문 카드 화면 중앙 */
.page-account .account-shell[data-account-view="detail"] {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.page-account .account-shell[data-account-view="detail"] .account-tabs[data-active-tab="password"] {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-account .account-shell[data-account-view="detail"] .account-tabs[data-active-tab="password"] .account-tabs__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 1.25rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-account .account-shell[data-account-view="detail"] .account-tabs[data-active-tab="password"] .account-tabs__panel {
  width: 100%;
}

.page-account .account-shell[data-account-view="detail"] .account-tabs[data-active-tab="password"] .account-panel--solo {
  background: #fffdf8;
  border: 1px solid rgba(93, 114, 80, 0.14);
  box-shadow: var(--shadow-soft);
}

.account-tabs__panel[hidden] {
  display: none;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-panel--solo {
  max-width: 28rem;
  width: 100%;
  margin-inline: auto;
  height: auto;
}

.account-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem 1.1rem 1.25rem;
  border-radius: 1.1rem;
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid rgba(93, 114, 80, 0.1);
  box-shadow: none;
}

.account-panel--wide {
  grid-column: 1 / -1;
}

.account-profile__identity { margin-bottom: 1rem; text-align: center; }
.account-profile__social-badges { position: absolute; top: 1.35rem; right: 1.35rem; display: flex; gap: 0.35rem; }
.account-profile__social-badges .login-social-icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fffdf8; box-shadow: 0 2px 8px rgba(47, 65, 43, 0.12); }
.account-panel:has(.account-profile__social-badges) { position: relative; }
.account-profile__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  overflow: visible;
  border-radius: 50%;
  background: rgba(168, 184, 156, 0.25);
  color: var(--sage-dark);
  font-size: 2rem;
  margin: 0 auto;
  cursor: pointer;
}
.account-profile__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-profile__avatar--fallback img { display: none; }
.account-profile__upload-hint { position: absolute; top: calc(100% + 0.35rem); left: 50%; transform: translateX(-50%); width: max-content; color: var(--sage-dark); font-size: 0.72rem; white-space: nowrap; }
.account-profile__avatar--fallback { border: 1px solid rgba(93, 114, 80, 0.16); }
.account-profile__upload { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1rem; }
.account-profile__upload .btn { cursor: pointer; }

.account-panel--danger { width: 100%; border-color: rgba(93, 114, 80, 0.14); }
.account-delete-list { margin: 0.35rem 0 1.35rem; padding-left: 1.25rem; color: var(--ink-soft); line-height: 1.8; }
.account-delete-confirm { display: flex; align-items: flex-start; gap: 0.55rem; margin-top: 0.2rem; color: var(--ink-soft); font-size: 0.9rem; }
.account-delete-confirm input { margin-top: 0.25rem; accent-color: var(--sage); }
.btn--danger { background: var(--sage); color: #fffaf6; }
.btn--danger:hover, .btn--danger:focus-visible { background: var(--sage-dark); }

.account-panel--flush {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.account-panel__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.15rem;
}

.account-panel--wide > .account-panel__intro {
  margin-bottom: 0.35rem;
}

.account-panel__icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 0 0.85rem;
  border-radius: 50%;
  background: rgba(168, 184, 156, 0.22);
  border: 1px solid rgba(93, 114, 80, 0.12);
  color: var(--sage-dark);
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(63, 79, 56, 0.08);
}

.account-panel__intro .account-panel__title {
  margin-bottom: 0.4rem;
}

.account-panel__intro .account-panel__meta {
  margin-bottom: 1.25rem;
  max-width: 32rem;
}

.account-panel__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.account-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.account-panel__head-copy {
  min-width: 0;
}

.account-panel__head .account-panel__title {
  margin-bottom: 0.35rem;
}

.account-panel__meta--flush {
  margin-bottom: 0;
}

#account-panel-letters .account-panel__title { display: none; }
#account-panel-letters .account-panel__meta { width: 100%; text-align: center; }

@media (max-width: 700px) {
  #account-panel-sanctuary .account-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
  }
  #account-panel-sanctuary .account-panel__head-copy { display: contents; }
  #account-panel-sanctuary .account-panel__title { display: none; }
  #account-panel-sanctuary .account-panel__head-actions { display: contents; }
  #account-panel-sanctuary .account-panel__head-actions { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  #account-panel-sanctuary .account-panel__slots { order: 1; padding: .42rem .7rem; border: 1px solid rgba(93,114,80,.18); border-radius: .85rem; background: rgba(255,255,255,.55); color: var(--sage-dark); font-size: .78rem; font-weight: 600; }
  #account-panel-sanctuary .account-panel__add { order: 2; }
  #account-panel-sanctuary .sanctuary-panel__meta { grid-column: 1 / -1; grid-row: 1; margin: .1rem 0 .25rem; padding-left: 1.1rem; }
  #account-panel-sanctuary .sanctuary-panel__meta li { margin: .15rem 0; }
  #account-panel-sanctuary .sanctuary-toolbar { margin: 1rem 0; }
  #account-panel-sanctuary .sanctuary-search { flex: 0 0 var(--sanctuary-tile-w, min(17.5rem, 72vw)); width: var(--sanctuary-tile-w, min(17.5rem, 72vw)); max-width: var(--sanctuary-tile-w, min(17.5rem, 72vw)); }
}

.letters-empty {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  padding: 2.2rem 1rem 1.6rem;
}

.letters-empty__visual {
  display: grid;
  place-items: center;
  width: 5.75rem;
  height: 5.75rem;
  margin-bottom: 0.25rem;
  border-radius: 1.35rem;
  background: rgba(122, 143, 106, 0.08);
  border: 1px solid rgba(93, 114, 80, 0.12);
  color: var(--sage-dark);
  font-size: 1.85rem;
}

.letters-empty__text {
  margin: 0;
  color: var(--sage-dark);
  font-size: 1.05rem;
  font-weight: 600;
}

.letters-empty__hint {
  margin: 0 0 0.35rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.letters-search {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.letters-search__field {
  position: relative;
  display: block;
  width: min(100%, 18rem);
}

.letters-search__field > i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: rgba(93, 114, 80, 0.55);
  font-size: 0.82rem;
  pointer-events: none;
}

.letters-search__input {
  width: 100%;
  height: 2.45rem;
  padding: 0 0.85rem 0 2.25rem;
  border: 1px solid rgba(93, 114, 80, 0.16);
  border-radius: 0.8rem;
  background: rgba(255, 252, 246, 0.9);
  color: var(--ink);
  font: inherit;
}

.letters-search__input::placeholder {
  color: rgba(63, 79, 56, 0.48);
}

.letters-search__input:focus {
  outline: 2px solid rgba(93, 114, 80, 0.28);
  outline-offset: 1px;
  border-color: rgba(93, 114, 80, 0.28);
}

.letters-search__empty {
  margin: 1.5rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.letters-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}
.account-panel__head-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

.account-panel__slots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.85rem;
  color: var(--sage-dark);
  background: rgba(122, 143, 106, 0.1);
  border: 1px solid rgba(93, 114, 80, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.letters-trash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.4rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(119, 82, 64, 0.3);
  border-radius: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgba(255, 248, 240, 0.55);
  transition: 0.2s ease;
  box-sizing: border-box;
}

.letters-trash i {
  font-size: 1rem;
}

.letters-trash.is-ready {
  border-color: rgba(166, 91, 64, 0.65);
  color: #a65b40;
  background: rgba(255, 238, 225, 0.65);
}

.letters-trash.is-over {
  transform: scale(1.01);
  background: rgba(236, 196, 177, 0.75);
  color: #853d28;
  border-style: solid;
}

.letters-card.is-dragging { opacity: 0.35; }

.letters-item {
  margin: 0;
}

.letters-card {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.2s var(--ease);
}

.letters-card:hover,
.letters-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
}

.letters-card__envelope {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}

.letters-card__envelope img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s var(--ease);
}

.letters-card:hover .letters-card__envelope img,
.letters-card:focus-visible .letters-card__envelope img {
  transform: scale(1.025);
}

.letters-card__summary {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.letters-card__summary::-webkit-details-marker {
  display: none;
}

.letters-card__meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.letters-card__date {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.letters-card__to {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  justify-content: center;
}

.letters-card__relation {
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
}

.letters-card__preview {
  display: none;
}

@media (max-width: 900px) {
  .letters-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .letters-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .letters-card__summary {
    padding: 0.75rem;
  }

  .letters-card__envelope {
    width: 100%;
  }
}

.sent-letter-modal__form {
  gap: 0;
}

.sent-letter-modal__close {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 253, 248, 0.72);
}

.sent-letter-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 114, 80, 0.18) transparent;
}

.sent-letter-modal__scroll::-webkit-scrollbar {
  width: 3px;
}

.sent-letter-modal__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sent-letter-modal__scroll::-webkit-scrollbar-thumb {
  background: rgba(93, 114, 80, 0.18);
  border-radius: 999px;
}

.sent-letter-modal__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 114, 80, 0.32);
}

.sent-letter-modal__textarea {
  width: 100%;
  min-width: 0;
  min-height: 248px;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='32'%3E%3Cline x1='0' y1='31.5' x2='100' y2='31.5' stroke='%235d7250' stroke-opacity='0.22' stroke-width='1' stroke-dasharray='2 5'/%3E%3C/svg%3E");
  background-size: 100% 32px;
  background-repeat: repeat-y;
  line-height: 32px;
  color: var(--ink);
  font-family: var(--font-serif);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.account-panel__add {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  color: var(--sage-dark);
  background: rgba(122, 143, 106, 0.12);
  border: 1px solid rgba(93, 114, 80, 0.16);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.account-panel__add:hover,
.account-panel__add:focus-visible {
  background: rgba(122, 143, 106, 0.2);
  border-color: rgba(93, 114, 80, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.account-panel__add i {
  font-size: 0.95rem;
  line-height: 1;
}

.account-panel__meta {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-alert {
  margin: 0 0 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(180, 90, 70, 0.1);
  border: 1px solid rgba(180, 90, 70, 0.22);
  color: #8a4334;
  font-size: 0.9rem;
}

.account-alert--ok {
  background: rgba(122, 143, 106, 0.12);
  border-color: rgba(93, 114, 80, 0.22);
  color: var(--sage-dark);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.account-form__submit {
  width: 100%;
  margin-top: auto;
}

.sanctuary-empty {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  padding: 0.85rem 0 0.2rem;
  color: var(--ink-soft);
}

.sanctuary-empty__visual {
  display: grid;
  place-items: center;
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 1.35rem;
  background: rgba(122, 143, 106, 0.08);
  border: 1px solid rgba(93, 114, 80, 0.12);
  overflow: hidden;
}

.sanctuary-empty__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sanctuary-empty__text {
  margin: 0;
  max-width: 28rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.sanctuary-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}

.sanctuary-search {
  position: relative;
  display: block;
  flex: 0 1 16rem;
  width: 100%;
  max-width: 16rem;
  min-width: 0;
}

.sanctuary-search > i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: rgba(93, 114, 80, 0.55);
  font-size: 0.85rem;
  pointer-events: none;
}

.sanctuary-search__input {
  width: 100%;
  height: 2.55rem;
  padding: 0 0.9rem 0 2.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(93, 114, 80, 0.16);
  background: rgba(255, 252, 246, 0.9);
  color: var(--ink);
  font: inherit;
}

.sanctuary-search__input::placeholder {
  color: rgba(63, 79, 56, 0.45);
}

.sanctuary-search__input:focus {
  outline: 2px solid rgba(93, 114, 80, 0.28);
  outline-offset: 1px;
  border-color: rgba(93, 114, 80, 0.28);
}

.sanctuary-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.sanctuary-carousel__viewport {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28.5rem;
  overflow: visible;
  padding: 1.25rem 0.75rem 2.1rem;
  perspective: 1400px;
  cursor: grab;
}

.sanctuary-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.sanctuary-carousel__viewport.is-dragging * {
  pointer-events: none;
}

.sanctuary-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.sanctuary-carousel__nav {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid rgba(93, 114, 80, 0.18);
  box-shadow: 0 8px 18px rgba(63, 79, 56, 0.1);
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.sanctuary-carousel__nav:hover:not(:disabled),
.sanctuary-carousel__nav:focus-visible:not(:disabled) {
  background: #fff;
  color: var(--sage-deep);
  outline: none;
  transform: translateY(-1px);
}

.sanctuary-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.sanctuary-carousel__nav i {
  font-size: 0.9rem;
  line-height: 1;
}

.sanctuary-carousel__nav[hidden] {
  display: none;
}

.sanctuary-tile {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  width: min(17.5rem, 72vw);
  max-width: 17.5rem;
  overflow: visible;
  border-radius: 1.15rem;
  background: #fffdf8;
  border: 1px solid rgba(93, 114, 80, 0.12);
  box-shadow: 0 14px 28px rgba(63, 79, 56, 0.12);
  transform-origin: center center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.35s ease;
  will-change: transform, opacity;
}

.sanctuary-tile[hidden],
.sanctuary-tile.is-search-hidden,
.sanctuary-tile.is-stage-away {
  display: none;
}

.sanctuary-carousel.is-empty {
  grid-template-columns: minmax(0, 1fr);
}

.sanctuary-carousel.is-empty .sanctuary-carousel__viewport {
  justify-self: center;
  width: 100%;
  cursor: default;
  perspective: none;
}

.sanctuary-tile--empty {
  display: block;
  position: relative;
  justify-self: center;
  width: var(--sanctuary-tile-w, min(17.5rem, 72vw));
  max-width: none;
  height: var(--sanctuary-tile-h, 29.4rem);
  border: 1px solid rgba(93, 114, 80, 0.12);
  background: #f4efe4;
  box-shadow: 0 10px 24px rgba(63, 79, 56, 0.08);
  will-change: auto;
  transition: opacity 0.25s ease;
}

.sanctuary-tile--empty.is-stage-center {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: none;
  box-shadow: 0 10px 24px rgba(63, 79, 56, 0.08);
  pointer-events: auto;
  cursor: default;
}

.sanctuary-tile--empty[hidden] {
  display: none;
}

.sanctuary-tile__tarot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #f4efe4;
  pointer-events: none;
}

.sanctuary-tile.is-stage-center {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 16px 32px rgba(63, 79, 56, 0.14);
  pointer-events: auto;
}

.sanctuary-tile.is-stage-left,
.sanctuary-tile.is-stage-right {
  z-index: 2;
  opacity: 0.78;
  filter: brightness(0.94) saturate(0.92);
  pointer-events: auto;
  cursor: pointer;
}

.sanctuary-tile.is-stage-left a,
.sanctuary-tile.is-stage-left button,
.sanctuary-tile.is-stage-right a,
.sanctuary-tile.is-stage-right button {
  pointer-events: none;
}

.sanctuary-tile.is-stage-left {
  transform: translate3d(-62%, 0.55rem, -80px) scale(0.84);
  box-shadow: 0 10px 22px rgba(63, 79, 56, 0.1);
}

.sanctuary-tile.is-stage-right {
  transform: translate3d(62%, 0.55rem, -80px) scale(0.84);
  box-shadow: 0 10px 22px rgba(63, 79, 56, 0.1);
}

.sanctuary-tile.is-stage-left:hover,
.sanctuary-tile.is-stage-right:hover {
  opacity: 0.9;
  filter: brightness(0.97);
}

.sanctuary-tile__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 1.1rem 1.1rem 0 0;
  background: #d7ddd2;
}

.sanctuary-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(0.98);
}

.sanctuary-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 32, 22, 0.05) 0%,
    rgba(24, 32, 22, 0.18) 42%,
    rgba(24, 32, 22, 0.72) 100%
  );
  pointer-events: none;
}

.sanctuary-tile__badges {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.sanctuary-tile__star {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 252, 246, 0.28);
  border-radius: 999px;
  background: rgba(24, 32, 22, 0.42);
  color: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sanctuary-tile__star i {
  font-size: 0.95rem;
  line-height: 1;
}

button.sanctuary-tile__star:hover {
  background: rgba(24, 32, 22, 0.58);
  color: #f3d67a;
  transform: translateY(-1px);
}

.sanctuary-tile__star.is-active {
  cursor: default;
  background: rgba(201, 168, 76, 0.92);
  border-color: rgba(255, 252, 246, 0.35);
  color: #2f2a18;
}

.sanctuary-tile__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-deep);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.sanctuary-tile__caption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.85rem;
  z-index: 1;
  color: #fff;
}

.sanctuary-tile__name {
  margin: 0 0 0.15rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.sanctuary-tile__meta,
.sanctuary-tile__years {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.sanctuary-tile__body {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 0 0 1.1rem 1.1rem;
  background: #fffdf8;
}

.sanctuary-tile__status {
  display: flex;
  flex-direction: column;
  min-height: 5.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(122, 143, 106, 0.08);
  border: 1px solid rgba(93, 114, 80, 0.1);
}

.sanctuary-tile__status-copy {
  margin: 0;
  flex: 1 1 auto;
  min-height: calc(0.82rem * 1.45 * 3);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sanctuary-tile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sanctuary-tile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sanctuary-edit-modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 2rem 1.6rem 1.6rem;
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border-radius: 1.6rem;
}

.sanctuary-edit-modal.is-memory-step .sanctuary-edit-modal__inner,
.sanctuary-edit-modal.is-tribute-step .sanctuary-edit-modal__inner {
  overflow: hidden;
}

.sanctuary-edit-modal:not(.is-memory-step):not(.is-tribute-step) .sanctuary-edit-modal__inner {
  overflow: hidden;
}

.sanctuary-edit-modal__header {
  flex-shrink: 0;
}

.sanctuary-edit-modal__header-bar.site-header__inner {
  position: relative;
  width: auto;
  margin: 0;
  min-height: 0;
  display: block;
  gap: 0;
}

.sanctuary-edit-modal__back,
.sanctuary-edit-modal__header-actions {
  display: none;
}

.sanctuary-edit-modal__close {
  position: absolute;
  top: -0.55rem;
  right: -0.35rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: var(--sage-deep);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sanctuary-edit-modal__close:hover,
.sanctuary-edit-modal__close:focus-visible {
  background: rgba(122, 143, 106, 0.14);
  color: var(--sage-dark);
  outline: none;
}

.sanctuary-edit-modal__close i {
  font-size: 1.05rem;
  line-height: 1;
}

.sanctuary-edit-modal__title.site-header__title {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  z-index: auto;
  margin: 0 2.4rem 0.4rem 0;
  max-width: none;
  text-align: left;
  pointer-events: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.sanctuary-edit-modal__hint {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.sanctuary-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 0;
}

.sanctuary-edit-form__scroll {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 0;
}

.sanctuary-edit-form__portrait .sanctuary-portrait__ring {
  width: 9.5rem;
  height: 9.5rem;
}

.sanctuary-edit-form__fields {
  padding-top: 0.15rem;
  border-top: 0;
  gap: 1rem;
}

.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__scroll,
.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__scroll {
  flex: 1 1 auto;
  max-height: min(52vh, 30rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.35rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sanctuary-edit-modal.is-memory-step .sanctuary-edit-form__scroll,
.sanctuary-edit-modal.is-tribute-step .sanctuary-edit-form__scroll {
  display: none;
}

.sanctuary-edit-modal.is-memory-step .sanctuary-edit-form__name,
.sanctuary-edit-modal.is-tribute-step .sanctuary-edit-form__name {
  display: none;
}

.sanctuary-edit-form [data-sanctuary-step-field][hidden] {
  display: none !important;
}

.sanctuary-edit-form .is-step-hidden {
  display: none !important;
}

.sanctuary-edit-form__fields .sanctuary-textarea {
  min-height: 5.5rem;
}

.sanctuary-continue,
.btn.sanctuary-continue {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  height: 2.65rem;
  min-height: 2.65rem;
  max-height: 2.65rem;
  margin-top: -0.2rem;
  padding: 0 0.95rem;
  border: 1px dashed rgba(93, 114, 80, 0.3);
  border-radius: 0.9rem;
  background: rgba(122, 143, 106, 0.06);
  color: var(--ink-soft);
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sanctuary-continue:hover,
.sanctuary-continue:focus-visible,
.btn.sanctuary-continue:hover,
.btn.sanctuary-continue:focus-visible {
  background: rgba(122, 143, 106, 0.12);
  border-color: rgba(93, 114, 80, 0.48);
  outline: none;
  transform: translateY(-1px);
}

.sanctuary-continue span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sanctuary-continue strong {
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.sanctuary-continue em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.sanctuary-continue i {
  margin-left: 0.2rem;
  font-size: 0.68rem;
}

.sanctuary-memories {
  display: grid;
  gap: 1rem;
}

.sanctuary-tribute {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.sanctuary-tribute-templates {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.1rem 0 0.1rem;
}

.sanctuary-tribute-templates__label {
  margin-right: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.sanctuary-tribute-template {
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 1px solid rgba(93, 114, 80, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--sage-dark);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.sanctuary-tribute-template:hover,
.sanctuary-tribute-template:focus-visible,
.sanctuary-tribute-template.is-active {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: #fff;
  outline: none;
}

.sanctuary-tribute-template--reset {
  width: auto;
  padding: 0 0.65rem;
  border-radius: 999px;
  margin-left: auto;
}

.sanctuary-edit-modal.is-tribute-step .sanctuary-tribute {
  flex: 1 1 auto;
  overflow: hidden;
  margin-top: 1rem;
}

.sanctuary-edit-modal.is-tribute-step .sanctuary-tribute .sanctuary-memories__intro {
  flex-shrink: 0;
}

.sanctuary-edit-modal.is-tribute-step .sanctuary-tribute .sanctuary-field {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}

.sanctuary-edit-modal.is-tribute-step .sanctuary-tribute .sanctuary-label,
.sanctuary-edit-modal.is-tribute-step .sanctuary-tribute .sanctuary-count {
  flex-shrink: 0;
}

.sanctuary-edit-modal.is-tribute-step .sanctuary-tribute .sanctuary-textarea {
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  min-height: 0 !important;
  max-height: none;
  resize: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sanctuary-memories__intro {
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(226, 201, 122, 0.13);
  border: 1px solid rgba(201, 168, 76, 0.18);
}

.sanctuary-memories__eyebrow {
  margin: 0 0 0.25rem;
  color: #8a7340;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sanctuary-memories__title {
  margin: 0 0 0.3rem;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
}

.sanctuary-memories__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.sanctuary-memories__fields {
  display: grid;
  gap: 0.9rem;
  max-height: min(42vh, 24rem);
  overflow-y: auto;
  padding-right: 0.35rem;
}

/* 입력 중 내부 스크롤을 시작하면 이전 입력칸의 포커스 표시가 화면에 남지 않게 합니다. */
.sanctuary-memories__fields.is-scrolling :focus {
  outline: none;
  box-shadow: none;
  caret-color: transparent;
}

.sanctuary-memory-textarea {
  min-height: 5.4rem !important;
}

.sanctuary-edit-form__back {
  width: 100%;
  min-height: 2.65rem;
  color: var(--sage-dark);
  background: #fff;
  border: 1px solid rgba(93, 114, 80, 0.22);
}

.sanctuary-edit-form__back:hover {
  background: rgba(122, 143, 106, 0.08);
}

.sanctuary-edit-form__next {
  width: 100%;
  min-height: 2.65rem;
  color: var(--sage-dark);
  background: #fff;
  border: 1px solid rgba(93, 114, 80, 0.22);
}

.sanctuary-edit-form__next:hover {
  background: rgba(122, 143, 106, 0.08);
}

.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__next,
.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__next {
  height: 2.65rem;
  min-height: 2.65rem;
  max-height: 2.65rem;
  padding: 0 0.95rem;
  border: 1px dashed rgba(93, 114, 80, 0.3);
  background: rgba(122, 143, 106, 0.06);
  box-shadow: none;
}

.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__tribute-open {
  height: 2.65rem;
  min-height: 2.65rem;
  max-height: 2.65rem;
  padding: 0 0.95rem;
}

.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__next:hover,
.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__next:focus-visible,
.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__next:hover,
.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__next:focus-visible {
  background: rgba(122, 143, 106, 0.12);
}

.sanctuary-edit-form__actions [hidden],
.sanctuary-edit-form__fields[hidden],
.sanctuary-memories[hidden],
.sanctuary-tribute[hidden],
.sanctuary-continue[hidden] {
  display: none;
}

.sanctuary-edit-form__actions {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  background: transparent;
}

.sanctuary-edit-form.is-memory-step .sanctuary-edit-form__actions,
.sanctuary-edit-modal.is-tribute-step .sanctuary-edit-form__actions,
.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__actions,
.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__next,
.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__next {
  grid-column: 1 / -1;
  grid-row: 1;
}

.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__cancel {
  grid-column: 1;
  grid-row: 2;
}

.sanctuary-edit-modal.is-identity-step .sanctuary-edit-form__submit {
  grid-column: 2;
  grid-row: 2;
}

.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__tribute-open {
  grid-column: 1 / -1;
  grid-row: 2;
}

.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__cancel {
  grid-column: 1;
  grid-row: 3;
}

.sanctuary-edit-modal.is-detail-step .sanctuary-edit-form__submit {
  grid-column: 2;
  grid-row: 3;
}

.sanctuary-edit-form__cancel,
.sanctuary-edit-form__submit,
.sanctuary-edit-form__back,
.sanctuary-edit-form__next {
  height: 2.65rem;
  min-height: 2.65rem;
  max-height: 2.65rem;
  width: 100%;
  padding: 0 1.1rem;
  line-height: 1;
  box-shadow: none;
}

.sanctuary-edit-form__submit.btn--primary {
  box-shadow: 0 4px 12px rgba(93, 114, 80, 0.18);
}

.sanctuary-edit-form__cancel {
  background: #fff;
  color: var(--sage-dark);
  border: 1px solid rgba(93, 114, 80, 0.22);
}

.sanctuary-edit-form__cancel:hover {
  background: rgba(122, 143, 106, 0.08);
}

.sanctuary-tile__btn i {
  font-size: 0.82rem;
}

.sanctuary-tile__btn--primary {
  background: var(--sage-deep);
  color: #fff;
}

.sanctuary-tile__btn--primary:hover {
  background: var(--sage-dark);
}

.sanctuary-tile__btn--ghost {
  background: #fff;
  color: var(--sage-dark);
  border: 1px solid rgba(93, 114, 80, 0.22);
}

.sanctuary-tile__btn--ghost:hover {
  background: rgba(122, 143, 106, 0.08);
}

.sanctuary-tile__btn--danger {
  grid-column: 1 / -1;
  background: rgba(180, 90, 70, 0.08);
  color: #8a4334;
  border: 1px solid rgba(180, 90, 70, 0.22);
}

.sanctuary-tile__btn--danger:hover {
  background: rgba(180, 90, 70, 0.14);
}

.sanctuary-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.sanctuary-delete-actions .btn {
  width: 100%;
  min-height: 2.65rem;
}

.sanctuary-delete-actions__confirm {
  background: #8a4334;
  color: #fff;
  box-shadow: 0 10px 22px rgba(138, 67, 52, 0.22);
}

.account-banner {
  margin: 0 auto 1rem;
  max-width: 58rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(180, 90, 70, 0.1);
  border: 1px solid rgba(180, 90, 70, 0.22);
  color: #8a4334;
  font-size: 0.92rem;
}

.sanctuary-tile.is-inactive {
  opacity: 0.88;
}

.sanctuary-tile.is-inactive .sanctuary-tile__image {
  filter: grayscale(0.35) saturate(0.7) contrast(0.95);
}

.sanctuary-tile__badge--permanent {
  background: #8a7340;
}

.sanctuary-tile__badge--permanent i {
  font-size: 0.68rem;
  line-height: 1;
}

.sanctuary-tile__badge--remain {
  background: var(--sage-deep);
}

.sanctuary-tile__badge--remain i,
.sanctuary-tile__badge--inactive i {
  font-size: 0.68rem;
  line-height: 1;
}

.sanctuary-tile__badge--inactive {
  background: #7a6a62;
}

.sanctuary-tile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sanctuary-tile__btn--permanent {
  grid-column: 1 / -1;
  background: rgba(201, 168, 76, 0.14);
  color: #6f5a28;
  border: 1px solid rgba(201, 168, 76, 0.35);
}

.sanctuary-tile__btn--permanent:hover {
  background: rgba(201, 168, 76, 0.22);
}

.sanctuary-tile__btn--permanent.is-done,
.sanctuary-tile__btn--permanent.is-pending {
  cursor: default;
  opacity: 0.92;
}

.sanctuary-tile__btn--primary.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.permanent-modal__inner {
  text-align: left;
  max-width: 26rem;
}

.permanent-modal__lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.permanent-bank {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  background: rgba(122, 143, 106, 0.08);
  border: 1px solid rgba(93, 114, 80, 0.12);
}

.permanent-bank__row {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.4rem;
  padding: 0.28rem 0;
  font-size: 0.9rem;
}

.permanent-bank__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.permanent-bank__row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: break-all;
}

.permanent-bank__note {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.permanent-form {
  display: grid;
  gap: 0.9rem;
}

.permanent-form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.permanent-form__actions .btn {
  width: 100%;
  min-height: 2.65rem;
}

.sanctuary-limit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.sanctuary-limit-actions .btn {
  width: 100%;
  min-height: 2.65rem;
}

.sanctuary-limit-actions .btn.is-hidden,
.sanctuary-limit-actions a.is-hidden {
  display: none !important;
}

.sanctuary-limit-actions a.btn {
  text-decoration: none;
}

.deposits-empty {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: 16rem;
  padding: 2rem 1rem 1.5rem;
  color: var(--ink-soft);
}

.deposits-empty__visual {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.5rem;
  background: rgba(122, 143, 106, 0.08);
  border: 1px solid rgba(93, 114, 80, 0.12);
  overflow: hidden;
}

.deposits-empty__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deposits-empty__text {
  margin: 0;
  max-width: 26rem;
  color: var(--sage-dark);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.deposits-empty__hint {
  margin: 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.deposits-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.85rem;
  margin: 0 0 1.15rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(122, 143, 106, 0.06);
  border: 1px solid rgba(93, 114, 80, 0.12);
}

.page-deposits .account-panel--wide > .deposits-filters:first-of-type,
.page-members .account-panel--wide > .deposits-filters:first-of-type,
.page-memorial-reminders .account-panel--wide > .deposits-filters:first-of-type,
.page-deposit-history .account-panel--wide > .deposits-table-wrap:first-of-type,
.page-deposit-history .account-panel--wide > .deposits-empty:first-of-type {
  margin-top: 0;
}

.deposits-filters__field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.deposits-filters__field--grow {
  grid-column: 1 / -1;
}

.deposits-filters__dates {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 0.75rem 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.deposits-filters__dates .deposits-filters__field {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  max-width: 100%;
}

.deposits-filters__date-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(93, 114, 80, 0.22);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.deposits-filters__date-btn.is-empty {
  color: var(--muted);
}

.deposits-filters__date-btn i {
  color: var(--muted);
  font-size: 0.95rem;
}

.deposits-filters__date-btn:hover,
.deposits-filters__date-btn:focus-visible {
  border-color: rgba(122, 143, 106, 0.45);
  outline: none;
}

.deposits-filters__date-btn:focus-visible {
  outline: 2px solid rgba(122, 143, 106, 0.35);
  outline-offset: 1px;
}

.deposits-filters__label {
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.deposits-filters__input {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(93, 114, 80, 0.22);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.deposits-filters__input:focus {
  outline: 2px solid rgba(122, 143, 106, 0.35);
  outline-offset: 1px;
}

.deposits-filters__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.deposits-filters__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 4.5rem;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0.38rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
  box-shadow: none;
}

.deposits-filters__actions .btn:hover {
  transform: none;
}

.deposits-filters__reset {
  background: #fff;
  color: var(--sage-dark);
  border: 1px solid rgba(93, 114, 80, 0.22);
}

.deposits-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.deposits-actions .btn,
.deposits-table .btn.btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0.22rem 0.55rem;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.65;
  box-shadow: none;
  border-radius: 999px;
}

.deposits-actions .btn:hover {
  transform: none;
}

.deposits-actions__delete {
  background: rgba(180, 90, 70, 0.08);
  color: #8a4334;
  border: 1px solid rgba(180, 90, 70, 0.22);
}

.deposits-actions__delete:hover {
  background: rgba(180, 90, 70, 0.14);
}

.deposits-actions__refund {
  background: rgba(90, 120, 160, 0.1);
  color: #3f5a78;
  border: 1px solid rgba(90, 120, 160, 0.28);
}

.deposits-actions__refund:hover {
  background: rgba(90, 120, 160, 0.16);
}

.deposits-table-wrap {
  overflow-x: auto;
}

.deposits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.deposits-table th,
.deposits-table td {
  padding: 0.65rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid rgba(93, 114, 80, 0.12);
  vertical-align: middle;
}

.deposits-table th {
  color: var(--sage-dark);
  font-weight: 600;
  white-space: nowrap;
}

.deposits-status {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.deposits-status--pending {
  background: rgba(201, 168, 76, 0.18);
  color: #6f5a28;
}

.deposits-status--approved {
  background: rgba(122, 143, 106, 0.18);
  color: var(--sage-dark);
}

.deposits-status--rejected {
  background: rgba(180, 90, 70, 0.12);
  color: #8a4334;
}

.deposits-status--refunded {
  background: rgba(90, 120, 160, 0.12);
  color: #3f5a78;
}

.deposits-status--admin {
  background: rgba(122, 143, 106, 0.18);
  color: var(--sage-dark);
}

.deposits-status--member {
  background: rgba(120, 130, 140, 0.12);
  color: #5a6570;
}

.deposits-status--memorial-day {
  background: rgba(122, 143, 106, 0.18);
  color: var(--sage-dark);
}

.deposits-status--memorial-soon {
  background: rgba(201, 168, 76, 0.18);
  color: #6f5a28;
}

.app-modal.memorial-recipients-modal {
  width: min(40rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  overflow: hidden;
}

.app-modal.memorial-recipients-modal .memorial-recipients-modal__inner {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
}

.app-modal.memorial-recipients-modal .app-modal__title {
  text-align: center;
}

.app-modal.memorial-recipients-modal .app-modal__message {
  margin-bottom: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
}

.memorial-recipients-modal__table-wrap {
  max-height: min(52vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 0 1rem;
  padding: 0.15rem 0.35rem 0.35rem;
  border: 1px solid rgba(93, 114, 80, 0.12);
  border-radius: 0.85rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.memorial-recipients-modal__table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.memorial-recipients-modal__table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
}

.memorial-recipients-modal__table th,
.memorial-recipients-modal__table td {
  padding: 0.55rem 0.4rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
}

.memorial-recipients-modal__table th:nth-child(1),
.memorial-recipients-modal__table td:nth-child(1) {
  width: 18%;
}

.memorial-recipients-modal__table th:nth-child(2),
.memorial-recipients-modal__table td:nth-child(2) {
  width: 18%;
}

.memorial-recipients-modal__table th:nth-child(3),
.memorial-recipients-modal__table td:nth-child(3) {
  width: 18%;
}

.memorial-recipients-modal__table th:nth-child(4),
.memorial-recipients-modal__table td:nth-child(4) {
  width: 28%;
}

.memorial-recipients-modal__table th:nth-child(5),
.memorial-recipients-modal__table td:nth-child(5) {
  width: 18%;
}

.memorial-recipients-modal__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f5ef;
  white-space: nowrap;
}

.app-modal.memorial-recipients-modal .sanctuary-delete-actions {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.app-modal.memorial-recipients-modal .sanctuary-delete-actions .btn {
  width: auto;
  min-width: 8rem;
}

@media (max-width: 720px) {
  .app-modal.memorial-recipients-modal {
    width: min(100vw - 1.25rem, 24rem);
  }

  .memorial-recipients-modal__table,
  .memorial-recipients-modal__table thead,
  .memorial-recipients-modal__table tbody,
  .memorial-recipients-modal__table tr,
  .memorial-recipients-modal__table th,
  .memorial-recipients-modal__table td {
    display: block;
    width: 100%;
  }

  .memorial-recipients-modal__table thead {
    display: none;
  }

  .memorial-recipients-modal__table tbody tr {
    margin: 0.45rem 0;
    padding: 0.55rem 0.45rem;
    border: 1px solid rgba(93, 114, 80, 0.1);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.55);
  }

  .memorial-recipients-modal__table td {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: 0.35rem 0.55rem;
    padding: 0.28rem 0.15rem;
    border-bottom: 0;
  }

  .memorial-recipients-modal__table td::before {
    content: attr(data-label);
    color: var(--sage-dark);
    font-size: 0.78rem;
    font-weight: 600;
  }
}

.members-self-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(122, 143, 106, 0.14);
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.members-social-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.members-social-badges .login-social-icon {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 1px 4px rgba(47, 65, 43, 0.12);
}

.members-signup-email {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.members-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.members-role-badge {
  display: inline-flex;
  cursor: pointer;
}

.members-role-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2.05rem;
  min-height: 2.05rem;
  max-height: 2.05rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 114, 80, 0.18);
  background: rgba(255, 252, 246, 0.92);
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.members-role-badge:hover span {
  border-color: rgba(122, 143, 106, 0.45);
  background: rgba(122, 143, 106, 0.1);
}

.members-role-badge:has(:checked) span,
.members-role-badge:has(:focus-visible) span {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
  box-shadow: 0 3px 8px rgba(93, 114, 80, 0.18);
}

.members-role-badge:has(:focus-visible) span {
  outline: 2px solid rgba(168, 184, 156, 0.7);
  outline-offset: 2px;
}

@media (min-width: 760px) {
  .page-members .account-shell {
    width: min(1180px, calc(100% - 2.5rem));
  }
}

.page-members .deposits-filters__field--roles {
  grid-column: 1 / -1;
}

.page-deposits .deposits-filters__field--types {
  grid-column: 1 / -1;
}

.deposits-done {
  color: var(--muted);
  font-size: 0.85rem;
}

.page-deposits .dt-container,
.page-members .dt-container,
.page-memorial-reminders .dt-container {
  margin-top: 0.25rem;
}

.page-deposits .dt-layout-row,
.page-members .dt-layout-row,
.page-memorial-reminders .dt-layout-row {
  margin: 0.65rem 0;
}

.page-deposits .dt-search,
.page-members .dt-search,
.page-memorial-reminders .dt-search {
  display: none;
}

.page-deposits .dt-length label,
.page-deposits .dt-info,
.page-members .dt-length label,
.page-memorial-reminders .dt-length label,
.page-members .dt-info,
.page-memorial-reminders .dt-info {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.page-deposits .dt-length select,
.page-members .dt-length select,
.page-memorial-reminders .dt-length select {
  min-height: 2.2rem;
  margin: 0 0.35rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(93, 114, 80, 0.22);
  border-radius: 0.55rem;
  background: #fff;
  font: inherit;
}

.page-deposits .dt-paging,
.page-members .dt-paging,
.page-memorial-reminders .dt-paging {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
}

.page-deposits .dt-layout-end:has(.dt-paging),
.page-members .dt-layout-end:has(.dt-paging),
.page-memorial-reminders .dt-layout-end:has(.dt-paging) {
  width: 100%;
  justify-content: center;
}

.page-deposits div.dt-container .dt-paging .dt-paging-button,
.page-deposits div.dt-container .dt-paging button,
.page-members div.dt-container .dt-paging .dt-paging-button,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button,
.page-members div.dt-container .dt-paging button,
.page-memorial-reminders div.dt-container .dt-paging button {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem !important;
  min-height: 2rem !important;
  max-width: 2rem;
  max-height: 2rem;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(93, 114, 80, 0.18) !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-image: none !important;
  color: var(--sage-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.page-deposits div.dt-container .dt-paging .dt-paging-button *,
.page-deposits div.dt-container .dt-paging button *,
.page-members div.dt-container .dt-paging .dt-paging-button *,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button *,
.page-members div.dt-container .dt-paging button *,
.page-memorial-reminders div.dt-container .dt-paging button * {
  color: inherit !important;
}

.page-deposits div.dt-container .dt-paging .dt-paging-button.current,
.page-deposits div.dt-container .dt-paging .dt-paging-button.current:hover,
.page-deposits div.dt-container .dt-paging button.current,
.page-deposits div.dt-container .dt-paging button.current:hover,
.page-deposits div.dt-container .dt-paging button[aria-current="page"],
.page-deposits div.dt-container .dt-paging button[aria-current="page"]:hover,
.page-members div.dt-container .dt-paging .dt-paging-button.current,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button.current,
.page-members div.dt-container .dt-paging .dt-paging-button.current:hover,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button.current:hover,
.page-members div.dt-container .dt-paging button.current,
.page-memorial-reminders div.dt-container .dt-paging button.current,
.page-members div.dt-container .dt-paging button.current:hover,
.page-memorial-reminders div.dt-container .dt-paging button.current:hover,
.page-members div.dt-container .dt-paging button[aria-current="page"],
.page-memorial-reminders div.dt-container .dt-paging button[aria-current="page"],
.page-members div.dt-container .dt-paging button[aria-current="page"]:hover,
.page-memorial-reminders div.dt-container .dt-paging button[aria-current="page"]:hover {
  background: var(--sage-deep) !important;
  background-image: none !important;
  border-color: var(--sage-deep) !important;
  color: #fff !important;
}

.page-deposits div.dt-container .dt-paging .dt-paging-button.current *,
.page-deposits div.dt-container .dt-paging .dt-paging-button.current:hover *,
.page-deposits div.dt-container .dt-paging button.current *,
.page-deposits div.dt-container .dt-paging button[aria-current="page"] *,
.page-members div.dt-container .dt-paging .dt-paging-button.current *,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button.current *,
.page-members div.dt-container .dt-paging .dt-paging-button.current:hover *,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button.current:hover *,
.page-members div.dt-container .dt-paging button.current *,
.page-memorial-reminders div.dt-container .dt-paging button.current *,
.page-members div.dt-container .dt-paging button[aria-current="page"] *,
.page-memorial-reminders div.dt-container .dt-paging button[aria-current="page"] * {
  color: #fff !important;
}

.page-deposits div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current),
.page-deposits div.dt-container .dt-paging button:hover:not(.disabled):not(.current):not([aria-current="page"]),
.page-members div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current),
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current),
.page-members div.dt-container .dt-paging button:hover:not(.disabled):not(.current):not([aria-current="page"]),
.page-memorial-reminders div.dt-container .dt-paging button:hover:not(.disabled):not(.current):not([aria-current="page"]) {
  background: rgba(122, 143, 106, 0.12) !important;
  background-image: none !important;
  border-color: rgba(93, 114, 80, 0.28) !important;
  color: var(--sage-dark) !important;
}

.page-deposits div.dt-container .dt-paging .dt-paging-button.disabled,
.page-deposits div.dt-container .dt-paging .dt-paging-button.disabled:hover,
.page-deposits div.dt-container .dt-paging .dt-paging-button.disabled:active,
.page-deposits div.dt-container .dt-paging button.disabled,
.page-deposits div.dt-container .dt-paging button:disabled,
.page-members div.dt-container .dt-paging .dt-paging-button.disabled,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button.disabled,
.page-members div.dt-container .dt-paging .dt-paging-button.disabled:hover,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button.disabled:hover,
.page-members div.dt-container .dt-paging .dt-paging-button.disabled:active,
.page-memorial-reminders div.dt-container .dt-paging .dt-paging-button.disabled:active,
.page-members div.dt-container .dt-paging button.disabled,
.page-memorial-reminders div.dt-container .dt-paging button.disabled,
.page-members div.dt-container .dt-paging button:disabled,
.page-memorial-reminders div.dt-container .dt-paging button:disabled {
  opacity: 0.4;
  background: #fff !important;
  background-image: none !important;
  color: var(--muted) !important;
  cursor: default;
}

@media (min-width: 900px) {
  .deposits-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }

  .deposits-filters__field--grow {
    grid-column: auto;
  }

  .deposits-filters__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .deposits-filters__actions .btn {
    min-width: 4.5rem;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0.38rem 0.9rem;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .page-members .deposits-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-members .deposits-filters__field--grow {
    grid-column: 1 / -1;
  }

  .page-deposits .deposits-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-deposits .deposits-filters__field--grow,
  .page-deposits .deposits-filters__dates,
  .page-deposits .deposits-filters__field--types {
    grid-column: 1 / -1;
  }

  .page-deposits .deposits-filters__dates {
    gap: 0.75rem 0.85rem;
  }

  .page-memorial-reminders .deposits-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-memorial-reminders .deposits-filters__field--grow,
  .page-memorial-reminders .deposits-filters__dates {
    grid-column: 1 / -1;
  }

  .page-memorial-reminders .deposits-filters__dates {
    gap: 0.75rem 0.85rem;
  }
}

@media (max-width: 720px) {
  .permanent-bank__row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .page-deposits .deposits-table th:nth-child(3),
  .page-deposits .deposits-table td:nth-child(3) {
    display: none;
  }
}


.sanctuary-delete-actions__confirm:hover {
  background: #74382c;
}

@media (max-width: 759px) {
  .account-tabs__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .account-tabs__tab {
    flex: none;
    min-height: 2.45rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 0.75rem;
    text-align: center;
  }

  .account-tabs__body {
    padding: 0.95rem 0.9rem 1.15rem;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .sanctuary-carousel {
    display: block;
    position: relative;
  }

  .sanctuary-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 2.1rem;
    height: 2.1rem;
    transform: translateY(-50%);
  }

  .sanctuary-carousel__nav:hover:not(:disabled),
  .sanctuary-carousel__nav:focus-visible:not(:disabled) {
    transform: translateY(calc(-50% - 1px));
  }

  .sanctuary-carousel__nav--prev {
    left: 0.15rem;
  }

  .sanctuary-carousel__nav--next {
    right: 0.15rem;
  }

  .sanctuary-carousel__viewport {
    width: 100%;
    min-height: 27.5rem;
    padding: 1rem 0.35rem 1.85rem;
  }

  .sanctuary-tile {
    width: min(16.4rem, calc(100vw - 5.5rem));
    max-width: 16.4rem;
  }

  .sanctuary-tile.is-stage-left {
    transform: translate3d(-48%, 0.45rem, -70px) scale(0.8);
  }

  .sanctuary-tile.is-stage-right {
    transform: translate3d(48%, 0.45rem, -70px) scale(0.8);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--sage-dark);
  touch-action: pan-y;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media.is-dragging {
  cursor: grabbing;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  backface-visibility: hidden;
  pointer-events: none;
}

.hero__slide.is-active img {
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 42% 48% at 28% 48%, rgba(255, 252, 246, 0.8) 0%, rgba(255, 252, 246, 0.5) 48%, rgba(255, 252, 246, 0.08) 78%, transparent 100%),
    linear-gradient(90deg, rgba(243, 238, 228, 0.2) 0%, rgba(243, 238, 228, 0.06) 42%, transparent 70%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.1) 0%, transparent 34%, rgba(63, 79, 56, 0.08) 100%);
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 4.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 58, 44, 0.28);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), width 0.3s var(--ease);
}

.hero__dot:hover,
.hero__dot:focus-visible {
  background: rgba(47, 58, 44, 0.5);
}

.hero__dot.is-active {
  width: 1.35rem;
  background: var(--sage-deep);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  max-width: 38rem;
  margin-left: max(1.25rem, calc((100% - 1200px) / 2 + 1.25rem));
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  color: var(--sage-deep);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.9), 0 0 18px rgba(255, 252, 246, 0.75);
}

.hero__title {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.hero__lead {
  margin: 0 0 2.25rem;
  max-width: 26rem;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  color: var(--sage-dark);
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.95), 0 0 20px rgba(255, 252, 246, 0.7);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__cta .btn {
  min-height: 3.35rem;
  padding-inline: 1.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(93, 114, 80, 0.32);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--sage-dark);
  opacity: 0.7;
  animation: bounceSoft 2.4s ease-in-out infinite;
}

/* Home: 스크롤 UI만 표시, 실제 스크롤 없음 — 섹션 1장씩 뷰포트 채움·교체 */
html:has(body.page-home) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.page-home {
  height: 100%;
  /* 로그인 후 iOS가 주소창/상태 영역을 다시 계산해도 화면 전체를 채운다. */
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.page-home .quick-actions {
  display: none;
}

.page-home .home-stage {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--beige);
}

.page-home .home-stage__panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 12%, 0);
  transition:
    opacity 0.58s var(--ease),
    transform 0.58s var(--ease),
    visibility 0.58s var(--ease);
}

.page-home .home-stage__panel.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.page-home .home-stage__panel.is-leave-up {
  z-index: 1;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(0, -10%, 0);
}

.page-home .home-stage__panel.is-leave-down {
  z-index: 1;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translate3d(0, 10%, 0);
}

.page-home .home-stage__panel.is-enter-from-below {
  transform: translate3d(0, 12%, 0);
}

.page-home .home-stage__panel.is-enter-from-above {
  transform: translate3d(0, -12%, 0);
}

.page-home .home-stage.is-reduced-motion .home-stage__panel {
  transition-duration: 0.01ms;
}

.page-home .hero.home-stage__panel {
  min-height: 0;
}

.page-home .services.home-stage__panel,
.page-home .purpose.home-stage__panel,
.page-home .site-footer.home-stage__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: calc(var(--header-h) + 0.85rem) 0 1.25rem;
}

.page-home .services.home-stage__panel > .container,
.page-home .purpose.home-stage__panel > .container,
.page-home .site-footer.home-stage__panel > .container,
.page-home .site-footer.home-stage__panel .site-footer__inner {
  width: 100%;
  max-width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  max-height: 100%;
  overflow: hidden;
}

.page-home .services.home-stage__panel .section-head {
  margin-bottom: clamp(0.85rem, 2vh, 1.6rem);
}

.page-home .services.home-stage__panel .section-head__leaf {
  margin-bottom: 0.35rem;
}

.page-home .services.home-stage__panel .section-head__leaf img {
  width: 2rem;
}

.page-home .services.home-stage__panel .section-head__title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin-bottom: 0.35rem;
}

.page-home .services.home-stage__panel .section-head__desc {
  font-size: 0.9rem;
}

.page-home .services.home-stage__panel .services__grid {
  gap: clamp(0.65rem, 1.4vh, 1.15rem) clamp(0.85rem, 1.5vw, 1.4rem);
}

.page-home .services.home-stage__panel .service-card__media {
  max-height: clamp(4.5rem, 14vh, 8.5rem);
  overflow: hidden;
  border-radius: 0.85rem;
}

.page-home .services.home-stage__panel .service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .services.home-stage__panel .service-card__title {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  margin: 0 0 0.25rem;
}

.page-home .services.home-stage__panel .service-card__text {
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-home .services.home-stage__panel .service-card__rule {
  display: none;
}

.page-home .services.home-stage__panel .services__deco {
  opacity: 0.55;
  width: min(180px, 28vw);
}

.page-home .purpose.home-stage__panel .purpose__quote {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.page-home .purpose.home-stage__panel .purpose__list {
  gap: 0.75rem;
}

.page-home .purpose.home-stage__panel .purpose__list li {
  padding: 0.85rem 1rem;
}

/* 시각용 스크롤 레일 (실제 스크롤 없음) */
.page-home .home-scroll-rail {
  position: fixed;
  top: 50%;
  right: max(0.55rem, env(safe-area-inset-right, 0px));
  z-index: 40;
  width: 14px;
  height: min(42vh, 16rem);
  padding: 0.35rem 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(63, 79, 56, 0.1);
  box-shadow: inset 0 0 0 1px rgba(63, 79, 56, 0.08);
  pointer-events: auto;
  touch-action: none;
  cursor: pointer;
}

.page-home .home-scroll-rail__thumb {
  position: absolute;
  left: 50%;
  top: calc(0.35rem + var(--home-section-index, 0) * ((100% - 0.7rem) / var(--home-section-count, 3)));
  width: 8px;
  height: calc((100% - 0.7rem) / var(--home-section-count, 3));
  min-height: 1.35rem;
  border-radius: 999px;
  background: var(--sage-deep);
  box-shadow: 0 4px 12px rgba(63, 79, 56, 0.28);
  transform: translateX(-50%);
  transition: top 0.45s var(--ease);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-stage__panel,
  .page-home .home-scroll-rail__thumb {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 759px) {
  /* 브랜드·숲 이야기: html 고정 + body만 스크롤해 상·하단 고무줄 바운스 차단 */
  html:has(body.page-brand-story),
  html:has(body.page-forest-story) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-brand-story,
  body.page-forest-story {
    height: 100%;
    max-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-home .home-scroll-rail {
    right: max(0.35rem, env(safe-area-inset-right, 0px));
    width: 11px;
    height: min(36vh, 12.5rem);
  }

  .page-home .home-scroll-rail__thumb {
    width: 7px;
  }

  .page-home .site-footer.home-stage__panel .site-footer__promises {
    gap: 0.55rem;
  }

  .page-home .site-footer.home-stage__panel .site-footer__promises li {
    padding: 0.6rem 0.75rem;
  }

  .page-home .site-footer.home-stage__panel .site-footer__promises span {
    font-size: 0.8rem;
  }

  .page-home .services.home-stage__panel .services__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.65rem;
  }

  .page-home .services.home-stage__panel .service-card {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .page-home .services.home-stage__panel .service-card__media {
    max-height: clamp(3.6rem, 11vh, 5.8rem);
  }

  .page-home .services.home-stage__panel .service-card__meta {
    margin-bottom: 0.15rem;
  }

  .page-home .services.home-stage__panel .service-card__text {
    -webkit-line-clamp: 2;
  }

  .page-home .services.home-stage__panel .services__deco {
    display: none;
  }

  .page-home .purpose.home-stage__panel .purpose__inner {
    gap: 1rem;
  }

  .hero__slide img {
    object-position: center 35%;
  }

  .hero__dots {
    bottom: 3.4rem;
  }

  .hero__scroll {
    bottom: .45rem;
  }

  .hero__content {
    max-width: none;
    margin: 0 auto;
    padding: calc(var(--header-h) + 1.25rem) 0 6.5rem;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
    max-width: 22rem;
    font-size: clamp(1.12rem, 4.2vw, 1.28rem);
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__title {
    display: flex;
    justify-content: center;
  }

  .hero__overlay {
    background:
      radial-gradient(ellipse 68% 31% at 50% 48%, rgba(255, 252, 246, 0.84) 0%, rgba(255, 252, 246, 0.58) 48%, rgba(255, 252, 246, 0.12) 78%, transparent 100%),
      linear-gradient(180deg, rgba(243, 238, 228, 0.08) 0%, rgba(243, 238, 228, 0.02) 42%, rgba(243, 238, 228, 0.1) 100%);
  }

  .brand-logo--hero {
    height: clamp(4.2rem, 16vw, 5.8rem);
  }
}

/* Quick actions (mobile-inspired strip) */
.quick-actions {
  background: var(--beige);
  padding: 1.5rem 0 0.5rem;
}

.quick-actions__head { margin: 0 0 1rem; padding: 0 .25rem; }
.quick-actions__head p { margin: 0 0 .25rem; color: var(--sage-dark); font: 600 1.2rem/1.3 var(--font-serif); }
.quick-actions__head span { color: var(--ink-soft); font-size: .82rem; }

.quick-actions__list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--cream);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(93, 114, 80, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.quick-card__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.quick-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-card__label {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--sage-dark);
}

.quick-card__arrow {
  color: var(--muted);
  font-size: 1.2rem;
}

@media (min-width: 860px) {
  .quick-actions {
    display: none;
  }
}

/* Services */
.services {
  position: relative;
  padding: 5.5rem 0 6.5rem;
  background:
    radial-gradient(ellipse at top, rgba(240, 223, 154, 0.16), transparent 55%),
    linear-gradient(180deg, #fbf8f1 0%, var(--cream) 42%, #eef2e8 100%);
  overflow: hidden;
}

.services__deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.services__deco--tl {
  top: -1.5rem;
  left: -2.5rem;
  width: min(280px, 42vw);
  height: auto;
}

.services__deco--tr {
  top: -0.5rem;
  right: -2rem;
  width: min(260px, 38vw);
  height: auto;
}

.services__deco--bl {
  bottom: -1.5rem;
  left: -2rem;
  width: min(270px, 40vw);
  height: auto;
}

.services__deco--br {
  bottom: -2rem;
  right: -2.5rem;
  width: min(300px, 44vw);
  height: auto;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: 3.2rem;
}

.section-head__leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.section-head__leaf img {
  width: 2.75rem;
  height: auto;
  display: block;
}

.section-head__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}

.section-head__desc {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.services__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem 2rem;
  }
}

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
}

@media (min-width: 700px) {
  .service-card {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto;
    align-items: center;
    gap: 1.25rem;
  }
}

.service-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 1.15rem;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.035);
}

.service-card__body {
  padding: 1.1rem 0.15rem 0.35rem;
}

@media (min-width: 700px) {
  .service-card__body {
    padding: 0.35rem 0.4rem;
  }
}

.service-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.service-card__leaf {
  width: 1.35rem;
  height: auto;
  flex-shrink: 0;
}

.service-card__no {
  display: inline-block;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.service-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.service-card__text {
  margin: 0 0 0.95rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card__rule {
  display: block;
  width: 4.5rem;
  height: 1px;
  background: rgba(93, 114, 80, 0.28);
  position: relative;
}

.service-card__rule::after {
  content: "";
  position: absolute;
  right: -0.15rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1px solid rgba(93, 114, 80, 0.35);
  border-top: 1px solid rgba(93, 114, 80, 0.35);
  transform: translateY(-50%) rotate(45deg);
}

/* Purpose */
.purpose {
  padding: 5rem 0;
  background: var(--cream);
}

.purpose__inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .purpose__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }
}

.purpose__quote {
  margin: 0;
  padding: 1.6rem 1.7rem;
  border-left: 3px solid var(--gold-soft);
  background: linear-gradient(90deg, rgba(232, 223, 208, 0.55), transparent);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.7;
  color: var(--sage-dark);
}

.purpose__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.purpose__list li {
  padding: 1.1rem 1.2rem;
  border-radius: 1.2rem;
  background: rgba(223, 230, 216, 0.45);
}

.purpose__list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--sage-dark);
}

.purpose__list span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 3.2rem 0 2.4rem;
  background: var(--sage-dark);
  color: rgba(255, 252, 246, 0.82);
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer__intro {
  display: grid;
  gap: 1rem;
}

.site-footer .brand {
  width: fit-content;
}

.site-footer__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 252, 246, 0.72);
}

.site-footer__promises {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__promises li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 252, 246, 0.06);
  border: 1px solid rgba(255, 252, 246, 0.08);
}

.site-footer__promises strong {
  color: rgba(255, 252, 246, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer__promises span {
  color: rgba(255, 252, 246, 0.58);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (min-width: 860px) {
  .site-footer__promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

.site-footer__actions {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.site-footer__wish {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 252, 246, 0.58);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.7;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
  max-width: 42rem;
}

.site-footer__links a {
  color: rgba(255, 252, 246, 0.62);
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(255, 252, 246, 0.22);
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: rgba(255, 252, 246, 0.92);
  text-decoration-color: rgba(255, 252, 246, 0.55);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 252, 246, 0.12);
  font-size: 0.84rem;
  color: rgba(255, 252, 246, 0.45);
}

.page-home .site-footer.home-stage__panel {
  background:
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(168, 184, 156, 0.18), transparent 62%),
    var(--sage-dark);
}

.page-home .site-footer.home-stage__panel .site-footer__inner {
  gap: clamp(1rem, 2.2vh, 1.6rem);
  max-width: min(52rem, calc(100% - 2.5rem));
  text-align: center;
  justify-items: center;
}

.page-home .site-footer.home-stage__panel .brand {
  margin-inline: auto;
}

.page-home .site-footer.home-stage__panel .site-footer__lead {
  margin-inline: auto;
  font-size: clamp(0.98rem, 2.1vw, 1.12rem);
}

.page-home .site-footer.home-stage__panel .site-footer__promises {
  width: 100%;
  text-align: left;
}

.page-home .site-footer.home-stage__panel .site-footer__promises li {
  padding: 0.75rem 0.9rem;
}

.page-home .site-footer.home-stage__panel .site-footer__actions {
  justify-items: center;
  text-align: center;
  width: 100%;
}

.page-home .site-footer.home-stage__panel .site-footer__wish {
  margin-inline: auto;
}

.page-home .site-footer.home-stage__panel .site-footer__links {
  justify-content: center;
  margin-inline: auto;
}

.page-home .site-footer.home-stage__panel .site-footer__meta {
  justify-content: center;
  width: 100%;
}

/* Garden page */
.page-garden {
  min-height: 100dvh;
  color: var(--cream);
}

.garden-stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

/* PC 정원은 문서 스크롤에 참여하지 않는 단일 화면으로 유지한다. */
@media (min-width: 860px) {
  html:has(body.page-garden),
  body.page-garden {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-garden .garden-stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }
}

.garden-stage__bg {
  position: absolute;
  inset: 0;
}

.garden-stage__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.garden-stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(47, 58, 44, 0.55) 0%, rgba(47, 58, 44, 0.18) 48%, rgba(47, 58, 44, 0.08) 100%),
    linear-gradient(180deg, rgba(47, 58, 44, 0.25) 0%, transparent 30%, rgba(47, 58, 44, 0.35) 100%);
}

.garden-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 1.25rem 0 0;
}

.garden-top__inner {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.garden-top__controls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  pointer-events: auto;
}

.garden-brand .brand {
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.garden-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 252, 246, 0.78);
}

.garden-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.garden-actions__more { display: none; }
.garden-actions__menu { display: contents; }

.garden-switcher {
  position: relative;
  z-index: 6;
}

.garden-switcher__toggle {
  max-width: 11rem;
}

.garden-switcher__toggle [data-garden-switcher-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 5.5rem;
}

.garden-switcher__caret {
  font-size: 0.7rem;
  opacity: 0.8;
  transition: transform 0.18s ease;
}

.garden-switcher.is-open .garden-switcher__caret {
  transform: rotate(180deg);
}

.garden-switcher__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(36, 44, 34, 0.92);
  border: 1px solid rgba(255, 252, 246, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 0.2rem;
}

.garden-switcher__menu[hidden] {
  display: none;
}

.garden-switcher__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  color: rgba(255, 252, 246, 0.92);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
}

.garden-switcher__option:hover,
.garden-switcher__option.is-current {
  background: rgba(255, 252, 246, 0.12);
}

.garden-switcher__option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.garden-switcher__option-badge {
  flex: 0 0 auto;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #c9a84c;
  color: #2f2a18;
  font-size: 0.68rem;
  font-weight: 700;
}

.garden-actions .btn {
  height: 2.5rem;
  min-height: 2.5rem;
  padding-block: 0;
}

.garden-actions [data-ambient],
.garden-actions [data-garden-bg-open] {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.4rem;
}

.garden-actions [data-ambient] .ambient-btn__icon,
.garden-actions [data-garden-bg-open] .ambient-btn__icon {
  grid-column: 1;
  grid-row: 1;
  width: 1.15rem;
  height: 1.15rem;
}

.garden-actions [data-ambient] > span,
.garden-actions [data-garden-bg-open] > span {
  grid-column: 2;
  grid-row: 1;
}

.garden-actions [data-ambient].is-on {
  background: rgba(122, 143, 106, 0.55);
  border-color: rgba(255, 252, 246, 0.28);
}

.garden-actions .btn[data-drawer-open="account"] {
  width: 2.5rem;
  padding: 0;
  aspect-ratio: 1 / 1;
  flex: 0 0 2.5rem;
}

.garden-actions .btn[data-drawer-open="account"] i {
  font-size: 1.05rem;
  line-height: 1;
}

.garden-action__image {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.garden-action__letter-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.garden-panel {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  pointer-events: none;
}

/* PC: 볼륨이 패널 밖(고정)이므로 우측 여백을 두고 추모글·가족 이야기·방명록을 카드·버튼 사이 중앙에 배치.
   방명록 패널은 항상 마크업에 존재하므로, 실제로 열려 있는(:not([hidden])) 패널만 레이아웃에 반영한다. */
@media (min-width: 860px) {
  .garden-panel:has(> .garden-tribute-message:not([hidden])) {
    justify-content: flex-start;
  }

  .garden-panel:has(> .garden-tribute-message:not([hidden])) > .garden-info {
    flex: 0 0 auto;
  }

  .garden-panel > .garden-tribute-message:not([hidden]) {
    flex: 1 1 auto;
    width: min(26rem, 100%);
    max-width: min(26rem, 40vw);
    margin-inline: auto;
  }

  .garden-panel > .garden-memories-message:not([hidden]) {
    width: min(22rem, 100%);
    max-width: min(22rem, 32vw);
  }

  .garden-panel > .garden-guestbook:not([hidden]) {
    width: min(24rem, 100%);
    max-width: min(24rem, 36vw);
  }

  .garden-panel:has(> .garden-tribute-message:not([hidden]))::after {
    content: "";
    flex: 0 0 3rem;
    width: 3rem;
    pointer-events: none;
  }
}

.garden-info {
  position: relative;
  z-index: 4;
  width: min(360px, 100%);
  padding: 1.4rem 1.5rem;
  border-radius: 1.4rem;
  background: rgba(47, 58, 44, 0.28);
  border: 1px solid rgba(255, 252, 246, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
  pointer-events: auto;
  flex: 0 1 auto;
}

.garden-info__portrait {
  position: relative;
  width: 12rem;
  height: 12rem;
  margin: 0 auto 1.15rem;
}

/* Use box-shadow, not filter: drop-shadow — filter inside backdrop-filter paints a square veil. */
.garden-info__portrait::after {
  content: "";
  position: absolute;
  inset: 20%;
  z-index: 0;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.garden-info__photo {
  position: absolute;
  inset: 18%;
  z-index: 1;
  width: 64%;
  height: 64%;
  margin: auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 3px rgba(255, 252, 246, 0.55);
}

.garden-info__wreath {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.garden-info__label {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: rgba(255, 252, 246, 0.78);
}

.garden-info__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.garden-info__care-note,
.garden-info__expiry {
  max-width: 34rem;
  margin: 0.2rem auto;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 252, 246, 0.78);
}

.garden-info__expiry {
  color: var(--gold-soft);
}

.garden-info__tributes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  min-height: 1.55rem;
  margin: 0.9rem 0;
}

.garden-info__tribute {
  display: inline-flex;
  flex: 1 1 9.5rem;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  min-width: 9.5rem;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 252, 246, 0.2);
  border-radius: 999px;
  color: rgba(255, 252, 246, 0.86);
  background: rgba(47, 58, 44, 0.3);
  font-size: 0.86rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.garden-info__tribute:hover,
.garden-info__tribute:focus-visible {
  border-color: rgba(255, 252, 246, 0.42);
  background: rgba(122, 143, 106, 0.5);
  outline: none;
  transform: translateY(-1px);
}

.garden-info__tribute:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .garden-info__tribute:disabled:hover {
    border-color: rgba(255, 252, 246, 0.2);
    background: rgba(47, 58, 44, 0.3);
    transform: none;
  }
}

.garden-info__tributes .garden-tribute__icon {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  height: 32px;
  object-fit: contain;
}
.garden-info__tributes strong { color: var(--gold-soft); font-weight: 600; }

.garden-info__dates {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--gold-soft);
}

.garden-info__memo {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 252, 246, 0.86);
}

.sanctuary-tile__expiry-notice {
  margin: 0.45rem 0 0;
  color: #9b5d35;
  font-size: 0.78rem;
  line-height: 1.45;
}

.garden-tribute-message {
  position: relative;
  z-index: 4;
  width: min(26rem, 32vw);
  margin: 0;
  padding: 1.5rem 1.6rem;
  color: #fffdf7;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 2.1;
  letter-spacing: 0.015em;
  text-shadow:
    0 1px 2px rgba(20, 28, 21, 0.85),
    0 4px 18px rgba(20, 28, 21, 0.65);
  white-space: pre-line;
  text-align: center;
  pointer-events: auto;
  isolation: isolate;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* 편지 페이지 letter-bg__veil 과 같은 방식: 문구 뒤 부드러운 미스트 */
.garden-tribute-message::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 170%;
  height: 160%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 252, 246, 0.42), transparent 58%),
    radial-gradient(ellipse at 50% 50%, rgba(22, 30, 20, 0.82), transparent 72%);
  pointer-events: none;
}

.garden-tribute-message__body {
  position: relative;
  white-space: pre-line;
}

.garden-memories-message {
  white-space: normal;
}

.garden-memories-message[hidden] {
  display: none;
}

.garden-memories-message__body {
  position: relative;
  max-height: min(28rem, 62vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 252, 246, 0.35) transparent;
}

.garden-memories-message__item + .garden-memories-message__item {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 252, 246, 0.18);
}

.garden-memories-message__item h2 {
  margin: 0 0 0.45rem;
  color: #fff6d6;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 1px rgba(20, 28, 21, 1),
    0 1px 3px rgba(20, 28, 21, 0.95),
    0 4px 16px rgba(20, 28, 21, 0.8);
}

.garden-memories-message__item p {
  margin: 0;
  color: #fffdf7;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.9;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 2px rgba(20, 28, 21, 0.85),
    0 4px 18px rgba(20, 28, 21, 0.65);
  white-space: pre-line;
}

/* 방명록: 위쪽 입력 폼 + 아래쪽 목록.
   추모글 패널과 같은 미스트 배경을 쓰되, 입력 영역만 유리 표면을 덧대 가독성을 확보한다. */
.garden-guestbook {
  white-space: normal;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.garden-guestbook[hidden] {
  display: none;
}

.garden-guestbook__form {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.garden-guestbook__field {
  display: grid;
  gap: 0.3rem;
}

.garden-guestbook__label {
  color: #fff6d6;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 1px rgba(20, 28, 21, 1),
    0 1px 3px rgba(20, 28, 21, 0.95);
}

.garden-guestbook__input,
.garden-guestbook__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-shadow: none;
  background: rgba(47, 58, 44, 0.45);
  border: 1px solid rgba(255, 252, 246, 0.22);
  border-radius: 0.7rem;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.garden-guestbook__textarea {
  resize: vertical;
  min-height: 4.5rem;
  max-height: 12rem;
  white-space: pre-wrap;
}

.garden-guestbook__input::placeholder,
.garden-guestbook__textarea::placeholder {
  color: rgba(255, 252, 246, 0.5);
}

.garden-guestbook__input:focus,
.garden-guestbook__textarea:focus {
  outline: none;
  background: rgba(47, 58, 44, 0.6);
  border-color: rgba(255, 252, 246, 0.45);
}

.garden-guestbook__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.garden-guestbook__counter {
  color: rgba(255, 252, 246, 0.7);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(20, 27, 18, 0.75);
}

.garden-guestbook__list-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 252, 246, 0.18);
}

.garden-guestbook__title {
  margin: 0;
  color: #fff6d6;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-shadow:
    0 0 1px rgba(20, 28, 21, 1),
    0 1px 3px rgba(20, 28, 21, 0.95);
}

.garden-guestbook__count {
  color: rgba(255, 252, 246, 0.72);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(20, 27, 18, 0.75);
}

.garden-guestbook__body {
  max-height: min(20rem, 42vh);
}

.garden-guestbook__empty {
  margin: 0;
  color: rgba(255, 253, 247, 0.82);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.8;
  text-shadow:
    0 1px 2px rgba(20, 28, 21, 0.85),
    0 4px 18px rgba(20, 28, 21, 0.65);
}

.garden-guestbook__empty[hidden] {
  display: none;
}

.garden-guestbook__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.garden-guestbook__item + .garden-guestbook__item {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 252, 246, 0.14);
}

.garden-guestbook__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.garden-guestbook__author {
  color: #fff6d6;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 1px rgba(20, 28, 21, 1),
    0 1px 3px rgba(20, 28, 21, 0.95);
  overflow-wrap: anywhere;
}

.garden-guestbook__date {
  color: rgba(255, 252, 246, 0.62);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(20, 27, 18, 0.75);
}

.garden-guestbook__delete {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 1.6rem;
  color: rgba(255, 252, 246, 0.7);
  font-size: 0.8rem;
  background: rgba(47, 58, 44, 0.35);
  border: 1px solid rgba(255, 252, 246, 0.18);
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.garden-guestbook__delete:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .garden-guestbook__delete:hover {
    color: var(--cream);
    background: rgba(122, 143, 106, 0.55);
  }
}

.garden-guestbook__text {
  margin: 0;
  color: #fffdf7;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 2px rgba(20, 28, 21, 0.85),
    0 4px 18px rgba(20, 28, 21, 0.65);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.garden-ambient {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 0.7rem;
  flex: 0 0 auto;
  pointer-events: auto;
}

/* 데스크톱: 헤더에 두되 화면 우측 중앙에 고정 표시 */
@media (min-width: 860px) {
  .garden-top .garden-ambient {
    position: fixed;
    top: 50%;
    right: max(1.25rem, calc((100vw - 1200px) / 2 + 1rem));
    transform: translateY(-50%);
  }
}

.ambient-volume {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 3rem;
}

.ambient-volume [data-ambient="bgm"] {
  position: relative;
  z-index: 1;
}

.ambient-volume__value {
  color: rgba(255, 252, 246, 0.78);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(20, 27, 18, 0.75);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.ambient-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: rgba(47, 58, 44, 0.35);
  border: 1px solid rgba(255, 252, 246, 0.18);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ambient-btn--vol {
  position: absolute;
  top: calc((3rem - 2.15rem) / 2);
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, background 0.25s ease, transform 0.25s ease;
}

/* 볼륨 버튼과 간격 유지. 호버 이동용 브리지는 의사요소로 연결 */
.ambient-volume [data-garden-volume-down] {
  right: calc(100% + 0.45rem);
}

.ambient-volume [data-garden-volume-up] {
  left: calc(100% + 0.45rem);
}

.ambient-volume [data-garden-volume-down]::after,
.ambient-volume [data-garden-volume-up]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0.55rem;
}

.ambient-volume [data-garden-volume-down]::after {
  left: 100%;
}

.ambient-volume [data-garden-volume-up]::after {
  right: 100%;
}

.ambient-btn--vol span {
  display: block;
  margin-top: -0.05em;
}

.ambient-btn--vol:disabled {
  cursor: default;
  transform: none;
}

/* 터치/모바일: 볼륨이 켜져 있으면 +/- 표시 */
.ambient-volume:has([data-ambient="bgm"].is-on) .ambient-btn--vol {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ambient-volume:has([data-ambient="bgm"].is-on) .ambient-btn--vol:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* PC: 볼륨 버튼(또는 표시된 +/-)에 마우스가 올라갔을 때만 표시 */
@media (hover: hover) and (pointer: fine) {
  .ambient-volume:has([data-ambient="bgm"].is-on) .ambient-btn--vol {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .ambient-volume:has([data-ambient="bgm"].is-on):has([data-ambient="bgm"]:hover) .ambient-btn--vol,
  .ambient-volume:has([data-ambient="bgm"].is-on):has(.ambient-btn--vol:hover) .ambient-btn--vol {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ambient-volume:has([data-ambient="bgm"].is-on):has([data-ambient="bgm"]:hover) .ambient-btn--vol:disabled,
  .ambient-volume:has([data-ambient="bgm"].is-on):has(.ambient-btn--vol:hover) .ambient-btn--vol:disabled {
    opacity: 0.35;
    pointer-events: none;
  }
}

.ambient-btn.is-on {
  background: rgba(122, 143, 106, 0.55);
  transform: translateY(-2px);
}

.ambient-btn:focus {
  outline: none;
}

.ambient-btn:focus:not(:focus-visible) {
  background: rgba(47, 58, 44, 0.35);
  transform: none;
}

.ambient-btn.is-on:focus:not(:focus-visible) {
  background: rgba(122, 143, 106, 0.55);
  transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
  .ambient-btn:hover {
    background: rgba(122, 143, 106, 0.55);
    transform: translateY(-2px);
  }

  .ambient-btn--vol:disabled:hover {
    background: rgba(47, 58, 44, 0.35);
    transform: none;
  }
}

.ambient-btn__icon {
  width: 1.4rem;
  height: 1.4rem;
  grid-area: 1 / 1;
}

.ambient-btn__icon--on {
  display: none;
}

.ambient-btn.is-on .ambient-btn__icon--off,
[data-ambient].is-on .ambient-btn__icon--off {
  display: none;
}

.ambient-btn.is-on .ambient-btn__icon--on,
[data-ambient].is-on .ambient-btn__icon--on {
  display: block;
}

.garden-bg-modal {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.garden-bg-modal__inner {
  width: min(27rem, calc(100vw - 2rem));
  min-height: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
  text-align: left;
  padding: 4.8rem 1rem 2rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.garden-bg-modal__close {
  position: fixed;
  z-index: 10;
  top: 1.5rem;
  right: 1.5rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 252, 246, 0.92);
  background: rgba(47, 58, 44, 0.78);
  color: #fffdf5;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 4px 18px rgba(20, 28, 18, 0.42), 0 0 0 3px rgba(47, 58, 44, 0.22);
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.garden-bg-modal__close:hover,
.garden-bg-modal__close:focus-visible {
  background: rgba(47, 58, 44, 0.94);
  color: #fffdf5;
  transform: scale(1.05);
  outline: none;
}

.garden-bg-modal__close i {
  font-size: 1.45rem;
  line-height: 1;
}

.garden-bg-modal__title {
  margin: 0 2.4rem 0.45rem 0;
  text-align: left;
}

.garden-bg-modal__hint,
.garden-bg-modal__title {
  text-shadow: 0 1px 12px rgba(255, 252, 246, 0.85);
}

.garden-bg-modal__hint {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.garden-bg-modal__carousel {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(25rem, calc(100vw - 2rem));
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

.garden-bg-modal__viewport {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 28rem;
  padding: 3.5rem 0;
  perspective: 900px;
  overflow: visible;
  touch-action: none;
  cursor: grab;
}
.garden-bg-modal__viewport:active { cursor: grabbing; }

.garden-bg-modal__indicator {
  position: fixed !important;
  z-index: 8;
  top: 50%;
  right: clamp(-2.5rem, -5vw, -1rem);
  display: grid;
  place-items: center;
  gap: .55rem;
  width: 1.25rem;
  transform: translateY(-50%);
  cursor: pointer;
}
.garden-bg-modal__indicator-dot {
  width: .55rem;
  height: .55rem;
  padding: 0;
  border: 1px solid rgba(255, 252, 246, .78);
  border-radius: 999px;
  background: rgba(255, 252, 246, .28);
  box-shadow: 0 2px 8px rgba(20, 28, 18, .28), inset 0 1px 0 rgba(255,255,255,.45);
  cursor: pointer;
}
.garden-bg-modal__indicator-dot.is-active {
  width: .72rem;
  height: .72rem;
  border-color: rgba(255, 252, 246, .98);
  background: rgba(255, 252, 246, .92);
  box-shadow: 0 0 0 .16rem rgba(255, 252, 246, .18), 0 2px 8px rgba(20, 28, 18, .3);
}
.garden-bg-modal__indicator-dot:hover,
.garden-bg-modal__indicator-dot:focus-visible {
  background: rgba(255, 252, 246, .72);
  outline: none;
}

.garden-bg-modal__sample {
  grid-area: 1 / 1;
  width: min(22rem, 78vw);
  display: grid;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(93, 114, 80, 0.14);
  background: rgba(255, 252, 246, 0.7);
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  touch-action: none;
  transition: border-color 0.2s ease, box-shadow 0.35s ease, transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}
.garden-bg-modal__sample.is-stage-center { z-index: 3; transform: scale(1); box-shadow: 0 14px 28px rgba(63,79,56,.15); }
.garden-bg-modal__sample.is-stage-left { z-index: 2; opacity: .7; filter: brightness(.92); cursor: pointer; }
.garden-bg-modal__sample.is-stage-right { z-index: 2; opacity: .7; filter: brightness(.92); cursor: pointer; }
.garden-bg-modal__sample.is-stage-away { z-index: 1; opacity: .48; filter: brightness(.88) saturate(.8); cursor: pointer; }
.garden-bg-modal__sample[hidden] { display: grid; }

.garden-bg-modal__sample img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 0.55rem;
  display: block;
  pointer-events: none;
}

.garden-bg-modal__sample span {
  padding: 0 0.2rem 0.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.garden-bg-modal__sample:hover,
.garden-bg-modal__sample:focus-visible {
  border-color: rgba(122, 143, 106, 0.45);
  outline: none;
}

.garden-bg-modal__sample.is-selected {
  border-color: rgba(93, 114, 80, 0.65);
  box-shadow: 0 0 0 2px rgba(168, 184, 156, 0.45);
  color: var(--sage-dark);
}

.garden-bg-modal__upload {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: 2.5rem;
  width: min(25rem, calc(100vw - 3rem));
  transform: translateX(-50%);
  display: grid;
}

.garden-bg-modal__upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 252, 246, 0.95);
  background: rgba(255, 252, 246, 0.94);
  color: #31412b;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(20, 28, 18, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.garden-bg-modal__upload-btn:hover,
.garden-bg-modal__upload-btn:focus-within {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 26px rgba(20, 28, 18, 0.34), 0 0 0 3px rgba(255, 252, 246, 0.22);
  transform: translateY(-1px);
}

/* Background picker lives directly on the dimmed stage, without a modal card. */
.app-modal.garden-bg-modal {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.app-modal.garden-bg-modal .garden-bg-modal__inner {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.garden-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.garden-audio-credit {
  position: absolute;
  right: max(1rem, calc((100% - 1200px) / 2 + 1rem));
  bottom: 1.4rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(22rem, calc(100% - 2rem));
  color: rgba(255, 252, 246, 0.88);
  font-size: 0.76rem;
  text-shadow: 0 1px 5px rgba(20, 27, 18, 0.8), 0 0 14px rgba(20, 27, 18, 0.5);
  pointer-events: none;
}

.garden-audio-credit > i {
  flex-shrink: 0;
  color: rgba(255, 252, 246, 0.92);
  font-size: 0.8rem;
}

.garden-audio-credit__marquee {
  min-width: 0;
  max-width: min(16rem, calc(100vw - 8rem));
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.garden-audio-credit__marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2rem;
  will-change: transform;
}

.garden-audio-credit__marquee.is-overflow .garden-audio-credit__marquee-track {
  animation-name: gardenAudioMarquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.garden-audio-credit__copy {
  display: grid;
  flex: 0 0 auto;
  gap: 0.1rem;
  text-align: left;
}

.garden-audio-credit strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.garden-audio-credit small {
  display: block;
  color: rgba(255, 252, 246, 0.7);
  font-size: 0.66rem;
  white-space: nowrap;
}

@keyframes gardenAudioMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--garden-audio-marquee-shift, 50%))); }
}

.garden-audio-credit__list {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  margin-left: 0.15rem;
  padding: 0;
  border: 1px solid rgba(255, 252, 246, 0.28);
  border-radius: 50%;
  color: inherit;
  background: rgba(47, 58, 44, 0.3);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

.garden-audio-credit__list:hover,
.garden-audio-credit__list:focus-visible {
  background: rgba(122, 143, 106, 0.65);
  transform: translateY(-1px);
  outline: none;
}

.app-modal.garden-audio-modal {
  width: min(44rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
}

.garden-audio-modal__inner {
  position: relative;
  padding-top: 1.7rem;
  text-align: left;
}

.garden-audio-modal__list {
  display: grid;
  gap: 1.15rem;
  max-height: min(52vh, 28rem);
  overflow-y: auto;
  padding: 0.1rem 0.35rem 0.25rem 0.05rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(93, 114, 80, 0.45) transparent;
}

.garden-audio-modal__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
  padding-bottom: 0.15rem;
}

.garden-audio-modal__filter {
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(93, 114, 80, 0.22);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(122, 143, 106, 0.06);
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.garden-audio-modal__filter:hover,
.garden-audio-modal__filter:focus-visible,
.garden-audio-modal__filter.is-active {
  border-color: rgba(93, 114, 80, 0.55);
  color: #fffdf8;
  background: var(--sage-dark);
  outline: none;
}

.garden-audio-modal__category {
  display: grid;
  gap: 0.55rem;
}

.garden-audio-modal__category[hidden] { display: none; }

.garden-audio-modal__category-title {
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(93, 114, 80, 0.16);
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
}

.garden-audio-modal__track {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(93, 114, 80, 0.16);
  border-radius: 0.8rem;
  color: var(--ink-soft);
  background: rgba(122, 143, 106, 0.07);
  text-align: left;
  cursor: pointer;
  min-height: 6.25rem;
}

.garden-audio-modal__track span { display: grid; gap: 0.2rem; }
.garden-audio-modal__track strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-serif);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.garden-audio-modal__track small { color: var(--ink-soft); font-size: 0.72rem; }
.garden-audio-modal__track > :last-child { opacity: 0; color: var(--sage-dark); }
.garden-audio-modal__track.is-selected { border-color: rgba(93, 114, 80, 0.55); background: rgba(122, 143, 106, 0.15); }
.garden-audio-modal__track.is-selected > :last-child { opacity: 1; }

.garden-fx.is-on {
  opacity: 1;
}

.garden-fx--sun {
  background: radial-gradient(ellipse at 70% 20%, rgba(240, 223, 154, 0.28), transparent 45%);
}

.garden-fx--wind {
  overflow: hidden;
}

.garden-fx__leaf {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 2.4rem);
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(47, 58, 44, 0.18));
  will-change: transform, opacity;
  transform: translate3d(-999px, -999px, 0);
}

.toast {
  position: fixed;
  display: block;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius-pill);
  background: rgba(47, 58, 44, 0.88);
  color: var(--cream);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.page-garden .toast {
  text-align: center;
}

.page-account .toast {
  top: 5.5rem;
  right: 1.25rem;
  bottom: auto;
  left: auto;
  transform: translateY(-120%);
}

.page-account .toast.is-show {
  transform: translateY(0);
}

.app-modal {
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  max-width: calc(100vw - 2.5rem);
  width: 22rem;
  color: var(--ink);
}

.app-modal.sent-letter-modal {
  width: min(480px, calc(100vw - 1.5rem), calc((100dvh - 1.5rem) * 0.75));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: transparent;
  box-shadow:
    0 22px 56px rgba(63, 79, 56, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.app-modal.sent-letter-modal .app-modal__inner,
.app-modal.sent-letter-modal .sent-letter-modal__inner,
.app-modal.sent-letter-modal .letter-panel {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
}

.app-modal.sent-letter-modal .sent-letter-modal__form {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.app-modal.sent-letter-modal .letter-paper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  background-color: #f3eee4;
  background-image: var(--letter-paper-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

@media (max-width: 759px) {
  .app-modal.sent-letter-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-modal.sent-letter-modal .app-modal__inner,
  .app-modal.sent-letter-modal .sent-letter-modal__inner,
  .app-modal.sent-letter-modal .letter-panel,
  .app-modal.sent-letter-modal .letter-paper {
    border-radius: 0;
  }

  .app-modal.sent-letter-modal .sent-letter-modal__close {
    top: calc(0.65rem + env(safe-area-inset-top, 0px));
    right: calc(0.65rem + env(safe-area-inset-right, 0px));
  }
}

.app-modal.sanctuary-edit-modal {
  width: min(560px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - 1.5rem);
}

.app-modal.sanctuary-date-modal {
  width: min(22.5rem, calc(100vw - 2.5rem));
}

/* PC에서는 추모글 입력칸이 flex 영역을 따라 0 높이로 줄어들지 않도록 합니다. */
@media (min-width: 760px) {
  .app-modal.sanctuary-edit-modal.is-tribute-step .sanctuary-tribute .sanctuary-textarea {
    height: 12rem;
    min-height: 12rem !important;
    resize: vertical;
  }
}

@media (max-width: 759px) {
  .app-modal.sanctuary-edit-modal {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__inner {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--cream);
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0 0.85rem;
    background: var(--cream);
    border-bottom: 1px solid rgba(93, 114, 80, 0.08);
    box-shadow: 0 10px 28px rgba(63, 79, 56, 0.06);
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__header-bar.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: min(1200px, calc(100% - 2.5rem));
    margin-inline: auto;
    min-height: 2.8rem;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__back {
    display: inline-grid;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__header-spacer {
    visibility: hidden;
    pointer-events: none;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__title.site-header__title {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    margin: 0;
    max-width: min(70%, calc(100% - 7.5rem));
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__close {
    display: none;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-modal__hint {
    margin: 0;
    padding: 1rem 1rem 0.85rem;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-form__scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.15rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-form__fields,
  .app-modal.sanctuary-edit-modal .sanctuary-memories {
    flex: 0 0 auto;
    min-height: 0;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-form__fields {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-memories {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-memories__fields {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-tribute {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding-right: 0;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-tribute .sanctuary-field {
    flex: 1 1 auto;
    min-height: 0;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-tribute .sanctuary-textarea {
    flex: 1 1 auto;
    height: 0;
    min-height: 0 !important;
    max-height: none;
  }

  .app-modal.sanctuary-edit-modal .sanctuary-edit-form__actions {
    margin-top: auto;
    flex-shrink: 0;
  }
}

.app-modal::backdrop {
  background: rgba(47, 58, 44, 0.42);
  backdrop-filter: blur(4px);
}

dialog.app-modal:not([open])::backdrop {
  opacity: 0;
  display: none;
}

.app-modal__inner {
  padding: 1.85rem 1.6rem 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 238, 228, 0.98));
  border: 1px solid rgba(93, 114, 80, 0.12);
  box-shadow: var(--shadow);
  text-align: center;
}

.app-modal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}

.app-modal__message {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.app-modal__action {
  min-width: 7.5rem;
}

.account-form__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.account-form__actions .btn { width: auto; margin-top: 0; }
.account-form__cancel { min-height: 2.8rem; border: 1px solid rgba(93, 114, 80, 0.18); color: var(--sage-dark); background: transparent; }
.app-modal__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-top: 1.25rem; }
.app-modal__actions .btn { width: auto; margin-top: 0; }
.app-modal__cancel { min-height: 2.8rem; border: 1px solid rgba(93, 114, 80, 0.18); color: var(--sage-dark); background: transparent; }
.app-modal__error { margin: 0.5rem 0 0; padding: 0.55rem 0.75rem; border-radius: 0.35rem; background: rgba(190, 60, 50, 0.08); color: #b33a30; font-size: 0.85rem; line-height: 1.45; text-align: left; }
.app-modal__error[hidden] { display: none; }
.app-modal__inner.is-shaking { animation: modalShake 0.36s ease-in-out; }
.app-modal[data-password-email-modal] { overflow-x: clip; }
.app-modal[data-password-email-modal] .app-modal__inner { overflow-x: clip; }
.app-modal[data-register-email-modal] { overflow-x: clip; }
.app-modal[data-register-email-modal] .app-modal__inner { overflow-x: clip; }

.app-modal[open] {
  animation: modalIn 0.32s var(--ease);
}

.app-modal[open]::backdrop {
  animation: backdropIn 0.32s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 859px) {
  .garden-actions { position: relative; display: block; flex: 0 0 auto; }
  .garden-actions .garden-actions__more { display: grid; place-items: center; box-sizing: border-box; flex: 0 0 2.9rem; width: 2.9rem; height: 2.9rem; min-width: 2.9rem; min-height: 2.9rem; max-width: 2.9rem; max-height: 2.9rem; aspect-ratio: 1 / 1; padding: 0; border-radius: 50%; box-shadow: none; transform: none; }
  .garden-actions__more:hover,
  .garden-actions__more:active,
  .garden-actions__more:focus-visible { transform: none; }
  .garden-actions__menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    gap: 0.7rem;
    justify-items: end;
    width: max-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .garden-actions.is-open .garden-actions__menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .garden-actions .garden-actions__menu > .btn { box-sizing: border-box; flex: 0 0 2.9rem; width: 2.9rem; height: 2.9rem; min-width: 2.9rem; min-height: 2.9rem; max-width: 2.9rem; max-height: 2.9rem; aspect-ratio: 1 / 1; padding: 0; border-radius: 50%; }
  .garden-actions .garden-actions__menu > .btn[data-ambient],
  .garden-actions .garden-actions__menu > .btn[data-garden-bg-open] {
    display: grid;
    place-items: center;
    grid-template-columns: none;
  }
  .garden-actions .garden-actions__menu > .btn[data-ambient] .ambient-btn__icon,
  .garden-actions .garden-actions__menu > .btn[data-garden-bg-open] .ambient-btn__icon {
    grid-column: 1;
    grid-row: 1;
  }
  .garden-actions__menu .garden-switcher { display: block; }
  .garden-actions__menu .garden-switcher__toggle { box-sizing: border-box; flex: 0 0 2.9rem; width: 2.9rem; height: 2.9rem; min-width: 2.9rem; min-height: 2.9rem; max-width: 2.9rem; max-height: 2.9rem; aspect-ratio: 1 / 1; padding: 0; border-radius: 50%; }
  .garden-actions__menu .garden-switcher__toggle [data-garden-switcher-label],
  .garden-actions__menu .garden-switcher__toggle .garden-switcher__caret { display: none; }

  /* ... 버튼과 그 하위 버튼을 배경음 on/off 버튼(.ambient-btn)과 동일한 유리 원형 스타일로 맞춤 */
  .garden-actions .garden-actions__more,
  .garden-actions .garden-actions__menu > .btn,
  .garden-actions__menu .garden-switcher__toggle {
    color: var(--cream);
    background: rgba(47, 58, 44, 0.35);
    border: 1px solid rgba(255, 252, 246, 0.18);
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: none;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .garden-actions .garden-actions__menu > .btn[data-ambient].is-on {
    background: rgba(122, 143, 106, 0.55);
    border-color: rgba(255, 252, 246, 0.18);
    transform: translateY(-2px);
  }

  .garden-actions .garden-actions__more:focus,
  .garden-actions .garden-actions__menu > .btn:focus,
  .garden-actions__menu .garden-switcher__toggle:focus {
    outline: none;
  }

  .garden-actions .garden-actions__menu > .btn:focus:not(:focus-visible) {
    background: rgba(47, 58, 44, 0.35);
    transform: none;
  }

  .garden-actions .garden-actions__menu > .btn[data-ambient].is-on:focus:not(:focus-visible) {
    background: rgba(122, 143, 106, 0.55);
    transform: translateY(-2px);
  }

  .garden-actions .garden-actions__menu > .btn[data-ambient] .ambient-btn__icon,
  .garden-actions .garden-actions__menu > .btn[data-garden-bg-open] .ambient-btn__icon {
    width: 1.4rem;
    height: 1.4rem;
  }

  @media (hover: hover) and (pointer: fine) {
    .garden-actions .garden-actions__menu > .btn:hover,
    .garden-actions__menu .garden-switcher__toggle:hover {
      background: rgba(122, 143, 106, 0.55);
      transform: translateY(-2px);
    }

    /* ... 버튼 자체는 위치가 고정되어야 하므로 배경만 변경 */
    .garden-actions .garden-actions__more:hover {
      background: rgba(122, 143, 106, 0.55);
    }
  }

  .garden-panel {
    left: 0;
    top: 6.6rem;
    bottom: auto;
    transform: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
  }

  .garden-top .garden-ambient {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    display: flex;
    align-items: flex-start;
    z-index: 6;
  }

  .garden-top .ambient-volume {
    width: 2.9rem;
    margin-inline: 0;
  }

  .garden-top .ambient-volume .ambient-btn:not(.ambient-btn--vol) {
    width: 2.9rem;
    height: 2.9rem;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
  }

  /* 모바일은 볼륨 버튼 탭으로 조절하므로 +/- 숨김 */
  .garden-top .ambient-btn--vol {
    display: none !important;
  }

  .garden-top .ambient-volume__value {
    font-size: 0.62rem;
  }

  .garden-tribute-message {
    width: min(420px, calc(100% - 2rem));
    margin-top: 1rem;
  }

  .garden-info {
    width: min(320px, calc(100% - 2rem));
    /* 카드 내부의 이미지·텍스트·버튼을 같은 비율로 축소해 하단 음악 영역을
       위한 안전 공간을 확보합니다. zoom은 내부 레이아웃에도 배율을 반영합니다. */
    --garden-info-scale-by-height: calc(0.001 * 100dvh + 0.06);
    --garden-info-scale-by-width: calc(0.00143 * 100vw + 0.265);
    zoom: clamp(0.72, min(var(--garden-info-scale-by-height), var(--garden-info-scale-by-width)), 0.88);
    margin-bottom: -8%;
  }

  .garden-memories-message__body {
    max-height: min(22rem, 48vh);
  }

  .garden-audio-credit {
    right: auto;
    left: 50%;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    max-width: calc(100% - 1.75rem);
  }

  .garden-audio-credit__marquee {
    max-width: min(15.5rem, calc(100vw - 7.5rem));
  }

  .garden-info__portrait {
    width: 11rem;
    height: 11rem;
    margin-bottom: 1rem;
  }

  .garden-info__label { font-size: 0.82rem; }
  .garden-info__name { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .garden-info__care-note,
  .garden-info__expiry { font-size: 0.76rem; line-height: 1.4; }
  .garden-info__tributes { margin-block: 0.65rem; gap: 0.35rem; }
  .garden-info__tribute { min-width: 8.5rem; padding-block: 0.28rem; font-size: 0.78rem; }
  .garden-info__tributes .garden-tribute__icon { height: 27px; }
  .garden-info__dates { margin-bottom: 0.7rem; font-size: 0.82rem; }
  .garden-info__memo { margin-bottom: 0.9rem; font-size: 0.84rem; line-height: 1.55; }

  .garden-bg-modal {
    width: 100vw;
  }

  .garden-bg-modal__inner {
    width: min(27rem, calc(100vw - 1rem));
    padding-top: 4.5rem;
  }

  .garden-bg-modal__close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .garden-bg-modal__carousel {
    width: min(22rem, calc(100vw - 1rem));
  }

  .garden-actions .btn span {
    display: none;
  }

  .garden-switcher__toggle span,
  .garden-switcher__toggle [data-garden-switcher-label] {
    display: inline;
  }

  .garden-switcher__toggle {
    max-width: none;
  }
}

/* Letter page */
.page-letter {
  min-height: 100dvh;
  position: relative;
}

.site-header--letter {
  background: var(--cream);
  border-bottom-color: rgba(93, 114, 80, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header--letter.is-scrolled {
  background: var(--cream);
  box-shadow: 0 8px 28px rgba(63, 79, 56, 0.08);
}

.letter-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.letter-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.letter-bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 252, 246, 0.52), transparent 58%),
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.72) 0%,
      rgba(243, 238, 228, 0.32) 42%,
      rgba(63, 79, 56, 0.28) 100%
    );
}

.letter-shell {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.85rem;
  padding: calc(var(--header-h) + 0.85rem) 1rem 1.25rem;
  min-height: 100dvh;
  box-sizing: border-box;
}

.letter-hero {
  text-align: center;
  max-width: 36rem;
}

.letter-hero[hidden] {
  display: none;
}

.letter-hero__desc {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.92rem;
  line-height: 1.45;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.8);
}

.page-letter .site-header__title {
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
}

.letter-panel {
  position: relative;
  width: min(640px, 100%);
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(165deg, rgba(255, 253, 248, 0.98), rgba(248, 243, 233, 0.96));
  border: 1px solid rgba(93, 114, 80, 0.12);
  box-shadow:
    0 22px 56px rgba(63, 79, 56, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
  backdrop-filter: blur(12px);
}

.letter-complete { max-width: 760px; margin: 0 auto; padding: 4.5rem 2rem; text-align: center; border: 1px solid rgba(93, 114, 80, 0.14); border-radius: 1.4rem; background: rgba(255, 252, 246, 0.88); box-shadow: 0 1.5rem 3rem rgba(65, 78, 52, 0.08); }
.letter-complete__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1.2rem; border-radius: 50%; color: #fff; background: var(--sage-dark); }
.letter-complete__title { margin: 0; color: var(--ink); font-family: var(--font-serif); font-size: 1.6rem; }
.letter-complete__message { margin: 0.65rem 0 1.4rem; color: var(--muted); }

.letter-form {
  display: grid;
  gap: 0.95rem;
}

.letter-target {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
}

.letter-target__label {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sage-dark);
}

.letter-target__select {
  width: 100%;
  height: 2.85rem;
  padding: 0 2.4rem 0 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(93, 114, 80, 0.2);
  background-color: rgba(255, 252, 246, 0.95);
  color: var(--ink);
  font: inherit;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sage-deep) 50%),
    linear-gradient(135deg, var(--sage-deep) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) 1.2rem,
    calc(100% - 0.8rem) 1.2rem;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.letter-target__select:hover {
  border-color: rgba(93, 114, 80, 0.32);
}

.letter-target__select:focus {
  outline: 2px solid rgba(93, 114, 80, 0.3);
  outline-offset: 1px;
  border-color: rgba(93, 114, 80, 0.38);
}

.envelope-picker { position: relative; min-width: 0; padding: 0; border: 0; width: 100%; }
.envelope-picker__title {
  margin: 0;
  padding: 0.85rem 1.5rem;
  color: var(--sage-dark);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.72);
  background:
    radial-gradient(ellipse 70% 65% at 50% 50%, rgba(255, 252, 246, 0.82) 0%, rgba(255, 252, 246, 0.42) 48%, rgba(255, 252, 246, 0) 74%);
}
.envelope-picker__title [data-envelope-hero-text] {
  display: inline-block;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.envelope-picker__title.is-fading [data-envelope-hero-text] {
  opacity: 0;
  transform: translateY(0.4rem);
}
.envelope-picker__rail {
  width: 100%;
  flex-shrink: 0;
}
.envelope-picker__name {
  display: block;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 0 auto 0.35rem;
  padding: 0.7rem 1.55rem;
  color: var(--sage-deep);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.85);
  background:
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(255, 252, 246, 0.92) 0%, rgba(255, 252, 246, 0.55) 52%, rgba(255, 252, 246, 0) 76%);
}
.envelope-picker__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 1.35rem 0 1.1rem;
}
.envelope-picker__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 3vw, 1.4rem);
  width: max-content;
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
.envelope-card {
  position: relative;
  flex: 0 0 clamp(10.5rem, 42vw, 16rem);
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  cursor: pointer;
  text-align: center;
  color: var(--sage-dark);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0.42;
  filter: saturate(0.78) brightness(0.94);
  transform: scale(0.88);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.envelope-card input { position: absolute; opacity: 0; pointer-events: none; }
.envelope-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 12px 18px rgba(63, 79, 56, 0.16));
  transition: filter 0.35s var(--ease);
  pointer-events: none;
}
.envelope-card__name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.envelope-card.is-selected {
  opacity: 1;
  filter: none;
  transform: scale(1.1);
  z-index: 1;
}
.envelope-card.is-selected .envelope-card__image {
  filter: drop-shadow(0 18px 26px rgba(63, 79, 56, 0.24));
}
.envelope-picker__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(93, 114, 80, 0.2);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.92);
  color: var(--sage-dark);
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(63, 79, 56, 0.1);
  transform: translateY(-50%);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.envelope-picker__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 18px rgba(63, 79, 56, 0.16);
}
.envelope-picker__arrow--prev { left: 0.45rem; }
.envelope-picker__arrow--next { right: 0.45rem; }
.envelope-picker__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0 1rem;
}
.envelope-picker__dots button {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(93, 114, 80, 0.22);
  cursor: pointer;
}
.envelope-picker__dots button.is-active {
  background: var(--sage-deep);
  transform: scale(1.2);
}
.envelope-picker[hidden], .letter-paper[hidden] { display: none !important; }
.letter-form.is-envelope-step .paper-picker { display: none; }
.paper-picker { margin: 0; padding: 0; border: 0; }
.paper-picker__title { margin: 0 0 .45rem; color: var(--sage-dark); font-size: .84rem; font-weight: 600; }
.paper-picker__options { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; }
.paper-card { display: grid; gap: .28rem; justify-items: center; color: var(--muted); font-size: .68rem; cursor: pointer; opacity: .62; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.paper-card input { position: absolute; opacity: 0; pointer-events: none; }
.paper-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 2px solid transparent; border-radius: .5rem; box-shadow: 0 4px 10px rgba(63,79,56,.1); }
.paper-card.is-selected { color: var(--sage-dark); opacity: 1; transform: translateY(-2px); }
.paper-card.is-selected img { border-color: var(--sage); box-shadow: 0 6px 14px rgba(63,79,56,.18); }
.letter-form.is-envelope-step .letter-target { display: none; }
.letter-form.is-envelope-step .envelope-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  text-align: center;
}
.letter-shell.is-envelope-step .letter-panel {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}
.letter-form.is-envelope-step .envelope-picker__title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin: 0;
}
.letter-form.is-envelope-step .envelope-picker__rail {
  width: 100%;
}
.letter-form.is-envelope-step .envelope-picker__dots {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.letter-form.is-envelope-step .letter-form__submit {
  width: auto;
  min-width: 11.5rem;
  max-width: calc(100% - 2rem);
  align-self: center;
  justify-self: center;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.letter-paper {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: 4.2rem 3.25rem 1.45rem;
  overflow: hidden;
  border-radius: 1.05rem;
  background-image: var(--letter-paper-image), linear-gradient(180deg, #fffdf9 0%, #f7f1e6 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(93, 114, 80, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 22px rgba(63, 79, 56, 0.05);
  text-align: left;
}

/* 편지지의 글쓰기 영역만 밝게 띄워 배경 무늬 위에서도 내용을 읽기 쉽게 함 */
.letter-paper::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 3.35rem 1.25rem 0.8rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset;
  pointer-events: none;
}

.letter-paper__corner-sticker {
  position: absolute;
  z-index: 2;
  width: 3.8rem;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 9px rgba(63, 79, 56, 0.1));
}

.letter-paper__corner-sticker--left {
  top: -1.1rem;
  left: -0.85rem;
  transform: rotate(-8deg);
}

.letter-paper__corner-sticker--right {
  top: -0.65rem;
  right: -0.55rem;
  width: 3.35rem;
  transform: rotate(12deg);
}

.letter-paper__greeting {
  position: relative;
  z-index: 1;
  margin: 0 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(93, 114, 80, 0.22);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--sage-dark);
}

.letter-paper textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: clamp(140px, 28svh, 220px);
  resize: none;
  border: 0;
  outline: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='32'%3E%3Cline x1='0' y1='31.5' x2='100' y2='31.5' stroke='%235d7250' stroke-opacity='0.22' stroke-width='1' stroke-dasharray='2 5'/%3E%3C/svg%3E");
  background-size: 100% 32px;
  background-repeat: repeat-y;
  background-attachment: local;
  line-height: 32px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--ink);
  padding: 0;
  caret-color: var(--sage);
}

.letter-paper textarea::placeholder {
  color: rgba(90, 103, 84, 0.58);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.letter-paper__meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(93, 114, 80, 0.1);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.letter-form__submit {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  padding: 0.9rem 1.4rem;
  border-radius: 0.9rem;
  font-size: 0.98rem;
  gap: 0.55rem;
  box-shadow: 0 12px 28px rgba(93, 114, 80, 0.24);
}

/* PC: 편지 영역이 화면 높이를 채우되 상·하단 여백은 동일 */
@media (min-width: 760px) {
  .page-letter {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .page-letter .letter-shell {
    --letter-edge-pad: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: calc(var(--header-h) + var(--letter-edge-pad)) 1rem var(--letter-edge-pad);
    overflow: hidden;
    box-sizing: border-box;
  }

  .page-letter .letter-hero {
    flex-shrink: 0;
  }

  .page-letter .letter-panel {
    flex: 1 1 auto;
    width: min(640px, 100%);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .page-letter .letter-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .page-letter .letter-target,
  .page-letter .letter-form__submit {
    flex-shrink: 0;
  }

  .page-letter .letter-paper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .page-letter .letter-paper textarea {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .page-letter .letter-form.is-envelope-step .envelope-picker {
    flex: 1 1 auto;
    min-height: 0;
  }

  .page-letter .letter-paper[hidden] {
    display: none !important;
  }

  .page-letter .letter-panel[hidden],
  .page-letter .letter-complete[hidden] {
    display: none !important;
  }

  .page-letter .letter-shell.is-complete .letter-panel {
    display: none !important;
  }

  .page-letter .letter-shell.is-complete .letter-form__submit {
    display: none !important;
  }

  .page-letter .letter-complete {
    flex: 0 0 auto;
    width: min(640px, 100%);
    min-height: 0;
    margin: 0;
    padding: 3.2rem 2rem;
    display: grid;
    place-content: center;
    overflow: visible;
  }

  .page-letter .letter-shell.is-complete {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .letter-shell {
    gap: 0.65rem;
    padding: calc(var(--header-h) + 0.55rem) 0.85rem 0.9rem;
  }

  .letter-hero__desc {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .letter-panel {
    padding: 0.95rem 0.85rem 0.95rem;
    border-radius: 1.15rem;
  }

  .page-letter .letter-shell {
    gap: 0;
    padding: var(--header-h) 0 0;
  }

  .page-letter .letter-panel {
    --letter-edge-pad: 0.85rem;
    padding: var(--letter-edge-pad);
    padding-bottom: calc(var(--letter-edge-pad) + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }

  .page-letter .letter-form__submit {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-letter .letter-paper textarea {
    min-height: 0;
  }

  .letter-form {
    gap: 0.75rem;
  }

  .letter-target {
    gap: 0.3rem;
  }

  .letter-target__select {
    height: 2.55rem;
  }

  .letter-paper {
    padding: 3.5rem 2.05rem 1rem;
  }

  .letter-paper__corner-sticker--left,
  .letter-paper__corner-sticker--right {
    width: 2.9rem;
  }

  .letter-paper__greeting {
    margin-bottom: 0.55rem;
    padding-bottom: 0.45rem;
    font-size: 0.96rem;
  }

  .letter-paper textarea {
    min-height: clamp(120px, 24svh, 180px);
  }

  .page-letter .letter-paper textarea {
    min-height: 0;
  }

  .letter-form__submit {
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
  }
}

/* Sanctuary create page — garden nest / plaque (not letter reuse) */
.page-sanctuary {
  min-height: 100dvh;
  position: relative;
}

.page-sanctuary .site-header__title {
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
}

.sanctuary-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.sanctuary-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: sanctuaryDrift 28s ease-in-out alternate infinite;
}

.sanctuary-bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 252, 246, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(243, 238, 228, 0.72) 0%, rgba(243, 238, 228, 0.28) 34%, rgba(63, 79, 56, 0.28) 100%);
}

.sanctuary-shell {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4.5rem;
  min-height: 100dvh;
  align-content: start;
}

.sanctuary-hero {
  text-align: center;
  max-width: 28rem;
}

.sanctuary-hero__desc {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.92rem;
  line-height: 1.45;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.8);
}

.sanctuary-nest {
  position: relative;
  width: min(560px, 100%);
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(165deg, rgba(255, 253, 248, 0.96) 0%, rgba(248, 243, 233, 0.94) 100%);
  border: 1px solid rgba(93, 114, 80, 0.12);
  box-shadow:
    0 22px 56px rgba(63, 79, 56, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
  backdrop-filter: blur(12px);
}

.sanctuary-form {
  display: grid;
  gap: 1.15rem;
}

.sanctuary-form__hint {
  margin: 0 0 0.15rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.sanctuary-form [data-sanctuary-step-field][hidden],
.sanctuary-form .is-step-hidden {
  display: none !important;
}

.page-sanctuary .sanctuary-form.is-detail-step .sanctuary-edit-form__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-sanctuary .sanctuary-form.is-detail-step .sanctuary-edit-form__next {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 2.65rem;
  min-height: 2.65rem;
  max-height: 2.65rem;
  padding: 0 0.95rem;
  border: 1px dashed rgba(93, 114, 80, 0.3);
  background: rgba(122, 143, 106, 0.06);
  box-shadow: none;
}

.page-sanctuary .sanctuary-form.is-detail-step .sanctuary-edit-form__tribute-open {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 2.65rem;
  min-height: 2.65rem;
  max-height: 2.65rem;
  padding: 0 0.95rem;
}

.page-sanctuary .sanctuary-form.is-detail-step .sanctuary-edit-form__next:hover,
.page-sanctuary .sanctuary-form.is-detail-step .sanctuary-edit-form__next:focus-visible {
  background: rgba(122, 143, 106, 0.12);
}

.page-sanctuary .sanctuary-form.is-detail-step .sanctuary-edit-form__back {
  grid-column: 1;
  grid-row: 3;
}

.page-sanctuary .sanctuary-form.is-detail-step .sanctuary-edit-form__submit {
  grid-column: 2;
  grid-row: 3;
}

.page-sanctuary .sanctuary-form.is-memory-step .sanctuary-edit-form__fields,
.page-sanctuary .sanctuary-form.is-tribute-step .sanctuary-edit-form__fields,
.page-sanctuary .sanctuary-form.is-memory-step .sanctuary-edit-form__name,
.page-sanctuary .sanctuary-form.is-tribute-step .sanctuary-edit-form__name {
  display: none !important;
}

.page-sanctuary .sanctuary-memories__fields,
.page-sanctuary .sanctuary-tribute {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.page-sanctuary .sanctuary-edit-form__submit.sanctuary-submit {
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

.sanctuary-portrait {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.sanctuary-portrait__ring {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  cursor: pointer;
}

.sanctuary-portrait__preview {
  position: absolute;
  inset: 18%;
  z-index: 1;
  width: 64%;
  height: 64%;
  margin: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px rgba(255, 252, 246, 0.7),
    0 8px 18px rgba(63, 79, 56, 0.2);
}

.sanctuary-portrait__wreath {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 18px rgba(63, 79, 56, 0.2));
  transition: transform 0.45s var(--ease);
}

.sanctuary-portrait__ring:hover .sanctuary-portrait__wreath {
  transform: scale(1.03) rotate(-2deg);
}

.sanctuary-portrait__hint {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transform: translateX(-50%);
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(63, 79, 56, 0.78);
  color: var(--cream);
  font-size: 0.72rem;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.sanctuary-portrait__name {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -0.02em;
}

.sanctuary-portrait__note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.sanctuary-fields {
  display: grid;
  gap: 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(93, 114, 80, 0.1);
}

.sanctuary-field {
  display: grid;
  gap: 0.45rem;
}

.sanctuary-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-dark);
}

.sanctuary-label--sub {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.sanctuary-dates {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: end;
}

.sanctuary-dates__item {
  min-width: 0;
}

.sanctuary-dates__tilde {
  padding-bottom: 0.7rem;
  color: var(--sage-soft);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.sanctuary-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(93, 114, 80, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 252, 246, 0.88);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sanctuary-date-trigger::after {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d7250' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 11h18'/%3E%3C/svg%3E");
  opacity: 0.75;
}

.sanctuary-date-trigger:hover,
.sanctuary-date-trigger:focus,
.sanctuary-date-trigger:focus-visible {
  border-color: rgba(122, 143, 106, 0.55);
  background: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(168, 184, 156, 0.65);
  outline: none;
}

.sanctuary-date-trigger.is-empty {
  color: rgba(125, 135, 118, 0.75);
}

.sanctuary-date-modal {
  width: min(22.5rem, calc(100vw - 2.5rem));
  overflow: visible;
}

.sanctuary-date-modal__inner {
  position: relative;
  text-align: left;
  padding-top: 1.7rem;
  contain: layout;
}

.sanctuary-date-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: var(--sage-deep);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.sanctuary-date-modal__close:hover,
.sanctuary-date-modal__close:focus-visible {
  background: rgba(122, 143, 106, 0.14);
  color: var(--sage-dark);
  outline: none;
}

.sanctuary-date-modal__close i {
  font-size: 1.05rem;
  line-height: 1;
}

.sanctuary-date-modal__title {
  margin: 0 2.4rem 0.65rem 0;
  min-height: 1.5rem;
}

.sanctuary-date-modal__hint {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.sanctuary-date-modal__pickers {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.sanctuary-date-modal__picker {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.sanctuary-date-modal__picker-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.sanctuary-date-modal__select,
.sanctuary-date-modal__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 1.7rem 0.55rem 0.65rem;
  border: 1px solid rgba(93, 114, 80, 0.16);
  border-radius: 0.8rem;
  color: var(--ink);
  outline: none;
  appearance: none;
  background-color: rgba(255, 252, 246, 0.95);
}

.sanctuary-date-modal__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d7250' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.7rem auto;
}

.sanctuary-date-modal__input {
  padding-right: 0.65rem;
  font: inherit;
  text-align: center;
  letter-spacing: 0.04em;
}

.sanctuary-date-modal__input::placeholder {
  color: rgba(93, 114, 80, 0.42);
  letter-spacing: 0;
}

.sanctuary-date-modal__select:focus,
.sanctuary-date-modal__input:focus {
  border-color: rgba(122, 143, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(168, 184, 156, 0.28);
}

.sanctuary-date-modal__actions {
  display: flex;
  justify-content: flex-end;
}

.sanctuary-date-modal__confirm {
  min-width: 5.5rem;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border-radius: 0.8rem;
}

.sanctuary-relation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sanctuary-relation-badge {
  display: inline-flex;
  cursor: pointer;
}

.sanctuary-relation-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2.05rem;
  min-height: 2.05rem;
  max-height: 2.05rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 114, 80, 0.18);
  background: rgba(255, 252, 246, 0.92);
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sanctuary-relation-badge:hover span {
  border-color: rgba(122, 143, 106, 0.45);
  background: rgba(122, 143, 106, 0.1);
}

.sanctuary-relation-badge:has(:checked) span,
.sanctuary-relation-badge:has(:focus-visible) span {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fff;
  box-shadow: 0 3px 8px rgba(93, 114, 80, 0.18);
}

.sanctuary-relation-badge:has(:focus-visible) span {
  outline: 2px solid rgba(168, 184, 156, 0.7);
  outline-offset: 2px;
}

.sanctuary-input,
.sanctuary-textarea {
  width: 100%;
  border: 1px solid rgba(93, 114, 80, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 252, 246, 0.88);
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sanctuary-input {
  height: 2.75rem;
  min-height: 2.75rem;
  max-height: 2.75rem;
  padding: 0 0.95rem;
  line-height: 1.2;
}

.sanctuary-textarea {
  resize: none;
  min-height: 7.5rem;
  padding: 0.95rem 1rem;
  line-height: 1.65;
  font-family: var(--font-serif);
  font-size: 0.98rem;
}

.sanctuary-input::placeholder,
.sanctuary-textarea::placeholder {
  color: rgba(125, 135, 118, 0.75);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.sanctuary-input:focus,
.sanctuary-textarea:focus {
  border-color: rgba(122, 143, 106, 0.55);
  background: var(--cream);
  /* 스크롤 컨테이너의 overflow에 잘리지 않도록 내부 포커스 링을 사용합니다. */
  box-shadow: inset 0 0 0 2px rgba(168, 184, 156, 0.65);
}

.sanctuary-count {
  display: flex;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.sanctuary-submit {
  justify-self: center;
  min-width: min(100%, 16.5rem);
  min-height: 3.15rem;
  padding: 0.95rem 1.7rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 500;
  gap: 0.55rem;
  box-shadow:
    0 12px 28px rgba(93, 114, 80, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

/* 입력 컨트롤의 포커스 표시가 부모의 overflow에 잘리지 않도록 내부 링으로 통일합니다. */
input:focus,
textarea:focus,
select:focus,
.sanctuary-date-trigger:focus,
.sanctuary-date-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(168, 184, 156, 0.65) !important;
}

.sanctuary-submit:hover {
  background: linear-gradient(160deg, var(--sage-deep) 0%, #4d6142 100%);
}

.sanctuary-footnote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 252, 246, 0.55);
}

@keyframes sanctuaryDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1%, -0.8%, 0); }
}

@media (max-width: 759px) {
  html:has(body.page-sanctuary),
  html:has(body.page-account),
  html:has(body.page-deposit-history),
  html:has(body.page-deposits),
  html:has(body.page-members),
  html:has(body.page-memorial-reminders),
  html:has(body.page-letter) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background-color: var(--cream);
  }

  .page-sanctuary,
  .page-account,
  .page-deposit-history,
  .page-deposits,
  .page-members,
  .page-memorial-reminders,
  .page-letter {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--cream);
  }

  .page-sanctuary .sanctuary-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    padding: var(--header-h) 0 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .page-sanctuary .sanctuary-hero {
    display: none;
  }

  .page-sanctuary .sanctuary-nest {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 0.85rem 1.05rem calc(5.25rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-sanctuary .sanctuary-form {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

  .page-sanctuary .sanctuary-nest:has(.sanctuary-form.is-detail-step) {
    padding-bottom: calc(11.75rem + env(safe-area-inset-bottom, 0px));
  }

  .page-sanctuary .sanctuary-edit-form__actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    margin: 0;
    padding: 0.75rem 1.05rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.92) 0%, rgba(248, 243, 233, 0.98) 28%, rgba(248, 243, 233, 1) 100%);
    border-top: 1px solid rgba(93, 114, 80, 0.1);
    box-shadow: 0 -10px 28px rgba(63, 79, 56, 0.08);
  }

  .page-sanctuary .sanctuary-footnote {
    display: none;
  }

  .page-sanctuary .sanctuary-bg {
    display: none;
  }

  .sanctuary-portrait__ring {
    width: 8.4rem;
    height: 8.4rem;
  }

  .page-account .account-shell,
  .page-deposit-history .account-shell,
  .page-deposits .account-shell,
  .page-members .account-shell,
  .page-memorial-reminders .account-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0;
    padding: var(--header-h) 0 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .page-account .account-hero,
  .page-deposit-history .account-hero {
    display: none;
  }

  .page-account .account-hub {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 1.25rem 1.15rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    background: var(--cream);
  }

  .page-account .account-hub__avatar {
    width: 6.5rem;
    height: 6.5rem;
    font-size: 2rem;
  }

  .page-account .account-hub__name {
    font-size: 1.2rem;
  }

  .page-account .account-hub__menu {
    gap: 1.5rem;
  }

  .page-account .account-hub__group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.55rem;
    justify-items: center;
  }

  .page-account .account-hub__group-label {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0.15rem 0.35rem 0.1rem;
  }

  .page-account .account-hub__btn {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    max-width: 5.75rem;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-align: center;
  }

  .page-account .account-hub__btn:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  .page-account .account-hub__btn:active {
    transform: scale(0.96);
  }

  .page-account .account-hub__btn i {
    display: grid;
    place-items: center;
    width: 4.35rem;
    height: 4.35rem;
    border-radius: 1.2rem;
    background: #fffdf8;
    border: 1px solid rgba(93, 114, 80, 0.12);
    box-shadow: 0 8px 20px rgba(63, 79, 56, 0.08);
    color: var(--sage);
    font-size: 1.55rem;
  }

  .page-account .account-hub__btn--danger {
    color: #8a4b45;
  }

  .page-account .account-hub__btn--danger i {
    color: #b56a62;
    background: rgba(181, 106, 98, 0.08);
    border-color: rgba(181, 106, 98, 0.16);
  }

  .page-account .account-hub__btn span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    padding: 0 0.1rem;
  }

  .page-account .account-hub__logout {
    padding: 0.75rem 1.15rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .page-account .account-hub__logout button {
    width: 100%;
    max-width: none;
  }

  .page-deposit-history .account-panel--wide,
  .page-deposits .account-panel--wide,
  .page-members .account-panel--wide,
  .page-memorial-reminders .account-panel--wide {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0.95rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-deposit-history .account-panel--wide {
    overflow-x: auto;
  }

  .page-deposits .account-panel--wide,
  .page-members .account-panel--wide,
  .page-memorial-reminders .account-panel--wide {
    overflow-x: hidden;
  }

  .page-deposits .account-panel__intro,
  .page-members .account-panel__intro,
  .page-memorial-reminders .account-panel__intro {
    margin-bottom: 0.15rem;
  }

  .page-deposits .account-panel__icon,
  .page-members .account-panel__icon,
  .page-memorial-reminders .account-panel__icon {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    background: rgba(168, 184, 156, 0.18);
    box-shadow: none;
  }

  .page-deposits .account-panel__intro .account-panel__meta,
  .page-members .account-panel__intro .account-panel__meta,
  .page-memorial-reminders .account-panel__intro .account-panel__meta {
    margin-bottom: 1rem;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .page-deposits .deposits-filters,
  .page-members .deposits-filters,
  .page-memorial-reminders .deposits-filters {
    gap: 0.65rem 0.7rem;
    margin-bottom: 1rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .page-members #members-query {
    font-size: 16px;
  }

  .page-deposits #deposits-depositor {
    font-size: 16px;
  }

  .page-memorial-reminders #memorial-query {
    font-size: 16px;
  }

  .page-deposits .deposits-filters__dates,
  .page-memorial-reminders .deposits-filters__dates {
    gap: 0.65rem 0.7rem;
  }

  .page-deposits .deposits-filters__date-btn,
  .page-memorial-reminders .deposits-filters__date-btn {
    min-height: 2.6rem;
    font-size: 16px;
  }

  .page-deposits .deposits-filters__actions,
  .page-members .deposits-filters__actions,
  .page-memorial-reminders .deposits-filters__actions {
    gap: 0.45rem;
  }

  .page-deposits .deposits-table-wrap,
  .page-members .deposits-table-wrap,
  .page-memorial-reminders .deposits-table-wrap {
    margin: 0;
    overflow: visible;
  }

  .page-deposits .deposits-table,
  .page-members .deposits-table,
  .page-memorial-reminders .deposits-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-top: none !important;
    border-bottom: none !important;
  }

  .page-deposits .deposits-table thead,
  .page-members .deposits-table thead,
  .page-memorial-reminders .deposits-table thead {
    display: none;
  }

  .page-deposits .deposits-table tbody,
  .page-members .deposits-table tbody,
  .page-memorial-reminders .deposits-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .page-deposits .deposits-table tbody tr,
  .page-members .deposits-table tbody tr,
  .page-memorial-reminders .deposits-table tbody tr {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 1.1rem;
    background: #fffdf8;
    border: 1px solid rgba(93, 114, 80, 0.12);
    box-shadow: 0 8px 20px rgba(63, 79, 56, 0.07);
  }

  .page-deposits .deposits-table th,
  .page-deposits .deposits-table td,
  .page-members .deposits-table th,
  .page-memorial-reminders .deposits-table th,
  .page-members .deposits-table td,
  .page-memorial-reminders .deposits-table td,
  .page-deposits table.dataTable > tbody > tr > *,
  .page-members table.dataTable > tbody > tr > *,
  .page-memorial-reminders table.dataTable > tbody > tr > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    padding: 0.28rem 0;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    font-size: 0.9rem;
    text-align: right;
    box-shadow: none !important;
  }

  .page-deposits .deposits-table td::before,
  .page-members .deposits-table td::before,
  .page-memorial-reminders .deposits-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
  }

  .page-deposits .deposits-table td:nth-child(4),
  .page-members .deposits-table td:nth-child(2),
  .page-memorial-reminders .deposits-table td:nth-child(1) {
    order: -1;
    display: block;
    margin-bottom: 0.25rem;
    padding-bottom: 0.7rem;
    border: none !important;
    border-bottom: 1px solid rgba(93, 114, 80, 0.1) !important;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--sage-dark);
    letter-spacing: -0.02em;
    text-align: left;
  }

  .page-deposits .deposits-table td:nth-child(4)::before,
  .page-members .deposits-table td:nth-child(2)::before,
  .page-memorial-reminders .deposits-table td:nth-child(1)::before {
    display: none;
  }

  .page-deposits .deposits-table td:nth-child(3),
  .page-members .deposits-table td:nth-child(3),
  .page-members .deposits-table td:nth-child(5),
  .page-memorial-reminders .deposits-table td:nth-child(2),
  .page-memorial-reminders .deposits-table td:nth-child(3),
  .page-memorial-reminders .deposits-table td:nth-child(4) {
    display: flex;
  }

  .page-deposits .deposits-table td:last-child,
  .page-members .deposits-table td:last-child,
  .page-memorial-reminders .deposits-table td:last-child {
    display: block;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border: none !important;
    border-top: 1px solid rgba(93, 114, 80, 0.1) !important;
    text-align: left;
  }

  .page-deposits .deposits-table td:last-child::before,
  .page-members .deposits-table td:last-child::before,
  .page-memorial-reminders .deposits-table td:last-child::before {
    display: none;
  }

  .page-deposits .deposits-actions,
  .page-members .deposits-actions,
  .page-memorial-reminders .deposits-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    min-width: 0;
  }

  .page-deposits .deposits-actions .btn,
  .page-members .deposits-actions .btn,
  .page-memorial-reminders .deposits-actions .btn {
    width: 100%;
    justify-content: center;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0.22rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .page-deposits .deposits-actions .btn:only-child,
  .page-members .deposits-actions .btn:only-child,
  .page-memorial-reminders .deposits-actions .btn:only-child {
    grid-column: 1 / -1;
  }

  .page-memorial-reminders .deposits-actions .deposits-status {
    grid-column: 1 / -1;
  }

  .page-deposits .dt-length,
  .page-deposits .dt-info,
  .page-members .dt-length,
  .page-memorial-reminders .dt-length,
  .page-members .dt-info,
  .page-memorial-reminders .dt-info {
    font-size: 0.8rem;
  }

  .page-deposits .dt-layout-row,
  .page-members .dt-layout-row,
  .page-memorial-reminders .dt-layout-row {
    gap: 0.55rem;
    margin-top: 0.35rem;
  }

  .page-deposits .dt-container,
  .page-members .dt-container,
  .page-memorial-reminders .dt-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .page-account .account-banner {
    flex-shrink: 0;
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .page-account .account-tabs {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .page-account .account-shell[data-account-view="hub"] .account-tabs {
    display: none;
  }

  .page-account .account-tabs__body {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0.95rem 1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: var(--cream);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-account .account-shell[data-account-view="detail"] .account-tabs[data-active-tab="password"] .account-tabs__body {
    align-items: center;
    justify-content: center;
    padding: 1.15rem;
    background: transparent;
    overflow: visible;
  }

  .page-account .account-panel {
    border-radius: 1rem;
  }

  .page-letter .letter-bg {
    display: none;
  }

  .page-letter:has(.letter-shell.is-envelope-step) .letter-bg {
    display: block;
  }

  /* 봉투 단계: 상태바(cream)와 헤더 색을 동일하게 맞춤 */
  .page-letter:has(.letter-shell.is-envelope-step) .site-header--acrylic {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(93, 114, 80, 0.08);
  }

  .page-letter:has(.letter-shell.is-envelope-step) .site-header--acrylic.is-scrolled {
    background: var(--cream);
  }

  .page-letter .letter-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: var(--header-h) 0 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .page-letter .letter-hero {
    display: none;
  }

  .page-letter .letter-panel {
    --letter-edge-pad: 0.95rem;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: var(--letter-edge-pad);
    padding-bottom: calc(var(--letter-edge-pad) + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .page-letter .letter-shell.is-envelope-step .letter-panel {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
  }

  .page-letter .letter-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
  }

  .page-letter .letter-paper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .page-letter .letter-paper textarea {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .page-letter .letter-form.is-envelope-step .envelope-picker {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .page-letter .letter-paper[hidden] {
    display: none !important;
  }

  .page-letter .letter-panel[hidden],
  .page-letter .letter-complete[hidden] {
    display: none !important;
  }

  .page-letter .letter-shell.is-complete .letter-panel {
    display: none !important;
  }

  .page-letter .letter-form__submit {
    position: static;
    flex-shrink: 0;
    width: 100%;
    min-height: 3.15rem;
    margin: 0;
    border-radius: 0.9rem;
    padding: 0.85rem 1.05rem;
    box-shadow: 0 12px 28px rgba(93, 114, 80, 0.24);
  }

  .page-letter .letter-form.is-envelope-step .letter-form__submit {
    width: calc(100% - 2rem);
    max-width: none;
    min-width: 11.5rem;
    align-self: center;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  .page-letter .letter-shell.is-complete .letter-form__submit {
    display: none !important;
  }

  .page-letter .letter-complete {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: var(--cream);
    overflow-y: auto;
    overscroll-behavior: none;
  }

  .page-letter .letter-shell.is-complete .letter-complete {
    display: grid;
    place-content: center;
  }
}

@media (max-width: 520px) {
  .page-access-stats .account-panel--wide,
  .page-security-logs .account-panel--wide,
  .page-deposit-history .account-panel--wide {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .sanctuary-shell {
    padding-top: calc(var(--header-h) + 1.35rem);
    gap: 1.15rem;
  }

  .sanctuary-nest {
    padding: 1.55rem 1.05rem 1.25rem;
    border-radius: 1.35rem;
  }

  .page-sanctuary .sanctuary-shell {
    padding: var(--header-h) 0 0;
    gap: 0;
  }

  .page-sanctuary .sanctuary-nest {
    padding: 0.75rem 1rem calc(5rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }

  .page-sanctuary .sanctuary-nest:has(.sanctuary-form.is-detail-step) {
    padding-bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px));
  }

  .page-sanctuary .sanctuary-edit-form__actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-sanctuary .sanctuary-footnote {
    display: none;
  }

  .sanctuary-form {
    gap: 1.4rem;
  }

  .page-sanctuary .sanctuary-form {
    gap: 1.1rem;
  }

  .sanctuary-fields {
    gap: 1.1rem;
  }

  .sanctuary-dates {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .sanctuary-dates__tilde {
    display: none;
  }

  .sanctuary-date-modal__pickers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sanctuary-date-modal__actions {
    justify-content: stretch;
  }

  .sanctuary-date-modal__confirm {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sanctuary-bg img {
    animation: none;
  }

  .sanctuary-portrait__ring:hover .sanctuary-portrait__wreath {
    transform: none;
  }
}

/* Forest story landing page */
.forest-story { overflow: hidden; background: #f3f0e7; color: var(--ink, #27352a); }
.forest-story__hero, .forest-story__season { position: relative; min-height: min(760px, 86vh); display: grid; align-items: center; overflow: hidden; color: #fff; }
.forest-story__hero-image, .forest-story__season-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forest-story__hero-image { animation: forestStoryDrift 15s ease-in-out infinite alternate; }
.forest-story__hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 36, 24, .75), rgba(20, 36, 24, .28) 56%, rgba(20, 36, 24, .08)); }
.forest-story__hero-content { position: relative; z-index: 1; padding-top: 7rem; padding-bottom: 5rem; }
.forest-story__eyebrow { margin: 0 0 1.35rem; color: #a9bd9d; font: 600 .7rem/1.2 var(--font-sans, sans-serif); letter-spacing: .2em; }
.forest-story__hero h1, .forest-story__season h2 { max-width: 720px; margin: 0; font: 400 clamp(2.6rem, 5vw, 5.2rem)/1.2 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.055em; }
.forest-story__hero h1 em, .forest-story__season h2 em, .forest-story__section-copy h2 em { color: #c0d0b7; font-style: normal; }
.forest-story__hero-content > p:not(.forest-story__eyebrow) { margin: 2rem 0 0; color: rgba(255,255,255,.82); font: 300 1.08rem/1.9 var(--font-sans, sans-serif); }
.forest-story__scroll { display: inline-flex; gap: .8rem; align-items: center; margin-top: 3.8rem; color: #fff; font-size: .85rem; letter-spacing: .08em; }
.forest-story__scroll span { font-size: 1.25rem; transition: transform .25s ease; }
.forest-story__scroll:hover span { transform: translateY(4px); }
.forest-story__meaning { padding: 9rem 0; background: #f3f0e7; }
.forest-story__meaning-grid, .forest-story__care-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(3rem, 10vw, 10rem); align-items: center; }
.forest-story__section-copy h2 { margin: 0 0 2rem; color: #344737; font: 400 clamp(2.2rem, 4vw, 4rem)/1.3 var(--font-serif, 'Noto Serif KR', serif); letter-spacing: -.06em; }
.forest-story__section-copy > p:not(.forest-story__eyebrow) { max-width: 590px; margin: 0 0 1.15rem; color: #697268; font-size: 1rem; line-height: 2; word-break: keep-all; }
.forest-story__facts { border-top: 1px solid rgba(95, 117, 86, .3); }
.forest-story__facts article { display: grid; grid-template-columns: 3rem 1fr; gap: .8rem 1.4rem; padding: 1.65rem 0; border-bottom: 1px solid rgba(95, 117, 86, .3); }
.forest-story__facts strong { grid-row: span 2; color: #9aac8f; font: 400 1.1rem/1.2 var(--font-serif, serif); }
.forest-story__facts h3 { margin: 0; color: #4d6249; font: 500 1.2rem/1.2 var(--font-serif, 'Noto Serif KR', serif); }
.forest-story__facts p { margin: 0; color: #7b8378; font-size: .88rem; line-height: 1.7; }
.forest-story__care { padding: 8rem 0; background: #40543e; }
.forest-story__care-media { overflow: hidden; }
.forest-story__care-media img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.forest-story__section-copy--light h2 { color: #f4f0e7; }
.forest-story__section-copy--light > p:not(.forest-story__eyebrow) { color: rgba(244,240,231,.72); }
.forest-story__section-copy--light .forest-story__eyebrow { color: #b8cbb0; }
.forest-story__season { min-height: 620px; color: #344737; }
.forest-story__season-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forest-story__season::before { content: ''; position: absolute; inset: 0; background: rgba(238, 240, 229, .42); }
.forest-story__season-inner { position: relative; z-index: 1; width: 100%; text-align: center; }
.forest-story__season h2 { max-width: none; color: #344737; font-size: clamp(2.25rem, 4.5vw, 4.6rem); }
.forest-story__season h2 em { color: #55704f; }
.forest-story__season-inner > p:not(.forest-story__eyebrow) { margin: 2rem 0 0; color: #657260; font-size: 1rem; line-height: 2; }
@keyframes forestStoryDrift { from { transform: scale(1.02); } to { transform: scale(1.08); } }
@media (max-width: 759px) {
  .forest-story__hero { min-height: 680px; }
  .forest-story__hero-content { padding-top: 5rem; }
  .forest-story__hero-overlay { background: linear-gradient(90deg, rgba(20,36,24,.78), rgba(20,36,24,.3)); }
  .forest-story__meaning { padding: 5.5rem 0; }
  .forest-story__meaning-grid, .forest-story__care-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .forest-story__care { padding: 5.5rem 0; }
  .forest-story__season { min-height: 560px; }
}

/* Info / policy pages */
.page-info {
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(168, 184, 156, 0.18), transparent 58%),
    var(--beige);
}

.info-page {
  padding: calc(var(--header-h) + 1.5rem) 0 3.5rem;
  -webkit-user-select: text;
  user-select: text;
}

.info-page__inner {
  display: grid;
  gap: 1.75rem;
  max-width: 44rem;
}

.info-page__header {
  display: grid;
  gap: 0.65rem;
}

.info-page__eyebrow {
  margin: 0;
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.info-page__header h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
}

.info-page__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.info-page__updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.info-page__body {
  display: grid;
  gap: 1.5rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(63, 79, 56, 0.08);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow-soft);
}

.info-page__body section {
  display: grid;
  gap: 0.55rem;
}

.info-page__body h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.info-page__body p,
.info-page__body li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.info-page__body ul,
.info-page__body ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.info-page__body a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.info-page__facts {
  list-style: none;
  padding-left: 0;
  gap: 0.55rem;
}

.info-page__facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(223, 230, 216, 0.35);
  border: 1px solid rgba(63, 79, 56, 0.06);
}

.info-page__facts strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.info-page__note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-alert {
  margin: 0 0 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-alert--success {
  background: rgba(122, 143, 106, 0.14);
  border: 1px solid rgba(122, 143, 106, 0.28);
  color: var(--sage-deep);
}

.contact-alert--error {
  background: rgba(180, 90, 70, 0.1);
  border: 1px solid rgba(180, 90, 70, 0.22);
  color: #8a4334;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(63, 79, 56, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 252, 246, 0.95);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.contact-input--textarea {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.65;
}

.contact-input:focus {
  border-color: rgba(122, 143, 106, 0.55);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(168, 184, 156, 0.28);
}

.contact-form__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.contact-form__submit {
  justify-self: center;
  min-height: 2.85rem;
  padding-inline: 1.35rem;
}

@media (min-width: 760px) {
  .info-page {
    padding-top: calc(var(--header-h) + 2.2rem);
  }

  .info-page__body {
    padding: 1.75rem 1.6rem;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes heroDrift {
  from { transform: scale(1.06); }
  to { transform: scale(1.1); }
}

@keyframes bounceSoft {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
