/* Logpin — 진단 전용 */
.dg-sec { padding: 64px 0 96px; }
.dg-narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.dg-dark { position: relative; min-height: calc(100vh - 72px); padding: 64px 0; background: var(--navy); color: #E8ECF5; }
.dg-dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(127, 160, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 160, 255, .06) 1px, transparent 1px); background-size: 32px 32px; }
.dg-dark > * { position: relative; }

.cand { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.cand:hover, .cand:focus-visible { border-color: var(--blue); background: var(--blue-bg2); }
.cand .ic { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--bg2); color: var(--blue); font-weight: 800; }
.cand b { display: block; font-size: 17px; }
.cand small { display: block; font-size: 14px; color: var(--sub); }
.cand .go { margin-left: auto; flex-shrink: 0; padding: 8px 12px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }

.ring-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.ring-wrap svg { width: 100%; height: 100%; }
.ring-wrap circle { transition: stroke-dasharray .6s ease; }
.ring-wrap > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-wrap b { font-size: 52px; line-height: 1; letter-spacing: -.03em; color: #fff; }
.ring-wrap small { margin-top: 6px; font-size: 14px; color: var(--ntext); }
.ld-items { max-width: 420px; margin-left: auto; margin-right: auto; border: 1px solid var(--nline); border-radius: 18px; background: rgba(18, 26, 46, .85); text-align: left; overflow: hidden; }
.ld-items > div { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 18px; border-top: 1px solid var(--nline); font-size: 16px; color: #7E8AA8; }
.ld-items > div:first-child { border-top: 0; }
.ld-items > div.now, .ld-items > div.done { color: #fff; }
.ld-items em { font-style: normal; font-size: 14px; }
.ld-items .now em { color: var(--amber-l); }
.ld-items .done em { color: var(--blue-ll); }

.dg-res { padding: 40px 0 120px; background: var(--bg2); min-height: 100vh; }
.res-head { display: flex; flex-direction: column; margin-bottom: 28px; }
.res-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start; }
.res-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.res-main { display: flex; flex-direction: column; gap: 16px; }
.score-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 32px 28px 28px; border-radius: 24px; background: var(--navy2); color: #E8ECF5; }
.score-card::before { content: ""; position: absolute; right: -100px; top: -100px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 91, 255, .35), rgba(31, 91, 255, 0) 65%); }
.score-card > * { position: relative; }
.score-card .ring-wrap { width: 190px; height: 190px; }
.sc-mini { padding: 14px 16px; border-radius: 14px; background: var(--navy3); display: flex; flex-direction: column; }
.sc-mini small { font-size: 13px; color: var(--ntext); }
.sc-mini b { font-size: 22px; }
.lp-bar2 { height: 8px; border-radius: 4px; background: var(--nline); overflow: hidden; }
.lp-bar2 i { display: block; height: 100%; background: var(--blue-l); border-radius: 4px; }
.deep-cta { display: flex; flex-direction: column; padding: 28px; border-radius: 24px; background: var(--blue); color: #fff; }
.deep-cta small { font-size: 14px; font-weight: 600; color: #DCE6FF; }
.deep-cta > b { margin-top: 8px; font-size: 22px; line-height: 1.4; }
.deep-cta ul { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.deep-cta li::before { content: "✓"; margin-right: 10px; }
.ai-card { border-color: #DCE5FA; }
.ai-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: #fff; }
.act { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg2); font-size: 16px; font-weight: 600; }
.act .nb { flex-shrink: 0; }
.act a { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.nb { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.mini-bars { display: flex; align-items: flex-end; gap: 7px; filter: blur(2px); }
.mini-bars i { width: 16px; border-radius: 4px; background: #CDD2DA; }
.mini-bars i.me { background: #F5B13D; }
.area-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line2); font-size: 15px; }
.area-rows > div:first-child { border-top: 0; }
.area-rows span { color: var(--sub); }
.area-rows .lk { color: var(--amber); }
.dot-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; font-weight: 700; }
.dot-ic.warn { background: var(--amber-bg); color: var(--amber); }
.dot-ic.ok { background: #EAF0FF; color: var(--blue-d); }
.items > div { padding: 14px 0; border-top: 1px solid var(--line2); }
.items > div:first-child { border-top: 0; }
.items b { display: block; font-size: 16px; }
.items small { display: block; margin-top: 2px; font-size: 15px; color: var(--sub); line-height: 1.55; }
.items .empty { color: var(--mut); font-size: 15px; }
.deep-lock { position: relative; overflow: hidden; }
.lock-item { padding: 16px 18px 16px 46px; border: 1px solid var(--nline); border-radius: 16px; background: rgba(18, 26, 46, .85); position: relative; }
.lock-item::before { content: ""; position: absolute; left: 18px; top: 18px; width: 16px; height: 16px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DB6FF' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.lock-item b { display: block; font-size: 16px; color: #fff; }
.lock-item small { display: block; margin-top: 2px; font-size: 14px; color: var(--ntext); }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 22, 35, .06); }
.share-btn { width: 56px; padding: 0; }

.done-ic { width: 84px; height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 12px rgba(31, 91, 255, .12); }
.done-rows > div { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.done-rows > div > .stack { flex: 1; }
.done-rows small { font-size: 13px; color: var(--sub); }

.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 16, 32, .55); }
.sheet-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; animation: fadeUp .25s ease-out; }
.grab { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #D5D9DF; }
.x { width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; background: transparent; font-size: 18px; color: var(--sub); }
.in-sm { height: 52px; font-size: 16px; border-radius: 12px; }
.consent { padding: 4px 14px; border-radius: 14px; background: var(--bg2); }
.consent .check + .check { border-top: 1px solid var(--line); }
@media (min-width: 961px) { .sheet { align-items: center; } .sheet-card { border-radius: 24px; } }
@media (max-width: 960px) {
  .res-grid { grid-template-columns: minmax(0, 1fr); }
  .res-side { position: static; }
  .dg-res { padding-top: 20px; }
}
@media (max-width: 960px) { .dg .hd-cta .btn-o { display: inline-flex; } .dg .hd-cta [data-kakao] { display: none; } }

/* ---------- 결과 재구성: 판정, 지도·순위, 운영 비교, 키워드, 상권 ---------- */
.sc-rank { width: 100%; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--navy3); display: flex; flex-direction: column; gap: 2px; }
.sc-rank small { font-size: 11.5px; color: var(--ntext); }
.sc-rank b { font-size: 24px; color: #fff; letter-spacing: -.02em; }
.sc-rank span { font-size: 13px; color: var(--ntext); }
.vd-card { display: flex; flex-direction: column; gap: 12px; border-left: 4px solid var(--blue); }
.vd-card .tag { background: var(--blue-bg); color: #2A3A8C; }
.vd-card.is-behind, .vd-card.is-invisible { border-left-color: #F5A623; }
.vd-card.is-behind .tag, .vd-card.is-invisible .tag { background: var(--amber-bg); color: var(--amber); }
.vd-title { font-size: 21px; line-height: 1.45; letter-spacing: -.02em; }
.vd-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vd-lines li { position: relative; padding-left: 16px; font-size: 15.5px; line-height: 1.6; color: #2B3340; }
.vd-lines li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.vd-sum { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line2); }
.vd-sum p { font-size: 15.5px; line-height: 1.7; color: #2B3340; }
.cp-card { display: flex; flex-direction: column; gap: 16px; }
.cp-head { margin-top: 2px; font-size: 21px; letter-spacing: -.02em; }
.map-box { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
#r-map { height: 380px; background: #EEF1F6; }
.pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; font: 700 13px/1 Pretendard, sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(15, 22, 35, .25); }
.pin b { font-weight: 700; }
.pin-above { background: #0F1623; color: #fff; border: 2px solid #fff; }
.pin-below { background: #fff; color: #4A5361; border: 2px solid #C3CAD4; }
.pin-me { background: var(--blue); color: #fff; border: 3px solid #fff; font-size: 15px; box-shadow: 0 0 0 6px rgba(31, 91, 255, .25), 0 4px 12px rgba(15, 22, 35, .3); }
.pin-me.pin-hidden { background: #F5A623; box-shadow: 0 0 0 6px rgba(245, 166, 35, .25); }
.leaflet-tooltip.tip-me { padding: 5px 10px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: 600 13px Pretendard, sans-serif; box-shadow: 0 6px 16px rgba(15, 22, 35, .3); }
.leaflet-tooltip.tip-me::before { display: none; }
.map-legend { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 10px; background: rgba(15, 22, 35, .9); color: #E8ECF5; font: 500 12px Pretendard, sans-serif; }
.map-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; vertical-align: -1px; }
.map-legend .lg-cap { color: var(--ntext); font-size: 11px; }
.rk-list { display: flex; flex-direction: column; border-top: 1px solid var(--line2); }
.rk-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line2); color: var(--ink); font-size: 15px; }
a.rk-row:hover { background: var(--bg2); }
.rk-row .rk { font-family: Pretendard, sans-serif; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--mut); text-align: center; }
.rk-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rk-row .mt { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mut); white-space: nowrap; }
.rk-row .mt b { color: var(--ink); font-family: Pretendard, sans-serif; font-variant-numeric: tabular-nums; font-weight: 500; }
.rk-row .lr { min-width: 54px; text-align: right; }
.rk-row .lr.stale { color: var(--amber); }
.rk-row.me { margin: 4px 0; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--blue-bg2); }
.rk-row.me .rk, .rk-row.me .nm { color: var(--blue-d); }
.rk-row.below { opacity: .72; }
.cp-extra { display: flex; flex-direction: column; }
.cp-extra .ln { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.cp-extra .ln span { color: var(--sub); }
.cp-extra .ln b.bad { color: var(--amber); }
.cp-extra .note { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); color: #6B4500; font-size: 14px; line-height: 1.6; }
.cp-extra .note.ok { background: var(--blue-bg2); color: #2A3A8C; }
.cp-extra .sub-h { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--mut); }
.ops-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.ops-row .k { color: var(--sub); }
.ops-row .me { font-weight: 700; }
.ops-row .peer { color: var(--mut); font-size: 14px; text-align: right; }
.ops-row.behind .me { color: var(--amber); }
.ops-hint { margin: -4px 0 8px 132px; font-size: 13.5px; color: var(--amber); }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kw-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg2); font-size: 14px; }
.kw-chips span.top { background: var(--blue-bg); color: #2A3A8C; font-weight: 600; }
.kw-chips b { font-family: Pretendard, sans-serif; font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 500; color: var(--mut); }
.ar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ar-card { padding: 14px 16px; border-radius: 14px; background: var(--bg2); }
.ar-card small { display: block; font-size: 13px; color: var(--mut); }
.ar-card b { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -.02em; font-family: Pretendard, sans-serif; font-variant-numeric: tabular-nums; font-weight: 700; }
.ar-card b em { font-style: normal; font-family: Pretendard, sans-serif; font-size: 13px; color: var(--mut); margin-left: 3px; font-weight: 500; }
.ar-lock { position: relative; margin-top: 12px; overflow: hidden; border-radius: 14px; background: var(--bg2); cursor: pointer; }
.ar-lock .rows { padding: 12px 16px; filter: blur(5px); user-select: none; }
.ar-lock .rows div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.ar-lock .over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: rgba(244, 246, 250, .55); }
.ar-lock .over b { font-size: 16px; }
.ar-lock .over span { font-size: 13.5px; color: var(--sub); }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card-h b { font-size: 18px; }
.card-h small { font-size: 12.5px; color: var(--mut); }
.items .imp { display: block; margin-top: 4px; font-size: 13.5px; color: var(--blue-d); }
@media (max-width: 960px) {
  #r-map { height: 300px; }
  .rk-row { grid-template-columns: 24px minmax(0, 1fr); }
  .rk-row .mt { grid-column: 2; }
  .ops-row { grid-template-columns: 90px minmax(0, 1fr); }
  .ops-row .peer { grid-column: 2; text-align: left; }
  .ops-hint { margin-left: 102px; }
  .vd-title { font-size: 19px; }
}
@media (max-width: 960px) { .score-card .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pin { width: 30px; height: 30px; }
.pin-me { width: 36px; height: 36px; }
.nv-me { position: relative; width: 36px; height: 36px; }
.nv-me .tip-me { position: absolute; left: 50%; top: 42px; transform: translateX(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 13px Pretendard, sans-serif; box-shadow: 0 6px 16px rgba(15, 22, 35, .3); }
.nv-legend { position: absolute; top: 10px; right: 10px; z-index: 5; }

/* ---------- 분석 중: 코드 → 실제 값 ---------- */
.ld-console { max-width: 560px; margin-left: auto; margin-right: auto; overflow: hidden; border: 1px solid #26324D; border-radius: 18px; background: rgba(6, 10, 20, .92); text-align: left; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.ld-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid #1C2742; font-size: 12px; color: #9AA6BD; }
.ld-dots { display: flex; gap: 6px; } .ld-dots i { width: 9px; height: 9px; border-radius: 50%; background: #26324D; }
.ld-tag { margin-left: auto; padding: 2px 8px; border: 1px solid #2B3A62; border-radius: 6px; font-size: 11px; color: #9AA6BD; font-variant-numeric: tabular-nums; }
.ld-code { padding: 14px 16px 16px; font-size: 12.5px; line-height: 1.95; color: #9AA6BD; min-height: 210px; }
.ld-code .cl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; animation: fadeUp .3s ease both; }
.ld-code .ex { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ld-code .kw { color: #B58CFF; } .ld-code .id { color: #E8ECF5; } .ld-code .fn { color: #7FA0FF; } .ld-code .st { color: #7FD3FF; }
.ld-code .val { min-width: 72px; text-align: right; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-code .val.pend { color: #56627E; animation: blink 1.2s ease-in-out infinite; }
.ld-code .val.good { color: #5BD69A; } .ld-code .val.warn { color: #F5C46B; }
@media (max-width: 600px) { .ld-code { font-size: 11px; padding: 12px; } .ld-code .val { min-width: 56px; } }

/* ---------- 분석 리포트 형식 ---------- */
.res-head.rep { position: relative; overflow: hidden; margin-bottom: 24px; padding: 26px 32px 28px; border-radius: 24px; background: #0A1020; color: #E8ECF5; }
.res-head.rep::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(157, 182, 255, .16) 1px, transparent 1.3px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.res-head.rep::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 110, 255, .35), transparent 65%); pointer-events: none; }
.res-head.rep > * { position: relative; z-index: 1; }
.rep-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #7E8AA8; letter-spacing: .02em; }
.res-head.rep h1 { color: #fff; }
.rep-addr { margin-top: 4px; font-size: 15px; color: #AEB8CB; }
.rep-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rep-meta span { padding: 6px 12px; border: 1px solid #26324D; border-radius: 999px; background: rgba(18, 26, 46, .75); font-size: 13px; color: #C9D4EC; font-variant-numeric: tabular-nums; }
.rep-meta b { color: #fff; font-weight: 700; }
.rep-link { display: inline-block; margin-top: 14px; font-size: 14px; color: #9DB6FF; }
.sec-no { display: inline-flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.sec-no .secn { padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 0; transform: translateY(-2px); }
.sec-no em { font-style: normal; font-weight: 500; font-size: 14px; color: var(--mut); }
.sec-no.dark-no { color: #fff; font-size: 15px; }
.sec-no.dark-no .secn { background: #fff; color: var(--ink); }
.cp-card .sec-no { font-size: 15px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 6px 4px 0; }
.sec-h small { font-size: 13px; color: var(--mut); }
.vd-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vd-ev:empty { display: none; }
.vd-ev .ev-l { margin-right: 4px; font-size: 11.5px; color: var(--mut); }
.vd-ev span:not(.ev-l) { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); font-size: 13px; color: var(--sub); }
.vd-ev b { color: var(--ink); font-variant-numeric: tabular-nums; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--blue); animation: blink 1s steps(1) infinite; }
@media (max-width: 960px) { .res-head.rep { padding: 22px 20px 24px; border-radius: 20px; } .sec-no { font-size: 16px; } }

.ops-row { align-items: start; }
.ops-row .me small.hint { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: #8A5200; }
@media (max-width: 600px) {
  .pin { width: 24px; height: 24px; font-size: 11.5px; }
  .pin-me { width: 30px; height: 30px; font-size: 13px; }
  .nv-me { width: 30px; height: 30px; } .nv-me .tip-me { top: 36px; font-size: 12px; }
  .map-legend { padding: 7px 9px; gap: 3px; font-size: 11px; }
  .map-legend .lg-cap { display: none; }
}
