/*
 * 맘스토어 v3(5차 수정 — 정체성 재구성 + 추천·가격 도입) 새 공용 부품 CSS — F2(js/ui.js 와 짝)
 * SPEC 4절의 markup 골격에 맞춘다. 색은 tokens.css(F1)의 토큰 이름만 쓰되, 토큰이 아직 없을 때를 위해 같은 값을 fallback 으로 둔다(SPEC 2절 표 값).
 * 글자 역할 class(.t-*)는 css/base.css(F1)에 있다 — 여기서는 부품 고유 선택자에 크기를 한 번 더 적어 두어 어느 쪽이 먼저 와도 모양이 같게 한다.
 * 모바일 360 전용(@container frame 분기 없음). 누르는 곳 44px, 아이콘 + 글자(색만으로 뜻을 전하지 않는다).
 */

/* ---------- 공통: 44px 글자 링크 · 아이콘 격자 · Lucide 선 ---------- */
.ms-link--tap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--touch, 44px);
  padding: 0 6px;
  margin: -10px -6px;
}

.ms-link--sm {
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
}

.ms-icongrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 12px;
}

/* Lucide 는 stroke 2 가 기본 — 틴트 상자·점·칩 안의 아이콘만 2, 그 밖은 기존 .ms-ico(1.8) */
.ms-itile .ms-ico,
.ms-vdot__ico,
.ms-tag__ico,
.ms-rec__ico,
.ms-price__ico {
  stroke-width: 2;
}

/* ---------- 4.11 틴트 상자 + Lucide 아이콘 ---------- */
.ms-itile {
  display: inline-grid;
  flex: none;
  place-items: center;
  border-radius: 12px;
  color: var(--ink, var(--foreground, #342a34));
  background: var(--pink-soft, #fff0f5);
}

.ms-itile .ms-ico {
  fill: currentColor;
  fill-opacity: 0.16;
}

.ms-itile--sm { width: 36px; height: 36px; }
.ms-itile--sm .ms-ico { width: 18px; height: 18px; }
.ms-itile--md { width: 44px; height: 44px; }
.ms-itile--md .ms-ico { width: 22px; height: 22px; }
.ms-itile--lg { width: 52px; height: 52px; border-radius: var(--radius-tile, 1rem); }
.ms-itile--lg .ms-ico { width: 26px; height: 26px; }

.ms-itile--pink { background: var(--pink-soft, #fff0f5); }
.ms-itile--lav { background: var(--lav, #f4efff); }
.ms-itile--mint { background: var(--mint, #eefaf5); }
.ms-itile--peach { background: var(--peach, #fff3ec); }
.ms-itile--cream { background: var(--cream, #fff8dc); }
.ms-itile--sky { background: var(--sky, #e8f4fb); }   /* 7차: 다섯째 틴트(씻길 때 · 위생·편의) */

/* 7차: 면(class="ms-ico__f")을 가진 직접 그린 아이콘(.ms-ico--f — stroller · car-seat · baby-bottle · toilet)은 면만 연하게 채운다(열린 선은 채우지 않음) */
.ms-ico .ms-ico__f { fill: none; }
.ms-itile .ms-ico.ms-ico--f { fill: none; }
.ms-itile .ms-ico--f .ms-ico__f { fill: currentColor; fill-opacity: 0.16; }

/* 안내 상자 안 틴트 상자(U.notice icon) */
.ms-note--icon {
  align-items: flex-start;
}

.ms-note--icon .ms-itile {
  margin-right: 10px;
}

/* ---------- 4.1 제목 블록: 라벨 → 두 줄 제목 → 한 문장 ---------- */
.ms-tblock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.ms-tblock__label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--primary, #c72964);
}

.ms-tblock__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  word-break: keep-all;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-tblock__title .t-title__a { font-weight: 500; }
.ms-tblock__title .t-title__b { font-weight: 800; }

.ms-tblock--sec .ms-tblock__title {
  font-size: 20px;
}

/* 첫 화면 제목만 24px(원문 둘째 줄이 26px 에서 328px 열을 넘는다 — SPEC 3절 충돌 3-4). base.css 의 .t-title--hero 와 같은 값 */
.ms-tblock--hero .ms-tblock__title,
.ms-tblock--hero .t-title {
  font-size: 24px;
}

/* 제목 아래 한 줄 안내(생활 맥락이 비어 있을 때 — U.contextNudge) */
.ms-ctxnudge {
  margin: -8px 0 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-tblock__lead {
  margin: 0;
  font-size: var(--fs-15, 0.9375rem);
  line-height: 1.6;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* ---------- 4.2 우리 가족 프로필 띠 ---------- */
.ms-pband {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
  box-shadow: var(--elevation-soft, 0 4px 14px rgb(116 53 79 / 0.04));
}

.ms-pband--guest {
  border: 1px dashed var(--border, #f0dfe7);
  box-shadow: none;
}

.ms-pband__text {
  flex: 1 1 auto;
  min-width: 0;
}

.ms-pband__cap {
  margin: 0 0 2px;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-pband__line {
  display: -webkit-box;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-pband__nick {
  font-weight: 700;
}

.ms-pband__edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch, 44px);
  min-width: var(--touch, 44px);
  margin: -12px -8px -12px 0;
  padding: 0 8px;
  white-space: nowrap;
}

.ms-pband--compact .ms-itile--sm { width: 36px; height: 36px; }

/* ---------- 4.3 상태 태그(아이콘 + 글자) · 4.26 초안 · 오래된 가격 · 광고 ---------- */
.ms-tag--now,
.ms-tag--next,
.ms-tag--done,
.ms-tag--skipped,
.ms-tag--draft,
.ms-tag--stale {
  gap: 4px;
  height: 24px;
  padding: 0 9px 0 7px;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 600;
  line-height: 1;
}

.ms-tag__ico {
  width: 14px;
  height: 14px;
}

.ms-tag--now { background: var(--tag-now, #fff0f5); color: var(--tag-now-foreground, #b2255a); }
.ms-tag--now .ms-tag__ico { fill: currentColor; fill-opacity: 0.25; }
.ms-tag--next { background: var(--tag-next, var(--tag-soon, #fff7df)); color: var(--tag-next-foreground, var(--tag-soon-foreground, #8a650f)); }
.ms-tag--done { background: var(--tag-done, #eff9f5); color: var(--tag-done-foreground, #2b6f56); }
.ms-tag--skipped { background: var(--tag-later, #f6eff2); color: var(--tag-later-foreground, #6b5a66); }

.ms-tag--draft {
  height: 22px;
  border-color: var(--draft-border, #c9bfc5);
  background: var(--card, #ffffff);
  color: var(--draft-fg, var(--gray, #75636d));
}

.ms-tag--stale {
  height: 22px;
  margin-left: 6px;
  background: var(--muted, #f6eff2);
  color: var(--price-stale, var(--gray, #75636d));
}

/* ---------- 4.4 판정 점·칩 ---------- */
.ms-vdot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.ms-vdot__ico {
  width: 16px;
  height: 16px;
  flex: none;
}

.ms-vdot__name {
  font-size: var(--fs-12, 0.75rem);
  font-weight: 500;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-vdot--ok { color: var(--ok, #0f766e); }
.ms-vdot--check { color: var(--check, #8a650f); }
.ms-vdot--mismatch { color: var(--mismatch, #b42318); }

/* ---------- 4.5 가격 한 줄 ---------- */
.ms-price {
  display: block;
  margin: 0;
  line-height: 1.3;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-price--inline {
  display: inline;
}

.ms-price__num {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.ms-price__num.t-price--lg {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ms-price__from,
.ms-price__meta,
.ms-price__sep {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-price__from {
  margin-left: 1px;
  white-space: nowrap;
}

.ms-price__meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.ms-price__ico {
  width: 12px;
  height: 12px;
}

.ms-price__note {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-price--stale .ms-price__num {
  color: var(--price-stale, var(--gray, #75636d));
}

.ms-price--none {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* 칸 안 확인일은 제 줄에(시계 아이콘 + 글자가 한 줄 — block 이면 아이콘이 홀로 내려간다) */
.ms-price--cell .ms-price__meta {
  display: flex;
}

.ms-price--cell .ms-price__sep {
  display: none;
}

/* ---------- 4.6 → 7차 적합도 막대(SPEC 4.4 — 칸 = 조건 수, 채운 칸 = 맞음 수, 모두 맞음 초록 · 아니면 노랑 계열) ----------
 * 칸은 장식(aria-hidden) — 개수는 글자 "N개 중 M개 맞아요"와 role=img 이름이 전한다. 글자 14px 600(14px 이상이라 굵기 제한 밖) */
.ms-fit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
}

.ms-fit__segs {
  display: inline-flex;
  flex: none;
  gap: 4px;
}

.ms-fit__seg {
  display: block;
  width: 16px;
  height: 6px;
  border-radius: var(--radius-pill, 999px);
  background: var(--seg-off, #ece4e8);
}

.ms-fit--ok .ms-fit__seg.is-on { background: var(--ok, #0f766e); }
.ms-fit--part .ms-fit__seg.is-on { background: var(--check, #8a650f); }

.ms-fit__text {
  font-size: var(--fs-14, 0.875rem);
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ms-fit--ok .ms-fit__text { color: var(--ok, #0f766e); }        /* 흰 5.47 */
.ms-fit--part .ms-fit__text { color: var(--check, #8a650f); }   /* 흰 5.32 */

.ms-fit--md .ms-fit__seg { width: 24px; height: 8px; }
.ms-fit--md .ms-fit__text { font-size: var(--fs-15, 0.9375rem); }

.ms-fit--none {
  display: block;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* ---------- 4.7 추천 배지 + 이유 ---------- */
.ms-rec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: var(--touch, 44px);
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-md, 0.75rem);
  text-align: left;
  background: transparent;
}

.ms-rec:hover,
.ms-rec:active {
  background: var(--soft-hover, #ffe3ee);
}

/* "맘스토어 추천" 배지 — 목록 줄(.ms-prow__rec)·홈 카드(.s2-rec__badge)와 같은 모양: 둥근 6px 네모 · 아이콘 없음 · 12px 600 */
.ms-rec__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--rec-bg, var(--primary, #c72964));
  color: var(--rec-fg, #ffffff);
  font-size: var(--fs-12, 0.75rem);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.ms-rec__reason {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray, var(--muted-foreground, #75636d));
  word-break: keep-all;
}

.ms-rec--compact .ms-rec__reason {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 4.8 추천 시트 ---------- */
.ms-recsheet {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-recsheet__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.ms-recsheet__h {
  margin: 6px 0 0;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
}

.ms-recsheet__rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-recsheet__rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  line-height: 1.45;
}

.ms-recsheet__reason {
  margin: 0;
  font-size: var(--fs-15, 0.9375rem);
  line-height: 1.6;
}

.ms-recsheet__ctx,
.ms-recsheet__fixed {
  margin: 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-recsheet__fixed {
  padding-top: 8px;
  border-top: 1px solid var(--border, #f0dfe7);
}

/* --muted 면 위 글자 링크는 --primary(4.72) */
.ms-gnote .ms-ilink {
  color: var(--primary, #c72964);
}

/* 가로 스크롤 칩 줄을 쓰는 곳이 생기면: 오른쪽 끝을 흐리게(더 있다는 신호) */
.ms-chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 32px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

.ms-chips--scroll::-webkit-scrollbar {
  display: none;
}

.ms-chips--scroll .ms-chip {
  flex: none;
  white-space: nowrap;
}

/* 정렬 줄에 덧붙는 종류 칩(아이콘 + "종류 · 전체") */
.ms-chip--type .ms-chip__ico {
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-chip[aria-disabled="true"] {
  color: var(--gray, var(--muted-foreground, #75636d));
  border-style: dashed;
}

/* ---------- 4.12 선택 카드 ---------- */
.ms-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 94px;
  padding: 16px 44px 16px 16px;
  border: 2px solid var(--border, #f0dfe7);
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
  text-align: left;
}

.ms-choice__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ms-choice__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-choice__sub {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-choice__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  color: var(--primary, #c72964);
  opacity: 0;
}

.ms-choice.is-on {
  border-color: var(--primary, #c72964);
  background: var(--pink-soft, #fff0f5);
  box-shadow: 0 0 0 3px rgb(199 41 100 / 0.12);
}

.ms-choice.is-on .ms-choice__check {
  opacity: 1;
}

/* ---------- 4.13 생활 맥락 칩 · 반영 칩 ---------- */
.ms-ctx {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ms-ctxg {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ms-ctxg__q {
  padding: 0;
  margin-bottom: 8px;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
}

.ms-ctxg__q .t-meta {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-chip__ico {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- 4.14 가로 6단계 카드 ---------- */
.ms-strip {
  position: relative;
  margin: 0 -16px;
}

/* 왼쪽 흰 그라데이션(장식 — 맘스토어 칩 줄 .ms-storehead .ms-ichips::before 와 같은 방식): 밀었을 때 앞 카드 끝 조각(카드 사이 6px)을 덮는다 */
.ms-strip::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 16px;
  background: linear-gradient(to right, var(--card, #ffffff) 0, var(--card, #ffffff) 9px, rgb(255 255 255 / 0) 16px);
  pointer-events: none;
}

.ms-strip__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 2px 16px 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ms-strip__list::-webkit-scrollbar {
  display: none;
}

.ms-strip__list {
  scroll-padding-left: 16px;
}

/* 현재 카드의 왼쪽을 16px 여백에 맞춘다(가운데 정렬은 이전 카드가 조각으로 잘려 보인다) */
.ms-strip__list > li {
  flex: none;
  scroll-snap-align: start;
}

.ms-strip__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 150px;
  min-height: 96px;
  padding: 12px;
  border: 2px solid var(--border, #f0dfe7);
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
  text-decoration: none;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-strip__card.is-on {
  border-color: var(--primary, #c72964);
  background: var(--pink-soft, #fff0f5);
}

.ms-strip__range,
.ms-strip__items {
  font-size: var(--fs-12, 0.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-strip__card.is-on .ms-strip__range {
  color: var(--primary, #c72964);
}

.ms-strip__name {
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
  line-height: 1.45;
}

.ms-strip__items {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

/* ---------- 4.17 준비표 줄 [보러가기] ---------- */
.ms-crow__title.t-value {
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
}

.ms-crow__go {
  margin-top: 4px;
}

.ms-crow__go-ico {
  width: 14px;
  height: 14px;
}

/* [보러가기] 와 "자세히"를 한 줄에(moreInline) */
.ms-crow__acts {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.ms-crow__acts .ms-crow__go {
  margin: -10px -6px;
}

.ms-crow__more--inline {
  min-width: 0;
  margin: -10px 0;
  padding: 0 2px 0 4px;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
}

.ms-crow__more--inline .ms-ico {
  width: 16px;
  height: 16px;
}

/* ---------- 4.18 상품 카드 ---------- */
.ms-pcards,
.s3-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-pcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-card, 1.375rem);
  background: var(--card, #ffffff);
  box-shadow: var(--elevation-soft, 0 4px 14px rgb(116 53 79 / 0.04));
}

/* 흰 묶음 카드 안의 상품 카드: 안쪽 모서리 16px + 선(같은 흰색이라 그림자만으로는 "카드 안 카드"로 보인다) */
.ms-scard .ms-pcard {
  border: 1px solid var(--border, #f0dfe7);
  border-radius: var(--radius-tile, 1rem);
  box-shadow: none;
}

.ms-pcard__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ms-pcard__text {
  min-width: 0;
}

.ms-pcard__brand {
  margin: 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-pcard__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.ms-pcard__name a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pink-line, #f8c7d7);
}

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

.ms-pcard__acts {
  display: flex;
  gap: 8px;
}

.ms-pcard .ms-rec {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- 4.19 → 10차 비교표(2026-10-11 — 상품 3개를 옆으로 밀지 않고 한 화면에, U.compareTable) ----------
 * 본문 폭 안에 고정 배치(table-layout: fixed · 폭 100% — 표가 본문 폭을 넘지 않는다): 왼쪽 열 90px, 나머지 상품 열은 같은 폭
 * (360px 에서 3개 약 79px · 2개 약 119px — 390px 3개 약 89px · 412px 3개 약 97px). 가로 넘김 상자·첫 열 고정·위에 붙는 이름 줄은 없다(9차 것을 지웠다).
 * 세로는 페이지 하나로 넘긴다 — 표와 그 조상에 overflow·touch-action 을 두지 않아 표 위에서 위아래로 쓸어도 페이지가 내려간다.
 * 칸마다 좌우 2px 안쪽에 아래 선(::after)을 그어 열 사이가 4px 끊긴 선이 된다(참고 그림). 판매처 고정 줄(.ms-cmpdock)도 같은 90px + 같은 폭 격자라
 * 가격 버튼이 표의 상품 열 바로 아래에 온다. 상품 머리는 표와 함께 올라간다(붙박이 아님). */
.ms-ct {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.ms-ct__c0col {
  width: 90px;
}

.ms-ct th,
.ms-ct td {
  position: relative;
  padding: 0 2px;
  text-align: center;
  vertical-align: middle;
  font-weight: inherit;
}

.ms-ct thead th::after,
.ms-ct tbody th::after,
.ms-ct tbody td::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 1px;
  background: var(--line-soft, #f1e9ed);
}

.ms-ct .ms-ct__corner::after,
.ms-ct .ms-ct__c0::after {
  left: 0;
}

/* 맨 위 왼쪽 칸: 회색 "우리 집 조건"(머리 아래쪽에 붙는다) */
.ms-ct .ms-ct__corner {
  vertical-align: bottom;
  padding: 0 4px 12px 0;
  text-align: left;
}

.ms-ct__cornertext {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* 상품 머리(위 → 아래): 추천 배지 자리 + ✕ → 사진·짧은 이름 › → 적합도. 같은 줄의 칸이라 세 열 높이가 늘 같고,
   배지 자리(28px)·이름 두 줄 자리를 모든 열에 두어 사진·이름·적합도 위치도 맞는다 */
.ms-ct .ms-ct__head {
  vertical-align: top;
  padding: 0 2px 10px;
}

.ms-ct__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 28px;
}

/* 배지 자리는 줄어들지 않는다(추천 배지 눌리는 자리 44px 그대로) — 좁은 열에서는 ✕ 쪽이 남은 폭만 쓴다 */
.ms-ct__badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding-top: 16px;                            /* 배지 눌리는 자리(위로 8px 넘침)가 위 줄 ✕ 눌리는 자리와 겹치지 않게 */
}

/* 추천 배지(누르면 추천 이유 시트) — 눌리는 자리 44px(위아래 음수 여백으로 줄 높이는 그대로) */
.ms-ct__rec {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: var(--touch, 44px);
  min-height: var(--touch, 44px);
  margin: -8px 0;
  padding: 0;
  border-radius: var(--radius-sm, 0.5rem);
  background: transparent;
}

.ms-ct__rec .ms-rec__badge {
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
}

/* 오른쪽 위 작은 ✕(회색 원 24px) — 눌리는 자리 44px(칸 안쪽 여백까지 써서 표 밖으로 나가지 않게) */
.ms-ct__remove {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--touch, 44px);
  height: var(--touch, 44px);
  margin: -8px -2px -8px auto;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-ct__x {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--muted, #f6eff2);            /* ✕ 회색 #75636d 4.93(비글자 3:1 이상) */
}

.ms-ct__x .ms-ico {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.ms-ct__remove:hover .ms-ct__x,
.ms-ct__remove:active .ms-ct__x {
  background: var(--soft-hover, #ffe3ee);
}

/* 10차 추가(2026-10-11 대표 결정): ✕ 눌리는 자리 44 × 44 — 맨 위 줄에 혼자 두고 추천 배지는 그 아래 줄(.ms-ct__badge)이라 겹치지 않는다 */
.ms-ct__top .ms-ct__remove {
  justify-content: flex-end;
  padding-right: 8px;
}

/* 전체 사양 비교로 가는 버튼(흰 바탕 · 주색 테두리 · 폭 가득) */
.s4-specgo {
  margin-top: 4px;
}

/* 사진 + 짧은 이름 ›(상품 상세 링크 하나) — 이름은 14px 700 두 줄 자리 고정(한 줄 이름도 같은 높이) */
.ms-ct__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: var(--touch, 44px);
  padding: 2px 0;
  border-radius: var(--radius-md, 0.75rem);
  color: var(--ink, var(--foreground, #342a34));
  text-decoration: none;
}

.ms-ct__link:hover .ms-ct__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-ct__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  min-height: calc(2 * 1.3em);
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ms-ct__chev {
  margin-left: 2px;
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* 짧은 이름이 없는 상품(대신 모델명): 앞부분만 한 줄 말줄임 · 끝 기호는 다음 줄에 늘 */
.ms-sname__head {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 적합도 "N개 중 M개" 13px 600: 모두 맞음 초록 · 어긋남 있음 빨강 · 그 밖 노랑 · 답 전 회색 */
.ms-ct__fit {
  margin: 4px 0 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ms-ct__fit--ok { color: var(--ok, #0f766e); }              /* 흰 5.47 */
.ms-ct__fit--check { color: var(--check, #8a650f); }        /* 흰 5.32 */
.ms-ct__fit--mismatch { color: var(--mismatch, #b42318); }  /* 흰 6.57 */
.ms-ct__fit--none { font-weight: 500; color: var(--gray, var(--muted-foreground, #75636d)); }

/* 왼쪽 열: 항목 이름 14px 700 + 그 아래 작은 회색 = 관련 우리 집 조건(12px 500) */
.ms-ct .ms-ct__c0 {
  padding: 12px 4px 12px 0;
  text-align: left;
}

.ms-ct__item {
  display: block;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, var(--foreground, #342a34));
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ms-ct__mine {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--gray, var(--muted-foreground, #75636d));
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 칸: 판정 원 + 그 아래 짧은 값 하나(13px 500 — 두 줄 안). 칸 전체가 버튼(그 항목 설명 시트) */
.ms-ct__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 8px 2px;
  border-radius: var(--radius-sm, 0.5rem);
  background: transparent;
  color: var(--ink, var(--foreground, #342a34));
  font: inherit;
}

.ms-ct__cell--val,
.ms-ct__cell--static {
  min-height: 52px;
}

button.ms-ct__cell:hover,
button.ms-ct__cell:active {
  background: var(--soft-hover, #ffe3ee);
}

.ms-ct__val {
  display: block;
  max-width: 100%;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink, var(--foreground, #342a34));
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ms-ct__allsame {
  margin: 0;
  padding: 16px 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* ---------- 10차 판정 원(U.verdictCircle — 맞음 ✓ · 확인 필요 ? · 어긋남 ✕, 원 안은 흰 표시) ----------
 * 흰 표시 대비: #0f766e 5.47 · #8a650f 5.32 · #b42318 6.57(tools/contrast.js). 원은 aria-hidden — 뜻은 칸의 sr-only 글자와 범례 글자가 전한다 */
.ms-vcircle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--on-dark, #ffffff);
}

.ms-vcircle--ok { background: var(--ok, #0f766e); }
.ms-vcircle--check { background: var(--check, #8a650f); }
.ms-vcircle--mismatch { background: var(--mismatch, #b42318); }

.ms-vcircle__ico {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* 물음표는 획이 작아(circle-help 안쪽 획) 더 크게 그린다 — ✓·✕ 와 눈에 보이는 크기를 맞춤 */
.ms-vcircle--check .ms-vcircle__ico {
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
}

/* 범례용 작은 점 */
.ms-vcircle--dot {
  width: 10px;
  height: 10px;
}

/* ---------- 10차 판매처 고정 줄(U.compareDock — 비교 탭, U.shell dock → .ms-dock 안 하단 탭 바로 위) ----------
 * 표와 같은 열 격자(왼쪽 90px + 상품 열 같은 폭 — 버튼은 좌우 2px 안쪽). 왼쪽 열은 회색 두 줄 "최저가" / "누르면 판매처로"(확인일은 시트 첫 줄).
 * 가격 버튼: 큰 "24.9만원~"(숫자 글꼴 800) + 작은 "판매처 ↗"(12px 600 + 아이콘). 추천 상품만 주색 채움(흰 글자 5.34), 나머지 흰 바탕 + 주색 테두리(주색 글자 5.34),
 * 30일 넘은 가격·판매처 없음은 회색(#75636d on #f6eff2 4.93). .ms-dock 은 바닥글 뒤에 있어 페이지 끝에서는 마지막 표 줄·범례·안내를 가리지 않는다 */
/* 10차 추가(2026-10-11): 하단 판매처 고정 줄(.ms-cmpdock)을 없애고 가격 버튼을 비교표 맨 아랫줄(.ms-ct__row--price)로 옮겼다 */
.ms-ct__row--price td {
  padding-top: 8px;
}

.ms-cmpdock__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  width: calc(100% - 4px);
  min-width: 0;
  min-height: 52px;
  margin: 0 2px;
  padding: 6px 2px;
  border: 1.5px solid var(--primary, #c72964);
  border-radius: var(--radius-md, 0.75rem);
  background: var(--card, #ffffff);
  color: var(--primary, #c72964);
  font: inherit;
}

.ms-cmpdock__btn .ms-cmpdock__price {
  display: block;
  max-width: 100%;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: inherit;
}

.ms-cmpdock__go {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
}

.ms-cmpdock__ico {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.ms-cmpdock__btn.is-rec {
  background: var(--primary, #c72964);
  color: var(--primary-foreground, #ffffff);
}

.ms-cmpdock__btn:hover {
  background: var(--pink-soft, #fff0f5);
}

.ms-cmpdock__btn.is-rec:hover {
  background: var(--primary-hover, #b2255a);
}

.ms-cmpdock__btn.is-stale,
.ms-cmpdock__btn.is-none,
.ms-cmpdock__btn.is-stale:hover,
.ms-cmpdock__btn.is-none:hover {
  border-color: var(--chip-line-strong, #cdbfc7);
  background: var(--muted, #f6eff2);
  color: var(--gray, var(--muted-foreground, #75636d));
}

@container frame (min-width: 390px) {
  .ms-cmpdock__btn .ms-cmpdock__price {
    font-size: var(--fs-15, 0.9375rem);
  }
}

/* 판매처 고정 줄이 있는 화면에서는 토스트(하단 탭 위 96px)를 고정 줄 위로 올린다 — 가격 버튼을 가리지 않게 */

/* ---------- 10차 같은 품목 4개째 담기 시트(MS.compare.add — 뺄 상품 고르기) ---------- */
.ms-cmpfull__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ms-cmpfull__pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--chip-line, #e3d8de);
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
  color: var(--ink, var(--foreground, #342a34));
  text-align: left;
}

.ms-cmpfull__pick:hover {
  background: var(--pink-soft, #fff0f5);
}

.ms-cmpfull__name {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 700;
  line-height: 1.35;
}

.ms-cmpfull__brand {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-cmpfull__go {
  flex: none;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
  color: var(--primary, #c72964);
}

/* ---------- 4.20 → 10차 판매처 시트(앱 전체 하나 — U.sellerSheetBody) ----------
 * 확인일 한 줄(회색) → 판매처 줄(가격 낮은 순): 판매처 이름 + 회색 테두리 「제휴」 / 배송 정보 한 줄 · 오른쪽 가격(주색 굵게) + "판매처로 ↗"
 * → 쿠팡 줄 바로 아래 쿠팡 고지(원문) → 맨 아래 회색 상자 제휴 고지(예전 이동 기록 안내 한 줄은 뺐다) */
.ms-offers-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 확인일 한 줄 — 시트 머리(제목 줄) 바로 아래. 위로 당기면 머리 바탕이 글자 윗부분을 덮어 0 으로 둔다 */
.ms-offers__date {
  margin: 0;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-offers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-offer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--chip-line, #e3d8de);
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
  text-decoration: none;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-offer__link:hover {
  background: var(--pink-pale, #fff7fa);
}

.ms-offer__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ms-offer__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: var(--fs-16, 1rem);
  font-weight: 700;
  line-height: 1.3;
}

.ms-offer__ship {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-offer__right {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.ms-offer__price {
  font-family: var(--font-num);
  font-size: var(--fs-18, 1.125rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--primary, #c72964);              /* 흰 5.34 */
}

.ms-offer__link.is-stale .ms-offer__price {
  color: var(--price-stale, var(--gray, #75636d));
}

.ms-offer__stale {
  font-size: var(--fs-12, 0.75rem);
  font-weight: 600;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-offer__go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-offer__ico {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

/* 쿠팡 고지(원문 그대로): 쿠팡 줄 바로 아래 회색 한 줄 */
.ms-offer .ms-coupang {
  margin: 6px 2px 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* 맨 아래 회색 상자 — 제휴 고지(D.copy.affiliateFee) */
.ms-offers__fee {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md, 0.75rem);
  background: var(--muted, #f6eff2);
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--gray, var(--muted-foreground, #75636d));   /* #f6eff2 위 4.93 */
  word-break: keep-all;
}

/* ---------- 4.21 광고 자리(회색 테두리 — 추천 배지와 다른 모양) ---------- */
.ms-adslot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--ad-border, #8f7d89);
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
}

.ms-adslot .ms-tag--ad {
  gap: 4px;
  height: 22px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--ad-border, #8f7d89);
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--card, #ffffff);
  color: var(--ad-fg, var(--gray, #75636d));
  font-size: var(--fs-12, 0.75rem);
  font-weight: 600;
  line-height: 1;
}

.ms-adslot__text {
  margin: 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--ad-fg, var(--gray, #75636d));
}

/* ---------- 4.23 항목 줄(U.needRow — 마이 준비 현황) ---------- */

.ms-needs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 틀: 상자 | 글 | 태그 — 추천 한 줄은 아래 줄 전체 폭 */
.ms-need__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 2px 10px;
  min-height: 56px;
  padding: 10px;
  border: 1px solid var(--border, #f0dfe7);
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
  text-decoration: none;
  color: var(--ink, var(--foreground, #342a34));
}

.ms-need__t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ms-need__title {
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
  line-height: 1.45;
}

.ms-need__line,
.ms-need__rec {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* 추천 한 줄(브리프 A-3 원문 "맘스토어 추천: 예시브랜드 가 · 29,900원"): 글자 라벨(콜론) + 상표 + 가격 — 줄 전체 폭.
 * 원문 문장은 한 줄에 통째로 둔다(각 조각 nowrap · 상표만 아주 길면 말줄임). 확인일(규칙 F — 가격엔 확인일)은 문장 뒤에 붙고
 * 자리가 없으면(360 에서는 늘) 혼자 다음 줄 오른쪽으로 내려간다 — 원문 문장이 중간에 끊기지 않는다. "부터"는 낭독기에만(가이드·카드 가격 줄에 그대로 있다). */
.ms-need__rec {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  min-width: 0;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #f0dfe7);
  color: var(--ink, var(--foreground, #342a34));
  line-height: 1.4;
}

.ms-need__reclabel {
  flex: none;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 600;
  color: var(--primary, #c72964);
  white-space: nowrap;
}

.ms-need__recname {
  flex: 0 1 auto;
  min-width: 3.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  white-space: nowrap;
}

/* 가격 묶음은 조각(점 · 숫자 · 확인일)을 줄 틀에 바로 올린다 — 숫자는 문장에 붙고 확인일만 따로 내려갈 수 있게 */
.ms-need__recprice,
.ms-need__rec .ms-price--inline {
  display: contents;
}

.ms-need__recsep {
  flex: none;
  margin: 0 -2px;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* 가격 숫자 14px/700("원"이 한글이라 13px 이면 3.2 의 굵기 600 제한에 걸린다 — 16/800 큰 가격은 카드·상세에만) */
.ms-need__rec .ms-price__num {
  flex: none;
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
  white-space: nowrap;
}

/* "부터"는 낭독기에만(.sr-only 와 같은 방식) · 가격 안 점은 줄의 점(.ms-need__recsep)이 대신한다 */
.ms-need__rec .ms-price__from {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ms-need__rec .ms-price__sep {
  display: none;
}

.ms-need__rec .ms-price__meta {
  flex: none;
  margin-left: auto;
  font-size: var(--fs-12, 0.75rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-need__rec .ms-tag--stale {
  flex: none;
}

.ms-need .ms-tag {
  flex: none;
  margin-top: 2px;
}

/* ---------- 4.24 → 7차 하단 탭 5개(SPEC 3.1): 맘스토어 · 비교 · 홈 · 맘맵 · 마이 ----------
 * 선택 = 주색 아이콘·글씨(+ 위쪽 짧은 막대 — components.css) · 나머지 회색. 비교 탭 배지 = 주색 바탕 흰 숫자(숫자만이라 굵게 — 한글 없음) */
.ms-tab {
  min-height: 60px;
  gap: 3px;
  padding: 4px 0 2px;
}

.ms-tab__ico {
  position: relative;
  display: inline-flex;
}

.ms-tab .ms-ico {
  width: 24px;
  height: 24px;
}

.ms-tab__label {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.ms-tab[aria-current="page"] .ms-tab__label {
  font-weight: 600;
}

.ms-tab__badge {
  position: absolute;
  top: -6px;
  left: calc(100% - 8px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill, 999px);
  background: var(--primary, #c72964);   /* 흰 숫자 5.34 */
  color: var(--primary-foreground, #ffffff);
  font-family: var(--font-num);
  font-size: var(--fs-11, 0.6875rem);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--card, #ffffff);
}

/* ---------- 4.25 비회원 안내 한 줄 ---------- */
.ms-gnote {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md, 0.75rem);
  background: var(--muted, #f6eff2);
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

/* ---------- 4.27 가이드 카드 2종 ---------- */
.ms-why .ms-scard__head {
  flex-wrap: wrap;
  gap: 6px;
}

.ms-why__text {
  margin: 0;
  font-size: var(--fs-15, 0.9375rem);
  line-height: 1.6;
  word-break: keep-all;
}

.ms-why__src {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground, #75636d));
}

.ms-why__ico {
  flex: none;
  width: 14px;
  height: 14px;
}

.ms-crits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-crit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ms-crit__t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ms-crit__title {
  font-size: var(--fs-14, 0.875rem);
  font-weight: 700;
  line-height: 1.45;
}

.ms-crit__line {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray, var(--muted-foreground, #75636d));
  word-break: keep-all;
}

.ms-crits--full {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #f0dfe7);
}

/* ---------- 상품 줄(검색 목록)의 가격 한 줄 ---------- */
.ms-pline .ms-price--card {
  margin-top: 4px;
}

/* =====================================================================
 * 7차(SPEC 10절 — 맘맵 추가 + 맘스토어 탭 재구성) 공용 부품. js/ui.js 의 7차 부품과 짝.
 * 화면 배치(여백·격자·줄 배치)는 각 화면 css(s3 · s4 · s10 …). 여기는 모양만.
 * 칩 원칙(브리프 공통 디자인): 선택된 칩 = 잉크 바탕 + 흰 글씨 · 기본 칩 = 흰 바탕 + 연한 회색 테두리.
 * 14px 미만 한글은 400～600 · 누르는 곳 44px 이상 · 글자 대비 AA(값은 tokens.css 주석).
 * ===================================================================== */

/* ---------- 칩: 기존 .ms-chip 도 7차 칩 원칙으로(선택 = 잉크 바탕 흰 글씨, ✓ 기호 없음) ---------- */
.ms-chip {
  border-color: var(--chip-line, #e3d8de);
  font-weight: 500;
}

.ms-chip[aria-pressed="true"],
.ms-chip[aria-current="page"],
.ms-chip[aria-checked="true"] {
  border-color: var(--ink, #342a34);
  background: var(--ink, #342a34);           /* 흰 글씨 13.75 */
  color: var(--on-dark, #ffffff);
  font-weight: 600;
}

.ms-chip[aria-pressed="true"]::before,
.ms-chip[aria-current="page"]::before,
.ms-chip[aria-checked="true"]::before {
  content: none;
}

/* 알약 칩(새 화면용 — 품목 칩 줄 ichip · 분류 시트 kchip · 맘맵 분류 칩 · [지도 | 목록]): <a class="ms-pchip"> 또는 <button class="ms-pchip">
 * 선택 = aria-current="true"|"page" · aria-pressed="true" · .is-on. 변형: --strong(현재 시기 품목 — 진하게) · --faint(다른 시기 품목 — 연하게, 누를 수 있음)
 * 점: <span class="ms-pchip__dot" aria-hidden="true"></span>(지금 준비할 품목 — 분홍 6px, 장식) · 맘맵 분류 점은 --dot 색을 바꿔 쓴다(style="--dot: …") */
.ms-pchip {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch, 44px);
  padding: 0 16px;
  border: 1px solid var(--chip-line, #e3d8de);
  border-radius: var(--radius-pill, 999px);
  background: var(--card, #ffffff);
  color: var(--ink, #342a34);
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.ms-pchip[aria-current="true"],
.ms-pchip[aria-current="page"],
.ms-pchip[aria-pressed="true"],
.ms-pchip.is-on {
  border-color: var(--ink, #342a34);
  background: var(--ink, #342a34);           /* 흰 글씨 13.75 */
  color: var(--on-dark, #ffffff);
  font-weight: 600;
}

.ms-pchip--strong:not([aria-current]):not(.is-on) {
  border-color: var(--chip-line-strong, #cdbfc7);
  font-weight: 600;
}

.ms-pchip--faint:not([aria-current]):not(.is-on) {
  border-color: var(--chip-line-faint, #efe8ec);
  color: var(--gray, #75636d);               /* 흰 5.58 */
  font-weight: 400;
}

.ms-pchip__dot {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--brand, #ef6195));   /* 장식 */
}

.ms-pchip--sm {
  padding: 0 14px;
  font-size: var(--fs-14, 0.875rem);
}

/* ---------- 맘스토어 위쪽 작은 탭(SPEC 4.1 ②): <nav class="ms-subtabs"> 링크 3개 — 같은 폭, 선택 = 잉크 굵은 글씨 + 주색 밑줄 3px ---------- */
.ms-subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft, #f1e9ed);
}

.ms-subtabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--gray, #75636d);               /* 흰 5.58 */
  font-size: var(--fs-16, 1rem);
  font-weight: 500;
  text-decoration: none;
}

.ms-subtabs a[aria-current="page"] {
  color: var(--ink, #342a34);
  font-weight: 700;
}

.ms-subtabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--primary, #c72964);       /* 뜻 있는 선 — 흰 5.34 */
}

/* ---------- 품목 칩 줄(SPEC 4.1 ③): .ms-ichips > .ms-ichips__scroll(가로 스크롤, 칩 = .ms-pchip) + .ms-ichips__all(▾ 붙박이) ----------
 * 화면 가장자리까지 스크롤을 붙이려면 화면 css 에서 .ms-ichips 에 margin: 0 -16px 와 .ms-ichips__scroll 에 padding-left: 16px 를 준다 */
.ms-ichips {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.ms-ichips__scroll {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  /* 위아래 5px: 초점 윤곽선(2px + 틈 2px)이 가로 스크롤 상자에 잘리지 않게. 늘린 3px 은 음수 여백으로 되돌려 줄 높이는 그대로 */
  margin: -3px 0;
  padding: 5px 8px 5px 0;
  scrollbar-width: none;
  scroll-padding-left: 16px;
}

.ms-ichips__scroll::-webkit-scrollbar {
  display: none;
}

.ms-ichips__all {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--touch, 44px);
  height: var(--touch, 44px);
  border-radius: var(--radius-pill, 999px);
  background: var(--card, #ffffff);
  color: var(--ink, #342a34);
}

/* 왼쪽 흰 그라데이션 그림자 — 칩이 ▾ 밑으로 지나가는 것처럼(장식) */
.ms-ichips__all::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 24px;
  background: linear-gradient(to right, rgb(255 255 255 / 0), var(--card, #ffffff));
  pointer-events: none;
}

.ms-ichips__all .ms-ico {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* ---------- 조건 칸(U.condBox — 우리 집 조건 #cbox · 외출 조건 #obox) ---------- */
.ms-cbox {
  padding: 14px 16px 16px;
  border: 1px solid var(--chip-line, #e3d8de);
  border-radius: var(--radius-tile, 1rem);
  background: var(--card, #ffffff);
}

.ms-cbox.is-open {
  border: 1.5px solid var(--ink, #342a34);
  padding-bottom: 8px;
}

.ms-cbox__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ms-cbox__label {
  margin: 0;
  flex: none;
  font-size: var(--fs-16, 1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, #342a34);
  white-space: nowrap;
}

.ms-cbox__count {
  margin: 0;
  min-width: 0;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, #75636d);               /* 흰 5.58 */
  white-space: nowrap;
}

.ms-cbox__otitle {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: var(--fs-17, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink, #342a34);
}

/* [편집 ▾] · [접기 ▴](10차: "고치기" → "편집"): 주색 글씨 15px 700 — 줄 높이는 늘리지 않고 누르는 곳만 44px(위아래 음수 여백) */
.ms-cbox__edit {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
  min-height: var(--touch, 44px);
  margin: -10px -8px -10px auto;
  padding: 0 8px;
  border-radius: var(--radius-md, 0.75rem);
  color: var(--primary, #c72964);            /* 흰 5.34 */
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 700;
  white-space: nowrap;
}

.ms-cbox__chev {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.ms-cbox__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.ms-cbox__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  /* 좌우 8px · 자간 -0.01em: 접힌 칸의 칩 네 개(예 엘리베이터 없음 · 경차 · 평지 위주 · 현관 계단 ?)가 360px 에서 한 줄에 들어가게(참고 그림) */
  padding: 4px 8px;
  border-radius: var(--radius-sm, 0.5rem);
  background: var(--chip-fill, #f6eff2);     /* 잉크 12.15 */
  color: var(--ink, #342a34);
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* 아직 답하지 않은 조건 — 노란 칩(--check-bg 바탕 --check 글씨 4.97) */
.ms-cbox__chip--q {
  background: var(--check-bg, #fff7df);
  color: var(--check, #8a650f);
  font-weight: 600;
}

/* 맘맵 한 줄형: "외출 조건 [아빠와] [유모차 있음]  편집 ▾" */
.ms-cbox--inline:not(.is-open) {
  padding: 8px 12px 8px 16px;
}

.ms-cbox__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.ms-cbox--inline .ms-cbox__chips {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.ms-cbox--inline .ms-cbox__edit {
  margin: 0 -4px 0 auto;
}

/* 펼친 판 */
.ms-cbox__panel {
  margin-top: 2px;
}

.ms-cbox__sub {
  margin: 0 0 4px;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray, #75636d);               /* 흰 5.58 */
}

.ms-cq {
  padding: 14px 0 10px;
  border-top: 1px solid var(--line-soft, #f1e9ed);
}

.ms-cbox__sub + .ms-cq {
  margin-top: 10px;
}

.ms-cq__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ms-cq__name {
  margin: 0;
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink, #342a34);
}

.ms-cq__just {
  margin: 0;
  flex: none;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 600;
  color: var(--ok, #0f766e);                 /* 흰 5.47 */
  white-space: nowrap;
}

/* 같은 폭 버튼: 2개 = 2칸 · 3개 = 3칸 · 4개 = 2×2 · 5개 = 3 + 2 · 6개 = 3×2 */
.ms-cq__opts {
  display: grid;
  gap: 8px;
}

.ms-cq__opts--n1 { grid-template-columns: minmax(0, 1fr); }
.ms-cq__opts--n2,
.ms-cq__opts--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ms-cq__opts--n3,
.ms-cq__opts--n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-cq__opts--n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ms-cq__opts--n5 .ms-cq__opt { grid-column: span 2; }
.ms-cq__opts--n5 .ms-cq__opt:nth-child(n + 4) { grid-column: span 3; }

.ms-cq__opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--touch-main, 48px);
  padding: 6px 8px;
  border: 1px solid var(--chip-line, #e3d8de);
  border-radius: var(--radius-md, 0.75rem);
  background: var(--card, #ffffff);
  color: var(--ink, #342a34);
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
}

.ms-cq__opt[aria-pressed="true"] {
  border-color: var(--ink, #342a34);
  background: var(--ink, #342a34);           /* 흰 글씨 13.75 */
  color: var(--on-dark, #ffffff);
  font-weight: 600;
}

/* ---------- 초록 안내 띠(U.reorderBand — #reorder-band · #map-reorder-band, 4초 뒤 사라짐) ---------- */
.ms-band {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-md, 0.75rem);
  background: var(--ok-bg, #e6f7f3);
  color: var(--ok, #0f766e);                 /* 4.94 */
  font-size: var(--fs-15, 0.9375rem);
  font-weight: 600;
  line-height: 1.4;
  animation: ms-band-in var(--motion-base, 200ms) ease-out;
}

.ms-band__ico {
  flex: none;
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

@keyframes ms-band-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-band { animation: none; }
}

/* ---------- 판정 배지(U.verdictBadge — 맞음 · 확인 필요 · 어긋남, 연한 바탕 + 그 색 글씨) ---------- */
.ms-vbadge {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.ms-vbadge--ok { background: var(--ok-bg, #e6f7f3); color: var(--ok, #0f766e); }                     /* 4.94 */
.ms-vbadge--check { background: var(--check-bg, #fff7df); color: var(--check, #8a650f); }             /* 4.97 */
.ms-vbadge--mismatch { background: var(--mismatch-bg, #fdeceb); color: var(--mismatch, #b42318); }   /* 5.75 */

/* ---------- 목록 한 줄 가격(U.priceShort — "24.9만원부터 · 3/12 확인") ---------- */
.ms-price--row {
  display: block;
  line-height: 1.45;
}

.ms-price--row .ms-price__num,
.ms-price--row .ms-price__from {
  font-size: var(--fs-17, 1.0625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #342a34);
}

.ms-price--row .ms-price__from {
  margin-left: 0;
}

.ms-price--row .ms-price__sep,
.ms-price--row .ms-price__meta {
  font-size: var(--fs-13, 0.8125rem);
  font-weight: 500;
  color: var(--gray, #75636d);
}

.ms-price--row .ms-price__meta {
  display: inline;
}

.ms-price--row.ms-price--stale .ms-price__num,
.ms-price--row.ms-price--stale .ms-price__from {
  color: var(--price-stale, var(--gray, #75636d));
}

.ms-price--row .ms-tag--stale {
  margin-left: 6px;
  vertical-align: 2px;
}

.ms-price--row.ms-price--none {
  font-size: var(--fs-14, 0.875rem);
  font-weight: 500;
  color: var(--gray, #75636d);
}

/* ---------- 상품 그림 자리(U.productArt — 둥근 정사각 16px · 틴트 바탕 · 진한 선 + 아주 연한 면, aria-hidden) ---------- */
.ms-part {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--part-size, 96px);
  height: var(--part-size, 96px);
  border-radius: var(--radius-tile, 1rem);
  background: var(--pink-soft, #fff0f5);
  color: var(--pink-ink, #c72964);
}

.ms-part .ms-part__ico {
  width: 54%;
  height: 54%;
  fill: none;
  stroke-width: 1.9;
}

.ms-part .ms-ico__f {
  fill: currentColor;
  fill-opacity: 0.16;
}

.ms-part--pink { background: var(--pink-soft, #fff0f5); color: var(--pink-ink, #c72964); }
.ms-part--lav { background: var(--lav, #f4efff); color: var(--lav-ink, #553a9e); }
.ms-part--mint { background: var(--mint, #eefaf5); color: var(--mint-ink, #0f766e); }
.ms-part--peach { background: var(--peach, #fff3ec); color: var(--peach-ink, #a24a17); }
.ms-part--cream { background: var(--cream, #fff8dc); color: var(--cream-ink, #8a650f); }
.ms-part--sky { background: var(--sky, #e8f4fb); color: var(--sky-ink, #0b6a9a); }

/* =====================================================================
   8차(SPEC 13 — 카카오로 시작하기 단일 가입) · 7차 홈 v2(SPEC 5.1-1) 공용 부품 — PATCH 단계
   ===================================================================== */

/* ---------- [카카오로 시작하기](U.kakaoButton — .ms-kakao-btn): 카카오 로그인 디자인 가이드 모양 — 바탕 #FEE500 · 글자 검정 85% 16px/600 ·
   둥근 12px · 폭 가득 · 높이 52px · 왼쪽 검정 말풍선 심볼(장식). 카카오 로고 글자·이미지·글꼴은 쓰지 않는다(R25) ---------- */
.ms-kakao-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 52px;
  border: 0;
  border-radius: 12px;
  background: var(--kakao-bg, #fee500);
  color: var(--kakao-fg, rgba(0, 0, 0, 0.85));
  font-family: var(--font-sans);
  font-size: var(--fs-16, 1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ms-kakao-btn:hover {
  filter: brightness(0.97);
}

.ms-kakao-btn:active {
  filter: brightness(0.94);
}

/* 초점: 노란 면 밖으로 잉크 3px 윤곽선 + 3px 틈(어느 바탕에서도 보이게) */
.ms-kakao-btn:focus-visible {
  outline: 3px solid var(--ink, #342a34);
  outline-offset: 3px;
}

.ms-kakao-btn__sym {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  color: var(--kakao-sym, #000000);         /* 심볼은 순수 검정(가이드) — 글자만 85% 검정 */
  fill: var(--kakao-sym, #000000);
  stroke: none;
}

.ms-kakao-btn__label {
  color: var(--kakao-fg, rgba(0, 0, 0, 0.85));
}

/* 회원 전용 화면 안내(U.needLoginScreen): [카카오로 시작하기] + [먼저 둘러볼게요] 세로 쌓기 */
.ms-needlogin__acts {
  width: 100%;
  margin-top: 4px;
}

/* ---------- 머리글 오른쪽 아이콘 버튼(U.shell({ headerActions }) · U.headerIcon — 홈 검색·알림). 모바일 360 머리글에도 보인다 ---------- */
.ms-header__acts {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  margin-right: -10px;   /* 아이콘 선이 본문 오른쪽 여백(16px)에 맞게 — 버튼 안쪽 빈 곳만큼 당긴다 */
}

.ms-appbar .ms-header__acts {
  margin-left: auto;
  margin-right: 0;
}

.ms-hicon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink, #342a34);
  cursor: pointer;
}

.ms-hicon:hover {
  background: var(--muted, #f6eff2);
}

.ms-hicon .ms-hicon__ico {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* =====================================================================
   7차 통합: 상세·추천 시트·비교표가 함께 쓰는 "우리 집 조건" 줄(S4 가 s4.css 에 만든 것을 옮김 — 순서는 그대로 맨 뒤)
   ===================================================================== */
/* 조건마다 한 줄 — 상품 상세(.s4-fitrows)·추천 시트(U.recSheetBody .ms-fitrows--sheet) */
.ms-fitrows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-fitrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  padding: 12px 0;
}

.ms-fitrows > .ms-fitrow + .ms-fitrow {
  margin-top: 0;
  border-top: 1px solid var(--line-soft, #f1e9ed);
}

.ms-fitrows > .ms-fitrow:first-child {
  padding-top: 4px;
}

.ms-fitrow__text {
  min-width: 0;
}

/* 조건 이름 · 우리 집 답(회색 14px) */
.ms-fitrow__k {
  margin: 0;
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.45;
  color: var(--gray, var(--muted-foreground));
  word-break: keep-all;
}

.ms-fitrow__mine {
  color: var(--gray, var(--muted-foreground));
}

/* 상품 값(잉크 15px) */
.ms-fitrow__v {
  margin: 2px 0 0;
  font-size: var(--fs-15);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink, var(--foreground));
  word-break: keep-all;
}

.ms-fitrow__v--none {
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--gray, var(--muted-foreground));
}

.ms-fitrow .ms-vbadge {
  margin-top: 1px;
}

/* 추천 시트 안: 시트 여백에 맞춰 위아래만 조금 좁게 */
.ms-fitrows--sheet .ms-fitrow {
  padding: 10px 0;
}

