/* 쇼핑집사 가격 알림 (S2) — 알림 시트 · 홈 화면 안내 · /alerts · /watchlist.
   v9/v10 결: Pretendard 하나, 검정 62px 주 버튼, 둥근 시트(28px), 유리 질감 토스트·안내. 강조색은 검정 하나(+ 상태용 연한 칩). */

/* ── 토글이 켜진 상태 (상품 화면 종 버튼·하단 탭) ─────────────────── */
.cta-alert[data-alert-on] {
  background: #0e0f12;
  color: #fff;
}
.cta-alert[data-alert-on] svg path:first-child {
  fill: currentColor;
}
[data-alert-tab] {
  position: relative;
}
[data-alert-tab][data-alert-has]::after {
  content: '';
  position: absolute;
  top: 9px;
  left: calc(50% + 7px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2cd5a8;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* ── 알림 시트 ──────────────────────────────────────────── */
html.sja-open {
  overflow: hidden;
}
.sja {
  position: fixed;
  inset: 0;
  z-index: 80;
  font-family: var(--font, 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif);
  letter-spacing: -0.02em;
  color: #0e0f12;
}
.sja-dim {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 18, 0.52);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.sja-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--col, 480px));
  max-height: calc(100% - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, 104%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
  outline: none;
}
.sja[data-open] .sja-dim {
  opacity: 1;
}
.sja[data-open] .sja-panel {
  transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
  .sja-dim,
  .sja-panel {
    transition: none;
  }
}
.sja-handle {
  width: 40px;
  height: 5px;
  margin: 0 auto;
  border-radius: 3px;
  background: #d6d9de;
}
.sja-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f5;
  color: #33363d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sja button {
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sja button:focus-visible,
.sja .sja-sw:focus-visible {
  outline: 2px solid #0e0f12;
  outline-offset: 2px;
}
.sja .sja-in:focus,
.sja .sja-in:focus-visible {
  outline: none;
}

/* 상품 미니 카드 */
.sja-prod {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 44px 0 0;
}
.sja-img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f3f4f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sja-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.sja-prod-t {
  min-width: 0;
}
.sja-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.4;
  color: #33363d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sja-now {
  margin: 3px 0 0;
  font-size: 13px;
  color: #5f6470;
  font-variant-numeric: tabular-nums;
}
.sja-now b {
  font-size: 14px;
  font-weight: 800;
  color: #0e0f12;
}
.sja-now em {
  font-style: normal;
  font-weight: 750;
  color: #c2261c;
}

.sja-h {
  margin: 22px 0 12px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

/* 목표가 칩 */
.sja-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sja-chips:has(> :only-child) {
  grid-template-columns: 1fr;
}
.sja-chip {
  min-width: 0;
  min-height: 66px;
  padding: 11px 12px;
  border: 0;
  border-radius: 18px;
  background: #f3f4f5;
  box-shadow: inset 0 0 0 1px transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  color: #33363d;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.sja-chip b {
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.3;
  word-break: keep-all;
}
.sja-chip span {
  font-size: 12.5px;
  font-weight: 600;
  color: #5f6470;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sja-chip[aria-checked='true'] {
  background: #fff;
  box-shadow: inset 0 0 0 2px #0e0f12;
  color: #0e0f12;
}
.sja-chip[aria-checked='true'] span {
  color: #0e0f12;
}

/* 직접 입력 */
.sja-custom {
  margin-top: 10px;
  height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  background: #f3f4f5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sja-custom[hidden] {
  display: none;
}
.sja-custom:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 2px #0e0f12;
}
.sja-in {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0e0f12;
  font-variant-numeric: tabular-nums;
}
.sja-in::placeholder {
  color: #a3a8b0;
}
.sja-won {
  font-size: 17px;
  font-weight: 750;
}
.sja-hint {
  margin: 8px 2px 0;
  font-size: 13px;
  font-weight: 600;
  color: #c2261c;
}

/* 관심 담기 스위치 */
.sja-row {
  margin-top: 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ecedf0;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.sja-sw {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  position: relative;
  width: 50px;
  height: 30px;
  margin: 0;
  border-radius: 15px;
  background: #e1e3e7;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.sja-sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 15, 18, 0.22);
  transition: transform 0.2s ease;
}
.sja-sw:checked {
  background: #0e0f12;
}
.sja-sw:checked::after {
  transform: translateX(20px);
}

/* 기기별 단계 */
.sja-step {
  margin-top: 4px;
}
.sja-st {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #f3f6fb;
}
.sja-st b {
  display: block;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}
.sja-st p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5f6470;
}
.sja-st-on {
  background: #e9faf4;
}
.sja-st-on .sja-ico {
  background: #2cd5a8;
  color: #0e0f12;
}
.sja-st-warn {
  background: #fff4f1;
}
.sja-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #0e0f12;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(14, 15, 18, 0.08);
}
.sja-ico-pulse {
  animation: sja-ring 1.6s ease-in-out infinite;
}
@keyframes sja-ring {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-12deg);
  }
  30% {
    transform: rotate(8deg);
  }
  40% {
    transform: rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sja-ico-pulse {
    animation: none;
  }
}
.sja-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.sja-steps li {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f3f4f5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #33363d;
}
.sja-steps b {
  font-weight: 750;
  color: #0e0f12;
}
.sja-n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0e0f12;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 사파리 아이콘 그림 (공유·홈 화면에 추가) */
.sja-pic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 2px;
  vertical-align: middle;
  border-radius: 9px;
  background: #fff;
  color: #007aff;
  box-shadow: 0 0 0 1px rgba(14, 15, 18, 0.08), 0 1px 2px rgba(14, 15, 18, 0.06);
}
.sja-pic-s {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #33363d;
}
.sja-ios-t {
  margin: 0;
  padding: 14px 16px 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.sja-ios-t b {
  font-weight: 800;
}
.sja-ios {
  padding-bottom: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef3ff, #f6f8fc);
}
.sja-ios .sja-steps {
  padding: 0 10px;
}
.sja-ios .sja-steps li {
  background: rgba(255, 255, 255, 0.86);
}
.sja-tip,
.sja-ios-s {
  margin: 10px 16px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5f6470;
}
.sja-ios-s b {
  color: #0e0f12;
}

/* 설치 제안 (beforeinstallprompt) */
.sja-install {
  width: 100%;
  margin-top: 8px;
  min-height: 52px;
  padding: 8px 8px 8px 16px;
  border: 0;
  border-radius: 18px;
  background: #f3f4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  color: #33363d;
}
.sja-install[hidden] {
  display: none;
}
.sja-install b {
  flex: none;
  height: 36px;
  padding: 0 16px;
  border-radius: 12px;
  background: #0e0f12;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  display: flex;
  align-items: center;
}

/* 주 버튼 — 검정 62px */
.sja-go {
  width: 100%;
  height: 62px;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
  background: #0e0f12;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
  transition: transform 0.12s ease, opacity 0.2s ease;
}
.sja-go:active {
  transform: scale(0.985);
}
.sja-go:disabled {
  opacity: 0.55;
  cursor: default;
}
.sja-off {
  display: block;
  margin: 10px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 650;
  color: #5f6470;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sja-off[hidden] {
  display: none;
}
.sja-fine {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #8a8f99;
}

/* 토스트 · 아이폰 코치 마크 · 앱 안 '알림 켜기' 띠 — 유리 */
.sja-toast,
.sja-coach,
.sja-nudge {
  position: fixed;
  left: 50%;
  z-index: 90;
  font-family: var(--font, 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif);
  letter-spacing: -0.02em;
  background: rgba(20, 21, 26, 0.86);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sja-toast,
  .sja-coach,
  .sja-nudge {
    background: rgba(20, 21, 26, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
  }
}
.sja-toast {
  top: calc(14px + env(safe-area-inset-top));
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.sja-toast[data-show] {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sja-coach {
  /* 사파리 아래쪽 도구 막대(화면 밖 바로 아래)를 가리킨다 — 상품 하단 CTA 위에 잠깐 겹쳐 뜬다 */
  bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 10px 16px 10px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: sja-bob 1.4s ease-in-out infinite;
}
.sja-coach b {
  font-weight: 800;
}
.sja-coach i {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
}
@keyframes sja-bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sja-coach {
    animation: none;
  }
}
.sja-nudge {
  bottom: calc(100px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 456px);
  padding: 10px 8px 10px 12px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}
.sja-nudge .sja-ico {
  background: #2cd5a8;
}
.sja-nudge-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sja-nudge-t b {
  font-size: 14.5px;
  font-weight: 750;
}
.sja-nudge-t small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.sja-nudge-go {
  flex: none;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #0e0f12;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
}
.sja-nudge-x {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── /alerts · /watchlist — V14Watch02 사진 그리드로 통일 (2026-11-29) ───────────────
   사진(169×196 비율, 둥근 30) 위에 가격 소식 딱지(왼쪽 위) · 새 소식 민트 점(오른쪽 위),
   아래에 이름 두 줄 · 빨간 −% + 가격 · 소식 줄. 배경은 홈과 같은 라일락 그레이 → 흰색. */
.page:has(> main > .me) {
  background: linear-gradient(180deg, #eae8f3 0, #f4f3f9 150px, #ffffff 390px);
}
.me {
  --me-ink: #1a1925;
  --me-ink2: #3e3d4e;
  --me-mut: #6e6d82;
  --me-red: #d42a24;
  --me-mint: #2cd5a8;
  padding: 0 20px;
  color: var(--me-ink);
}
.me-hd {
  padding: 30px 0 0;
  text-align: center;
}
.me-t {
  margin: 0;
  font-size: 28px;
  line-height: 1.36;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--me-ink);
}
.me-sub {
  margin: 8px 4px 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--me-mut);
}
.me-sec {
  margin-top: 26px;
  scroll-margin-top: calc(var(--hdr-h, 56px) + 12px);
}
.me-sec[hidden] {
  display: none;
}
.me-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 14px;
}
.me-cnt {
  font-size: 14px;
  font-weight: 700;
  color: var(--me-mut);
}
.me-h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--me-ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.me-h2 .n {
  font-size: 15px;
  font-weight: 700;
  color: var(--me-mut);
}
.me-recent .me-h2 {
  margin-bottom: 14px;
}
.me-day + .me-day {
  margin-top: 30px;
}
.me-day-h {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--me-mut);
}

/* 편집: 체크박스 하나로 모든 목록의 빼기 버튼을 켠다 (JS 없이 동작) */
.me-edit-in {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.me-edit {
  flex: none;
  height: 34px;
  padding: 0 15px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 0.5px rgba(52, 44, 96, 0.12);
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--me-ink);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.me-edit-off,
.me-edit-in:checked ~ .me-sec .me-edit-on {
  display: none;
}
.me-edit-in:checked ~ .me-sec .me-edit-off {
  display: inline;
}
.me-edit-in:checked ~ .me-sec .me-edit {
  background: var(--me-ink);
  color: #fff;
  box-shadow: none;
}
.me-edit-in:focus-visible ~ .me-sec .me-edit {
  outline: 2px solid var(--me-ink);
  outline-offset: 2px;
}

/* 사진 카드 */
.mc-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 28px;
  align-items: start;
}
.mc {
  position: relative;
  min-width: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mc[data-gone] {
  opacity: 0;
  transform: scale(0.97);
}
.mc-a {
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.mc-a:focus-visible {
  outline: 2px solid var(--me-ink);
  outline-offset: 3px;
  border-radius: 30px;
}
.mc-ph {
  position: relative;
  display: block;
}
.mc-img {
  position: relative;
  display: block;
  aspect-ratio: 169 / 196;
  border-radius: 30px;
  overflow: hidden;
  background: #f1f1f7;
}
.mc-img img {
  position: absolute;
  left: 10%;
  top: 8.7%;
  width: 80%;
  height: 82.6%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mc-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
}
.mc-dot {
  position: absolute;
  right: 13px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--me-mint);
  box-shadow: 0 0 0 2.5px #fff;
}
.mc-dot[hidden] {
  display: none;
}
.mc-name {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--me-ink2);
}
.mc-price {
  margin-top: 5px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--me-ink);
}
.mc-price .won {
  white-space: nowrap;
}
.mc-pct {
  color: var(--me-red);
}
.mc-off {
  font-size: 15px;
  font-weight: 700;
  color: var(--me-mut);
}
.mc-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--me-mut);
}
.mc-bell {
  flex: none;
  color: #8a899c;
}
/* 빼기·끄기 버튼: 편집 중에만, 사진 오른쪽 위 */
.mc .me-del {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}
.me-edit-in:checked ~ .me-sec .mc .me-del {
  display: block;
}
.me-edit-in:checked ~ .me-sec .mc-dot {
  display: none;
}
.me-x {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 25, 37, 0.86);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 2px #fff;
}

/* 사진 위 유리 칩 (V14: 웜 프로스트 .wf 짝) */
.gc {
  --h: 24px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  height: var(--h);
  padding: 0 9px;
  border-radius: calc(var(--h) / 2);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #2a2935;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), inset 0 1px 1.5px rgba(255, 255, 255, 0.9), inset 0 -2px 4px -1px rgba(120, 120, 160, 0.16),
    0 0 0 0.5px rgba(22, 24, 40, 0.14), 0 4px 10px -5px rgba(22, 24, 40, 0.24);
}
.gc.mute {
  color: #6e6d82;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gc {
    background: #fff;
  }
}

/* 빈 상태: 흐린 카드 두 장 + 한 줄 */
.me-empty {
  margin-top: 26px;
}
.me-ghosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}
.me-ghost {
  height: 132px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 0.5px rgba(52, 44, 96, 0.08);
  color: #c9c8d6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.me-empty-t {
  margin: 16px 4px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--me-mut);
}
.me-ib {
  display: inline-flex;
  vertical-align: -2px;
  margin: 0 1px;
  color: var(--me-ink2);
}

/* 알림 상태 카드 (alerts.js가 채운다) — 흰 유리 카드 하나 */
.me-status {
  margin-top: 24px;
  padding: 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 0.5px rgba(52, 44, 96, 0.1), 0 18px 38px -26px rgba(52, 44, 96, 0.4);
}
.me-status-skel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 14px;
  color: var(--me-mut);
}
.me-bell {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f1f7;
  color: var(--me-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.me-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--me-mut);
}
/* 한 줄 상태: 아이콘 · 제목 · 설명 */
.ms-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ms-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f1f7;
  color: var(--me-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms-ico.on {
  background: #e3f8f1;
  color: #0a7a5c;
}
.ms-ico.warn {
  background: #fff1ef;
  color: #c2261c;
}
.ms-t {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--me-ink);
}
.ms-s {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--me-mut);
}
.ms-acts {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ms-pill {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 19px;
  background: #f1f1f7;
  color: var(--me-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.ms-pill:disabled {
  opacity: 0.55;
}
/* 꺼짐: '알림 켜기' 버튼 (검정 알약 56px) + 한 줄 안내 */
.ms-go {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 28px;
  background: var(--me-ink);
  color: #fff;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.ms-go:disabled {
  opacity: 0.55;
}
.ms-line {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  color: var(--me-mut);
}
.ms-line b {
  font-weight: 700;
  color: var(--me-ink2);
}
.ms-line .sja-pic {
  width: 20px;
  height: 20px;
  margin: 0 1px 0 2px;
}
.me-status .sja-steps {
  margin-top: 14px;
}
.me-status .sja-install {
  margin-top: 12px;
}
.me-more {
  margin: 34px auto 0;
  width: max-content;
  height: 40px;
  padding: 0 14px 0 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 0.5px rgba(52, 44, 96, 0.12);
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--me-ink);
}
.me-fine {
  margin: 22px 4px 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--me-mut);
}

/* '문제가 있나요?' — 작게 접힌 도움말. 코드(번호)는 맨 끝 '그래도 안 되나요?' 안에만 */
.me-help {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.me-help > summary,
.me-help-last > summary {
  list-style: none;
  cursor: pointer;
  width: max-content;
  margin: 0 auto;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.me-help > summary::-webkit-details-marker,
.me-help-last > summary::-webkit-details-marker {
  display: none;
}
.me-help ul {
  margin: 8px 0 0;
  padding: 14px 16px 14px 32px;
  border-radius: 16px;
  background: var(--surface);
  list-style: disc;
  display: grid;
  gap: 6px;
  line-height: 1.55;
  color: var(--ink-2);
}
.me-help b {
  color: var(--ink);
}
.me-help-last {
  margin-top: 8px;
}
.me-help-last > summary {
  font-size: 12.5px;
}
.me-help-last p {
  margin: 6px 4px 0;
  font-size: 12.5px;
  line-height: 1.55;
}
.me-help-code {
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.me-help .me-claim {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}
.me-help .me-claim label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
}

/* 아이폰 안내 시트 (홈 화면에 추가 방법 보기) */
.sja-guide .sja-h {
  margin-top: 26px;
}
.sja-gsteps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.sja-gsteps li {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eef3ff, #f6f8fc);
  display: flex;
  align-items: center;
  gap: 16px;
}
.sja-gsteps b {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.sja-gsteps p {
  margin: 3px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5f6470;
}
.sja-gsteps small {
  font-size: 12.5px;
}
.sja-gsteps small svg {
  vertical-align: -2px;
}
.sja-gpic {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  color: #007aff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(14, 15, 18, 0.06), 0 6px 16px rgba(46, 95, 216, 0.12);
}
.sja-gnote {
  margin: 14px 4px 0;
}
.me-claim {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.me-claim label {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}
.me-claim-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.me-claim input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f3f4f5;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
}
.me-claim input:focus {
  border-color: #0e0f12;
}
.me-claim small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}


/* ── 알림 전달 확인·이메일로 받기 (v16 알림 수리) ─────────────────── */
/* 권한 창이 떠 있는 동안: 시트에 누를 것 없음 (권한 창이 닫히지 않게) */
.sja[data-asking] .sja-dim {
  cursor: default;
}
.sja[data-asking] .sja-go {
  opacity: 0.55;
}
/* '알림이 화면에 안 보이나요?' 운영체제 설정 안내 (접힘) */
.sja-more {
  margin-top: 10px;
  font-size: 13px;
  color: #5f6470;
}
.sja-more > summary {
  list-style: none;
  cursor: pointer;
  width: max-content;
  margin: 0 auto;
  padding: 6px 8px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sja-more > summary::-webkit-details-marker {
  display: none;
}
.sja-more .sja-steps {
  margin-top: 8px;
}
/* 이메일로 받기 */
.sja-mail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 15, 18, 0.08);
}
.sja-mail-t {
  margin: 0 2px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #0e0f12;
}
.sja-mail-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.sja-mail-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f3f4f5;
  font-family: inherit;
  font-size: 16px; /* iOS 확대 방지 */
  font-weight: 600;
  color: #0e0f12;
  outline: none;
}
.sja-mail-row input:focus {
  border-color: #0e0f12;
  background: #fff;
}
.sja-mail-go {
  flex: none;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #0e0f12;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.sja-mail-go:disabled {
  opacity: 0.55;
}
.sja-mail-s {
  margin: 8px 2px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5f6470;
}
.sja-mail-s b {
  color: #0e0f12;
}
.sja-mail-on {
  margin: 12px 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #3e3d4e;
}
.ms-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.ms-x {
  border: 0;
  background: none;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--me-mut, #6e6d82);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
/* /email/confirm · /email/unsub 화면 */
.me-mail .me-status {
  display: grid;
  gap: 14px;
}
.me-mail .ms-go {
  text-decoration: none;
}
.ms-form {
  margin: 0;
}

/* ── 알림 꺼짐 = V16AlertOff 02 '알림 미리보기' (J 2026-11-29) ─────────────────────────
   제목 아래 실제로 올 알림 한 장(유리 카드 + 뒤에 한 장 더) → 22px 아래 검정 알약 '알림 켜기'(아이폰 Safari는 공유 → 홈 화면에 추가 칩)
   → 34px 아래 그리드. 상태는 .me-a[data-me-state] (off · on · warn — alerts.js가 확정, 서버는 구독 수로 첫 상태를 짐작).
   신청한 상품이 없으면 그리드 = '미리보기' 4열 사진 칸(실제 상품 · 실제 소식 딱지), 있으면 사용자의 알림 카드(V14Watch02). */
.me-sub-off,
.me-a[data-me-state='off'][data-me-note] .me-sub-on {
  display: none;
}
.me-a[data-me-state='off'] .me-sub-off {
  display: inline;
}

/* 알림 한 장 미리보기 */
.me-pv {
  display: none;
  position: relative;
  height: 118px;
  margin: 26px 0 0;
}
.me-a[data-me-state='off'] .me-pv {
  display: block;
}
.me-nt {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(26, 25, 37, 0.1), 0 16px 32px -20px rgba(52, 44, 96, 0.45);
}
.me-nt-g {
  left: 14px;
  right: 14px;
  top: 22px;
  height: 76px;
  transform: scale(0.96);
  transform-origin: 50% 100%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(26, 25, 37, 0.1), 0 10px 22px -16px rgba(52, 44, 96, 0.35);
}
.me-nt-ic {
  flex: none;
  display: flex;
}
.me-nt-ic .badge-svg {
  display: block;
  width: 38px;
  height: 38px;
}
.me-nt-tx {
  flex: 1;
  min-width: 0;
  display: block;
}
.me-nt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--me-mut);
}
.me-nt-t {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--me-ink);
}
.me-nt-s {
  margin-top: 2px;
  display: flex;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--me-ink2);
  white-space: nowrap;
}
/* 상품 이름만 줄이고(…) 가격은 늘 보이게 */
.me-nt-n {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-nt-p {
  flex: none;
  white-space: pre;
}
.me-nt-th {
  flex: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  background: #f1f1f7;
}
.me-nt-th img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .me-nt {
    background: #fff;
  }
  .me-nt-g {
    background: #f8f7fb;
  }
}

/* 꺼짐: 상태 칸은 카드 없이 버튼(또는 칩)만 */
.me-a[data-me-state='off'] .me-status {
  margin-top: 22px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.me-a[data-me-state='off'] .ms-line b {
  font-weight: 750;
  color: var(--me-ink);
}
/* 확인 중(서버 그림): 버튼 자리를 같은 크기 알약으로 잡아 둔다 */
.me-a[data-me-state='off'] .me-status-skel {
  justify-content: center;
  height: 56px;
  border-radius: 28px;
  background: rgba(26, 25, 37, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.me-a[data-me-state='off'] .me-status-skel .me-bell {
  display: none;
}
/* 아이폰 Safari: 공유 → 홈 화면에 추가 칩 (눌러도 자세한 안내 시트) */
.ms-ic {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ms-ich {
  box-sizing: border-box;
  height: 46px;
  padding: 0 16px 0 13px;
  border-radius: 23px;
  background: #fff;
  color: var(--me-ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 0 0 0.5px rgba(26, 25, 37, 0.1), 0 6px 16px -10px rgba(52, 44, 96, 0.4);
}
.ms-ich svg {
  flex: none;
  display: block;
}
.ms-ich b {
  font-weight: 750;
}
.ms-iar {
  display: flex;
  color: #a5a4b5;
}
.ms-ic:active .ms-ich {
  transform: scale(0.98);
}
.ms-ic:focus-visible {
  outline: none;
}
.ms-ic:focus-visible .ms-ich {
  outline: 2px solid var(--me-ink);
  outline-offset: 2px;
}
/* 이메일로 받기: 카드가 없으니 이 칸만 흰 유리로 */
.me-a[data-me-state='off'] .sja-mail {
  margin-top: 18px;
  padding: 16px;
  border-top: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 0.5px rgba(52, 44, 96, 0.1), 0 14px 30px -24px rgba(52, 44, 96, 0.4);
}

/* 미리보기 그리드: 4열 사진 칸(78×92 비율 · 둥근 22) + 사진 위 18px 소식 딱지 */
.me-a[data-me-state='off'] .me-pvg {
  margin-top: 34px;
}
.me-pv-tag {
  flex: none;
  height: 26px;
  padding: 0 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 0.5px rgba(52, 44, 96, 0.12);
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--me-mut);
}
.mp-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.mp {
  min-width: 0;
}
.mp-a {
  position: relative;
  display: block;
  border-radius: 22px;
  -webkit-tap-highlight-color: transparent;
}
.mp-a:focus-visible {
  outline: 2px solid var(--me-ink);
  outline-offset: 3px;
}
.mp-img {
  position: relative;
  display: block;
  aspect-ratio: 78 / 92;
  border-radius: 22px;
  overflow: hidden;
  background: #f1f1f7;
}
.mp-img img {
  position: absolute;
  left: 10.3%;
  top: 8.7%;
  width: 79.4%;
  height: 82.6%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mp-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  display: flex;
  max-width: calc(100% - 8px);
}
.mp-badge :is(.wf, .gc) {
  --h: 18px;
  padding: 0 6px;
  gap: 2px;
  font-size: 10px;
  letter-spacing: -0.04em;
}
.me-pvg .me-empty-t {
  margin-top: 18px;
}

/* 알림 꺼짐: 기다리는 알림 사진에 '소식이 올 자리' 점선 빈 딱지 */
.mc-gh {
  display: none;
}
.me-a[data-me-state='off'] .mc-gh {
  display: flex;
}
.gh {
  box-sizing: border-box;
  display: block;
  width: 64px;
  height: 24px;
  border-radius: 12px;
  border: 1px dashed rgba(42, 41, 53, 0.3);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
