/* COMMISSION — Figma "COMMISSION 개선안", "COMMISSION 하위 / 분야별 크리에이터",
   "COMMISSION 하위 / 지정 커미션 프로필" (1920 · 740 · 360), 신청 양식(장바구니) 접힘 · 펼침
   탭 · 장식 줄 · 페이지 표시 · 보조/주 버튼은 components.css / worklist.css 를 쓴다. */

.cm-page {
  /* 변수에 연결되지 않은 시안 색 (측정값 그대로) */
  --cm-text: #262626;
  --cm-sub: #525252;
  --cm-muted: #A7A7A7;
  --cm-line: #CFCFCF;
  --cm-card: #F7F7F7;
  --cm-card-dim: #E8E8E8;
  --cm-photo: #D9D9D9;
}

.cm-section {
  display: flex;
  flex-direction: column;
  gap: calc(48 * var(--u));
  padding: calc(96 * var(--u)) var(--side);
  color: var(--cm-text);
}
.cm-section--profile { gap: calc(40 * var(--u)); }
html[data-bp="t"] .cm-section { gap: calc(36 * var(--u)); padding: calc(80 * var(--u)) var(--side); }
html[data-bp="m"] .cm-section { gap: calc(24 * var(--u)); padding: calc(48 * var(--u)) var(--side); }

/* ── 페이지 제목: 소제목 Regular 16 + 제목 Bold 64 / 36 / 20 ── */
.cm-head {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
}
.cm-eyebrow {
  font-weight: 400;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
  white-space: pre;
}
.cm-title {
  font-weight: 700;
  font-size: calc(64 * var(--u));
  line-height: calc(76 * var(--u));
}
html[data-bp="t"] .cm-eyebrow { line-height: calc(23 * var(--u)); }
html[data-bp="t"] .cm-title { font-size: calc(36 * var(--u)); line-height: calc(52 * var(--u)); }
html[data-bp="m"] .cm-head { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-eyebrow { font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .cm-title { font-size: calc(20 * var(--u)); line-height: calc(29 * var(--u)); }

/* 쌍별 장식 (deco_star_double_dark.png 22×34) */
.cm-deco {
  flex: none;
  width: calc(22 * var(--u));
  height: calc(34 * var(--u));
}
html[data-bp="t"] .cm-deco { width: calc(15.69 * var(--u)); height: calc(24.25 * var(--u)); }
html[data-bp="m"] .cm-deco { width: calc(8.44 * var(--u)); height: calc(13.05 * var(--u)); }

.cm-back { align-self: flex-start; }

/* ════════════════════════════════════════════════════════
   COMMISSION 본 화면
   ════════════════════════════════════════════════════════ */

/* 커미션 진행 안내 */
.cm-guide {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
}
.cm-guide__q {
  font-weight: 500;
  font-size: calc(24 * var(--u));
  line-height: calc(29 * var(--u));
  color: var(--cm-muted);
}
.cm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(32 * var(--u));
}
.cm-step {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--u));
  padding: calc(24 * var(--u));
  border: calc(1 * var(--u)) solid var(--cm-line);
  border-radius: calc(10 * var(--u));
  background: var(--cm-card);
}
.cm-step__title {
  font-weight: 700;
  font-size: calc(24 * var(--u));
  line-height: calc(29 * var(--u));
  white-space: pre;
}
.cm-step__desc {
  font-weight: 400;
  font-size: calc(17 * var(--u));
  line-height: calc(20 * var(--u));
  color: var(--cm-sub);
}

html[data-bp="t"] .cm-guide { gap: calc(16 * var(--u)); }
html[data-bp="t"] .cm-guide__q { font-size: calc(18 * var(--u)); line-height: calc(26 * var(--u)); }
html[data-bp="t"] .cm-steps { grid-template-columns: minmax(0, 1fr); gap: calc(16 * var(--u)); }
html[data-bp="t"] .cm-step { padding: calc(14 * var(--u)); }
html[data-bp="t"] .cm-step__title { font-size: calc(18 * var(--u)); line-height: calc(26 * var(--u)); }
html[data-bp="t"] .cm-step__desc { font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); }

html[data-bp="m"] .cm-guide { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-guide__q { font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); }
html[data-bp="m"] .cm-steps { grid-template-columns: minmax(0, 1fr); gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-step { gap: calc(8 * var(--u)); padding: calc(14 * var(--u)) calc(12 * var(--u)); }
html[data-bp="m"] .cm-step__title { font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); }
html[data-bp="m"] .cm-step__desc { font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }

/* 발주 방식 선택: 카드 2개 (784 / 330 / 320) */
.cm-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(32 * var(--u));
}
.cm-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: calc(1 * var(--u)) solid var(--cm-line);
  border-radius: calc(10 * var(--u));
  overflow: hidden;
}
.cm-choice__visual {
  flex: none;
  height: calc(300 * var(--u));
  background: var(--cm-photo);
}
.cm-choice__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 준비 중 카드: 사진 자리에 검정 70% */
.cm-choice--soon .cm-choice__visual { background: rgba(0, 0, 0, 0.7); }
.cm-choice__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(20 * var(--u));
  padding: calc(32 * var(--u));
  background: var(--cm-card);
}
.cm-choice--soon .cm-choice__info { background: var(--cm-card-dim); }
.cm-choice__title {
  font-weight: 700;
  font-size: calc(36 * var(--u));
  line-height: calc(43 * var(--u));
}
.cm-choice__desc {
  font-weight: 400;
  font-size: calc(20 * var(--u));
  line-height: calc(24 * var(--u));
  color: var(--cm-sub);
}
/* "서비스 준비 중": 옆 카드의 버튼 높이만큼 자리를 두고 아래에 붙인다 */
.cm-choice__soon {
  display: flex;
  flex: 1;
  align-items: flex-end;
  min-height: calc(36 * var(--u));
  font-weight: 400;
  font-size: calc(18 * var(--u));
  line-height: calc(21 * var(--u));
}

/* 카드 전체를 누를 수 있다: 카드 안 버튼(링크)의 누르는 영역을 카드 전체로 넓힌다 (2026-11-23 사용자 요청).
   링크는 그대로 하나뿐이라 키보드 · 화면 낭독기에는 달라지는 것이 없다. "준비 중" 카드에는 링크가 없어 눌리지 않는다.
   마우스를 올리면 사진이 살짝 커진다 (COMMISSION 목록의 카드와 같은 움직임) */
.cm-choice { position: relative; }
.cm-choice .v2-btn-secondary::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) {
  .cm-choice__visual img { transition: transform 0.3s ease; }
  .cm-choice:hover .cm-choice__visual img { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .cm-choice__visual img { transition: none; } }

html[data-bp="t"] .cm-choices { gap: calc(16 * var(--u)); }
html[data-bp="t"] .cm-choice__visual { height: calc(126 * var(--u)); }
html[data-bp="t"] .cm-choice__info { gap: calc(16 * var(--u)); padding: calc(19 * var(--u)) calc(18 * var(--u)); }
html[data-bp="t"] .cm-choice__title { font-size: calc(26 * var(--u)); line-height: calc(38 * var(--u)); }
html[data-bp="t"] .cm-choice__desc { font-size: calc(16 * var(--u)); line-height: calc(23 * var(--u)); }
html[data-bp="t"] .cm-choice__soon { min-height: calc(32 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); }

html[data-bp="m"] .cm-choices { grid-template-columns: minmax(0, 1fr); gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-choice__visual { height: calc(122 * var(--u)); }
html[data-bp="m"] .cm-choice__info { gap: calc(8 * var(--u)); padding: calc(14 * var(--u)) calc(11 * var(--u)); }
html[data-bp="m"] .cm-choice__title { font-size: calc(20 * var(--u)); line-height: calc(29 * var(--u)); }
html[data-bp="m"] .cm-choice__desc { font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .cm-choice__soon { flex: none; min-height: calc(23 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }

/* ════════════════════════════════════════════════════════
   분야별 크리에이터
   ════════════════════════════════════════════════════════ */

/* 분야 탭: 간격 40 / 24 / 16, 선택 안 된 탭도 기본 글자색 (굵기로만 구분) */
.cm-page .v2-tabs { gap: calc(40 * var(--u)); }
.cm-page .v2-tab { color: var(--color-text-default); }
html[data-bp="t"] .cm-page .v2-tabs { gap: calc(24 * var(--u)); }
html[data-bp="t"] .cm-page .v2-tab { line-height: calc(26 * var(--u)); }
html[data-bp="t"] .cm-page .v2-ornament { height: calc(19.09 * var(--u)); }
html[data-bp="m"] .cm-page .v2-tabs { gap: calc(16 * var(--u)); }
html[data-bp="m"] .cm-page .v2-tab { line-height: calc(19 * var(--u)); }

/* 3열 × 3행 = 한 페이지 9명 (512×3 + 32×2 = 1600). 열 수 고정 그리드 */
.cm-creators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: calc(36 * var(--u)) calc(32 * var(--u));
  width: 100%;
}
.cm-creators > .v2-notice { grid-column: 1 / -1; }

.cm-creator {
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--u));
  min-width: 0;
}
.cm-creator__image {
  display: block;
  height: calc(250 * var(--u));
  border-radius: calc(10 * var(--u));
  background: var(--cm-photo);
  overflow: hidden;
}
.cm-creator__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-creator__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--u));
}
.cm-creator__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(6 * var(--u));
  min-width: 0;
}
.cm-creator__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: calc(24 * var(--u));
  line-height: calc(29 * var(--u));
}
.cm-creator__field {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
}
@media (hover: hover) {
  .cm-creator__image img { transition: transform 0.3s ease; }
  .cm-creator:hover .cm-creator__image img { transform: scale(1.03); }
}

/* 소셜 링크: 지름 32 아이콘 + 바깥 2px 테두리 */
.cm-social {
  display: flex;
  flex: none;
  gap: calc(20 * var(--u));
}
.cm-social__link {
  position: relative;
  display: block;
  width: calc(32 * var(--u));
  height: calc(32 * var(--u));
  border-radius: 50%;
  box-shadow: 0 0 0 calc(2 * var(--u)) #EAEAEA;
}
.cm-social__link img { width: 100%; height: 100%; border-radius: 50%; }
/* 눌리는 영역 44 */
.cm-social__link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  transform: translate(-50%, -50%);
}
html[data-bp="t"] .cm-social { gap: calc(15.24 * var(--u)); }
html[data-bp="t"] .cm-social__link {
  width: calc(24.38 * var(--u));
  height: calc(24.38 * var(--u));
  box-shadow: 0 0 0 calc(1.52 * var(--u)) #EAEAEA;
}
html[data-bp="m"] .cm-social { gap: calc(11.9 * var(--u)); }
html[data-bp="m"] .cm-social__link {
  width: calc(19.05 * var(--u));
  height: calc(19.05 * var(--u));
  box-shadow: 0 0 0 calc(1.19 * var(--u)) #EAEAEA;
}
/* 740 · 360: 아이콘 간격이 좁아 가로로는 이웃과 겹치지 않을 만큼만 넓힌다 */
html:not([data-bp="d"]) .cm-social__link::after { width: 100%; }

/* 740: 2열 × 4행 */
html[data-bp="t"] .cm-creators {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(24 * var(--u));
}
html[data-bp="t"] .cm-creator__image { height: calc(159.18 * var(--u)); border-radius: calc(6.37 * var(--u)); }
html[data-bp="t"] .cm-creator__name { font-size: calc(18 * var(--u)); line-height: calc(26 * var(--u)); }
html[data-bp="t"] .cm-creator__field { font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); }

/* 360: 2열 × 4행, 소셜 링크는 이름 아래 오른쪽 */
html[data-bp="m"] .cm-creators {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(16 * var(--u));
}
html[data-bp="m"] .cm-creator { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-creator__image { height: calc(74.22 * var(--u)); border-radius: calc(2.97 * var(--u)); }
html[data-bp="m"] .cm-creator__info { flex-direction: column; align-items: stretch; gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-creator__name { font-size: calc(14 * var(--u)); line-height: calc(20 * var(--u)); }
html[data-bp="m"] .cm-creator__field { font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .cm-creator .cm-social { justify-content: flex-end; }

/* ════════════════════════════════════════════════════════
   지정 커미션 프로필
   ════════════════════════════════════════════════════════ */
.cm-profile {
  display: flex;
  align-items: center;
  gap: calc(70 * var(--u));
}
.cm-profile__photo {
  flex: none;
  width: calc(314 * var(--u));
  height: calc(314 * var(--u));
  border-radius: 50%;
  background: var(--cm-photo);
  object-fit: cover;
}
.cm-profile__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(30 * var(--u));
  min-width: 0;
}
.cm-profile__lead {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  min-width: 0;
  max-width: 100%;
}
.cm-profile__name {
  font-weight: 700;
  font-size: calc(40 * var(--u));
  line-height: calc(48 * var(--u));
}
.cm-profile__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0 calc(30 * var(--u));
  font-weight: 400;
  font-size: calc(20 * var(--u));
  line-height: calc(24 * var(--u));
}
.cm-profile__bio {
  max-width: calc(1000 * var(--u));
  font-weight: 500;
  font-size: calc(18 * var(--u));
  line-height: calc(32 * var(--u));
  white-space: pre-line;
  color: #272727;
}
.cm-profile__bio[hidden] { display: none; }

/* 주요 경력: 접는 줄 + 목록 (시안에 없는 요소 — 같은 화면의 "상세 페이지" 접기와 같은 꺾쇠, 글자는 소개글 크기)
   소개글 바로 아래에 붙여 보이도록 소개글과의 간격만 좁힌다 */
.cm-career { max-width: calc(1000 * var(--u)); color: #272727; }
.cm-profile__bio:not([hidden]) + .cm-career { margin-top: calc(-14 * var(--u)); }
.cm-career__toggle {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  font-weight: 700;
  font-size: calc(18 * var(--u));
  line-height: calc(32 * var(--u));
  text-align: left;
}
.cm-career__chevron {
  flex: none;
  width: calc(12 * var(--u));
  height: calc(6.48 * var(--u));
  overflow: visible;
  color: #AFAFAF;
  transition: transform 0.2s ease;
}
.cm-career__toggle[aria-expanded="false"] .cm-career__chevron { transform: rotate(-90deg); }
.cm-career__list {
  padding-left: calc(22 * var(--u));      /* 꺾쇠 12 + 간격 10 — 글자 시작을 "주요 경력" 에 맞춘다 */
  font-weight: 500;
  font-size: calc(18 * var(--u));
  line-height: calc(32 * var(--u));
}
.cm-career__list[hidden] { display: none; }
.cm-career__list li { overflow-wrap: anywhere; }

html[data-bp="t"] .cm-profile__bio:not([hidden]) + .cm-career { margin-top: calc(-8 * var(--u)); }
html[data-bp="t"] .cm-career__toggle { gap: calc(8 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(25 * var(--u)); }
html[data-bp="t"] .cm-career__chevron { width: calc(10 * var(--u)); height: calc(5.4 * var(--u)); }
html[data-bp="t"] .cm-career__list { padding-left: calc(18 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(25 * var(--u)); }

html[data-bp="t"] .cm-profile { align-items: flex-start; gap: calc(30 * var(--u)); }
html[data-bp="t"] .cm-profile__photo { width: calc(130 * var(--u)); height: calc(130 * var(--u)); }
html[data-bp="t"] .cm-profile__info { gap: calc(16 * var(--u)); }
html[data-bp="t"] .cm-profile__name { font-size: calc(26 * var(--u)); line-height: calc(38 * var(--u)); }
html[data-bp="t"] .cm-profile__fields { gap: 0 calc(16 * var(--u)); font-size: calc(16 * var(--u)); line-height: calc(23 * var(--u)); }
html[data-bp="t"] .cm-profile__bio { font-size: calc(14 * var(--u)); line-height: calc(25 * var(--u)); }

/* 360: 사진 옆에는 이름 · 분야만, 소개와 소셜 링크는 그 아래 전체 폭 */
html[data-bp="m"] .cm-profile {
  display: grid;
  grid-template-columns: calc(70 * var(--u)) minmax(0, 1fr);
  align-items: center;
  gap: 0 calc(20 * var(--u));
}
html[data-bp="m"] .cm-profile__photo { width: calc(70 * var(--u)); height: calc(70 * var(--u)); }
html[data-bp="m"] .cm-profile__info { display: contents; }
html[data-bp="m"] .cm-profile__lead { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-profile__name { font-size: calc(16 * var(--u)); line-height: calc(23 * var(--u)); }
html[data-bp="m"] .cm-profile__fields { gap: 0 calc(8 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .cm-profile__bio {
  grid-column: 1 / -1;
  margin-top: calc(24 * var(--u));
  font-size: calc(12 * var(--u));
  line-height: calc(22 * var(--u));
}
html[data-bp="m"] .cm-career { grid-column: 1 / -1; margin-top: calc(8 * var(--u)); }
html[data-bp="m"] .cm-profile__bio:not([hidden]) + .cm-career { margin-top: calc(8 * var(--u)); }
html[data-bp="m"] .cm-profile__bio[hidden] + .cm-career { margin-top: calc(24 * var(--u)); }
html[data-bp="m"] .cm-career__toggle { gap: calc(6 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(22 * var(--u)); }
html[data-bp="m"] .cm-career__chevron { width: calc(8 * var(--u)); height: calc(4.32 * var(--u)); stroke-width: 4; }
html[data-bp="m"] .cm-career__list { padding-left: calc(14 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(22 * var(--u)); }
html[data-bp="m"] .cm-profile .cm-social { grid-column: 1 / -1; margin-top: calc(12 * var(--u)); }
html[data-bp="m"] .cm-profile__bio[hidden] + .cm-career[hidden] + .cm-social { margin-top: calc(24 * var(--u)); }

/* 작업물 머리: 제목 + 커미션 문의하기 */
.cm-workshead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--u));
}
.cm-h2 {
  font-weight: 700;
  font-size: calc(32 * var(--u));
  line-height: calc(38 * var(--u));
}
html[data-bp="t"] .cm-h2 { font-size: calc(26 * var(--u)); line-height: calc(38 * var(--u)); }
html[data-bp="m"] .cm-h2 { font-size: calc(20 * var(--u)); line-height: calc(29 * var(--u)); }

/* 작업물: 3열 × 3행 (한 페이지 9개) / 2열 × 2행 (4개) */
.cm-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: calc(40 * var(--u)) calc(32 * var(--u));
  width: 100%;
}
.cm-works > .v2-notice { grid-column: 1 / -1; }
.cm-work {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
  width: 100%;
  text-align: left;
}
.cm-work__image {
  display: block;
  width: 100%;
  height: calc(256 * var(--u));
  border-radius: calc(10 * var(--u));
  background: var(--cm-photo);
  overflow: hidden;
}
.cm-work__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-work__title {
  font-weight: 700;
  font-size: calc(20 * var(--u));
  line-height: calc(24 * var(--u));
  white-space: pre;
  color: var(--cm-text);
}
/* 선택된 작업물 표시 (시안에 없는 상태 — 제안) */
.cm-work[aria-pressed="true"] .cm-work__image {
  outline: calc(2 * var(--u)) solid var(--color-action-default);
  outline-offset: calc(-2 * var(--u));
}
html[data-bp="t"] .cm-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(24 * var(--u)); }
html[data-bp="t"] .cm-work__image { height: calc(163 * var(--u)); border-radius: calc(6.37 * var(--u)); }
html[data-bp="t"] .cm-work__title { font-size: calc(16 * var(--u)); line-height: calc(23 * var(--u)); }
html[data-bp="m"] .cm-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16 * var(--u)); }
html[data-bp="m"] .cm-work { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-work__image { height: calc(76 * var(--u)); border-radius: calc(2.97 * var(--u)); }
html[data-bp="m"] .cm-work__title { font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }

/* 상세 페이지: 접는 머리 + 선택한 작업물 이미지 */
.cm-detail {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--u));
  scroll-margin-top: calc((var(--header-h) + 24) * var(--u));
}
.cm-detail[hidden] { display: none; }
.cm-detail__toggle {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: calc(30 * var(--u));
  text-align: left;
}
.cm-detail__chevron {
  flex: none;
  width: calc(19 * var(--u));
  height: calc(10.26 * var(--u));
  overflow: visible;
  color: #AFAFAF;
  transition: transform 0.2s ease;
}
.cm-detail__toggle[aria-expanded="false"] .cm-detail__chevron { transform: rotate(-90deg); }
.cm-detail__body[hidden] { display: none; }
.cm-detail__image {
  width: 100%;
  height: auto;
  border-radius: calc(10 * var(--u));
  background: var(--cm-photo);
}
.cm-detail__image[hidden] { display: none; }
.cm-detail__video { display: block; }
html[data-bp="t"] .cm-detail { gap: calc(16 * var(--u)); }
html[data-bp="t"] .cm-detail__toggle { gap: calc(16 * var(--u)); }
html[data-bp="t"] .cm-detail__image { border-radius: calc(6.37 * var(--u)); }
html[data-bp="m"] .cm-detail { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-detail__toggle { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-detail__chevron { width: calc(13.3 * var(--u)); height: calc(7.18 * var(--u)); }
html[data-bp="m"] .cm-detail__image { border-radius: calc(2.97 * var(--u)); }

.cm-bottomnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 740 · 360: "홈" 처럼 짧은 버튼도 폭 44 를 지킨다 */
html:not([data-bp="d"]) .cm-bottomnav .v2-btn-secondary { min-width: calc(44 * var(--u)); }

/* ════════════════════════════════════════════════════════
   신청 양식 (장바구니) — 화면 오른쪽 아래 고정
   접힘 294×60 / 230×47 / 190×39, 펼침 폭 432 / 400 / 320
   ════════════════════════════════════════════════════════ */
.cm-cart {
  --cart-pad: calc(23 * var(--u));
  position: fixed;
  right: calc(var(--side) / 2);
  /* --cart-lift: 화면에 들어온 푸터 높이 (JS). 접힌 버튼이 푸터의 약관 링크를 가리지 않도록
     푸터가 보이면 그 위 16 (360 은 8) 자리로 올린다 */
  bottom: max(calc(50 * var(--u)), calc(var(--cart-lift, 0px) + 16 * var(--u)));
  z-index: 110;                       /* 펼치면 헤더 아랫부분을 덮는다 */
  display: flex;
  flex-direction: column;
  width: calc(294 * var(--u));
  max-height: calc(100vh - 144 * var(--u));
  max-height: calc(100dvh - 144 * var(--u));
  border: calc(1 * var(--u)) solid var(--color-border-default);
  border-radius: calc(10 * var(--u));
  background: #242424;
  color: var(--color-text-default);
  overflow: hidden;
}
.cm-cart[hidden] { display: none; }
.cm-cart[data-open="true"] {
  width: calc(432 * var(--u));
  background: #FBFBFB;
}
/* 메뉴 패널(740 · 360)이 열려 있는 동안에는 가린다 */
body.v2-scroll-locked .cm-cart { visibility: hidden; }

.cm-cart__toggle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(58 * var(--u));        /* 테두리 포함 60 */
  padding: 0 var(--cart-pad);
  background: #242424;
  font-weight: 700;
  font-size: calc(22 * var(--u));
  line-height: calc(26 * var(--u));
  color: var(--color-text-on-action);
  text-align: left;
}
.cm-cart[data-open="true"] .cm-cart__toggle { height: calc(60 * var(--u)); }
.cm-cart__chevron {
  flex: none;
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
}
.cm-cart[data-open="true"] .cm-cart__chevron { transform: rotate(180deg); }
.cm-cart__toggle:focus-visible { outline-color: #FFFFFF; outline-offset: calc(-4 * var(--u)); }

.cm-cart__panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.cm-cart__panel[hidden] { display: none; }

.cm-cart__form {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: calc(12 * var(--u));
  min-height: 0;
  padding: calc(16 * var(--u)) calc(22 * var(--u)) calc(16 * var(--u)) calc(24 * var(--u));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cm-cart__form[hidden] { display: none; }

.cm-field {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: calc(6 * var(--u));
  min-width: 0;
}
.cm-field__label {
  font-weight: 700;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
}
.cm-field__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(40 * var(--u));
  margin: 0;
  padding: 0 calc(16 * var(--u));
  border: calc(1 * var(--u)) solid var(--color-border-default);
  border-radius: calc(4 * var(--u));
  background: #FFFFFF;
  font: inherit;
  font-weight: 400;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
  color: var(--color-text-default);
  text-align: left;
  white-space: pre;
  appearance: none;
  -webkit-appearance: none;
}
.cm-field__control::placeholder { color: var(--color-text-secondary); opacity: 1; }
.cm-field__control[data-empty="true"] { color: var(--color-text-secondary); }
.cm-field__control[readonly] { cursor: default; }
textarea.cm-field__control {
  display: block;
  height: calc(78 * var(--u));
  padding: calc(12 * var(--u)) calc(16 * var(--u));
  white-space: pre-wrap;
  resize: none;
}
.cm-field__control:focus-visible { outline-offset: 0; }
.cm-field__control[aria-invalid="true"] { border-color: var(--color-error); }
.cm-field__value { overflow: hidden; text-overflow: ellipsis; }
.cm-field__icon {
  flex: none;
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  color: var(--color-text-secondary);
}
.cm-field__error[hidden] { display: none; }
.cm-field__error {
  font-size: calc(13 * var(--u));
  line-height: calc(18 * var(--u));
  color: var(--color-error);
}

/* 신청자 유형: 개인 / 법인 */
.cm-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(12 * var(--u));
}
.cm-option {
  height: calc(40 * var(--u));
  border-radius: calc(4 * var(--u));
  background: #EAEAEA;
  font-weight: 700;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
  color: var(--color-text-default);
}
.cm-option[aria-checked="true"] {
  background: var(--color-action-default);
  color: var(--color-text-on-action);
}

/* 발주 예정일 + 희망 납기일 */
.cm-dates {
  position: relative;
  display: grid;
  flex: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: calc(12 * var(--u));
}
.cm-dates .cm-field { position: static; }

/* 개인정보 동의 (양식 크기에 맞춘 체크박스) */
.cm-cart .v2-check {
  min-height: calc(20 * var(--u));       /* 시안 "CART / 개인정보 필수 동의": 줄 높이 20 (세 너비 모두) */
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
}
.cm-cart .v2-agree__note { font-size: calc(12 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="m"] .cm-cart .v2-agree__note { font-size: calc(11 * var(--u)); line-height: calc(16 * var(--u)); }
html[data-bp="t"] .cm-cart .v2-check { min-height: calc(20 * var(--u)); font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="m"] .cm-cart .v2-check { min-height: calc(20 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }

/* 고정 작성완료 + 접기 */
.cm-cart__action {
  flex: none;
  padding: calc(10 * var(--u)) calc(24 * var(--u));
  background: #FFFFFF;
}
.cm-cart__action[hidden] { display: none; }
.cm-cart__submit {
  width: 100%;
  height: calc(44 * var(--u));
  border-radius: calc(4 * var(--u));
  background: #262626;
  font-weight: 700;
  font-size: calc(17 * var(--u));
  line-height: calc(20 * var(--u));
  color: var(--color-text-on-action);
  transition: background-color 0.15s ease;
}
@media (hover: hover) { .cm-cart__submit:hover { background: var(--color-action-hover); } }
.cm-cart__submit[disabled] { background: var(--color-action-disabled); cursor: default; }
.cm-cart__collapse {
  flex: none;
  width: 100%;
  height: calc(59 * var(--u));        /* 아래 테두리 포함 60 */
  background: #F0F0F0;
  font-weight: 700;
  font-size: calc(17 * var(--u));
  line-height: calc(20 * var(--u));
  color: var(--color-text-default);
}
.cm-cart__collapse:focus-visible { outline-offset: calc(-4 * var(--u)); }

html[data-bp="t"] .cm-cart {
  --cart-pad: calc(18 * var(--u));
  right: var(--side);
  bottom: max(calc(24 * var(--u)), calc(var(--cart-lift, 0px) + 16 * var(--u)));
  width: calc(230 * var(--u));
  max-height: calc(100vh - 93 * var(--u));
  max-height: calc(100dvh - 93 * var(--u));
  border-radius: calc(8 * var(--u));
}
html[data-bp="t"] .cm-cart[data-open="true"] { --cart-pad: calc(21 * var(--u)); width: calc(400 * var(--u)); border-radius: calc(9 * var(--u)); }
html[data-bp="t"] .cm-cart__toggle { height: calc(45 * var(--u)); font-size: calc(18 * var(--u)); line-height: calc(21 * var(--u)); }
html[data-bp="t"] .cm-cart[data-open="true"] .cm-cart__toggle { height: calc(56 * var(--u)); }
html[data-bp="t"] .cm-cart__chevron { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
html[data-bp="t"] .cm-cart[data-open="true"] .cm-cart__chevron { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
html[data-bp="t"] .cm-cart__form { padding: calc(15 * var(--u)) calc(20 * var(--u)) calc(15 * var(--u)) calc(22 * var(--u)); }
html[data-bp="t"] .cm-field__label { font-size: calc(15 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="t"] .cm-field__control { padding: 0 calc(14 * var(--u)); font-size: calc(15 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="t"] textarea.cm-field__control { height: calc(76 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); }
html[data-bp="t"] .cm-option { font-size: calc(15 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="t"] .cm-cart__action { padding: calc(10 * var(--u)) calc(22 * var(--u)); }
html[data-bp="t"] .cm-cart__submit { font-size: calc(16 * var(--u)); line-height: calc(19 * var(--u)); }
html[data-bp="t"] .cm-cart__collapse { height: calc(55 * var(--u)); font-size: calc(16 * var(--u)); line-height: calc(19 * var(--u)); }

/* ── 360 ── */
html[data-bp="m"] .cm-cart {
  --cart-pad: calc(15 * var(--u));
  right: var(--side);
  bottom: max(calc(16 * var(--u)), calc(var(--cart-lift, 0px) + 8 * var(--u)));
  width: calc(190 * var(--u));
  max-height: calc(100vh - 107 * var(--u));
  max-height: calc(100dvh - 107 * var(--u));
  border-radius: calc(6 * var(--u));
}
html[data-bp="m"] .cm-cart[data-open="true"] { --cart-pad: calc(17 * var(--u)); width: calc(320 * var(--u)); border-radius: calc(7 * var(--u)); }
html[data-bp="m"] .cm-cart__toggle { position: relative; height: calc(37 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .cm-cart[data-open="true"] .cm-cart__toggle { height: calc(44 * var(--u)); }
html[data-bp="m"] .cm-cart__chevron { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
html[data-bp="m"] .cm-cart[data-open="true"] .cm-cart__chevron { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
html[data-bp="m"] .cm-cart__chevron path { stroke-width: 1.33; }
html[data-bp="m"] .cm-cart__form { gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(18 * var(--u)) calc(12 * var(--u)) calc(20 * var(--u)); }
html[data-bp="m"] .cm-field { gap: calc(5 * var(--u)); }
html[data-bp="m"] .cm-field__label { font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); }
html[data-bp="m"] .cm-field__control { height: calc(44 * var(--u)); padding: 0 calc(14 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); }
html[data-bp="m"] textarea.cm-field__control { height: calc(76 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)); }
html[data-bp="m"] .cm-field__error { font-size: calc(11 * var(--u)); line-height: calc(15 * var(--u)); }
html[data-bp="m"] .cm-options,
html[data-bp="m"] .cm-dates { gap: calc(8 * var(--u)); }
html[data-bp="m"] .cm-option { height: calc(44 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); }
html[data-bp="m"] .cm-cart__action { padding: calc(10 * var(--u)) calc(20 * var(--u)); }
html[data-bp="m"] .cm-cart__submit { border-radius: calc(3 * var(--u)); font-size: calc(13 * var(--u)); line-height: calc(16 * var(--u)); }
html[data-bp="m"] .cm-cart__collapse { height: calc(43 * var(--u)); font-size: calc(13 * var(--u)); line-height: calc(16 * var(--u)); }
/* 접힌 버튼 높이 39: 눌리는 영역만 44 로 넓힌다 */
html[data-bp="m"] .cm-cart:not([data-open="true"]) { overflow: visible; }
html[data-bp="m"] .cm-cart:not([data-open="true"]) .cm-cart__toggle { border-radius: calc(5 * var(--u)); }
html[data-bp="m"] .cm-cart:not([data-open="true"]) .cm-cart__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(44 * var(--u));
  transform: translateY(-50%);
}
