/* ===== 우리 샵 진단 테스트 (style.css의 색·글꼴·버튼을 그대로 사용) ===== */
.dg-wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.dg-page [hidden] { display: none !important; }

/* 시작 화면 */
.dg-intro { padding: 56px 0 112px; }
.dg-intro .crumb { margin-bottom: 40px; }
.dg-intro h1 {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.3; letter-spacing: -.02em;
}
.dg-intro h1 em { font-style: normal; color: var(--accent); }
.dg-lead { margin-top: 28px; max-width: 520px; color: var(--muted); font-size: 1.04rem; }
.dg-facts { margin-top: 44px; border-top: 1px solid var(--ink); }
.dg-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.dg-facts span { color: var(--muted); }
.dg-facts b { font-weight: 500; color: var(--ink); }
.dg-guide { margin-top: 28px; color: var(--ink); font-size: .96rem; }
.dg-intro-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 질문 화면: 한 화면에 질문 하나 */
.dg-quiz { padding: 12px 0 56px; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }
.dg-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; }
.dg-nav { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: .92rem; }
.dg-nav:hover:not(:disabled) { color: var(--ink); }
.dg-nav:disabled { opacity: .3; cursor: default; }
.dg-nav-r { justify-self: end; }
.dg-count { font-family: var(--serif); color: var(--muted); font-size: 1rem; letter-spacing: .04em; }
.dg-count b { font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.dg-bar { height: 2px; background: var(--line); margin-top: 2px; }
.dg-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.dg-hint { margin-top: 20px; font-size: .86rem; color: var(--muted); }
.dg-q {
  margin: 16px 0 24px; font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.3rem, 4.6vw, 1.75rem); line-height: 1.5; letter-spacing: -.01em; outline: none;
}
.dg-opts { border-top: 1px solid var(--ink); }
.dg-opt {
  display: flex; gap: 16px; align-items: flex-start; width: 100%; min-height: 56px; text-align: left;
  padding: 16px 8px; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--text); font-size: 1rem; line-height: 1.6; transition: background .15s;
}
.dg-opt:hover { background: var(--tint); }
.dg-opt .mk {
  flex: 0 0 22px; height: 22px; margin-top: 2px; border: 1.5px solid #b9c0cf; border-radius: 50%;
  position: relative; transition: border-color .15s, background .15s;
}
.dg-opt .mk::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .15s; }
.dg-opt[aria-checked="true"] { background: var(--tint); color: var(--ink); font-weight: 500; }
.dg-opt[aria-checked="true"] .mk { border-color: var(--accent); background: var(--accent); }
.dg-opt[aria-checked="true"] .mk::after { transform: scale(1); }

/* 결과 화면 */
.dg-result { padding: 56px 0 0; }
.dg-res-top .eyebrow { margin-bottom: 14px; }
.dg-res-title {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.7rem, 5.2vw, 2.5rem); line-height: 1.4; letter-spacing: -.015em;
}
.dg-res-title em { font-style: normal; color: var(--accent); }
.dg-res-lead { margin-top: 20px; color: var(--muted); }

.dg-block { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ink); }
.dg-block h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.dg-block h3 small { display: block; margin-bottom: 6px; font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .18em; color: var(--accent); }
.dg-block > p { margin-top: 14px; }
.dg-block .sub { color: var(--muted); font-size: .94rem; }
.dg-block strong { font-weight: 700; color: var(--ink); }

.dg-lines { margin-top: 14px; }
.dg-lines li { padding: 13px 2px; border-bottom: 1px solid var(--line); }
.dg-lines li:first-child { border-top: 1px solid var(--line); }
.dg-plain li { position: relative; padding: 4px 0 4px 18px; }
.dg-plain li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 1px; background: var(--muted); }
.dg-good li { padding-left: 24px; }
.dg-good li::before { content: "✓"; width: auto; height: auto; background: none; left: 2px; top: 0; color: var(--accent); font-weight: 700; }

.dg-items { margin-top: 18px; counter-reset: dgi; }
.dg-item { display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.dg-item:first-child { border-top: 1px solid var(--line); }
.dg-item-no { grid-row: 1 / span 3; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--ink); font-size: .92rem; margin-top: 2px; }
.dg-item-tag { font-size: .76rem; font-weight: 500; letter-spacing: .08em; color: var(--accent); }
.dg-item-why { color: var(--ink); line-height: 1.7; }
.dg-item-do { color: var(--muted); font-size: .94rem; }
.dg-item-do b { color: var(--ink); font-weight: 500; }
.dg-item.first .dg-item-no { background: var(--ink); color: #fff; }

.dg-steps { margin-top: 14px; border-top: 1px solid var(--line); counter-reset: dgs; }
.dg-steps li { counter-increment: dgs; position: relative; padding: 15px 2px 15px 44px; border-bottom: 1px solid var(--line); }
.dg-steps li::before { content: counter(dgs); position: absolute; left: 4px; top: 15px; font-family: var(--serif); color: var(--accent); }

.dg-slides { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dg-slide { aspect-ratio: 4 / 5; padding: 16px 14px; background: var(--tint); border-radius: 4px; display: flex; flex-direction: column; gap: 8px; }
.dg-slide.cover { background: var(--ink); color: #fff; }
.dg-slide-n { font-family: var(--serif); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.dg-slide.cover .dg-slide-n { color: rgba(255, 255, 255, .6); }
.dg-slide b { font-family: var(--serif); font-weight: 600; font-size: .98rem; line-height: 1.45; color: var(--ink); }
.dg-slide.cover b { color: #fff; }
.dg-slide span { font-size: .84rem; line-height: 1.55; color: var(--muted); }
.dg-slide.cover span { color: rgba(255, 255, 255, .72); }
.dg-slide.cover .dg-fill { color: #cfe0ff; box-shadow: none; }
.dg-slide-photo { flex: 1; min-height: 40px; border: 1px dashed #b9c0cf; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: .78rem; color: var(--muted); text-align: center; padding: 6px; }

.dg-sample-top { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dg-sample-top span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.dg-copy { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; transition: background .2s, color .2s; }
.dg-copy:hover, .dg-copy.copied { background: var(--ink); color: #fff; }
.dg-sample { margin-top: 10px; padding: 8px 0 8px 22px; border-left: 3px solid var(--accent); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); line-height: 1.9; font-size: 1rem; }
.dg-fill { background: none; color: var(--accent); font-weight: 700; box-shadow: inset 0 -.45em 0 rgba(40, 91, 217, .12); }
.dg-swap { margin-top: 14px; }
.dg-swap li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.dg-swap li:first-child { border-top: 1px solid var(--line); }
.dg-swap b { font-weight: 500; color: var(--ink); }
.dg-swap span { color: var(--muted); font-size: .95rem; }
.dg-make { margin-top: 28px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); line-height: 1.5; }

.dg-end { margin-top: 72px; padding: 72px 0 80px; background: var(--ink); color: #fff; text-align: center; }
.dg-end p { max-width: 560px; margin: 0 auto; padding: 0 24px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.55; }
.dg-end .btn { margin-top: 32px; }
.dg-plainend { margin-top: 56px; }

.dg-after { margin-top: 56px; padding-bottom: 72px; display: flex; gap: 24px; flex-wrap: wrap; font-size: .9rem; }
.dg-after button, .dg-after a { background: none; border: 0; padding: 4px 0; color: var(--muted); border-bottom: 1px solid var(--line); min-height: 32px; }
.dg-after button:hover, .dg-after a:hover { color: var(--ink); border-color: var(--ink); }
.dg-end + .dg-wrap .dg-after { margin-top: 32px; }

@media (max-width: 720px) {
  .dg-wrap { padding: 0 20px; }
  .dg-intro { padding: 32px 0 80px; }
  .dg-intro .crumb { margin-bottom: 28px; }
  .dg-intro-actions .btn { flex: 1 1 100%; }
  .dg-quiz { padding: 4px 0 40px; }
  .dg-hint { margin-top: 14px; }
  .dg-q { margin: 12px 0 18px; }
  .dg-opt { padding: 14px 4px; gap: 14px; font-size: .98rem; line-height: 1.55; }
  .dg-result { padding-top: 36px; }
  .dg-block { margin-top: 52px; }
  .dg-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 8px; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  .dg-slides::-webkit-scrollbar { display: none; }
  .dg-slide { flex: 0 0 58%; scroll-snap-align: start; }
  .dg-swap li { grid-template-columns: 1fr; gap: 2px; }
  .dg-item { grid-template-columns: 34px 1fr; gap: 6px 12px; }
  .dg-end { padding: 56px 0 64px; }
  .dg-end .btn { width: calc(100% - 40px); }
}

.dg-notice { margin-top: 28px; font-size: .84rem; line-height: 1.7; color: #8b919c; }

.dg-btn-blue { margin-top: 56px; background: var(--accent); color: #fff; border-color: var(--accent); }
.dg-btn-blue:hover { background: #1f49b3; border-color: #1f49b3; }
.dg-btn-blue + .dg-after { margin-top: 32px; }
@media (max-width: 720px) { .dg-btn-blue { margin-top: 44px; } }

/* ===== 인스타 피드 예시 ===== */
.fd-wrap { margin-top: 20px; }
.fd-phone { max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); }
.fd-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.fd-head b { display: block; font-size: .86rem; line-height: 1.3; }
.fd-head small { display: block; font-size: .72rem; color: #8b919c; line-height: 1.2; }
.fd-head > div { flex: 1; }
.fd-more { color: #8b919c; letter-spacing: .1em; }
.fd-ava { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #285bd9, #7aa2ff); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.fd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -2px; }
.fd-track::-webkit-scrollbar { display: none; }
.fd-slide { flex: 0 0 100%; aspect-ratio: 4 / 5; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px 26px; background: var(--tint); }
.fd-n { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(16, 26, 47, .55); color: #fff; font-size: .7rem; line-height: 1.5; }
.fd-slide b { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.fd-slide span:not(.fd-n):not(.fd-cap) { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.fd-cover { background: var(--ink); }
.fd-cover b { color: #fff; font-size: 1.5rem; }
.fd-cover span:not(.fd-n) { color: rgba(255, 255, 255, .72) !important; }
.fd-text ul li { position: relative; padding: 9px 0 9px 20px; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.5; color: var(--text); }
.fd-text ul li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fd-bubble { background: #eef3ff; }
.fd-bubble em { font-style: normal; font-size: .76rem; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.fd-bubble p { padding: 16px 18px; background: #fff; border-radius: 16px 16px 16px 4px; font-size: 1rem; line-height: 1.7; color: var(--ink); box-shadow: 0 2px 10px rgba(16, 26, 47, .06); }
.fd-cta { background: var(--accent); align-items: center; text-align: center; }
.fd-cta b { color: #fff; font-size: 1.3rem; }
.fd-cta span:not(.fd-n) { color: rgba(255, 255, 255, .85) !important; }
.fd-photo { padding: 0; background-color: #e9edf4; background-repeat: no-repeat; }
.fd-photo.fd-eye { background-size: 300%; background-position: 50% 23%; }
.fd-photo.fd-face { background-size: 135%; background-position: 50% 8%; }
.fd-cap { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: .78rem; font-weight: 500; line-height: 1.5; }
.fd-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 2px; }
.fd-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d5dae4; }
.fd-dots i.on { background: var(--accent); }
.fd-acts { display: flex; align-items: center; gap: 14px; padding: 6px 12px 4px; }
.fd-save { margin-left: auto; font-size: .78rem; color: #8b919c; }
.fd-text-cap { padding: 4px 12px 14px; font-size: .88rem; line-height: 1.65; color: var(--text); }
.fd-text-cap b { color: var(--ink); }
.fd-more-t { color: #8b919c; }
.fd-note { margin-top: 12px; max-width: 360px; font-size: .8rem; color: #8b919c; line-height: 1.6; }
@media (max-width: 720px) { .fd-phone, .fd-note { max-width: none; } }

/* ===== 한 줄 평 · 종목별 사진 자르기 ===== */
.dg-oneline { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--ink); }
.dg-ol-tag { font-size: .76rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.dg-ol-main { margin-top: 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 3.8vw, 1.6rem); line-height: 1.6; color: var(--ink); letter-spacing: -.01em; }
.dg-ol-sub { margin-top: 12px; color: var(--muted); font-size: .96rem; }
.fd-photo.fd-brow { background-size: 270%; background-position: 50% 15%; }
.fd-photo.fd-hair { background-size: 120%; background-position: 50% 0%; }
.fd-none { background: #e9edf4; padding: 0; }
.fd-ph { margin: 22px; flex: 1; border: 1.5px dashed #aab3c5; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; }
.fd-ph b { font-size: 1.05rem !important; color: var(--ink); }
.fd-ph span { font-size: .84rem !important; color: var(--muted) !important; }

/* ===== 피드 넘기기 · 종목별 일러스트 ===== */
.fd-view { position: relative; }
.fd-track { cursor: grab; user-select: none; -webkit-user-select: none; scroll-behavior: auto; }
.fd-track.drag { cursor: grabbing; scroll-snap-type: none; }
.fd-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.fd-slide { -webkit-user-drag: none; }
.fd-photo { padding: 0; background: #e9edf4; }
.fd-art, .fd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.fd-photo .fd-cap { z-index: 1; }
.fd-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.5rem; line-height: 1; box-shadow: 0 2px 10px rgba(16, 26, 47, .22); display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.fd-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.fd-arrow[hidden] { display: none; }
.fd-prev { left: 8px; } .fd-next { right: 8px; }
.fd-count { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(16, 26, 47, .6); color: #fff; font-size: .72rem; line-height: 1.5; }
.fd-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d5dae4; transition: background .2s, transform .2s; cursor: pointer; position: relative; }
.fd-dot::after { content: ""; position: absolute; inset: -9px; }
.fd-dot.on { background: var(--accent); transform: scale(1.25); }
.fd-dots { gap: 7px; }
.fd-like, .fd-save { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; min-height: 28px; }
.fd-like svg { transition: transform .15s, fill .15s, stroke .15s; }
.fd-like[aria-pressed="true"] svg { fill: #ed4956; stroke: #ed4956; transform: scale(1.12); }
.fd-save { margin-left: auto; font-size: .78rem; color: #8b919c; }
.fd-save[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.fd-ico { display: inline-flex; color: inherit; }

/* ===== 첫 장: 시술 부위가 보이는 이미지 표지 ===== */
.fd-pcover { padding: 0; background: #e9edf4; justify-content: flex-end; }
.fd-pcover .fd-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16, 26, 47, .62) 0%, rgba(16, 26, 47, .18) 18%, rgba(16, 26, 47, 0) 32%, rgba(16, 26, 47, 0) 44%, rgba(16, 26, 47, .86) 100%); pointer-events: none; }
.fd-brand { position: absolute; z-index: 2; top: 20px; left: 22px; color: #fff; font-family: var(--serif); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.fd-brand i { display: block; width: 34px; height: 3px; margin-top: 8px; background: #fff; border-radius: 2px; }
.fd-ptxt { position: relative; z-index: 2; padding: 0 22px 30px; display: flex; flex-direction: column; gap: 8px; }
.fd-pcover .fd-ptxt b { color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; line-height: 1.45; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.fd-pcover .fd-ptxt span { color: rgba(255, 255, 255, .88) !important; font-size: .86rem !important; line-height: 1.5; }
.fd-slide .fd-brand { color: #fff !important; font-size: .9rem !important; letter-spacing: .06em; line-height: 1.3; }
.fd-slide { aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; }

/* ===== 4:5 슬라이드 마감: 표지 사진을 끝까지 채우고, 글 카드를 더 정돈 ===== */
.fd-pcover img, .fd-pcover .fd-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.fd-text, .fd-cta, .fd-bubble { justify-content: flex-start; padding: 74px 28px 28px; gap: 16px; }
.fd-text::before, .fd-cta::before, .fd-bubble::before { content: "MY_BEAUTY_SHOP"; position: absolute; top: 22px; left: 28px; font-family: var(--serif); font-weight: 700; font-size: .78rem; letter-spacing: .06em; color: #8b919c; }
.fd-cta::before { color: rgba(255, 255, 255, .75); }
.fd-text { background: #fff; background-image: linear-gradient(180deg, #f4f7ff 0%, #fff 55%); }
.fd-text b { font-size: 1.6rem; line-height: 1.45; }
.fd-text b::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 14px; background: var(--accent); border-radius: 2px; }
.fd-text ul { margin-top: 6px; }
.fd-text ul li { padding: 14px 0 14px 24px; font-size: 1.02rem; }
.fd-text ul li::before { top: 1.45em; }
.fd-cta { justify-content: center; align-items: flex-start; text-align: left; padding-top: 28px; }
.fd-cta b { font-size: 1.6rem; line-height: 1.45; }
.fd-cta span:not(.fd-n) { font-size: 1rem !important; }
.fd-bubble { background: #eef3ff; }
.fd-bubble p { font-size: 1.1rem; }

.dg-after-plain { padding-bottom: 56px; }

.dg-consult { margin-top: 64px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.55; color: var(--ink); }
.dg-consult + .dg-btn-blue { margin-top: 24px; }

.dg-consent { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; margin-top: 28px; font-size: .84rem; line-height: 1.7; color: #8b919c; cursor: pointer; }
.dg-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); cursor: pointer; }
.dg-consent b { color: #6a7488; font-weight: 700; }

.dg-shop { max-width: 520px; margin-top: 28px; }
.dg-shop label { display: block; margin-bottom: 8px; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.dg-shop input[type="text"] { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #c5ccd9; border-radius: 8px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.dg-shop input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40, 91, 217, .14); }
.dg-shop input[type="text"]::placeholder { color: #9aa3b5; }
.dg-shop-err { margin-top: 8px; color: #c0392b; font-size: .9rem; }
.dg-shop-note { margin-top: 12px; font-size: .84rem; line-height: 1.7; color: #8b919c; }
.dg-shop-note b { color: #6a7488; font-weight: 700; }

.dg-agree { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.dg-agree input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }
.dg-agree em { margin-left: 4px; font-style: normal; font-size: .74rem; font-weight: 500; color: var(--accent); }

/* ===== 내 진단 기록 (같은 기기에서 다시 들어오면) ===== */
.dg-history { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink); }
.dg-hist-tag { font-size: .76rem; font-weight: 700; letter-spacing: .16em; color: var(--accent); }
.dg-hist-meta { margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.dg-hist-focus { margin-top: 6px; color: var(--text); font-size: .98rem; }
.dg-hist-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.dg-hist-note { margin-top: 12px; font-size: .84rem; color: #8b919c; }
@media (max-width: 720px) { .dg-hist-actions .btn { flex: 1 1 100%; } }

/* ===== 지난 결과 보기 버튼 (첫 화면 맨 위) ===== */
.dg-last { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 520px; margin: 0 0 32px; padding: 14px 18px; border: 1px solid #b9ccf5; border-radius: 14px; background: #eef3ff; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.dg-last:hover { background: #e2ebff; border-color: var(--accent); }
.dg-last:active { transform: scale(.99); }
.dg-last-ic { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.dg-last-t { flex: 1; display: flex; flex-direction: column; line-height: 1.45; }
.dg-last-t b { font-size: 1.05rem; font-weight: 700; color: #1639b8; }
.dg-last-t small { font-size: .84rem; color: var(--muted); }
.dg-last-go { font-size: 1.3rem; color: var(--accent); }

/* ===== 중복 선택(2개까지) ===== */
.dg-multi { display: inline-block; margin-left: 8px; padding: 3px 11px; border-radius: 999px; background: #eef3ff; color: var(--accent); font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.dg-opt.multi .mk { border-radius: 6px; }
.dg-opt.multi .mk::after { inset: auto; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; border-radius: 0; background: none; transform: rotate(45deg) scale(0); }
.dg-opt.multi[aria-checked="true"] .mk::after { transform: rotate(45deg) scale(1); }
.dg-multi-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.dg-multi-count { font-size: .92rem; color: var(--muted); }
.dg-multi-count b { color: var(--accent); font-weight: 700; }
.dg-multi-bar .btn { min-width: 120px; }
@media (max-width: 720px) { .dg-multi-bar .btn { flex: 0 0 auto; } }

/* 모바일에서 '다음' 버튼이 늘어나지 않게 */
.dg-multi-bar .btn { width: auto; flex: 0 0 auto; min-width: 120px; }
.dg-multi-count { flex: 1; }

/* ===== 읽기 쉬운 결과지: 큰 글씨 · 굵은 제목 · 색 구분 · 아이콘 ===== */
.dg-result { font-size: 1.04rem; color: #172036; }
.dg-res-title { font-weight: 800; font-size: clamp(1.8rem, 5.6vw, 2.7rem); line-height: 1.4; }
.dg-res-title em { color: #1639b8; background: linear-gradient(transparent 62%, #cfe0ff 62%); padding: 0 3px; }
.dg-res-lead { color: #4a5570; font-size: 1.06rem; }

.dg-block { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
.dg-block h3.dg-h3 { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.45; color: var(--ink); }
.dg-h3 small { display: none; }
.dg-ic { flex: 0 0 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.ic-blue { background: #e7eeff; color: #1639b8; }
.ic-green { background: #e7eeff; color: #1639b8; }
.ic-orange { background: #dbe6ff; color: #1639b8; }
.dg-block .sub { color: #56607a; font-size: 1rem; line-height: 1.7; }
.dg-block strong { font-weight: 800; color: var(--ink); }
.dg-hl { font-weight: 800; color: #1639b8 !important; background: linear-gradient(transparent 62%, #dbe7ff 62%); }

/* 아이콘 목록 */
.dg-icolist { margin-top: 18px; display: grid; gap: 10px; }
.dg-icolist li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #f6f8fc; font-size: 1.04rem; line-height: 1.65; color: #172036; font-weight: 500; }
.dg-icolist li::before { display: none; }
.dg-li-ic { flex: 0 0 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e7eeff; color: #1639b8; margin-top: 1px; }
.dg-icolist.good li { background: #eef3ff; }
.dg-icolist.good .dg-li-ic { background: #cfe0ff; color: #1639b8; }
.dg-icolist.warn li { background: #f4f7ff; }
.dg-icolist.warn .dg-li-ic { background: #cfe0ff; color: #1639b8; }
.dg-icolist.star li { background: #f4f7ff; }
.dg-icolist.star .dg-li-ic { background: #dbe6ff; color: #1639b8; }
.dg-icolist.todo li { background: #f3f7ff; font-weight: 600; }
.dg-li-title { display: block; font-weight: 800; color: var(--ink); font-size: 1.06rem; }
.dg-pri { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: #eef3ff; font-weight: 600; line-height: 1.7; }
.dg-pri .dg-li-ic { background: var(--accent); color: #fff; }

/* 손볼 점 · 할 일 */
.dg-items { margin-top: 20px; display: grid; gap: 14px; }
.dg-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.dg-item:first-child { border-top: 1px solid var(--line); }
.dg-item.first { border-color: #b9ccf5; background: #f7faff; }
.dg-item-no { grid-row: auto; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: 1.05rem; }
.dg-item.first .dg-item-no { background: #1639b8; border-color: #1639b8; color: #fff; }
.dg-item-tag { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; letter-spacing: 0; }
.dg-item-title { font-size: 1.2rem; font-weight: 800; color: var(--ink); line-height: 1.5; }
.dg-item-why { margin-top: 6px; color: #4a5570; font-size: .97rem; line-height: 1.7; }
.dg-do { margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #e7eeff; }
.dg-do .dg-li-ic { flex: 0 0 30px; height: 30px; background: #1639b8; color: #fff; }
.dg-do b { display: block; font-size: .8rem; letter-spacing: .04em; color: #1639b8; font-weight: 800; }
.dg-do .t { display: block; margin-top: 2px; color: var(--ink); font-weight: 600; font-size: 1.02rem; line-height: 1.65; }

/* 칩(작은 라벨) */
.dg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700; line-height: 1.4; }
.dg-chip.c-content { background: #e7eeff; color: #1639b8; }
.dg-chip.c-expose { background: #cfe0ff; color: #0f2d8a; }
.dg-chip.c-booking { background: #dbe6ff; color: #1639b8; }
.dg-chip.c-return { background: #e7eeff; color: #1639b8; }
.dg-chip.first { background: #1639b8; color: #fff; }
.dg-chip.good { background: #e7eeff; color: #1639b8; }
.dg-chip.fix { background: #dbe6ff; color: #1639b8; }
.dg-chip.go { background: #e7eeff; color: #1639b8; }

/* 근거 숫자 */
.dg-stats { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dg-stat { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; }
.dg-stat.good { background: #eef3ff; color: #1639b8; }
.dg-stat.fix { background: #f4f7ff; color: #1639b8; }
.dg-stat b { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 800; line-height: 1.05; }
.dg-stat small { display: block; margin-top: 2px; font-size: .92rem; font-weight: 700; color: #4a5570; }

/* 2주 계획 */
.dg-weeks { margin-top: 18px; display: grid; gap: 18px; }
.dg-week-t span { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: .86rem; }
.dg-week .dg-icolist { margin-top: 10px; }

/* 한 줄 평 */
.dg-oneline { border-top: 2px solid var(--ink); }
.dg-ol-main { font-family: var(--serif); font-weight: 800; font-size: clamp(1.35rem, 4.2vw, 1.85rem); line-height: 1.55; color: var(--ink); }
.dg-ol-sub { color: #56607a; font-size: 1rem; line-height: 1.7; }

/* 다른 목록도 조금 크고 진하게 */
.dg-lines li, .dg-steps li { font-size: 1.03rem; color: #172036; }
.dg-steps li::before { font-weight: 800; }

@media (max-width: 720px) {
  .dg-block { margin-top: 48px; }
  .dg-block h3.dg-h3 { font-size: 1.3rem; gap: 12px; }
  .dg-ic { flex-basis: 40px; height: 40px; border-radius: 12px; }
  .dg-item { grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 14px; }
  .dg-item-no { width: 34px; height: 34px; font-size: .95rem; }
  .dg-stats { gap: 10px; }
  .dg-stat { padding: 14px; gap: 10px; }
  .dg-stat b { font-size: 2rem; }
  .dg-icolist li { padding: 12px 13px; gap: 12px; }
}

/* ===== 블루 계열로 통일: 굵은 글씨 · 연한 블루 박스 · 블루 아이콘 ===== */
.ic-solid { background: #1639b8; color: #fff; }
.dg-chip.fix { background: #1639b8; color: #fff; }
.dg-chip.good { background: #e7eeff; color: #1639b8; }
.dg-chip.go { background: #dbe6ff; color: #0f2d8a; }
.dg-chip.c-content { background: #e7eeff; color: #1639b8; }
.dg-chip.c-expose { background: #cfe0ff; color: #0f2d8a; }
.dg-chip.c-booking { background: #fff; color: #285bd9; box-shadow: inset 0 0 0 1.5px #285bd9; }
.dg-chip.c-return { background: #101a2f; color: #fff; }

.dg-icolist li { background: #f4f7ff; }
.dg-icolist.good li { background: #eef3ff; }
.dg-icolist.good .dg-li-ic { background: #1639b8; color: #fff; }
.dg-icolist.warn li { background: #f4f7ff; box-shadow: inset 4px 0 0 #285bd9; }
.dg-icolist.warn .dg-li-ic { background: #1639b8; color: #fff; }
.dg-icolist.star li { background: #eef3ff; }
.dg-icolist.star .dg-li-ic { background: #1639b8; color: #fff; }
.dg-icolist.todo li { background: #eef3ff; }
.dg-icolist.todo .dg-li-ic { background: #1639b8; color: #fff; }

/* 근거 숫자: 파란 아이콘 상자 */
.dg-stat { align-items: center; gap: 14px; padding: 18px; border-radius: 16px; }
.dg-stat.good { background: #eef3ff; color: #1639b8; }
.dg-stat.fix { background: #1639b8; color: #fff; }
.dg-stat-ic { flex: 0 0 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #1639b8; color: #fff; }
.dg-stat.fix .dg-stat-ic { background: #fff; color: #1639b8; }
.dg-stat.fix b { color: #fff; }
.dg-stat.fix small { color: rgba(255, 255, 255, .88); }
.dg-stat.good b { color: #1639b8; }

/* 먼저 할 일: 파란 큰 박스 (맞춤 클래스 상세의 '결과물' 박스와 같은 느낌) */
.dg-focusbox { margin-top: 20px; padding: 22px 22px; border-radius: 16px; background: linear-gradient(135deg, #1639b8, #285bd9); color: #fff; }
.dg-focusbox .k { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }
.dg-focusbox .t { margin-top: 8px; font-family: var(--serif); font-weight: 800; font-size: clamp(1.2rem, 3.6vw, 1.55rem); line-height: 1.55; color: #fff; }
.dg-focusbox .t + .t { margin-top: 4px; font-size: clamp(1.05rem, 3vw, 1.2rem); font-weight: 700; color: rgba(255, 255, 255, .92); }
@media (max-width: 720px) { .dg-focusbox { padding: 18px 16px; } .dg-stat-ic { flex-basis: 46px; height: 46px; } }

/* ===== 조정: 기존 사이트 글자 크기에 맞추고, 파란 바탕은 핵심 내용에만 ===== */
.dg-result { font-size: 1rem; color: var(--text); }
.dg-res-title { font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.4; letter-spacing: -.01em; }
.dg-res-title em { background: none; color: #1639b8; font-weight: 700; padding: 0; }
.dg-res-lead { font-size: 1rem; color: var(--muted); }
.dg-block { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--ink); }
.dg-block h3.dg-h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); font-weight: 600; gap: 12px; }
.dg-ic { flex: 0 0 36px; height: 36px; border-radius: 10px; }
.dg-ic svg { width: 20px; height: 20px; }
.ic-blue, .ic-solid { background: #eef3ff; color: #1639b8; }
.dg-block .sub { font-size: .94rem; color: var(--muted); line-height: 1.7; }
.dg-block strong { font-weight: 700; color: var(--ink); }
.dg-hl, .dg-block .dg-hl { background: none !important; color: #1639b8 !important; font-weight: 700; }

/* 목록: 흰 바탕 + 가는 선, 아이콘만 파랑 */
.dg-icolist { display: block; margin-top: 12px; border-top: 1px solid var(--line); }
.dg-icolist li, .dg-icolist.good li, .dg-icolist.warn li, .dg-icolist.star li, .dg-icolist.todo li { background: none; box-shadow: none; border-radius: 0; padding: 12px 2px; gap: 12px; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 400; line-height: 1.7; color: var(--text); }
.dg-icolist .dg-li-ic, .dg-icolist.good .dg-li-ic, .dg-icolist.warn .dg-li-ic, .dg-icolist.star .dg-li-ic, .dg-icolist.todo .dg-li-ic { flex: 0 0 22px; height: 22px; margin-top: 2px; background: none; color: #1639b8; }
.dg-icolist .dg-li-ic svg { width: 18px; height: 18px; }
.dg-li-title { margin-bottom: 2px; font-size: .98rem; font-weight: 700; color: var(--ink); }

/* 핵심 한 줄(우선순위)은 연한 파랑 박스 */
.dg-pri { margin-top: 14px; padding: 12px 14px; gap: 10px; border-left: 3px solid #1639b8; border-radius: 0 10px 10px 0; background: #eef3ff; font-size: .95rem; font-weight: 500; line-height: 1.7; }
.dg-pri .dg-li-ic { flex: 0 0 22px; height: 22px; background: none; color: #1639b8; }

/* 근거 숫자 */
.dg-stats { gap: 10px; margin-top: 14px; }
.dg-stat, .dg-stat.good, .dg-stat.fix { padding: 14px 16px; gap: 12px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.dg-stat-ic, .dg-stat.fix .dg-stat-ic { flex: 0 0 38px; height: 38px; border-radius: 10px; background: #eef3ff; color: #1639b8; }
.dg-stat-ic svg { width: 20px; height: 20px; }
.dg-stat b, .dg-stat.good b, .dg-stat.fix b { font-size: 1.6rem; font-weight: 700; color: #1639b8; }
.dg-stat small, .dg-stat.fix small { font-size: .85rem; font-weight: 500; color: var(--muted); }

/* 라벨(칩): 흰 바탕에 파란 글씨, 하나만 채움 */
.dg-chips { margin-top: 14px; gap: 6px; }
.dg-chip, .dg-chip.good, .dg-chip.fix, .dg-chip.go, .dg-chip.c-content, .dg-chip.c-expose, .dg-chip.c-booking, .dg-chip.c-return { padding: 3px 11px; font-size: .78rem; font-weight: 600; background: #fff; color: #1639b8; box-shadow: inset 0 0 0 1px #b9ccf5; }
.dg-chip.first { background: #1639b8; color: #fff; box-shadow: none; }

/* 손볼 점: 카드 대신 가는 선으로 구분, '해볼 일'만 연한 파랑 박스 */
.dg-items { display: block; margin-top: 12px; border-top: 1px solid var(--line); }
.dg-item, .dg-item.first { grid-template-columns: 30px 1fr; gap: 12px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.dg-item:first-child { border-top: 0; }
.dg-item-no { width: 28px; height: 28px; font-size: .85rem; font-weight: 700; border: 1.5px solid #1639b8; color: #1639b8; background: #fff; }
.dg-item.first .dg-item-no { background: #1639b8; border-color: #1639b8; color: #fff; }
.dg-item-tag { margin-bottom: 6px; }
.dg-item-title { font-size: 1.02rem; font-weight: 700; line-height: 1.5; }
.dg-item-why { margin-top: 4px; font-size: .92rem; color: var(--muted); line-height: 1.7; }
.dg-do { margin-top: 10px; padding: 11px 13px; gap: 10px; border-radius: 10px; background: #eef3ff; }
.dg-do .dg-li-ic { flex: 0 0 22px; height: 22px; margin-top: 1px; background: #1639b8; color: #fff; }
.dg-do .dg-li-ic svg { width: 13px; height: 13px; }
.dg-do b { font-size: .75rem; }
.dg-do .t { font-size: .95rem; font-weight: 600; line-height: 1.6; }

/* 2주 계획 */
.dg-weeks { margin-top: 14px; gap: 14px; }
.dg-week-t span { padding: 0; border-radius: 0; background: none; color: #1639b8; font-size: .95rem; font-weight: 700; }
.dg-week .dg-icolist { margin-top: 6px; }

/* 한 줄 평 · 먼저 할 일 박스 */
.dg-oneline { border-top: 1px solid var(--ink); }
.dg-ol-main { font-size: clamp(1.1rem, 2.6vw, 1.3rem); font-weight: 600; line-height: 1.65; }
.dg-ol-sub { font-size: .94rem; color: var(--muted); line-height: 1.7; }
.dg-focusbox { margin-top: 16px; padding: 16px 18px; border-radius: 12px; }
.dg-focusbox .k { font-size: .74rem; }
.dg-focusbox .t { font-size: clamp(1.05rem, 2.4vw, 1.2rem); font-weight: 700; }
.dg-focusbox .t + .t { font-size: .98rem; font-weight: 600; }

.dg-lines li, .dg-steps li { font-size: .95rem; font-weight: 400; color: var(--text); }
.dg-steps li::before { font-weight: 600; }

@media (max-width: 720px) {
  .dg-block { margin-top: 44px; }
  .dg-block h3.dg-h3 { font-size: 1.15rem; }
  .dg-ic { flex-basis: 34px; height: 34px; }
  .dg-item, .dg-item.first { grid-template-columns: 28px 1fr; gap: 10px; padding: 16px 0; }
  .dg-stat, .dg-stat.good, .dg-stat.fix { padding: 12px; }
  .dg-stat b, .dg-stat.good b, .dg-stat.fix b { font-size: 1.4rem; }
  .dg-icolist li { padding: 11px 0; }
  .dg-focusbox { padding: 14px; }
}

/* ===== 참고 이미지 느낌: 진한 파랑 라벨 + 굵은 제목 + 핵심 구절만 굵은 파랑 ===== */
.dg-res-top .eyebrow { display: inline-block; margin-bottom: 16px; padding: 5px 14px; border-radius: 999px; background: #1639b8; color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.dg-res-title { font-weight: 700; }
.dg-oneline .dg-ol-main { padding-left: 14px; border-left: 4px solid #1639b8; }
.dg-ol-tag { display: inline-block; padding: 3px 11px; border-radius: 3px; background: #1639b8; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.dg-week-t span { display: inline-block; padding: 3px 12px; border-radius: 3px; background: #1639b8; color: #fff; font-size: .88rem; font-weight: 700; }
.dg-do b { display: inline-block; padding: 2px 8px; border-radius: 3px; background: #1639b8; color: #fff; font-size: .72rem; letter-spacing: .02em; }
.dg-do .t { margin-top: 6px; }
.dg-hl, .dg-block .dg-hl, .dg-icolist .dg-hl, .dg-ol-main .dg-hl { color: #1639b8 !important; font-weight: 700; background: none !important; }
.dg-do .dg-hl { color: #1639b8 !important; }
