/* 냥집 바텀시트 — hellomy hm_feed_sheet 패턴 */
/* body position:fixed 잠금 금지 — 가상스크롤 피드와 충돌 */
html.nz-sheet-lock,
body.nz-sheet-lock {
  overscroll-behavior: none;
}
html.nz-sheet-lock {
  /* 배경 러버밴드만 억제 — position/overflow 로 scrollY 건드리지 않음 */
  overscroll-behavior-y: none;
}

.nz-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 38, 34, 0.38);
  z-index: 40;
  pointer-events: none;
  touch-action: none;
}
.nz-sheet-overlay.is-open {
  display: block;
  pointer-events: auto;
}

.nz-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  transform: translate(-50%, 100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 44;
  max-height: min(78vh, 640px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 28px rgba(42, 38, 34, 0.12);
  padding: 0 0 calc(var(--nz-bottom-h, 56px) + var(--nz-safe-bottom, 0px) + 12px);
  box-sizing: border-box;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nz-sheet.is-open {
  transform: translate(-50%, 0);
  pointer-events: auto;
}
/* 탭 터치 → 시트 링크 고스트클릭 방지: 열림 직후 자식만 비활성, 시트 본체는 클릭 흡수 */
.nz-sheet.is-arming > * {
  pointer-events: none !important;
}

body.nz-sheet-open .tabbar {
  z-index: 50;
}

.nz-sheet__head {
  flex-shrink: 0;
  padding: 10px 14px 8px;
  position: relative;
}
.nz-sheet__drag {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.nz-sheet__drag:active {
  cursor: grabbing;
}
.nz-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #e3ddd4;
}
.nz-sheet__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.nz-sheet__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--nz-accent-deep, #c45f24);
  line-height: 1.35;
}
.nz-sheet__desc {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--nz-ink-mute, #9a9288);
  letter-spacing: -0.02em;
}
.nz-sheet__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: -6px -6px 0 0;
  border: 0;
  border-radius: 10px;
  background: #f7f4ef;
  color: #6b645c;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.nz-sheet__close:active { background: #ebe6de; }

.nz-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 16px 8px;
}

.nz-sheet__empty {
  margin: 8px 0 20px;
  padding: 28px 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--nz-ink-mute, #9a9288);
  background: #faf8f5;
  border-radius: 12px;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

/* 게시판 시트 — 카테고리 칩 */
.nz-sheet-board__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 4px 0 12px;
}
.nz-sheet-board__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f4ef;
  color: var(--nz-ink, #2a2622);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
}
.nz-sheet-board__item:active { background: #ebe6de; }
.nz-sheet-board__more {
  display: block;
  margin: 4px 0 8px;
  padding: 14px;
  text-align: center;
  border-radius: 12px;
  background: var(--nz-accent-soft, #fdf0e6);
  color: var(--nz-accent-deep, #c45f24);
  font-size: 0.88rem;
  font-weight: 700;
}

/* 글쓰기 시트 — 2열 그리드 (테두리로 게시판 칩과 차별) */
.nz-sheet-write__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 4px 0 12px;
}
.nz-sheet-write__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--nz-line, #ebe6de);
  color: var(--nz-ink, #2a2622);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
}
.nz-sheet-write__item:active {
  background: var(--nz-accent-soft, #fdf0e6);
  border-color: #f0d5c0;
}

/* 글쓰기 분류 선택 → 에디터 진입 전환 로딩 (hellomy 공통 전환 로딩 대응) */
.nz-write-transition {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(42, 38, 34, 0.34);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  touch-action: none;
}
.nz-write-transition[hidden] {
  display: none !important;
}
.nz-write-transition__loader {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(72vw, 280px);
  gap: 16px;
  text-align: center;
}
.nz-write-transition__text {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(42, 38, 34, 0.35);
}
.nz-write-transition__dots span {
  opacity: 1;
}
.nz-write-transition__dots span:nth-child(2) {
  animation: nzWriteTransitionDot2 1.2s infinite;
}
.nz-write-transition__dots span:nth-child(3) {
  animation: nzWriteTransitionDot3 1.2s infinite;
}
.nz-write-transition__bar {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}
.nz-write-transition__fill {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0a36f 0%, #e07a3d 100%);
}
@keyframes nzWriteTransitionDot2 {
  0%, 24%, 50%, 100% { opacity: 1; }
  25%, 49% { opacity: 0; }
}
@keyframes nzWriteTransitionDot3 {
  0%, 24%, 75%, 100% { opacity: 1; }
  25%, 74% { opacity: 0; }
}

/* MY 시트 */
.nz-my-card {
  border-radius: 14px;
  background: #faf8f5;
  border: 1px solid var(--nz-line, #ebe6de);
  padding: 14px;
  margin-bottom: 12px;
}
.nz-my-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nz-my-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3d5b5;
  flex-shrink: 0;
}
.nz-my-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nz-my-meta { min-width: 0; flex: 1; }
.nz-my-nick {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--nz-ink, #2a2622);
}
.nz-my-nick span { color: var(--nz-ink-mute, #9a9288); font-weight: 500; font-size: 0.9em; }
.nz-my-id {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--nz-ink-mute, #9a9288);
}
.nz-my-logout {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--nz-ink-soft, #6b645c);
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--nz-line, #ebe6de);
}
.nz-my-logout:active { background: #f7f4ef; }

.nz-my-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.nz-my-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 10px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--nz-line, #ebe6de);
  text-align: center;
}
.nz-my-quick__item span {
  font-size: 0.72rem;
  color: var(--nz-ink-mute, #9a9288);
  font-weight: 550;
}
.nz-my-quick__item strong {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--nz-ink, #2a2622);
  letter-spacing: -0.03em;
}
.nz-my-quick__item:active { background: #f7f4ef; }

.nz-my-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.nz-my-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--nz-line, #ebe6de);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--nz-ink, #2a2622);
}
.nz-my-link:active { background: #faf8f5; }
.nz-my-link em {
  font-style: normal;
  color: #cfc7bc;
  font-weight: 500;
}

.nz-my-guest {
  text-align: center;
  padding: 20px 12px 8px;
}
.nz-my-guest p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--nz-ink-soft, #6b645c);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.nz-my-guest__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--nz-accent, #e07a3d);
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 700;
}
.nz-my-guest__btn:active { background: var(--nz-accent-deep, #c45f24); }
