/* 테일러 v4 — 패션 에디토리얼 디자인 (오프화이트 #F7F5F2 · 잉크 블랙 · 딥 올리브 원포인트 · 차콜 다크모드) */
:root {
  --bg: #F7F5F2;
  --surface: #ECE9E2;
  --surface-pure: #FAF9F6;
  --ink: #141413;
  --ink-inv: #F7F5F2;
  --text: #141413;
  --text2: #57534E;
  --line: #D8D3CA;
  --line-strong: #141413;
  --accent: #384734;
  --ok: #1B6B46;
  --ok-dot: #227D53;
  --fix: #964B0A;
  --fix-dot: #C26514;
  --bad: #AC2127;
  --bad-dot: #CC2B32;
  --info: #57534E;
  --info-dot: #736E67;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161615;
    --surface: #21211F;
    --surface-pure: #272624;
    --ink: #F2EFE9;
    --ink-inv: #161615;
    --text: #F2EFE9;
    --text2: #A8A39B;
    --line: #2F2E2B;
    --line-strong: #F2EFE9;
    --accent: #A8BF9E;
    --ok: #58CA8F;
    --ok-dot: #48BE81;
    --fix: #F2A852;
    --fix-dot: #E6993E;
    --bad: #F5767B;
    --bad-dot: #EB5F65;
    --info: #A8A39B;
    --info-dot: #8C877F;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161615;
  --surface: #21211F;
  --surface-pure: #272624;
  --ink: #F2EFE9;
  --ink-inv: #161615;
  --text: #F2EFE9;
  --text2: #A8A39B;
  --line: #2F2E2B;
  --line-strong: #F2EFE9;
  --accent: #A8BF9E;
  --ok: #58CA8F;
  --ok-dot: #48BE81;
  --fix: #F2A852;
  --fix-dot: #E6993E;
  --bad: #F5767B;
  --bad-dot: #EB5F65;
  --info: #A8A39B;
  --info-dot: #8C877F;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

/* ---------- 레이아웃 컨테이너 ---------- */
.masthead,
.tabs-inner,
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 760px) {
  .masthead,
  .tabs-inner,
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ---------- 에디토리얼 타이포그래피 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text2);
  line-height: 1.3;
}

.eyebrow.accent {
  color: var(--accent);
}

h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  margin: 8px 0 0;
}

h2 {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.24;
  margin: 6px 0 0;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

.hint {
  font-size: 13px;
  color: var(--text2);
  margin: 0;
}

/* ---------- 버튼 시스템: 검정 솔리드 1종 + 텍스트 링크 ---------- */
button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--ink-inv);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.16s ease;
}

.btn-solid:hover {
  opacity: 0.88;
}

.btn-solid:active {
  opacity: 0.76;
}

.btn-solid:disabled {
  opacity: 0.48;
  cursor: default;
}

.btn-solid.sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-solid.full {
  width: 100%;
  min-height: 50px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 6px;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--text2);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.btn-link:hover {
  text-decoration-color: var(--text);
}

.btn-link.muted {
  color: var(--text2);
}

/* ---------- 마스트헤드 (Header) ---------- */
.masthead {
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: 24px;
}

.mast-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-ko {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text2);
}

.prof-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prof-bar select,
.prof-new select {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 8px 24px 8px 4px;
  min-height: 44px;
  min-width: 44px;
  max-width: 165px;
  cursor: pointer;
}

.prof-new {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: flex-end;
}

.prof-new input {
  flex: 1 1 180px;
  font-size: 15px;
}

.mast-editorial {
  padding-top: 26px;
  display: grid;
  gap: 12px;
}

.mast-sub {
  margin: 0;
  color: var(--text2);
  font-size: 14.5px;
  max-width: 520px;
  line-height: 1.6;
}

@media (min-width: 820px) {
  .mast-editorial {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    gap: 32px;
    padding-top: 34px;
  }
  .mast-sub {
    justify-self: end;
  }
}

/* ---------- 상단 고정 탭 (내 몸 / 상품 / 룩북 / 옷장) ---------- */
.top-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tabs-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 48px;
  padding: 12px 4px;
  background: none;
  border: 0;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.tab-btn::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -1px;
  height: 2px;
  background: transparent;
  transition: background 0.18s ease;
}

.tab-btn.active {
  color: var(--text);
  font-weight: 800;
}

.tab-btn.active::after {
  background: var(--line-strong);
}

.tab-cnt {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- 섹션 공통 (카드 박스 대신 구분선과 여백) ---------- */
.container {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.ed-sec {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 56px;
}

@media (min-width: 760px) {
  .ed-sec {
    padding: 48px 0;
  }
}

.sec-head {
  margin-bottom: 24px;
}

.sec-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sec-desc {
  margin: 6px 0 0;
  color: var(--text2);
  font-size: 14px;
}

.save-state,
.count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
}

/* ---------- 에디토리얼 세그먼트 토글 ---------- */
.seg-line {
  display: inline-flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  gap: 4px;
}

.seg-line.small {
  margin: 6px 0 18px;
}

.seg-line button {
  min-height: 44px;
  min-width: 72px;
  padding: 10px 18px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text2);
  font-size: 14.5px;
  font-weight: 600;
}

.seg-line button.on {
  color: var(--text);
  font-weight: 800;
  border-bottom-color: var(--line-strong);
}

/* ---------- 입력 필드 (매거진 언더라인 스펙 시트) ---------- */
input {
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 10px 4px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input::placeholder {
  color: var(--text2);
  font-weight: 400;
}

input:focus {
  outline: none;
  border-bottom-color: var(--line-strong);
  background: var(--surface-pure);
}

.body-grid,
.mine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
}

.body-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .body-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field,
.mine-grid label,
.body-grid label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-l,
.mine-grid label > span:first-child,
.body-grid label > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.inline-unit {
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  margin: -8px -4px;
  font-size: 12px;
}

.unit {
  position: relative;
}

.unit input {
  padding-right: 36px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.unit::after {
  position: absolute;
  right: 4px;
  bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  pointer-events: none;
}

.u-cm::after { content: "cm"; }
.u-kg::after { content: "kg"; }
.u-waist::after { content: attr(data-unit); }

/* ---------- 내 몸 호칭 스펙 요약 ---------- */
.size-spec {
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.sc-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sc-l {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
}

.sc-row b {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sc-est {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--text2);
}

.sc-est b {
  color: var(--text);
  font-weight: 700;
}

.sc-est .est b {
  color: var(--text2);
}

.sc-est small {
  font-size: 11px;
  margin-left: 2px;
}

.size-spec .hint {
  margin-top: 10px;
}

/* ---------- 접이식 상세 (Details) ---------- */
.ed-details {
  border-bottom: 1px solid var(--line);
}

.ed-details > summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.ed-details > summary::-webkit-details-marker {
  display: none;
}

.ed-details > summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  color: var(--text2);
  flex-shrink: 0;
}

.ed-details[open] > summary::after {
  content: "−";
}

.ed-details[open] {
  padding-bottom: 18px;
}

/* ---------- 상품 불러오기 & 캡처 ---------- */
.url-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.url-box input {
  font-size: 15.5px;
  font-weight: 500;
  padding: 12px 4px;
}

@media (min-width: 640px) {
  .url-box {
    flex-direction: row;
    align-items: flex-end;
    gap: 14px;
  }
  .url-box input {
    flex: 1;
  }
  .url-box .btn-solid {
    flex: none;
    min-width: 132px;
  }
}

.p-search,
.p-info {
  margin-top: 20px;
}

.p-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.p-card img,
.p-noimg {
  width: 76px;
  height: 101px;
  object-fit: cover;
  background: var(--surface);
  display: block;
}

.p-noimg {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text2);
  text-align: center;
  padding: 6px;
}

.p-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.p-meta b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.p-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--fix);
}

.p-note.ok {
  color: var(--ok);
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  padding: 28px 18px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-pure);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}

.drop-zone.over {
  background: var(--surface);
}

.drop-zone input {
  display: none;
}

.drop-zone svg {
  width: 26px;
  height: 26px;
  stroke: var(--text);
  margin-bottom: 2px;
}

.drop-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.drop-sub {
  font-size: 13px;
  color: var(--text2);
}

.sample-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}

/* ---------- 읽은 실측표 (미니멀 테이블) ---------- */
.table-block {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.table-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 14px;
  text-align: left;
}

.table-sum small {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--text);
}

.ok-txt {
  color: var(--ok);
  font-weight: 700;
  font-size: 12.5px;
}

.need {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bad);
}

#step-table.fold .tbl,
#step-table.fold #notes {
  display: none;
}

.tbl {
  overflow-x: auto;
  margin: 8px 0 4px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 340px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 6px 4px;
}

thead th {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text2);
  text-align: center;
  white-space: nowrap;
}

thead th:first-child,
tbody th {
  position: sticky;
  left: 0;
  background: var(--bg);
  text-align: left;
  padding-right: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  z-index: 1;
}

th small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
}

td input {
  text-align: center;
  font-size: 15px;
  padding: 8px 2px;
  min-height: 44px;
  min-width: 46px;
  border-bottom-color: transparent;
}

td input.miss {
  border-bottom-color: var(--bad);
}

/* ---------- 매거진식 추천 사이즈 히어로 (96px + 한 줄 요약) ---------- */
.ed-hero {
  display: grid;
  gap: 14px;
  padding: 14px 0 26px;
  align-items: end;
}

@media (min-width: 700px) {
  .ed-hero {
    grid-template-columns: auto 1fr;
    gap: 28px 36px;
    padding: 18px 0 30px;
  }
}

.hero-size {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-size.long {
  font-size: 56px;
  line-height: 1;
}

.hero-size.bad {
  font-size: 48px;
  line-height: 1.05;
  color: var(--bad);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-headline {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13.5px;
  color: var(--text2);
}

.hero-meta .btn-link {
  font-size: 13px;
  padding: 6px 2px;
  margin: -6px 0;
}

.warn {
  padding: 16px;
  border-left: 3px solid var(--fix-dot);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

/* 사이즈 선택 탭 */
.sz-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sz-tabs button {
  flex: none;
  min-width: 64px;
  min-height: 46px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 700;
}

.sz-tabs button.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
}

.sz-tabs small {
  font-size: 11px;
  font-weight: 600;
}

.sz-tabs i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sz-tabs .i-ok { background: var(--ok-dot); }
.sz-tabs .i-fix { background: var(--fix-dot); }
.sz-tabs .i-bad { background: var(--bad-dot); }

/* ---------- LOOKBOOK · 앞·뒤 2장 실사 착용 카드 ---------- */
.lookbook-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lb-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lb-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-meta-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 모바일용 앞/뒤 전환 컨트롤 */
.lb-switcher {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.lb-sw-btn {
  min-height: 44px;
  min-width: 76px;
  padding: 8px 14px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
}

.lb-sw-btn.on {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

@media (min-width: 760px) {
  .lb-switcher {
    display: none;
  }
}

/* 앞/뒤 2장 뷰포트: 휴대폰 스와이프 · 데스크톱 2열 나란히 */
.lb-stage {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  scrollbar-width: none;
}

.lb-stage::-webkit-scrollbar {
  display: none;
}

.lb-slot {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  background: var(--surface);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

@media (min-width: 760px) {
  .lb-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
  }
  .lb-slot {
    flex: initial;
  }
}

.lb-photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--surface);
  position: relative;
}

.lb-photo-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: rgba(20, 20, 19, 0.86);
  color: #F7F5F2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lb-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(20, 20, 19, 0.82);
  color: #F7F5F2;
  font-size: 11.5px;
  font-weight: 600;
}

.lb-empty-back {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface-pure);
}

.lb-empty-back p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text2);
  max-width: 240px;
}

/* 미요청 / 대기 / 실패 패널 */
.lb-prompt-panel {
  padding: 28px 20px;
  background: var(--surface-pure);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 760px) {
  .lb-prompt-panel {
    padding: 36px 32px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
  .lb-prompt-panel .btn-solid.full {
    width: auto;
    min-width: 240px;
  }
}

.lb-prompt-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-prompt-copy b {
  font-size: 16px;
  font-weight: 700;
}

.lb-prompt-copy p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text2);
}

.lb-status-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.photo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: 6px;
  animation: photoPulse 1.6s ease-in-out infinite;
}

@keyframes photoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.lb-failed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-left: 3px solid var(--bad-dot);
  background: var(--surface-pure);
}

.photo-err {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bad);
}

.photo-warn {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fix);
}

.photo-note {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* 상품 미선택 시 룩북 아카이브 */
.lb-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 760px) {
  .lb-archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lb-arch-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--text);
}

.lb-arch-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
}

.lb-arch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-arch-meta {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.lb-arch-meta small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
}

/* ---------- 2D 핏 다이어그램 & 실측 게이지 2열 스프레드 ---------- */
.g-sel {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text2);
}

.g-sel b {
  color: var(--text);
}

.fit-spread {
  display: grid;
  gap: 32px;
}

@media (min-width: 820px) {
  .fit-spread {
    grid-template-columns: minmax(300px, 0.95fr) 1.15fr;
    gap: 44px;
    align-items: start;
  }
}

.diagram-col {
  background: var(--surface-pure);
  border: 1px solid var(--line);
  padding: 20px 14px 16px;
}

.fit-diagram {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.fit-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.fd-body-line {
  fill: none;
  stroke: var(--text2);
  stroke-width: 1.2;
  opacity: 0.42;
}

.fd-garment-fill {
  fill: var(--text);
  fill-opacity: 0.04;
  stroke: var(--text);
  stroke-width: 1.65;
}

.fd-axis {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.fd-leader {
  stroke: var(--line);
  stroke-width: 1;
}

.fd-leader.active {
  stroke: var(--text2);
  stroke-opacity: 0.55;
}

.fd-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  fill: var(--text);
}

.fd-label.muted {
  fill: var(--text2);
  font-weight: 500;
}

.fd-sub {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
}

.fd-sub.ok { fill: var(--ok); }
.fd-sub.fix { fill: var(--fix); }
.fd-sub.bad { fill: var(--bad); }
.fd-sub.info { fill: var(--info); }

.fd-dot-ok { fill: var(--ok-dot); }
.fd-dot-fix { fill: var(--fix-dot); }
.fd-dot-bad { fill: var(--bad-dot); }
.fd-dot-info { fill: var(--info-dot); }
.fd-dot-muted { fill: var(--line); }

.fd-ring-ok { fill: var(--ok-dot); fill-opacity: 0.18; }
.fd-ring-fix { fill: var(--fix-dot); fill-opacity: 0.2; }
.fd-ring-bad { fill: var(--bad-dot); fill-opacity: 0.2; }
.fd-ring-info { fill: var(--info-dot); fill-opacity: 0.16; }

.fit-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text2);
}

.fit-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 0;
}

.dot-ok { background: var(--ok-dot); }
.dot-fix { background: var(--fix-dot); }
.dot-bad { background: var(--bad-dot); }
.dot-info { background: var(--info-dot); }

/* 부위별 실측 게이지 */
.scale-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 18px;
}

.scale-legend b {
  display: inline-block;
  width: 2px;
  height: 10px;
  background: var(--text);
  vertical-align: -1px;
  margin-right: 5px;
}

.scale-legend u {
  display: inline-block;
  width: 14px;
  height: 8px;
  background: color-mix(in srgb, var(--ok-dot) 24%, transparent);
  vertical-align: -1px;
  margin-right: 5px;
}

.scale-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  vertical-align: -1px;
  margin-right: 5px;
}

.gauges {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.g-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: baseline;
}

.g-name {
  font-weight: 700;
  font-size: 14px;
}

.g-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--text2);
  font-size: 12px;
  margin-left: 6px;
}

.g-msg {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.g-track {
  grid-column: 1 / -1;
  position: relative;
  height: 8px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.g-track .band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--ok-dot) 22%, transparent);
}

.g-track .mid {
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 1.5px;
  background: var(--text);
}

.g-track .fill {
  position: absolute;
  top: 1px;
  bottom: 1px;
  opacity: 0.4;
}

.g-track .dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.g-scale {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: 11px;
  color: var(--text2);
  margin-top: -2px;
}

.g-scale span:last-child {
  text-align: right;
}

.lv-ok .g-msg { color: var(--ok); }
.lv-ok .fill, .lv-ok .dot { background: var(--ok-dot); }

.lv-fix .g-msg { color: var(--fix); }
.lv-fix .fill, .lv-fix .dot { background: var(--fix-dot); }

.lv-bad .g-msg { color: var(--bad); }
.lv-bad .fill, .lv-bad .dot { background: var(--bad-dot); }

.lv-info .g-msg { color: var(--info); }
.lv-info .fill, .lv-info .dot { background: var(--info-dot); }

/* 후기 학습 & 수선 단가 */
.fb {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.fb:empty {
  display: none;
}

.fb-l {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 10px;
}

.fb-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.opt-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
}

.opt-btn.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
}

.foot-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.costs label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  gap: 2px;
}

/* ---------- CLOSET · 2열 사진 그리드 (큰 상품 사진 + 작은 사이즈 배지) ---------- */
.closet-empty {
  padding: 32px 0;
  color: var(--text2);
  font-size: 14px;
}

.closet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 14px;
}

@media (min-width: 760px) {
  .closet-grid {
    gap: 36px 24px;
  }
}

.cl-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cl-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  text-align: left;
}

.cl-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
}

.cl-item.on .cl-thumb {
  outline: 2px solid var(--line-strong);
  outline-offset: -2px;
}

.cl-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cl-main:hover .cl-thumb img {
  transform: scale(1.02);
}

.cl-noimg {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  color: var(--text2);
}

.cl-noimg strong {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.cl-noimg small {
  font-size: 12px;
}

/* 사진 위 작은 사이즈 배지 */
.cl-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  background: rgba(20, 20, 19, 0.88);
  color: #F7F5F2;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cl-badge.bad {
  background: #9E1C22;
}

.cl-lb-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 8px;
  background: rgba(247, 245, 242, 0.92);
  color: #141413;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cl-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cl-site {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
}

.cl-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-fb {
  font-size: 12px;
  color: var(--text2);
}

.cl-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  z-index: 2;
}

.cl-del span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(20, 20, 19, 0.72);
  color: #F7F5F2;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}

/* ---------- 검색 히트 & 취향·추천 ---------- */
.hits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.hit {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--surface-pure);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
}

.hit small {
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
}

.mall-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.pref-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 520px) {
  .pref-row {
    grid-template-columns: 1fr;
  }
}

.pref-l {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text2);
  padding-top: 10px;
}

@media (max-width: 520px) {
  .pref-l {
    padding-top: 0;
  }
}

.pref-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rec-sec-head {
  margin: 28px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
}

.rec {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-h {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.rec-h b {
  font-size: 15px;
  font-weight: 700;
}

.rec-size {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.rec-tip {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
}

.rec-why {
  margin: 0;
  font-size: 12px;
  color: var(--text2);
}

.ed-footer {
  padding-top: 28px;
}

/* ---------- 토스트 & 전체 화면 모달 ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: var(--ink-inv);
  padding: 12px 20px;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  max-width: 90vw;
  text-align: center;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 16, 15, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  gap: 12px;
}

.photo-modal-top {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-modal-tabs {
  display: flex;
  gap: 8px;
}

.pm-tab {
  min-height: 44px;
  min-width: 72px;
  padding: 8px 16px;
  background: transparent;
  color: #A8A39B;
  border: 1px solid rgba(247, 245, 242, 0.24);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
}

.pm-tab.on {
  background: #F7F5F2;
  color: #141413;
  border-color: #F7F5F2;
}

.photo-modal-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 245, 242, 0.28);
  border-radius: 2px;
  background: transparent;
  color: #F7F5F2;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.photo-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.photo-modal img {
  max-width: min(92vw, 560px);
  max-height: 76vh;
  width: auto;
  height: auto;
  display: block;
  background: #21211F;
}

.photo-modal-cap {
  margin: 0;
  color: #D8D3CA;
  font-size: 13px;
  text-align: center;
  max-width: 520px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========== v4.1 벤치마크 확장: 브랜드 보정 · 신뢰도/반품안내 · 실루엣 핏 · 스타일 사진 퀴즈 · 30색 팔레트 ========== */

/* 평소 입는 브랜드·사이즈 보정 */
.usual-brands {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.ub-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ub-controls select {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-pure);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 10px;
  min-height: 44px;
  min-width: 72px;
  cursor: pointer;
}

.ub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ub-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 0 0 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
}

.ub-tag-del {
  background: none;
  border: 0;
  color: var(--text2);
  font-size: 16px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}

/* 추천 신뢰도 & 반품 방지(사이즈 사이) 안내 */
.hero-trust {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--surface-pure);
  border-left: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.trust-reasons {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.45;
}

.between-guide {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}

.between-guide b {
  font-weight: 700;
}

/* 취향 서브섹션 공통 블록 */
.taste-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.taste-block:first-child {
  padding-top: 4px;
}

.tb-head {
  margin-bottom: 14px;
}

.tb-head h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 4px;
}

/* 핏 취향: 4단계 실루엣 아이콘 그리드 (상의 품·기장 / 바지 통·기장) */
.fit-group-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .fit-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
  }
}

.fit-group-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
}

.fit-icon-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.fit-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 82px;
  min-width: 44px;
  padding: 10px 4px 8px;
  background: var(--surface-pure);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.fit-icon-btn svg {
  width: 38px;
  height: 38px;
  display: block;
  flex: none;
}

.fit-icon-btn .fi-ref {
  stroke: var(--text2);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  fill: none;
}

.fit-icon-btn .fi-shape {
  stroke: var(--text);
  stroke-width: 1.5;
  fill: var(--text);
  fill-opacity: 0.06;
}

.fit-icon-btn.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
  font-weight: 800;
}

.fit-icon-btn.on .fi-ref {
  stroke: var(--ink-inv);
  opacity: 0.55;
}

.fit-icon-btn.on .fi-shape {
  stroke: var(--ink-inv);
  fill: var(--ink-inv);
  fill-opacity: 0.16;
}

/* 스타일 취향: Stitch Fix 방식 사진 카드 퀴즈 (8종) */
.style-quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

@media (min-width: 760px) {
  .style-quiz-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

.st-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface-pure);
}

.st-card.liked {
  border-color: var(--line-strong);
}

.st-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
}

.st-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.st-card.disliked .st-photo img {
  opacity: 0.42;
}

.st-state-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: rgba(20, 20, 19, 0.86);
  color: #F7F5F2;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.st-body {
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.st-body b {
  font-size: 14px;
  font-weight: 700;
}

.st-body small {
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.35;
}

.st-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.st-vote {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 4px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 12.5px;
  font-weight: 700;
}

.st-vote:first-child {
  border-right: 1px solid var(--line);
}

.st-vote.on-like {
  background: var(--ink);
  color: var(--ink-inv);
}

.st-vote.on-dislike {
  background: var(--surface);
  color: var(--bad);
}

/* 색 취향: 퍼스널 컬러 + 30색 원형 스와치 + 좋아요/피할 색 */
.pcolor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.pcolor-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.color-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cm-seg {
  display: inline-flex;
  border: 1px solid var(--line);
}

.cm-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.cm-btn:first-child {
  border-right: 1px solid var(--line);
}

.cm-btn.on {
  background: var(--ink);
  color: var(--ink-inv);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 6px;
}

@media (min-width: 760px) {
  .color-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 14px 8px;
  }
}

.color-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 64px;
  min-width: 48px;
  padding: 6px 2px;
  background: none;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text);
  text-align: center;
}

.color-chip.state-like {
  background: var(--surface-pure);
  border-color: var(--line-strong);
}

.color-chip.state-avoid {
  border-color: var(--line);
}

.color-chip svg {
  width: 36px;
  height: 36px;
  display: block;
  flex: none;
}

.cc-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.cc-tone {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.color-summary {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text2);
}

.color-summary b {
  color: var(--text);
}

/* 추천 카드 내 추천 컬러 스와치 바 */
.rec-colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.rec-sw {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.rec-sw svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* ========== v4.2 코디 룩북: 상품 종류 선택 · 4슬롯 코디 빌더 · 겹침 썸네일 저장 목록 ========== */

.p-kind-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.p-kind-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  margin-right: 4px;
}

.p-kind-btn {
  min-height: 44px;
  min-width: 58px;
  padding: 6px 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.p-kind-btn.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
  font-weight: 700;
}

.p-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
}

.start-outfit-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.start-outfit-bar:empty {
  display: none;
}

/* 코디 빌더 메인 영역 */
.outfit-builder {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ob-slots {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .ob-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.ob-slot {
  border: 1px solid var(--line);
  background: var(--surface-pure);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ob-slot.filled {
  border-color: var(--line-strong);
}

.ob-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.ob-slot-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.ob-slot-title b {
  font-size: 14.5px;
  font-weight: 800;
}

.ob-cur-name {
  font-size: 12.5px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-clear-btn {
  min-height: 44px;
  min-width: 48px;
  padding: 6px 6px;
  margin: -6px -4px;
  font-size: 12.5px;
  flex: none;
}

/* 슬롯 내 옷장 사진 가로 스크롤 */
.ob-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ob-pick {
  flex: 0 0 82px;
  min-height: 44px;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.ob-pick.on {
  border: 2px solid var(--line-strong);
}

.ob-pick-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.ob-pick-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ob-pick-noimg {
  width: 100%;
  height: 100%;
  padding: 6px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text2);
  line-height: 1.25;
}

.ob-pick-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: rgba(20, 20, 19, 0.88);
  color: #F7F5F2;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ob-pick-name {
  margin: 5px 5px 6px;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ob-empty-msg {
  font-size: 12.5px;
  color: var(--text2);
  padding: 12px 0;
}

.ob-virtual-card {
  padding: 10px 12px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.ob-virtual-card small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text2);
  margin-top: 2px;
}

/* 슬롯 아래 사이즈 칩 & 한 줄 핏 요약 */
.ob-slot-foot {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ob-sz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ob-sz-chip {
  min-height: 44px;
  min-width: 50px;
  padding: 6px 11px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ob-sz-chip.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
}

.ob-sz-chip small {
  font-size: 10.5px;
  font-weight: 600;
}

.ob-fit-summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ob-fit-summary.ok { color: var(--ok); }
.ob-fit-summary.fix { color: var(--fix); }
.ob-fit-summary.bad { color: var(--bad); }

.ob-text-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  background: var(--surface);
  padding: 2px 7px;
}

/* 기본 흰 티 / 기본 슬랙스 채우기 제안 */
.ob-fill-prompt {
  padding: 14px 16px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.ob-fill-prompt p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.ob-fill-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 코디 저장 & 룩북 생성 컨트롤 */
.ob-save-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-save-inputs {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.ob-save-inputs input {
  flex: 1 1 200px;
  font-size: 14.5px;
  font-weight: 600;
}

@media (min-width: 760px) {
  .ob-save-bar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }
  .ob-save-inputs {
    flex: 1;
  }
  .ob-save-bar .ob-gen-btn {
    width: auto;
    min-width: 240px;
  }
}

/* 저장한 코디 목록 (겹침 썸네일 스택) */
.saved-outfits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.so-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.so-card {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-pure);
}

.so-card.on {
  border-color: var(--line-strong);
}

.so-open {
  flex: 1;
  min-width: 0;
  min-height: 68px;
  padding: 10px 44px 10px 12px;
  background: none;
  border: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.so-stack {
  display: flex;
  align-items: center;
  flex: none;
  padding-left: 10px;
}

.so-thumb {
  width: 38px;
  height: 50px;
  margin-left: -10px;
  background: var(--surface);
  border: 2px solid var(--surface-pure);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text2);
  flex: none;
}

.so-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.so-meta b {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.so-meta small {
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.3;
}

.so-del {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--text2);
  font-size: 17px;
  display: grid;
  place-items: center;
}

/* 룩북 내 구성 아이템 요약 칩 */
.lb-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--text2);
}

.lb-item-pill {
  padding: 4px 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.lb-item-pill em {
  font-style: normal;
  color: var(--text2);
  font-weight: 500;
  margin-left: 4px;
}

.lb-item-pill b {
  font-weight: 800;
  color: var(--accent);
  margin-right: 2px;
}

/* ---------- v4.3 의류 분류 체계(대분류·중분류) · 옷장 필터 · 레이어 순서 ---------- */
.cat-ico {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: -3px;
}

.p-tax-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 6px;
}

.p-tax-cur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.3;
}

.p-tax-cur strong {
  font-weight: 700;
}

.p-tax-cur em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  padding-left: 6px;
  border-left: 1px solid var(--line);
}

.p-tax-toggle {
  min-height: 44px;
  padding: 6px 4px;
  font-size: 12.5px;
}

.p-tax-picker {
  grid-column: 1 / -1;
  padding: 14px;
  background: var(--surface-pure);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-tax-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.p-cat-tab {
  flex: none;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.p-cat-tab.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
}

.p-sub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p-sub-chip {
  min-height: 44px;
  padding: 7px 11px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.p-sub-chip.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
  font-weight: 700;
}

.p-tax-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text2);
}

/* 옷장 대분류 필터 바 */
.closet-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.cl-filter-btn {
  flex: none;
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text2);
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.cl-filter-btn small {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.85;
}

.cl-filter-btn.on {
  background: var(--ink);
  color: var(--ink-inv);
  border-color: var(--ink);
}

/* 코디 슬롯 사진용 배지 · 레이어 순서 표시 */
.ob-head-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.ob-ph-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--surface);
  color: var(--text2);
  flex: none;
}

.ob-slot-title .cat-ico {
  align-self: center;
  color: var(--text2);
}

.ob-layer-bar {
  padding: 12px 14px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-layer-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.ob-layer-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-pure);
  border: 1px solid var(--line);
  padding: 4px 9px;
}

.ob-layer-chip b {
  font-weight: 800;
  color: var(--accent);
  margin-right: 3px;
}

.ob-layer-arr {
  font-size: 12px;
  color: var(--text2);
  font-weight: 700;
}

/* ---------- v4.4 머리~발 24개 상세 치수 · 재는 법 도해 팝오버 · 체형 특징 ---------- */
.detail-master summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}

.detail-master summary b {
  color: var(--accent);
  font-weight: 800;
}

.detail-sum-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
}

.detail-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.mm-box,
.traits-box {
  padding: 14px 16px;
  background: var(--surface-pure);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.mm-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .mm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.mm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.mm-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.mm-today {
  min-height: 44px;
  min-width: 48px;
  padding: 4px 6px;
  margin: -10px -4px;
  font-size: 12px;
}

.mm-field input[type="date"],
.mm-field select {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
}

.mm-stale {
  padding: 10px 12px;
  background: var(--surface);
  border-left: 2px solid var(--fix);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fix);
  line-height: 1.45;
}

/* 부위별 아코디언 (머리·목 ~ 발) */
.d-groups {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.d-grp {
  border-bottom: 1px solid var(--line);
}

.d-grp-sum {
  list-style: none;
  cursor: pointer;
  min-height: 50px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.d-grp-sum::-webkit-details-marker {
  display: none;
}

.d-grp > .d-grp-sum::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  color: var(--text2);
  flex-shrink: 0;
}

.d-grp[open] > .d-grp-sum::after {
  content: "−";
}

.d-grp-cnt {
  margin-left: auto;
}

.d-grp-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.d-grp-title b {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.d-grp-title small {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text2);
  font-weight: 600;
}

.d-grp-cnt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text2);
  padding: 3px 9px;
  background: var(--surface);
}

.d-grp[open] .d-grp-cnt {
  background: var(--ink);
  color: var(--ink-inv);
}

.d-grp-grid {
  display: grid;
  gap: 12px;
  padding: 4px 0 18px;
}

@media (min-width: 720px) {
  .d-grp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }
}

.df-card {
  padding: 12px 14px;
  background: var(--surface-pure);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.df-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.df-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.df-how-btn {
  min-height: 44px;
  min-width: 56px;
  padding: 6px 6px;
  margin: -8px -4px;
  font-size: 12px;
  flex: none;
}

.df-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.df-unit {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.df-unit::after {
  content: attr(data-u);
  position: absolute;
  right: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  pointer-events: none;
}

.df-unit input {
  width: 100%;
  min-height: 46px;
  padding: 8px 34px 8px 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
}

.df-badge {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 8px;
  white-space: nowrap;
}

.df-badge.est {
  background: var(--surface);
  color: var(--text2);
}

.df-badge.measured {
  background: var(--ink);
  color: var(--ink-inv);
}

.df-warn {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--fix);
  line-height: 1.4;
}

.df-warn:empty {
  display: none;
}

.sc-est .direct {
  border-color: var(--line-strong);
  font-weight: 700;
}

.sc-est .direct small {
  color: var(--accent);
  font-weight: 800;
  margin-left: 3px;
}

/* 체형 특징 칩 & 안내 */
.traits-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trait-chip {
  min-height: 44px;
  padding: 8px 13px;
  font-size: 13px;
}

.traits-notes {
  padding: 10px 12px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.traits-notes p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
}

.trait-caution {
  border-left: 2px solid var(--fix);
  padding-left: 10px;
}

/* 재는 법 SVG 도해 팝오버 */
.how-popover {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 15, 14, 0.62);
  display: grid;
  place-items: center;
  padding: 18px;
}

.how-popover.hidden {
  display: none;
}

.how-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.how-head h3 {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.how-close {
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px;
  display: grid;
  place-items: center;
}

.how-diagram {
  background: var(--surface-pure);
  border: 1px solid var(--line);
  padding: 10px;
  display: grid;
  place-items: center;
}

.how-svg {
  width: 190px;
  height: 205px;
  display: block;
}

.how-body {
  fill: none;
  stroke: var(--text2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-chair {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}

.how-ref {
  stroke: var(--text2);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.how-mark {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.how-loop {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.3;
  stroke-dasharray: 4 2.5;
}

.how-pt {
  fill: var(--accent);
}

.how-txt {
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--accent);
}

.how-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
}

.how-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text2);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
