/* === s2 === 홈(v2) · 성장 로드맵 · 우리 집 준비표 · 정리한 항목
 * 7차(SPEC 5.1 — 추가 요청 3 "홈 v2", 참고 그림 docs/mockups/reference/홈_예시_v2.png): 흰 바탕 · 연한 테두리 · 넉넉한 여백.
 * 공용 부품(제목 블록·단계 띠·체크 줄·상품 그림·가격·적합도 막대·조건 버튼)의 모양은 components.css / v3-components.css 에 있다.
 * 여기에는 이 화면 묶음만의 배치와 보조 글자만 둔다. 모바일 360 전용, 색은 토큰만.
 */

/* ---------- 홈 · 성장 로드맵: 흰 바탕(참고 그림 — 연분홍 바탕 위 흰 카드 대신 흰 면에 연한 테두리) ---------- */
.ms-app:has(.s2-home),
.ms-app:has(.s2-roadmap),
.ms-app:has(.s2-home) .ms-header,
.ms-app:has(.s2-roadmap) .ms-header,
.ms-app:has(.s2-home) .ms-appbar {
  background: var(--card);
}

/* 우리 집 준비표·정리한 항목(맘스토어 탭 하위 탭): 추천·가이드 하위 탭과 같은 흰 바탕(하위 탭을 바꿔도 바탕색이 바뀌지 않게 — 브리프 "흰 바탕 중심").
 * 흰 바탕 위 카드는 그림자 대신 연한 테두리(홈·상품 상세 카드와 같은 모양) */
.ms-app:has(.ms-storehead--checklist) {
  background: var(--card);
}

.ms-app:has(.ms-storehead--checklist) #main :is(.ms-scard, .ms-panel, .s2-prog) {
  border: 1px solid var(--chip-line);
  box-shadow: none;
}

/* 머리글 바로 아래부터(우리 아이 줄이 로고 아래에 붙는다) */
.ms-page:has(.s2-home) {
  padding-top: 0;
}

/* 세로 쌓임(블록 흐름 — grid 는 min-width:auto 때문에 가로 띠가 틀 밖으로 밀린다) */
.s2-home > section + section {
  margin-top: 28px;
}

.s2-home > .s2-child + .s2-road,
.s2-home > .s2-road + .s2-period {
  margin-top: 16px;
}

/* 섹션 머리: h2 + 오른쪽 작은 링크(더 보기 · 맘맵) */
.s2-sec__head,
.s2-road__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.s2-sec__head {
  margin-bottom: 10px;
}

.s2-sec__title {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  word-break: keep-all;
}

/* 작은 링크 "더 보기 ›" "맘맵 ›"(회색) · "전체 보기 ›"(주색) — 누름 영역 44px */
.s2-more {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  min-height: var(--touch);
  margin-right: -6px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
}

.s2-more .ms-ico {
  width: 16px;
  height: 16px;
}

.s2-more--primary {
  font-weight: 700;
  color: var(--primary);
}

.s2-more:hover {
  background: var(--muted);
}

/* ---------- 1. 우리 아이 줄 ---------- */
.s2-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s2-child__ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--peach-ink);
}

.s2-child__ico .ms-ico {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.s2-child__text {
  flex: 1 1 auto;
  min-width: 0;
}

.s2-child__name {
  margin: 0;
  font-size: var(--fs-17);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* 조건 요약은 한 줄(넘치면 말줄임 — 글자는 낭독기에 모두 읽힌다) */
.s2-child__sum {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 답이 없을 때의 안내 문장은 말줄임 없이 줄 바꿈(두 줄 길이를 고르게 — 끝에 낱말 하나만 남지 않게) */
.s2-child__sum--empty {
  white-space: normal;
  word-break: keep-all;
  text-wrap: balance;
}

.s2-child__edit {
  flex: none;
  min-width: var(--touch);
  min-height: var(--touch);
  margin-right: -8px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.s2-child__edit:hover {
  background: var(--secondary);
}

/* ---------- 2. 성장 로드맵 띠(흰 바탕 · 연한 테두리 · 둥근 20px) ---------- */
.s2-road {
  padding: 4px 12px 6px;                     /* 수정(V2): 머리 44px 안에 제목 위 여백이 이미 있다 — 상자를 낮춘다(137 → 116px) */
  border: 1px solid var(--chip-line);
  border-radius: 20px;
  background: var(--card);
}

.s2-road__head {
  padding-left: 4px;
}

.s2-road__title {
  margin: 0;
  font-size: var(--fs-17);
  font-weight: 700;
  color: var(--ink);
}

.s2-road__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.s2-road__step {
  position: relative;
  min-width: 0;
}

/* 점 사이 선(3px): 지금 시기까지 분홍(--brand 장식), 그 뒤 회색 — 왼쪽 반(::before)과 오른쪽 반(::after) */
.s2-road__step::before,
.s2-road__step::after {
  content: "";
  position: absolute;
  top: 10px;
  height: 3px;
  background: var(--seg-off);
}

.s2-road__step::before {
  left: 0;
  right: 50%;
}

.s2-road__step::after {
  left: 50%;
  right: 0;
}

.s2-road__step:first-child::before,
.s2-road__step:last-child::after {
  content: none;
}

.s2-road__step.is-past::before,
.s2-road__step.is-past::after,
.s2-road__step.is-now::before {
  background: var(--brand);
}

.s2-road__link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 52px;                          /* 점 + 이름 + 작은 글 한 링크 — 44px 이상 */
  padding: 0 0 2px;
  border-radius: var(--radius-md);
  color: var(--gray);
  text-decoration: none;
}

.s2-road__link:hover {
  background: var(--pink-pale);
}

/* 점 20px: 지난 = 분홍 채움 · 지금 = 흰 점 + 주색 테두리 3px + 연분홍 후광 · 다음 = 회색 빈 점 */
.s2-road__dot {
  display: block;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: 1.5px;
  border: 2px solid var(--chip-line-strong);
  border-radius: 50%;
  background: var(--card);
}

.is-past .s2-road__dot {
  border-color: var(--brand);
  background: var(--brand);
}

.is-now .s2-road__dot {
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 5px var(--soft-hover);
}

.s2-road__name {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-12);                   /* 수정(V7): 13 → 12px — 다섯 이름 사이 숨 쉴 틈 */
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--gray);                        /* 지난·다음 시기 이름 회색(SPEC 5.1-3) */
}

.is-now .s2-road__name {
  font-weight: 600;
  color: var(--primary);
}

.s2-road__sub {
  display: block;
  margin-top: 1px;
  font-size: var(--fs-12);
  font-weight: 500;
  line-height: 1.2;
  color: var(--gray);
}

.is-now .s2-road__sub {
  color: var(--primary);
}

/* 수정(B2): 보는 시기가 아이 시기와 다를 때 그 단계(지난·다음 어느 쪽이든) — 주색 바깥 고리(후광 없음, "지금"과 헷갈리지 않게) + 잉크 이름 + 잉크 "보는 중" */
.is-viewing .s2-road__dot {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--primary);
}

.is-viewing .s2-road__name {
  font-weight: 600;
  color: var(--ink);
}

.is-viewing .s2-road__sub {
  color: var(--ink);
}

/* ---------- 3. 이번 시기 카드(연보라 · 둥근 24px — 홈에서 가장 큰 블록) ---------- */
.s2-period {
  padding: 16px 16px 0;
  border-radius: 24px;
  background: var(--lav);
}

.s2-period__label {
  margin: 0;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--lav-ink);                     /* #f4efff 위 7.50 */
}

.s2-period__title {
  margin: 2px 0 12px;
  font-size: 1.75rem;                        /* 28px 잡지식 제목 */
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: keep-all;
}

.s2-period__title > span {
  display: block;
}

.s2-period__title:focus {
  outline: none;
}

.s2-period__title:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
  border-radius: 4px;
}

/* 흰 상자 "이번 시기 준비 현황"(준비표에도 같은 모양 — .s2-clprog) */
.s2-prog {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
}

.s2-prog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.s2-prog__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.s2-prog__count {
  margin: 0;
  flex: none;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

/* 주색 진행 막대(높이 10px — 장식, 개수는 글자가 전한다) */
.s2-bar {
  display: block;
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--seg-off);
}

.s2-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.s2-prog__note {
  margin: 6px 0 0;
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray);
}

.s2-period__why {
  margin: 10px 0 8px;
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--gray);                        /* #f4efff 위 4.95 */
  word-break: keep-all;
}

/* " 먼저 준비하면 좋은 3가지"는 한 덩어리로(줄이 넘치면 이유 문장 뒤에서 바꾼다) */
.s2-period__tail {
  display: inline-block;
}

/* 흰 카드 3개: 틴트 아이콘 상자 + 이름 + 짧은 설명 + 상태 배지(아직 · 준비함) */
.s2-picks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);     /* 한 줄 말줄임 설명이 칸을 넓히지 않게(grid 기본 min-width:auto) */
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s2-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 14px 6px 12px;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.s2-pick:hover {
  box-shadow: inset 0 0 0 1px var(--chip-line);
}

.s2-pick .ms-itile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.s2-pick .ms-itile .ms-ico {
  width: 20px;
  height: 20px;
}

.s2-pick__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.s2-pick__name {
  font-size: var(--fs-17);
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.s2-pick__desc {
  margin-top: 1px;
  overflow: hidden;
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray);
  white-space: nowrap;                       /* 수정(V17): 카드마다 한 줄(높이를 고르게) — 짧은 설명이 없는 항목만 말줄임 */
  text-overflow: ellipsis;
}

.s2-pick__st {
  flex: none;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-13);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.s2-pick__st--todo {
  background: var(--secondary);              /* #fff0f5 */
  color: var(--primary);                     /* 4.84 */
}

.s2-pick__st--done {
  background: var(--ok-bg);
  color: var(--ok);                          /* 4.94 */
}

/* "준비표 전체 보기 ›"(가운데 · 보라 글자 · 44px 이상) */
.s2-period__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  margin-top: 2px;
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--lav-ink);
  text-decoration: none;
}

.s2-period__all .ms-ico {
  width: 16px;
  height: 16px;
}

/* ---------- 4. 우리 집에 맞는 {품목}: 추천 1개 카드 ---------- */
.s2-rec {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--chip-line);
  border-radius: 20px;
  background: var(--card);
}

.s2-rec__art {
  flex: none;
  border-radius: var(--radius-tile);
  line-height: 0;
}

.s2-rec__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

/* "맘스토어 추천" 배지: 주색 채움 흰 글씨 12px(작은 굵은 글자 예외 — data-small-bold-ok) */
.s2-rec__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--rec-bg);
  color: var(--rec-fg);                      /* 5.34 */
  font-size: var(--fs-12);
  font-weight: 600;                          /* 목록 줄 .ms-prow__rec · 공용 .ms-rec__badge 와 같은 모양 */
  line-height: 1.3;
  white-space: nowrap;
}

.s2-rec__name {
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

/* 이름 링크: 위아래 10px 를 누름 영역으로 늘린다(보이는 자리는 그대로 — 44px) · 이름은 2줄 후 말줄임 */
.s2-rec__name a {
  display: block;
  margin: -10px 0;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
}

.s2-rec__nm {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s2-rec__name a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pink-line);
  text-underline-offset: 4px;
}

.s2-rec .ms-price--row {
  margin: 0;
}

.s2-rec__why {
  margin: 2px 0 0;
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray);
  word-break: keep-all;
}

/* 추천이 없을 때(답 부족 · 동점 · 모두 어긋남): 같은 자리 회색 카드 + [조건 답하기] */
.s2-rec--empty {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border: 0;
  background: var(--muted);
}

.s2-rec__msg {
  margin: 0;
  font-size: var(--fs-15);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  word-break: keep-all;
  text-wrap: balance;                        /* 두 줄 길이를 고르게 — 끝에 "드려요"만 남지 않게 */
}

.s2-rec--empty .ms-btn {
  background: var(--card);
}

/* ---------- 5. 외출하세요?: 작은 가짜 지도 + 가장 가까운 수유실(카드 링크) + [길 보기](따로 — 링크 중첩 없음) ---------- */
.s2-out {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--chip-line);
  border-radius: 20px;
  background: var(--card);
}

.s2-out__card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.s2-out__map {
  display: block;
  width: 100%;
  height: 100px;
}

.s2-map__bg { fill: var(--map-land, #f3f0ee); }   /* 수정(V18): 맘맵 지도와 같은 땅 색 토큰 */
.s2-map__road { fill: none; stroke: var(--card); stroke-width: 11; stroke-linecap: square; }
.s2-map__halo { fill: var(--info-bg); }
.s2-map__me { fill: var(--info); stroke: var(--card); stroke-width: 2.5; }
.s2-map__pin { fill: var(--primary); }
.s2-map__hole { fill: var(--card); }

.s2-out__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  padding: 13px 16px 14px;
}

.s2-out--route .s2-out__text {
  padding-right: 96px;                       /* [길 보기] 자리 — 누름 영역이 겹치지 않게 */
}

.s2-out__title {
  font-size: var(--fs-17);
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.s2-out__line {
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.45;
  color: var(--gray);
  word-break: keep-all;
}

.s2-out__v {
  font-weight: 600;
}

/* 외출 조건을 아직 답하지 않았을 때의 안내는 장소 이름 아래 제 줄에(가운뎃점이 줄 끝에 남지 않게) */
.s2-out__hint {
  display: block;
}

/* 출처·확인일 한 줄(맘맵 카드와 같은 글자 — "공식 확인 3/2") */
.s2-out__src {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray);
}

.s2-out__stale {                 /* 맘맵 .mm-stale 과 같은 모양 */
  display: inline-block;
  padding: 0 6px;
  white-space: nowrap;
  border-radius: 6px;
  background: var(--muted);
  color: var(--gray);
  font-size: var(--fs-13);
  font-weight: 500;
}

.s2-out__v--ok { color: var(--ok); }               /* 흰 5.47 */
.s2-out__v--check { color: var(--check); }         /* 흰 5.32 */
.s2-out__v--mismatch { color: var(--mismatch); }   /* 흰 6.57 */

.s2-out__route {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 72px;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.s2-out__card:hover .s2-out__title,
.s2-out__route:hover {
  text-decoration: underline;
  text-decoration-color: var(--pink-line);
  text-underline-offset: 4px;
}

/* ---------- 6. 이어서 보기(비교에 담은 상품이 있을 때만) ---------- */
.s2-cont {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px 12px 14px 14px;
  border-radius: 20px;
  background: var(--muted);
  color: var(--ink);
  text-decoration: none;
}

.s2-cont__arts {
  display: inline-flex;
  flex: none;
}

.s2-cont__arts .ms-part {
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--muted);
}

.s2-cont__arts .ms-part + .ms-part {
  margin-left: -10px;
}

.s2-cont__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.s2-cont__title {
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.s2-cont__sub {
  margin-top: 2px;
  font-size: var(--fs-13);
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray);                        /* #f6eff2 위 4.93 */
  word-break: keep-all;
}

.s2-cont__go {
  display: inline-flex;
  flex: none;
  align-items: center;
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--primary);                     /* #f6eff2 위 4.62 */
}

.s2-cont__go .ms-ico {
  width: 16px;
  height: 16px;
}

/* ---------- 바꾸기 시트(보고 싶은 시기 · 우리 집 조건 — 조건 버튼 모양은 맘스토어 조건 칸 .ms-cq 와 같다) ---------- */
.s2-hsheet__who {
  margin: 0 0 14px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--gray);
}

.s2-hsheet__sec + .s2-hsheet__sec {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.s2-hsheet__h {
  margin: 0 0 10px;
  font-size: var(--fs-17);
  font-weight: 700;
  color: var(--ink);
}

.s2-hsheet__note {
  margin: 8px 0 0;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--gray);
}

.s2-hsheet__h + .s2-hsheet__note {
  margin: -4px 0 4px;
}

.s2-hsheet .ms-cq {
  padding-top: 14px;
}

.s2-hsheet .ms-cq + .ms-cq {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- 성장 로드맵 화면(/roadmap): 시기 카드 5장 ---------- */
.s2-rmhead__back .ms-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: var(--touch);
  min-height: var(--touch);
  margin-left: -4px;
  padding: 0 10px 0 4px;
}

.s2-rmhead__title {
  margin: 4px 0 0;
  font-size: var(--fs-26);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.s2-rmhead__title:focus {
  outline: none;
}

.s2-rmhead__lead {
  margin: 6px 0 0;
  font-size: var(--fs-15);
  font-weight: 400;
  line-height: 1.55;
  color: var(--gray);
  word-break: keep-all;
}

.s2-rm__list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.s2-rm {
  border: 1px solid var(--chip-line);
  border-radius: 20px;
  background: var(--card);
}

.s2-rm.is-open {
  border: 2px solid var(--pink-line);
  background: var(--pink-pale);
}

.s2-rm__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: var(--touch);
  padding: 16px 16px 14px;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
}

.s2-rm.is-open .s2-rm__head {
  padding: 15px 15px 8px;
}

.s2-rm__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--fs-17);
  font-weight: 700;
  line-height: 1.35;
}

.s2-rm__now {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--secondary);
  color: var(--primary);                     /* 4.84 */
  font-size: var(--fs-13);
  font-weight: 600;
}

.s2-rm.is-open .s2-rm__now {
  background: var(--card);
}

/* 수정(B2): 보는 시기 카드의 "보는 중" 태그(지금 태그와 구별 — 잉크 글자 · 연한 회색 바탕) */
.s2-rm__now--viewing,
.s2-rm.is-open .s2-rm__now--viewing {
  background: var(--muted);
  color: var(--ink);
}

.s2-rm__change {
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.45;
  color: var(--gray);
  word-break: keep-all;
}

.s2-rm__prog {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.s2-rm__prog .s2-bar {
  flex: 1 1 auto;
  height: 8px;
  margin: 0;
}

.s2-rm__count {
  flex: none;
  font-size: var(--fs-14);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.s2-rm__more {
  padding: 4px 15px 15px;
}

.s2-rm__h {
  margin: 6px 0 8px;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--ink);
}

.s2-rm__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s2-rm__chip {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.s2-rm__chipico {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

.s2-rm__need {
  margin: 12px 0 10px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--gray);
}

.s2-rm__more .ms-btn {
  background: var(--card);
}

/* 첫돌 이후(준비 중): 회색 카드, 막대·펼침 없음 */
.s2-rm--later {
  border-style: dashed;
  background: var(--muted);
}

.s2-rm--later.is-open {
  border: 2px dashed var(--pink-line);
  background: var(--muted);
}

.s2-rm--later .s2-rm__name {
  color: var(--gray);
}

.s2-rm__laternote {
  margin: 0;
  padding: 0 15px 15px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--gray);
}

/* ---------- 우리 집 준비표 ---------- */
/* 시기 준비 현황(홈과 같은 숫자 — 흰 상자) */
.s2-clprog {
  box-shadow: var(--elevation-soft);
}

.s2-clprog__tabs {
  margin: 4px 0 0;
  font-size: var(--fs-13);
  font-weight: 400;
  color: var(--gray);
}

/* 단계 띠 아래 한 줄(지금 시기로 · 날짜 넣기 · 이 시기를 홈에 보이기) */
.s2-rel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin: -6px 0 0;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--gray);
}

/* 섹션 머리 오른쪽: 상태 태그 + 개수 */
.s2-count {
  margin-left: 6px;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--gray);
}

/* "항목 설명은 초안이에요" 한 줄(섹션 머리 아래 한 번) */
.s2-draftline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--gray);
}

/* 보기 칩 */
.s2-filters.ms-chips {
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* 이전 시기에서 아직 지금인 항목 줄 */
.s2-carry.ms-disc {
  margin-bottom: 10px;
  border-color: var(--pink-line);
  background: var(--cream);
}

.s2-carry__t {
  font-size: var(--fs-14);
  color: var(--ink);
}

.s2-carry__list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.s2-carry__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.s2-carry__item > .ms-ico {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--gray);
}

.s2-carry__name {
  display: block;
  font-size: var(--fs-14);
  font-weight: 700;
}

.s2-carry__from {
  display: block;
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--gray);
}

/* 단계 소제목(두 단계 탭) */
.s2-stage + .s2-stage {
  margin-top: 16px;
}

.s2-stage__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--ink);
}

.s2-stage__count {
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--gray);
}

/* 수정(B5): 체크 줄 회색 한 줄 맨 앞 필요도 낱말 — "꼭 필요"만 잉크 600(14px 미만 굵기 600 이하 · 색 강조 없음) */
.s2-need {
  font-weight: 600;
  color: var(--ink);
}

/* 체크 줄 묶음 안 "나머지 n개 보기" 목록 */
.s2-rest {
  margin-top: 2px;
}

/* 섹션 1 foot: "정리한 항목 n개 보기"(44px 누름 영역) */
.s2-done-link {
  gap: 4px;
  margin: -4px -6px -10px;
  font-size: var(--fs-14);
  font-weight: 700;
}

.s2-done-link .ms-ico {
  width: 16px;
  height: 16px;
}

/* 섹션 3 미리 보기: 섹션 1·2 의 체크 줄과 같은 글자(이름 14/700 · 한 줄 13/500), 설명은 두 줄까지 */
.s2-cl__after .ms-lrow__title {
  font-size: var(--fs-14);
  font-weight: 700;
}

.s2-cl__after .ms-lrow__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--gray);
}

.s2-after__line {
  padding: 10px 0 0;
  font-size: var(--fs-13);
  font-weight: 500;
}

/* 맨 아래 [필요도 뜻] */
.s2-main__foot {
  display: flex;
}

/* "자세히" 안 내용 */
.s2-kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  font-size: var(--fs-14);
  line-height: 1.65;
}

.s2-kv dt {
  font-weight: 700;
}

.s2-kv dd {
  margin: 0 0 8px;
  color: var(--ink);
}

.s2-detail__label {
  margin-top: 4px;
  font-size: var(--fs-14);
  font-weight: 700;
}

.s2-acq {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-14);
  line-height: 1.6;
}

.s2-acq li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}

.s2-acq__m {
  flex: none;
  width: 4.5em;
  font-weight: 700;
}

.s2-acq__why {
  color: var(--gray);
}

.s2-row__links {
  margin-top: 12px;
}

.s2-ask {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--muted);
}

.s2-ask__text {
  margin-bottom: 8px;
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1.6;
}

.s2-ask__text strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 정리한 항목 ---------- */
.s2-dlist {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.s2-ditem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.s2-ditem__title {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--pink-line);
  text-underline-offset: 4px;
}

.s2-ditem__meta {
  margin-top: -6px;
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--gray);
}

.s2-ditem .ms-btn {
  flex: none;
}
/* === end s2 === */
