/* 기능 카드의 장면. Instagram iOS 앱(라이트 모드, 한국어)의 화면을 iPhone 논리 크기(폭 390)로 그리고 zoom 으로 줄인다.
   장면마다 선택자가 .sc-<이름> 으로 시작해 서로 부딪히지 않는다. 치수·색·문구의 근거는 apps/web-fandomie-home/CLAUDE.md 의 「화면」. */

/* 장면 1: 단순 DM 자동화. Instagram iOS 앱(라이트, 한국어)의 댓글 창과 DM 을 본뜬 폰 화면이다.
   화면은 iPhone 논리 크기(폭 390)로 그리고 zoom 으로 줄인다. 치수와 색은 실제 화면을 재서 옮겼다(notes.md). */

/* 색 면 아래 끝에 화면이 닿아 잘린 듯이 둔다. */
.stage.sc-dm {
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding: 32px 20px 0;
}
.sc-dm .ig {
  position: relative;
  flex: none;
  width: 390px;
  height: 520px;
  zoom: 0.74;
  border-radius: 44px 44px 0 0;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 21, 18, 0.06);
  color: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue",
    sans-serif;
  font-size: 14.5px;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: left;
  /* iOS 처럼 한글은 글자 사이에서, 영문은 단어 사이에서 줄을 바꾼다. */
  word-break: normal;
  overflow-wrap: normal;
  -webkit-font-smoothing: antialiased;
}
.sc-dm .ig b {
  font-weight: 600;
}
.sc-dm .ig svg {
  display: block;
  flex: none;
}
/* 두 화면은 각자 쌓인다. DM 이 댓글 창을 통째로 덮는다. */
.sc-dm .ig-cmt,
.sc-dm .ig-dm {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 프로필 사진. 사진 대신 색 면 위의 얼굴과 어깨를 그린다. */
.sc-dm .ig-av {
  display: block;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 41%, var(--skin) 0 20%, transparent 21%),
    radial-gradient(
      ellipse 44% 34% at 50% 100%,
      var(--shirt) 0 97%,
      transparent 100%
    ),
    radial-gradient(circle at 50% 37%, var(--hair) 0 25%, transparent 26%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
}
.sc-dm .ig-av-haru {
  --bg1: #f7d374;
  --bg2: #e9a23b;
  --hair: #3b2a1e;
  --skin: #f3d3b5;
  --shirt: #fffaf0;
}
.sc-dm .ig-av-mina {
  --bg1: #f6c3b4;
  --bg2: #d98476;
  --hair: #2b1d17;
  --skin: #f4d6c2;
  --shirt: #5f8a6a;
}
.sc-dm .ig-av-yeon {
  --bg1: #c6d5ee;
  --bg2: #829fcc;
  --hair: #54392a;
  --skin: #efd0b6;
  --shirt: #f4f4f4;
}

/* iOS 상태 막대 */
.sc-dm .ig-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 47px;
  padding: 3px 26px 0 0;
  color: #000;
}
.sc-dm .ig-status b {
  width: 108px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}
.sc-dm .ig-sys {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sc-dm .ig-sys svg {
  fill: currentColor;
}
.sc-dm .ig-signal {
  width: 18px;
  height: 12px;
}
.sc-dm .ig-wifi {
  width: 16px;
  height: 12px;
}
.sc-dm .ig-battery {
  width: 27px;
  height: 13px;
}
.sc-dm .ig-battery-case {
  fill: none;
  stroke: currentColor;
  opacity: 0.35;
}
.sc-dm .ig-battery-cap {
  opacity: 0.4;
}

/* 선 그림 아이콘 */
.sc-dm .ig-back,
.sc-dm .ig-call,
.sc-dm .ig-video-call,
.sc-dm .ig-heart {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-dm .ig-back {
  width: 26px;
  height: 26px;
  stroke-width: 2.1;
}

/* ── 1. 게시물의 댓글 창 ───────────────────────── */
/* 뒤의 게시물. 댓글 창이 열리면 어둡게 깔린다(실제 화면에서 흰 바탕이 #4b4b4b). */
.sc-dm .ig-post {
  position: absolute;
  inset: 0;
  background: #fff;
}
.sc-dm .ig-nav {
  position: absolute;
  top: 47px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}
.sc-dm .ig-nav .ig-back {
  position: absolute;
  left: 3px;
  top: 11px;
}
.sc-dm .ig-nav-title {
  text-align: center;
}
.sc-dm .ig-nav-title small {
  display: block;
  color: #737373;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 15px;
}
.sc-dm .ig-nav-title b {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 20px;
}
/* 영상의 첫 장면. 따뜻한 주방 빛이다. */
.sc-dm .ig-video {
  position: absolute;
  top: 95px;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 70% 40% at 78% 18%, #fff4dc 0, transparent 70%),
    linear-gradient(175deg, #d8bf97, #9c7550 70%, #6d4e33);
  color: #fff;
}
.sc-dm .ig-author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 12px 0;
}
.sc-dm .ig-author .ig-av {
  width: 32px;
  height: 32px;
}
.sc-dm .ig-author-name {
  flex: 1;
}
.sc-dm .ig-author-name b,
.sc-dm .ig-author-name small {
  display: block;
}
.sc-dm .ig-author-name b {
  font-size: 14.5px;
  line-height: 18px;
}
.sc-dm .ig-author-name small {
  font-size: 12.5px;
  line-height: 15px;
}
.sc-dm .ig-more {
  width: 22px;
  height: 22px;
  margin-right: 2px;
  fill: currentColor;
}
.sc-dm .ig-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

/* 댓글 시트 */
.sc-dm .ig-sheet {
  position: absolute;
  top: 168px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-radius: 12px 12px 0 0;
  background: #fff;
}
.sc-dm .ig-grab {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 37px;
  height: 4px;
  margin-left: -18.5px;
  border-radius: 2px;
  background: #dbdbdb;
}
.sc-dm .ig-sheet-title {
  padding: 40px 0 11px;
  border-bottom: 1px solid #efefef;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.sc-dm .ig-cmts {
  padding: 0;
  list-style: none;
}
.sc-dm .ig-cmts li {
  position: relative;
  display: flex;
  gap: 12px;
  height: 88px;
  padding: 15px 52px 0 12px;
}
.sc-dm .ig-cmts .ig-av {
  width: 32px;
  height: 32px;
  margin-top: 1.5px;
}
.sc-dm .ig-cmts .ig-sub {
  gap: 11px;
  padding-left: 56px;
}
.sc-dm .ig-cmts .ig-sub .ig-av {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}
.sc-dm .ig-c {
  flex: 1;
  min-width: 0;
}
.sc-dm .ig-c-head {
  font-size: 12.5px;
  line-height: 16px;
}
.sc-dm .ig-c-head span {
  color: #737373;
}
.sc-dm .ig-c-text {
  margin-top: 2px;
  font-size: 14.5px;
  line-height: 20px;
}
.sc-dm .ig-c-act {
  margin-top: 5px;
  color: #737373;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 16px;
}
.sc-dm .ig-heart {
  position: absolute;
  top: 28px;
  right: 19px;
  width: 15px;
  height: 15px;
  color: #737373;
  stroke-width: 1.9;
}

/* ── 2. 받는 사람의 DM ────────────────────────── */
.sc-dm .ig-dm {
  z-index: 1;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.14);
}
.sc-dm .ig-dm-head {
  position: absolute;
  top: 47px;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 49px;
  padding: 0 16px 0 15px;
  border-bottom: 1px solid #efefef;
  background: #fff;
}
.sc-dm .ig-dm-head .ig-av {
  width: 34px;
  height: 34px;
  margin-left: 9px;
}
.sc-dm .ig-dm-who {
  flex: 1;
  min-width: 0;
  margin-left: 11px;
}
.sc-dm .ig-dm-who b,
.sc-dm .ig-dm-who small {
  display: block;
}
.sc-dm .ig-dm-who b {
  font-size: 17px;
  font-weight: 700;
  line-height: 20px;
}
.sc-dm .ig-dm-who small {
  color: #737373;
  font-size: 12.5px;
  line-height: 15px;
}
.sc-dm .ig-call,
.sc-dm .ig-video-call {
  width: 27px;
  height: 27px;
  stroke-width: 1.8;
}
.sc-dm .ig-video-call {
  margin-left: 24px;
}
.sc-dm .ig-thread {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
/* 메시지가 오면 대화가 위로 밀려 버튼까지 보인다. */
.sc-dm .ig-thread-in {
  padding-top: 20px;
  transform: translateY(-61px);
}
.sc-dm .ig-prof {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sc-dm .ig-prof .ig-av {
  width: 96px;
  height: 96px;
}
.sc-dm .ig-prof b {
  margin-top: 10px;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 24px;
}
.sc-dm .ig-prof small {
  color: #737373;
  font-size: 16.5px;
  line-height: 23px;
}
.sc-dm .ig-prof b + small {
  margin-top: 3px;
}
.sc-dm .ig-prof-btn {
  margin-top: 12.5px;
  padding: 0 16px;
  border-radius: 8px;
  background: #efefef;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 34px;
}
.sc-dm .ig-time {
  margin-top: 40px;
  color: #8a8a8a;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}
.sc-dm .ig-ctx {
  margin-top: 24.5px;
  padding: 0 52px;
  color: #737373;
  font-size: 11.5px;
  line-height: 13px;
  text-align: center;
}
.sc-dm .ig-msg {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 19.5px;
  padding-left: 16px;
}
.sc-dm .ig-msg .ig-av {
  width: 28px;
  height: 28px;
}
/* 버튼을 단 메시지. 회색 말풍선 안에 흰 버튼이 있다. */
.sc-dm .ig-bubble {
  width: 250px;
  padding: 11px 12px 12px;
  border-radius: 18px;
  background: #efefef;
}
.sc-dm .ig-bubble p {
  font-size: 14.5px;
  line-height: 17px;
}
.sc-dm .ig-link {
  display: block;
  margin-top: 10px;
  border-radius: 8px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
}

/* ── 움직임(app.js). 스크립트가 없거나 움직임을 줄였으면 위의 마지막 모습 그대로다. ── */
/* DM 은 오른쪽에서 밀려 들어오고 댓글 창은 조금 왼쪽으로 물러난다(iOS 의 화면 넘김). */
.stage.sc-dm.play .ig-cmt,
.stage.sc-dm.play .ig-dm,
.stage.sc-dm.play .ig-thread-in {
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.stage.sc-dm.play .ig-cmt.on {
  transform: translateX(-30%);
}
.stage.sc-dm.play .ig-dm:not(.on) {
  opacity: 1;
  transform: translateX(100%);
}
.stage.sc-dm.play .ig-thread-in:not(.on) {
  transform: none;
}
.sc-dm .ig-shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.12);
}
.stage.sc-dm.play .ig-shade:not(.on) {
  transform: none;
}

@media (max-width: 640px) {
  .stage.sc-dm {
    padding: 24px 14px 0;
  }
  .sc-dm .ig {
    zoom: 0.68;
  }
}

/* 팔로우 → 이메일 시퀀스. 받는 사람(minji)의 Instagram DM 대화창(iOS, 라이트, 한국어)을 본뜬다.
   치수는 390pt 폭 iPhone 의 것이다. 화면 전체를 zoom 으로 줄여 카드에 맞춘다.
   근거와 단계표는 notes.md. 선택자는 모두 .sc-seq 로 시작한다. */

/* ── 색 면과 화면 ─────────────────────────────── */
/* 색 면 위에 화면 하나. 화면의 아래 끝이 색 면 아래 끝에 닿아 잘린 듯이 둔다. */
.stage.sc-seq {
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  min-height: 0;
  height: auto;
  padding: 24px 20px 0;
}
.sc-seq .seq-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sc-seq .ig {
  zoom: 0.74;
  display: flex;
  flex-direction: column;
  flex: none;
  width: 390px;
  height: 520px;
  border-radius: 44px 44px 0 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 21, 18, 0.04);
  overflow: hidden;
  color: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue",
    sans-serif;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
.sc-seq .ig svg {
  display: block;
  flex: none;
}

/* ── iOS 상태 막대 47pt ───────────────────────── */
.sc-seq .sb {
  position: relative;
  flex: none;
  height: 47px;
}
.sc-seq .sb-time {
  position: absolute;
  top: 14px;
  left: 0;
  width: 104px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  text-align: center;
}
.sc-seq .sb-icons {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  fill: currentColor;
}

/* ── 머리 50pt: 뒤로, 사진, 이름·사용자 이름, 통화, 영상 ── */
.sc-seq .hd {
  display: flex;
  align-items: center;
  flex: none;
  height: 50px;
  padding: 0 16px 0 22px;
  border-bottom: 1px solid #dbdbdb;
}
.sc-seq .hd-back {
  fill: none;
  stroke: #000;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-seq .av {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.28),
      transparent 55%
    ),
    linear-gradient(150deg, #33a86a, #146b41);
}
.sc-seq .av svg {
  width: 100%;
  height: 100%;
}
.sc-seq .av-hd {
  width: 32px;
  height: 32px;
  margin-left: 17px;
}
.sc-seq .hd-who {
  flex: 1;
  min-width: 0;
  margin-left: 13px;
}
.sc-seq .hd-who b {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}
.sc-seq .hd-who span {
  display: block;
  margin-top: 1px;
  color: #737373;
  font-size: 12px;
  line-height: 15px;
}
.sc-seq .hd-ic {
  fill: none;
  stroke: #000;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-seq .hd-ic + .hd-ic {
  margin-left: 25px;
}

/* ── 대화. 새 메시지가 아래에 붙고 옛 것은 머리 밑으로 잘린다(흐리지 않는다) ── */
.sc-seq .msgs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 0 12px;
  -webkit-mask-image: none;
  mask-image: none;
}
.sc-seq .ts {
  align-self: center;
  color: #737373;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}
.sc-seq .row {
  display: flex;
  align-items: flex-end;
}
.sc-seq .r-in {
  gap: 12px;
  padding-left: 16px;
}
.sc-seq .r-out {
  justify-content: flex-end;
  padding-right: 12px;
}
.sc-seq .b {
  max-width: 290px;
  padding: 9px 12px;
  border-radius: 20px;
  background: #efefef;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 보낸 말풍선. Instagram 기본 테마는 화면의 위치에 따라 색이 바뀐다(위는 보라, 아래는 파랑). */
.sc-seq .r-out .b {
  color: #fff;
  background-color: #3b53ff;
}
/* 스크립트가 없거나 움직임을 줄인 기기의 마지막 모습에서 각 말풍선이 놓이는 높이의 색 */
.sc-seq .r-out .b.c1 {
  background-color: #b537d6;
}
.sc-seq .r-out .b.c2 {
  background-color: #9d39e4;
}
.sc-seq .r-out .b.c3 {
  background-color: #5649fc;
}
/* 돌 때는 말풍선의 높이가 단계마다 바뀐다. 높이를 따라 색을 바꾸지 못하는 브라우저는 가운데 색 하나로 둔다. */
.sc-seq.play .r-out .b {
  background-color: #5649fc;
}
/* 대화 안에서의 높이를 따라 색이 바뀐다. 말풍선이 위로 밀리면 보라 쪽으로 간다. */
@supports (animation-timeline: view()) {
  .sc-seq .r-out .b {
    animation: seq-tint linear both;
    animation-timeline: view();
    animation-range: contain;
  }
}
@keyframes seq-tint {
  0% {
    background-color: #1e68ff;
  }
  25% {
    background-color: #3b53ff;
  }
  50% {
    background-color: #6d40fa;
  }
  75% {
    background-color: #943ae9;
  }
  100% {
    background-color: #b537d6;
  }
}

/* 버튼 메시지(button template). 회색 칸에 굵은 글과 흰 버튼이다. */
.sc-seq .card {
  width: 246px;
  padding: 12px 12px 11px;
  border-radius: 20px;
  background: #efefef;
}
.sc-seq .card p {
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
  word-break: keep-all;
}
.sc-seq .tb {
  position: relative;
  display: grid;
  place-items: center;
  height: 34px;
  margin-top: 12px;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
  transition: background-color 0.15s;
}
/* 누르는 순간. 버튼이 어두워지고 손끝 자리가 잠깐 보인다. */
.sc-seq .tb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.2s,
    transform 0.25s;
}
.sc-seq .tb.on {
  background: #dbdbdb;
}
.sc-seq .tb.on::after {
  opacity: 1;
  transform: none;
}

/* ── 입력 칸 44pt ─────────────────────────────── */
.sc-seq .cmp {
  display: flex;
  align-items: center;
  flex: none;
  height: 44px;
  margin: 0 8px 8px;
  padding: 0 18px 0 6px;
  border-radius: 22px;
  background: #efefef;
}
.sc-seq .cmp-l {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0095f6;
}
.sc-seq .ig .cmp-find {
  display: none;
  fill: none;
  stroke: #0095f6;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.sc-seq .cmp-ph,
.sc-seq .cmp-typed {
  flex: 1;
  min-width: 0;
  margin-left: 10px;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}
.sc-seq .cmp-ph {
  color: #737373;
}
.sc-seq .cmp-typed,
.sc-seq .cmp-send {
  display: none;
}
.sc-seq .cmp-ics {
  display: flex;
  gap: 17.6px;
  fill: none;
  stroke: #000;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* 이메일을 쓰는 중. 사진기는 찾기로, 오른쪽 그림은 보내기 버튼으로 바뀐다. */
.sc-seq .cmp:has(.cmp-typed.on) {
  padding-right: 6px;
}
.sc-seq .cmp:has(.cmp-typed.on) .cmp-l {
  background: #fff;
}
.sc-seq .ig .cmp:has(.cmp-typed.on) .cmp-cam,
.sc-seq .cmp:has(.cmp-typed.on) .cmp-ph,
.sc-seq .cmp:has(.cmp-typed.on) .cmp-ics {
  display: none;
}
.sc-seq .ig .cmp:has(.cmp-typed.on) .cmp-find {
  display: block;
}
.sc-seq .cmp-typed.on {
  display: block;
}
.sc-seq .cmp-send.on {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  border-radius: 16px;
  background: #0095f6;
}
.sc-seq .cmp-send svg {
  fill: #fff;
  stroke: #0095f6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .stage.sc-seq {
    padding: 18px 14px 0;
  }
  .sc-seq .ig {
    zoom: 0.68;
  }
}

/* 예약 발송 장면. 댓글 단 사람의 Instagram iOS 화면(라이트 모드, 한국어, 390pt 폭)을 그린다.
   화면 1: 공구 게시물 위로 올라온 댓글 시트(7:59). 상태 막대가 8:00 으로 바뀌면
   화면 2: DM 목록이 밀려 들어오고 크리에이터의 새 대화가 맨 위로 들어온다. 이어 같은 공구를 기다리던 친구의 "나도 방금 받았어" 가 올라온다.
   치수는 실제 화면에서 잰 pt 값이다(notes.md). 스크립트가 없거나 움직임을 줄인 기기에서는 화면 2의 마지막 모습만 보인다. */

/* 카드의 색 면 위에 폰 화면 하나. 가운데에 두고, 아래 끝은 색 면 아래에 닿아 잘린다.
   .stage 는 세로 flex 라서 색 면이 길어지면 화면이 아래로 붙고 위가 비어 간다. */
.stage.sc-sched {
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-height: 0;
  padding: 28px 0 0;
  line-height: normal;
}
.sc-sched .sd-ig {
  zoom: 0.74;
  position: relative;
  flex: none;
  width: 390px;
  height: 520px;
  overflow: hidden;
  border-radius: 44px 44px 0 0;
  background: #fff;
  color: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue",
    sans-serif;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: normal;
  word-break: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 18px 40px -22px rgba(70, 48, 184, 0.45);
}
/* 초기화는 :where 로 약하게 둔다. 아래 규칙들이 덮어쓴다. */
.sc-sched :where(.sd-ig p, .sd-ig ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-sched .sd-ig svg {
  display: block;
  flex: none;
}
.sc-sched .sd-ig em {
  font-style: normal;
}
.sc-sched .sd-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sc-sched .sd-back {
  width: 11px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-sched .sd-more {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ── iOS 상태 막대 ─────────────────────────────── */
/* 화면이 넘어가도 제자리에 있다. 어둡게 깔린 게시물 위에서는 흰 글자, DM 목록에서는 검은 글자다. */
.sc-sched .sd-sb {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 13px 0 0;
  color: #000;
  transition: color 0.4s;
}
.sc-sched.play .sd-sb:not(.on) {
  color: #fff;
}
.sc-sched .sd-time {
  display: grid;
  justify-items: center;
  width: 102px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.sc-sched .sd-time > span {
  grid-area: 1 / 1;
}
.sc-sched .sd-sb-r {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sc-sched .sd-sig {
  width: 18px;
  height: 12px;
  fill: currentColor;
}
.sc-sched .sd-wifi {
  width: 16px;
  height: 12px;
  margin-right: 1px;
  fill: currentColor;
}
.sc-sched .sd-bat {
  position: relative;
  width: 25px;
  height: 12px;
  margin-right: 2px;
  border-radius: 3.8px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 38%, transparent);
}
.sc-sched .sd-bat i {
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: currentColor;
}
.sc-sched .sd-bat::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -2.5px;
  width: 1.5px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: color-mix(in srgb, currentColor 45%, transparent);
}

/* ── 화면 둘. DM 목록이 댓글 시트 위에 겹쳐 있다. ── */
.sc-sched .sd-scr {
  position: absolute;
  inset: 0;
  background: #fff;
}

/* 화면 1. 게시물(흰 화면)이 시트 뒤에서 70% 어둡게 깔린다. */
.sc-sched .sd-post {
  position: absolute;
  inset: 0 0 auto;
  height: 140px;
  background: #fff;
}
.sc-sched .sd-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.sc-sched .sd-post-nav {
  position: absolute;
  top: 47px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}
.sc-sched .sd-post-nav .sd-back {
  position: absolute;
  left: 22px;
  top: 12px;
}
.sc-sched .sd-post-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sc-sched .sd-post-nav small {
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  color: #737373;
}
.sc-sched .sd-post-nav b {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}
.sc-sched .sd-post-img {
  position: absolute;
  top: 91px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(170deg, #e9d3bf, #c7a07f);
}

/* 댓글 시트. 2026년 iOS 화면의 꼴(손잡이, 제목, ···, 정렬)이다. */
.sc-sched .sd-cs {
  position: absolute;
  top: 104px;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #fff;
}
.sc-sched .sd-grab {
  display: block;
  width: 34px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: #737373;
}
.sc-sched .sd-cs-head {
  position: relative;
  margin-top: 12px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}
.sc-sched .sd-cs-head b {
  font-weight: 700;
}
.sc-sched .sd-cs-head .sd-more {
  position: absolute;
  top: -2px;
  right: 14px;
}
.sc-sched .sd-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding: 0 16px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #737373;
}
.sc-sched .sd-sort svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-sched .sd-cmts {
  padding-top: 12px;
}
.sc-sched .sd-cmts li {
  display: flex;
  gap: 8px;
  padding: 9px 20px 16px 12px;
}
.sc-sched .sd-cm {
  flex: 1;
  min-width: 0;
}
.sc-sched .sd-who {
  font-size: 13px;
  line-height: 18px;
}
.sc-sched .sd-who b {
  font-weight: 600;
}
.sc-sched .sd-who span {
  margin-left: 2px;
  color: #737373;
}
.sc-sched .sd-say {
  font-size: 14px;
  line-height: 20px;
}
.sc-sched .sd-act {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #737373;
}
.sc-sched .sd-like {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 16px;
  padding-top: 11px;
  color: #737373;
}
.sc-sched .sd-like svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.sc-sched .sd-like small {
  margin-top: 5px;
  font-size: 11px;
  line-height: 13px;
}

/* 프로필 사진. 사진 대신 얼굴·어깨 꼴의 그라디언트로 그린다. */
.sc-sched .sd-av {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, var(--sd-face) 0 21%, transparent 22%),
    radial-gradient(
      ellipse 56% 44% at 50% 100%,
      var(--sd-body) 0 98%,
      transparent 100%
    ),
    linear-gradient(160deg, var(--sd-bg1), var(--sd-bg2));
}
.sc-sched .sd-av-s {
  --sd-face: #f4dccb;
  --sd-body: #8d6e5a;
  --sd-bg1: #e8d5c2;
  --sd-bg2: #c9ad93;
}
.sc-sched .sd-av-j {
  --sd-face: #f6e0d2;
  --sd-body: #4f6f93;
  --sd-bg1: #cfe0ef;
  --sd-bg2: #9db8d3;
}
.sc-sched .sd-av-h {
  --sd-face: #f1d8c6;
  --sd-body: #6f8a5f;
  --sd-bg1: #e2ead6;
  --sd-bg2: #b5c6a3;
}
.sc-sched .sd-av-m {
  --sd-face: #f7e1d5;
  --sd-body: #c0607a;
  --sd-bg1: #f6d9e0;
  --sd-bg2: #e3a9b8;
}
.sc-sched .sd-av-d {
  --sd-face: #f6ddcd;
  --sd-body: #5a46b0;
  --sd-bg1: #f3e3d3;
  --sd-bg2: #d9b9e6;
}
.sc-sched .sd-av-y {
  --sd-face: #f5dfd0;
  --sd-body: #2f2f3a;
  --sd-bg1: #f1e6c8;
  --sd-bg2: #d9c38e;
}
.sc-sched .sd-av-c {
  --sd-face: #f2d9c8;
  --sd-body: #b3703f;
  --sd-bg1: #f4e1cf;
  --sd-bg2: #ddb48d;
}
.sc-sched .sd-av-k {
  --sd-face: #eccdb6;
  --sd-body: #3e5b44;
  --sd-bg1: #cfdcc6;
  --sd-bg2: #8fa886;
}

/* ── 화면 2. DM 목록(프로페셔널 계정의 꼴: 검색·필터, 메모, 주요·일반·요청) ── */
.sc-sched .sd-in-nav {
  position: absolute;
  top: 59px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px 0 22px;
}
.sc-sched .sd-in-nav b {
  margin-left: 9px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.sc-sched .sd-chev {
  width: 16px;
  height: 16px;
  margin: 2px 0 0 3px;
  fill: none;
  stroke: #000;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-sched .sd-in-nav .sd-more {
  margin-left: auto;
}
.sc-sched .sd-compose {
  width: 24px;
  height: 24px;
  margin-left: 21px;
  fill: none;
  stroke: #000;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc-sched .sd-search {
  position: absolute;
  top: 110px;
  left: 15px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 32px;
  font-size: 16px;
  line-height: 20px;
}
.sc-sched .sd-search span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding-left: 11px;
  border-radius: 10px;
  background: #f3f5f7;
  color: #737373;
}
.sc-sched .sd-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #737373;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.sc-sched .sd-search b {
  font-size: 15px;
  font-weight: 600;
  color: #4f4bd8;
}

/* 메모 줄. 사진 위에 말풍선 메모, 아래에 이름 */
.sc-sched .sd-notes {
  position: absolute;
  top: 150px;
  left: 13px;
  display: flex;
  gap: 32px;
  width: 520px;
}
.sc-sched .sd-notes li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  padding-top: 40px;
}
.sc-sched .sd-notes .sd-av {
  width: 72px;
  height: 72px;
}
.sc-sched .sd-notes small {
  margin-top: 8px;
  font-size: 12px;
  line-height: 15px;
  color: #262626;
  white-space: nowrap;
}
.sc-sched .sd-bubble {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 50%;
  max-width: 100px;
  padding: 7px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
}
.sc-sched .sd-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.sc-sched .sd-note-me .sd-bubble {
  color: #737373;
}

/* 주요·일반·요청 */
.sc-sched .sd-tabs {
  position: absolute;
  top: 317px;
  left: 16px;
  right: 17px;
  display: grid;
  grid-template-columns: 104fr 103fr 133fr;
  gap: 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}
.sc-sched .sd-tabs span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 31px;
  border-radius: 10px;
  background: #f3f5f7;
}
.sc-sched .sd-tabs .sd-tab-on {
  background: #dcf0fe;
  color: #0095f6;
}
.sc-sched .sd-tabs i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0095f6;
}
.sc-sched .sd-tabs em {
  margin-left: -3px;
  font-weight: 400;
  color: #737373;
}

/* 대화 줄. 안 읽은 줄은 미리보기가 굵고 파란 점이 붙는다. */
.sc-sched .sd-rows {
  position: absolute;
  top: 361px;
  left: 0;
  right: 0;
}
.sc-sched .sd-rows li {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 14px 0 16px;
  overflow: hidden;
}
.sc-sched .sd-rows .sd-av {
  width: 56px;
  height: 56px;
}
.sc-sched .sd-row-t {
  flex: 1;
  min-width: 0;
  margin-left: 14px;
  font-size: 14px;
  line-height: 18px;
}
.sc-sched .sd-row-t > span {
  display: block;
}
.sc-sched .sd-row-t > .sd-pre {
  display: flex;
  gap: 4px;
  color: #737373;
}
.sc-sched .sd-pre b,
.sc-sched .sd-pre > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sc-sched .sd-pre b {
  font-weight: 600;
  color: #000;
}
.sc-sched .sd-pre em {
  flex: none;
}
.sc-sched .sd-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-radius: 50%;
  background: #0095f6;
}
.sc-sched .sd-cam {
  width: 24px;
  height: 24px;
  margin-left: 14px;
  fill: none;
  stroke: #737373;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

/* ── 움직임(app.js 가 .play 를 붙일 때만) ───────── */
/* 시각: 7:59 가 위로 빠지고 8:00 이 아래에서 올라온다. 스크립트가 없으면 8:00 만 있다. */
.sc-sched:not(.play) .sd-t-a {
  display: none;
}
.sc-sched.play .sd-t-a {
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.sc-sched.play .sd-t-a:not(.on) {
  opacity: 0;
  transform: translateY(-10px);
}
.sc-sched.play .sd-time.on {
  animation: sd-pop 0.9s ease 0.15s both;
}
@keyframes sd-pop {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: scale(1.18);
  }
}
/* DM 목록은 오른쪽에서 밀려 들어오고(iOS push), 댓글 화면은 왼쪽으로 조금 물러난다. */
.sc-sched.play .sd-b[data-step] {
  transition:
    transform 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.5s;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
}
/* 화면 밖에서 기다릴 때는 그림자가 댓글 시트 오른쪽 끝에 비치지 않게 끈다. */
.sc-sched.play .sd-b[data-step]:not(.on) {
  opacity: 1;
  transform: translateX(100%);
  box-shadow: none;
}
.sc-sched.play .sd-a {
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.sc-sched.play .sd-a.on {
  transform: translateX(-30%);
}
/* 새 대화는 맨 위에서 자리를 벌리며 들어오고, 아래 줄들이 밀려 내려간다.
   친구의 대화가 맨 위로 올라가면 그 친구의 옛 줄은 접힌다. 스크립트가 없으면 옛 줄은 없다. */
.sc-sched.play .sd-new[data-step],
.sc-sched.play .sd-old {
  transition:
    height 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.35s ease 0.1s;
}
.sc-sched.play .sd-new[data-step]:not(.on),
.sc-sched.play .sd-old:not(.on) {
  height: 0;
  opacity: 0;
  transform: none;
}
.sc-sched:not(.play) .sd-old {
  display: none;
}

@media (max-width: 640px) {
  .stage.sc-sched {
    padding: 22px 0 0;
  }
  .sc-sched .sd-ig {
    zoom: 0.68;
  }
}

/* 일괄 발송(카페 사장님). 실제 Instagram iOS 화면 두 장을 390px 논리 크기로 그리고 zoom 으로 줄인다.
   1) 게시물의 댓글 창: 1~2일 전 댓글이 답 없이 쌓여 있다.
   2) DM 목록: 오른쪽에서 밀려 들어오고, 쿠폰 대화가 위에 하나씩 붙는다(.flow 를 거꾸로 쓴다).
   치수와 색은 Instagram 한국어 화면에서 쟀다(notes.md). 스크립트가 없으면 2) 의 마지막 모습만 보인다. */

/* 카드의 색 면. 화면은 아래 끝에 닿아 잘린 듯이 둔다. */
.stage.sc-bulk {
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  padding: 28px 20px 0;
}

.sc-bulk .ig-phone {
  position: relative;
  flex: none;
  width: 390px;
  height: 520px;
  border-radius: 44px 44px 0 0;
  background: #fff;
  overflow: hidden;
  zoom: 0.74;
  box-shadow: 0 1px 3px rgba(23, 21, 18, 0.08);
  color: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Helvetica Neue",
    sans-serif;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0;
  word-break: normal;
  text-align: left;
}
.sc-bulk .ig-phone b {
  font-weight: 600;
}
.sc-bulk .ig-phone svg {
  display: block;
  flex: none;
}
.sc-bulk .ig-ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-bulk .ig-scr {
  position: absolute;
  inset: 0;
  isolation: isolate;
  background: #fff;
}

/* ── iOS 상태 막대 ─────────────────────────────── */
.sc-bulk .ig-sb {
  position: relative;
  height: 54px;
}
.sc-bulk .ig-sb-time {
  position: absolute;
  top: 18px;
  left: 0;
  width: 128px;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}
.sc-bulk .ig-sb-icons {
  position: absolute;
  top: 23px;
  right: 0;
  width: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sc-bulk .ig-sig {
  width: 18px;
  height: 12px;
  fill: currentColor;
}
.sc-bulk .ig-wifi {
  width: 16px;
  height: 12px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.sc-bulk .ig-wifi path {
  fill: none;
}
.sc-bulk .ig-bat {
  width: 27px;
  height: 13px;
  fill: currentColor;
}
.sc-bulk .ig-bat-box {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.35;
}
.sc-bulk .ig-bat-cap {
  fill-opacity: 0.4;
}

/* ── 아바타. 프로필 사진 대신 그라디언트로 그린 얼굴 ── */
.sc-bulk .ig-av {
  position: relative;
  display: block;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 41%, var(--skin) 0 19%, transparent 20%),
    radial-gradient(circle at 50% 35%, var(--hair) 0 25%, transparent 26%),
    radial-gradient(
      ellipse 62% 44% at 50% 100%,
      var(--top) 0 98%,
      transparent 100%
    ),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}
.sc-bulk .u1 {
  --skin: #f1c9a5;
  --hair: #3a2a22;
  --top: #f4f0e6;
  --bg1: #f6d7c3;
  --bg2: #e7a98c;
}
.sc-bulk .u2 {
  --skin: #edc3a0;
  --hair: #1f1a17;
  --top: #8fa9c9;
  --bg1: #dfe8f1;
  --bg2: #b6c7da;
}
.sc-bulk .u3 {
  --skin: #d9a77f;
  --hair: #2b211c;
  --top: #3f4a3c;
  --bg1: #c9b79c;
  --bg2: #8c7357;
}
.sc-bulk .u4 {
  --skin: #f3cfb2;
  --hair: #6b4630;
  --top: #e9b44c;
  --bg1: #fff1d6;
  --bg2: #f1cf96;
}
.sc-bulk .u5 {
  --skin: #efc6a6;
  --hair: #24201e;
  --top: #d9758a;
  --bg1: #f8dbe2;
  --bg2: #e9aebc;
}
.sc-bulk .u6 {
  --skin: #e6b892;
  --hair: #3b2b20;
  --top: #e8e1d3;
  --bg1: #b9d9c8;
  --bg2: #7fae95;
}
.sc-bulk .u7 {
  --skin: #f1cbb0;
  --hair: #a8714a;
  --top: #c3d8a4;
  --bg1: #f3f6e9;
  --bg2: #cfe0b5;
}
.sc-bulk .u8 {
  --skin: #d8a27c;
  --hair: #1b1716;
  --top: #2f3440;
  --bg1: #9aa6b5;
  --bg2: #5f6b7c;
}
.sc-bulk .u9 {
  --skin: #f0c8a8;
  --hair: #4a3426;
  --top: #f2e3c9;
  --bg1: #e8c7a2;
  --bg2: #c28d5e;
}
.sc-bulk .u10 {
  --skin: #f4d1b6;
  --hair: #2a201c;
  --top: #b8a4d6;
  --bg1: #ece6f5;
  --bg2: #cdbfe6;
}
.sc-bulk .u11 {
  --skin: #dcab86;
  --hair: #262019;
  --top: #2d5d7b;
  --bg1: #a9c9dd;
  --bg2: #6f9cba;
}
/* 카페의 로고: 위에서 본 커피 잔 */
.sc-bulk .ig-av-shop {
  background:
    radial-gradient(circle, #6b3a1f 0 24%, #f6e8d6 25% 36%, transparent 37%),
    linear-gradient(145deg, #d39a6c, #8d5233);
}
/* 거래처의 로고: 원두 */
.sc-bulk .ig-av-brand {
  background:
    radial-gradient(
      ellipse 16% 24% at 50% 50%,
      #2b1a10 0 30%,
      #6f4327 34% 98%,
      transparent 100%
    ),
    #f1e6d6;
}
/* 활동 중 표시 */
.sc-bulk .ig-on::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1fc55a;
}

/* ── 1. 게시물의 댓글 창 ───────────────────────── */
.sc-bulk .ig-page {
  position: absolute;
  inset: 0;
  background: #fff;
}
.sc-bulk .ig-nav {
  position: relative;
  height: 44px;
}
.sc-bulk .ig-nav .ig-back {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
}
.sc-bulk .ig-nav-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3px;
}
.sc-bulk .ig-nav-title small {
  color: #737373;
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
}
.sc-bulk .ig-nav-title b {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}
.sc-bulk .ig-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 14px 0 12px;
  font-size: 14px;
}
.sc-bulk .ig-post-head .ig-av {
  width: 32px;
  height: 32px;
}
.sc-bulk .ig-more {
  width: 22px;
  height: 22px;
  margin-left: auto;
  fill: currentColor;
}
.sc-bulk .ig-photo {
  height: 390px;
  background:
    radial-gradient(
      circle at 52% 46%,
      #f7ecdc 0 13%,
      #7a4426 14% 16%,
      transparent 17%
    ),
    radial-gradient(circle at 52% 46%, #fdf7ee 0 22%, transparent 23%),
    linear-gradient(160deg, #e6c39f, #b27b54 70%, #8f5c3c);
}
/* 시트 뒤를 어둡게. 실제 화면에서 흰 바탕이 #4b4b4b 로 보인다. */
.sc-bulk .ig-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
/* 상태 막대는 어둡게 하지 않고 흰 글자로 둔다. */
.sc-bulk .ig-cmt .ig-sb {
  z-index: 1;
  color: #fff;
}
.sc-bulk .ig-sheet {
  position: absolute;
  top: 196px;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
}
.sc-bulk .ig-grab {
  display: block;
  width: 38px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: #dbdbdb;
}
.sc-bulk .ig-sheet-title {
  height: 60px;
  border-bottom: 1px solid #efefef;
  font-size: 17px;
  line-height: 56px;
  font-weight: 700;
  text-align: center;
}
.sc-bulk .ig-cv {
  position: absolute;
  top: 74px;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
.sc-bulk .ig-cl {
  padding: 15px 0 0;
}
.sc-bulk .ig-cl li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  height: 88px;
  padding: 0 19px 0 12px;
}
.sc-bulk .ig-cl .ig-av {
  width: 34px;
  height: 34px;
}
.sc-bulk .ig-cl div {
  flex: 1;
  min-width: 0;
}
.sc-bulk .ig-cl b {
  font-size: 13px;
}
.sc-bulk .ig-cl b + span {
  margin-left: 2px;
  color: #737373;
  font-size: 13px;
}
.sc-bulk .ig-cl p + p {
  margin-top: 2px;
}
.sc-bulk .ig-at {
  color: #00376b;
}
.sc-bulk .ig-cl .ig-acts {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  color: #737373;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}
.sc-bulk .ig-heart {
  width: 15px;
  height: 15px;
  margin-top: 11px;
  fill: none;
  stroke: #737373;
  stroke-width: 2;
  stroke-linejoin: round;
}

/* ── 2. DM 목록 ───────────────────────────────── */
.sc-bulk .ig-inbox {
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
}
.sc-bulk .ig-hd {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px 0 12px;
}
.sc-bulk .ig-hd .ig-back {
  width: 28px;
  height: 28px;
  margin-right: 6px;
}
.sc-bulk .ig-hd b {
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sc-bulk .ig-compose {
  margin-left: auto;
  stroke-width: 1.9;
}
.sc-bulk .ig-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 6px 16px 0;
  padding: 0 12px;
  border-radius: 18px;
  background: #efefef;
  color: #737373;
  font-size: 16px;
}
.sc-bulk .ig-search .ig-ico {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}
.sc-bulk .ig-notes {
  display: flex;
  gap: 28px;
  padding: 50px 0 0 17px;
}
.sc-bulk .ig-notes li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  width: 73px;
}
.sc-bulk .ig-notes .ig-av {
  width: 73px;
  height: 73px;
}
.sc-bulk .ig-notes .ig-on::after {
  right: 0;
  bottom: 2px;
  width: 19px;
  height: 19px;
}
.sc-bulk .ig-notes li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 22px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
.sc-bulk .ig-notes small {
  margin-top: 4px;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}
.sc-bulk .ig-notes li:first-child small {
  color: #737373;
}
/* 메모 말풍선. 아바타 위에 걸치고 작은 점이 꼬리다. */
.sc-bulk .ig-note {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 50%;
  z-index: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  width: max-content;
  max-width: 92px;
  min-width: 40px;
  padding: 6px 10px;
  overflow: hidden;
  transform: translateX(-50%);
  border-radius: 15px;
  background: #fff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.05),
    0 1px 6px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  word-break: keep-all;
}
.sc-bulk .ig-note-me {
  color: #737373;
  font-size: 11px;
  line-height: 14px;
}
/* 메모 아래의 「메시지 … 요청」 줄 */
.sc-bulk .ig-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin-top: 6px;
  padding: 0 16px;
}
.sc-bulk .ig-sec b {
  font-size: 16px;
  font-weight: 700;
}
.sc-bulk .ig-sec span {
  color: #737373;
  font-size: 14px;
  font-weight: 600;
}

/* 대화 줄. 새 대화가 위에 붙고 옛 대화는 아래로 밀려 잘린다(style.css 의 .flow 를 거꾸로). */
.sc-bulk .ig-list.flow {
  display: block;
  flex: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.sc-bulk .ig-th {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 16px;
  overflow: hidden;
}
.sc-bulk .ig-th p {
  flex: 1;
  min-width: 0;
}
.sc-bulk .ig-th b {
  display: block;
  font-weight: 400;
}
.sc-bulk .ig-th b + span {
  display: flex;
  color: #737373;
  white-space: nowrap;
}
/* 줄 앞의 빈칸은 접혀 사라지므로 「 · 방금」 앞의 틈을 여백으로 둔다. */
.sc-bulk .ig-th i {
  margin-right: 0.28em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
}
.sc-bulk .ig-cam {
  width: 27px;
  height: 27px;
  color: #737373;
  stroke-width: 1.6;
}

/* ── 움직임(app.js 가 .play 를 붙였을 때만) ─────────── */
/* 댓글 창은 숨기지 않는다. 2 단계에 아래로 넘겨 더 쌓인 댓글을 보이고, 4 단계에 DM 목록에 밀려 왼쪽으로 빠진다. */
.sc-bulk.play .ig-cmt[data-step]:not(.on),
.sc-bulk.play .ig-cl[data-step]:not(.on) {
  opacity: 1;
  transform: none;
}
.sc-bulk.play .ig-cl[data-step] {
  transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.sc-bulk.play .ig-cl.on {
  transform: translateY(-176px);
}
.sc-bulk.play .ig-scr[data-step] {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sc-bulk.play .ig-cmt.on {
  transform: translateX(-28%);
}
.sc-bulk.play .ig-inbox[data-step]:not(.on) {
  opacity: 1;
  transform: translateX(100%);
}
/* 쿠폰 대화는 높이가 0 에서 차오르며 아래 줄을 밀어낸다. */
.sc-bulk.play .ig-list.flow > .ig-th[data-step] {
  transition:
    height 0.38s ease,
    opacity 0.38s ease;
}
.sc-bulk.play .ig-list.flow > .ig-th[data-step]:not(.on) {
  display: flex;
  height: 0;
  opacity: 0;
  transform: none;
}
.sc-bulk.play .ig-list.flow > .ig-th[data-step].on {
  animation: none;
}

/* 폰 폭에서는 조금 더 줄인다. */
@media (max-width: 640px) {
  .stage.sc-bulk {
    padding: 20px 14px 0;
  }
  .sc-bulk .ig-phone {
    zoom: 0.68;
  }
}
