/* Leapinity 스캔 화면 모양
   - 색·글꼴·버튼·위아래 막대는 lp-brand.css(Leapinity 공통, _leapinity-style 에서 복사)를 써요.
   - 여기는 스캔에만 필요한 모양. 색은 모두 변수로 써서 밝게·어둡게가 같이 바뀌어요.
   - 사이트 고유 색: 주황(호박) #c2410c (흰 글자 5.2:1) / 어두운 바탕 글자 #fdba74
   - style-src 'self' 라서 HTML 에 style="…" 을 쓰지 않아요 (자바스크립트의 el.style.width 는 괜찮아요) */
:root {
  --lp-accent: #c2410c; --lp-accent-ink: #c2410c; --lp-accent-ink-dark: #fdba74; --lp-on-accent: #ffffff;
  --c-accent-soft: #fff1e6;
  --c-danger: #b42318; --c-danger-bg: #fdecea; --c-warn: #8a4b00; --c-warn-bg: #fff4e0;
  --c-good: #07684d; --c-good-bg: #e3f6ef; --c-info: #1d4ed8; --c-info-bg: #e8effd;
  --c-code-bg: #f3f4fa; --c-hit: #fff1c2;
  --lc0: #c2410c; --lc1: #7c5cff; --lc2: #0e7490; --lc3: #ca8a04; --lc4: #16a34a; --lc5: #db2777; --lc6: #2563eb; --lc7: #64748b; --lc8: #94a3b8;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", "Courier New", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --c-accent-soft: #3a1f10;
  --c-danger: #ffb4ab; --c-danger-bg: #3d1515; --c-warn: #ffd18a; --c-warn-bg: #3a2a10;
  --c-good: #7ee2c0; --c-good-bg: #10332a; --c-info: #a9c4ff; --c-info-bg: #18264f;
  --c-code-bg: #0b1030; --c-hit: #4a3a10;
  --lc0: #fb923c; --lc1: #a78bfa; --lc2: #22d3ee; --lc3: #facc15; --lc4: #4ade80; --lc5: #f472b6; --lc6: #60a5fa; --lc7: #94a3b8; --lc8: #64748b;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --c-accent-soft: #3a1f10;
  --c-danger: #ffb4ab; --c-danger-bg: #3d1515; --c-warn: #ffd18a; --c-warn-bg: #3a2a10;
  --c-good: #7ee2c0; --c-good-bg: #10332a; --c-info: #a9c4ff; --c-info-bg: #18264f;
  --c-code-bg: #0b1030; --c-hit: #4a3a10;
  --lc0: #fb923c; --lc1: #a78bfa; --lc2: #22d3ee; --lc3: #facc15; --lc4: #4ade80; --lc5: #f472b6; --lc6: #60a5fa; --lc7: #94a3b8; --lc8: #64748b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.65; }
main { flex: 1; padding-bottom: 8px; }
a { color: var(--lp-accent-ink); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible, output:focus-visible {
  outline: 3px solid var(--lp-focus); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lp-card); color: var(--lp-ink); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.muted { color: var(--lp-mute); }
.mono { font-family: var(--mono); }
.mono::placeholder { font-family: var(--lp-font); }
[hidden] { display: none !important; }
.copy-helper { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* 위 막대 */
.bar-link { min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (max-width: 400px) { .bar-link { display: none; } }

/* 머리 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding-top: 14px; font-size: 14px; color: var(--lp-mute); }
.crumbs a { color: var(--lp-soft); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding-top: 6px; padding-bottom: 14px; }
.page-head h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; margin: 4px 0 6px; display: flex; align-items: center; gap: 10px; }
.h1-emoji { font-size: .9em; }
.lead { color: var(--lp-soft); margin: 0; font-size: 17px; }

/* 아래 설명 */
.content { margin-top: 30px; }
.content h2 { font-size: 21px; font-weight: 800; margin: 0 0 10px; }
.content p, .content li { color: var(--lp-ink); }
.explain section + section { margin-top: 26px; }
.explain p { margin: 0 0 10px; }
.safe-list { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0; }
.safe-list li { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 14px; padding: 10px 14px 10px 40px; position: relative; }
.safe-list li::before { content: '✔'; position: absolute; left: 15px; top: 10px; color: var(--lp-accent-ink); font-weight: 800; }
.faq { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 16px; padding: 4px 16px; margin-bottom: 8px; }
.faq p { margin: 0 0 12px; color: var(--lp-soft); }
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '▸'; color: var(--lp-accent-ink); transition: transform .2s; flex: none; }
.faq[open] summary::before { transform: rotate(90deg); }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mini-card { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; border-radius: 16px; background: var(--lp-card); border: 1px solid var(--lp-line);
  color: var(--lp-ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.mini-card:hover { border-color: var(--lp-accent); }
.mini-emoji { font-size: 20px; }
.legal h2 { font-size: 18px; margin-top: 24px; }
.legal a { overflow-wrap: anywhere; }
.nf { text-align: center; padding-top: 40px; }
.nf h1 { justify-content: center; }
.nf-emoji { font-size: 56px; margin: 0; }
.nf .lp-btn { margin-top: 18px; }

/* 아래쪽 */
.lp-foot-links a { min-width: 44px; justify-content: center; }
.foot-cats { display: flex; flex-wrap: wrap; gap: 0 18px; width: 100%; }
.foot-cats a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.foot-cats a:hover { color: var(--lp-foot-hi); }
.ad-slot { margin-top: 20px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--lp-ink); color: var(--lp-bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: opacity .25s, transform .25s; pointer-events: none; z-index: 90; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .toast, .faq summary::before, .bar span, .drop, .feat { transition: none; }
  .feat:hover { transform: none; }
}
@media print {
  .lp-bar, .lp-foot, .ad-slot, .crumbs { display: none; }
}

/* ---------- Leapinity의 다른 도구 (아래쪽 바로 위, 카드 3장. 휴대폰은 한 줄씩) ---------- */
.lp-more { margin-top: 40px; margin-bottom: 8px; }
.lp-more-h { margin: 0 0 12px; font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--lp-soft); }
.lp-more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-more-card { display: flex; align-items: center; gap: 12px; min-height: 64px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 18px;
  background: var(--lp-card); border: 1px solid var(--lp-line); color: var(--lp-ink); text-decoration: none; transition: transform .25s ease, border-color .25s; }
.lp-more-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lp-vio) 45%, var(--lp-line)); }
.lp-more-card:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: 2px; }
.lp-more-ic { flex: none; width: 40px; height: 40px; }
.lp-more-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lp-more-txt b { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.lp-more-txt span { font-size: 13.5px; color: var(--lp-soft); line-height: 1.4; word-break: keep-all; }
.lp-more-go { flex: none; font-size: 22px; line-height: 1; color: var(--lp-mute); }
@media (max-width: 720px) {
  .lp-more { margin-top: 32px; }
  .lp-more-list { grid-template-columns: 1fr; gap: 8px; }
  .lp-more-card { min-height: 56px; padding: 10px 12px; }
  .lp-more-ic { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .lp-more-card { transition: none; } .lp-more-card:hover { transform: none; } }

/* ---------- 🔒 입력 칸 위 '기기 밖으로 안 나가요' 안내 ---------- */
.trust { margin: 0 0 14px; padding: 12px 16px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--lp-accent) 45%, var(--lp-line)); background: var(--c-accent-soft); }
.trust-main { margin: 0; display: flex; align-items: center; gap: 12px; color: var(--lp-ink); }
.trust-main b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; word-break: keep-all; }
.trust-sub { display: block; font-size: 13.5px; color: var(--lp-soft); }
.trust-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lp-card); font-size: 19px; }
.trust-why a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--lp-accent-ink); }
.home-trust { margin-top: 4px; margin-bottom: 18px; }
.home-trust .trust { margin: 0; }
.trust-why summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--lp-accent-ink); list-style: none; }
.trust-why summary::-webkit-details-marker { display: none; }
.trust-why summary::before { content: '▸'; transition: transform .2s; }
.trust-why[open] summary::before { transform: rotate(90deg); }
.trust-why ul { margin: 2px 0 4px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--lp-soft); }
.trust-why li + li { margin-top: 4px; }
.trust-why code { font-size: 13px; padding: 1px 5px; border-radius: 6px; background: var(--lp-card); color: var(--lp-ink); word-break: keep-all; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .trust-why summary::before { transition: none; } }

/* ======================= 스캔 전용 ======================= */
code, pre, .mono { font-family: var(--mono); }
:not(pre) > code { font-size: .92em; padding: 1px 5px; border-radius: 6px; background: var(--c-code-bg); color: var(--lp-ink); overflow-wrap: anywhere; }

/* 첫 화면 */
.hero { padding-top: 34px; padding-bottom: 10px; text-align: center; }
.hero h1 { font-size: clamp(30px, 7vw, 50px); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 12px; }
.hero .lead { max-width: 640px; margin: 0 auto; }
.app { margin-top: 18px; }
.pick { padding: 20px; }
@media (max-width: 480px) { .pick { padding: 14px; border-radius: 20px; } }
.drop { border: 2px dashed color-mix(in srgb, var(--lp-accent) 40%, var(--lp-line)); border-radius: 20px; padding: 22px 16px; text-align: center; transition: border-color .2s, background-color .2s; }
.drop.over { border-color: var(--lp-accent); background: var(--c-accent-soft); }
.drop-ico { font-size: 44px; line-height: 1; margin: 0; }
.drop-t { margin: 8px 0 4px; font-size: 17px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + label { outline: 3px solid var(--lp-focus); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-row.center { justify-content: center; }
.big-btn { min-height: 52px; padding: 0 24px; font-size: 16.5px; cursor: pointer; }
@media (max-width: 400px) { .drop .btn-row .big-btn { flex: 1 1 100%; } }
.hint { font-size: 13.5px; color: var(--lp-mute); margin: 12px 0 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--lp-mute); font-size: 14px; margin: 16px 0 4px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--lp-line); }
.paste { margin-top: 14px; border-top: 1px solid var(--lp-line); padding-top: 4px; }
.paste summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lp-ink); list-style: none; }
.paste summary::-webkit-details-marker { display: none; }
.paste summary::after { content: '▾'; color: var(--lp-mute); margin-left: auto; transition: transform .2s; }
.paste[open] summary::after { transform: rotate(180deg); }
.paste-in .lp-input { width: 100%; }
.paste-in textarea.lp-input { resize: vertical; min-height: 140px; line-height: 1.5; font-size: 14px; }
.tool-label { display: flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; margin: 0; color: var(--lp-ink); }
.warn { background: var(--c-warn-bg); color: var(--c-warn); padding: 10px 14px; border-radius: 12px; }
.muted { color: var(--lp-mute); }
.small { font-size: 13.5px; }

/* 진행 */
.progress { padding: 20px; margin-top: 14px; }
.prog-t { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-weight: 700; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--lp-line); border-top-color: var(--lp-accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 10px; border-radius: 99px; background: var(--lp-line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 4%; background: var(--lp-accent); border-radius: inherit; transition: width .3s var(--lp-ease); }

/* 결과 */
.results { margin-top: 18px; scroll-margin-top: 76px; }
.res-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.res-h { font-size: 24px; font-weight: 800; margin: 0; scroll-margin-top: 80px; }
.res-h:focus { outline: none; }
.res-h:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: 4px; border-radius: 8px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.res-actions .lp-btn { min-height: 44px; padding: 0 14px; font-size: 14px; cursor: pointer; }
@media (max-width: 480px) { .res-actions { width: 100%; } .res-actions .lp-btn { flex: 1 1 auto; } }
.score-card { padding: 20px; }
@media (max-width: 480px) { .score-card { padding: 16px; border-radius: 20px; } }
.score-main { display: flex; align-items: center; gap: 16px; }
.grade { flex: none; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 42px; font-weight: 800; color: #fff; background: var(--lp-accent); }
.grade.g-A { background: #07684d; } .grade.g-B { background: #0e7490; } .grade.g-C { background: #8a4b00; } .grade.g-D { background: #c2410c; } .grade.g-E { background: #b42318; }
.score-txt p { margin: 0; }
.score-num { font-size: 17px; font-weight: 700; color: var(--lp-soft); }
.score-num b { font-size: 40px; font-weight: 800; color: var(--lp-ink); line-height: 1.1; }
.score-grade { font-weight: 700; }
.score-label { font-size: 17px; font-weight: 800; }
.score-sub { font-size: 14px; color: var(--lp-soft); }
.cat-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
@media (max-width: 640px) { .cat-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat-count { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--lp-line); background: var(--lp-bg-soft);
  color: var(--lp-ink); font: inherit; text-align: left; cursor: pointer; position: relative; flex-wrap: wrap; }
.cat-count:hover { border-color: var(--lp-accent); }
.cat-count:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: 2px; }
.cc-emoji { font-size: 22px; }
.cc-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cc-text b { font-size: 20px; font-weight: 800; }
.cc-text span { font-size: 13px; color: var(--lp-soft); }
.sev-dot { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--c-danger-bg); color: var(--c-danger); margin-left: auto; }
.score-note { margin: 12px 0 0; font-size: 13.5px; color: var(--lp-soft); }

.tabs { display: flex; gap: 6px; margin: 18px 0 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--lp-line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 48px; padding: 0 14px; border: 0; background: none; font: 700 15px/1.2 var(--lp-font); color: var(--lp-soft); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 10px 10px 0 0; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--lp-accent-ink); border-bottom-color: var(--lp-accent); }
.tab:hover { background: var(--lp-chip); }
.tab:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: -3px; }
@media (max-width: 400px) { .tab { padding: 0 10px; font-size: 14px; } }

.tiles { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles .tile:first-child { grid-column: 1 / -1; } }
.tile { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; }
.tile-e { font-size: 20px; }
.tile b { font-size: 22px; font-weight: 800; }
.tile span:last-child { font-size: 13.5px; color: var(--lp-soft); }
.sec { padding: 18px; margin-top: 12px; min-width: 0; }
@media (max-width: 480px) { .sec { padding: 14px; border-radius: 20px; } }
.sec-h { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.lang-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--lp-line); gap: 2px; }
.lang-bar .lc { display: block; height: 100%; min-width: 3px; }
.lc0 { background: var(--lc0); } .lc1 { background: var(--lc1); } .lc2 { background: var(--lc2); } .lc3 { background: var(--lc3); } .lc4 { background: var(--lc4); }
.lc5 { background: var(--lc5); } .lc6 { background: var(--lc6); } .lc7 { background: var(--lc7); } .lc8 { background: var(--lc8); }
.lc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.table-wrap { overflow-x: auto; margin-top: 10px; border-radius: 12px; }
.table-wrap:focus-visible { outline: 3px solid var(--lp-focus); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 8px 8px; border-bottom: 1px solid var(--lp-line); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { color: var(--lp-soft); font-weight: 700; font-size: 13px; }
.tbl tbody th { font-weight: 700; }
.big-list, .skip-list { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 14.5px; }
.skip-list { list-style: none; padding-left: 0; max-height: 360px; overflow: auto; }
.path { overflow-wrap: anywhere; word-break: break-all; }
.skipped summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 800; }

.filters { display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { cursor: pointer; }
.search-row { margin-top: 10px; }
.search-row .lp-input { width: 100%; min-height: 48px; border-radius: 999px; padding: 0 18px; }
.f-count { font-size: 14px; color: var(--lp-soft); margin: 10px 2px 8px; min-height: 1.2em; }
.f-list, .file-list { display: grid; gap: 8px; }
.finding, .file { background: var(--lp-card); border: 1px solid var(--lp-line); border-left: 5px solid var(--lp-line); border-radius: 18px; min-width: 0; }
.finding.sev-high { border-left-color: var(--c-danger); }
.finding.sev-mid { border-left-color: #d97706; }
.finding.sev-low { border-left-color: var(--c-info); }
.finding[open], .file[open] { box-shadow: var(--lp-shadow); }
.finding > summary, .file > summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; min-height: 44px; border-radius: 16px; }
.finding > summary::-webkit-details-marker, .file > summary::-webkit-details-marker { display: none; }
.finding > summary:focus-visible, .file > summary:focus-visible { outline: 3px solid var(--lp-focus); outline-offset: -3px; }
.sev { flex: none; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; margin-top: 1px; }
.sev.sev-high { background: var(--c-danger-bg); color: var(--c-danger); }
.sev.sev-mid { background: var(--c-warn-bg); color: var(--c-warn); }
.sev.sev-low { background: var(--c-info-bg); color: var(--c-info); }
.f-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.f-title { font-weight: 800; line-height: 1.4; }
.f-loc { font-size: 13.5px; color: var(--lp-soft); overflow-wrap: anywhere; }
.f-loc code { background: none; padding: 0; color: var(--lp-soft); }
.f-snip { display: block; font-size: 13px; background: var(--c-code-bg); color: var(--lp-ink); padding: 6px 10px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; max-height: 4.8em; overflow: hidden; }
.f-body { padding: 0 16px 14px; border-top: 1px solid var(--lp-line); }
.f-lab { font-weight: 800; margin: 14px 0 4px; font-size: 14.5px; }
.f-note { margin: 12px 0 0; font-weight: 600; color: var(--lp-soft); overflow-wrap: anywhere; }
.f-body p.rich { margin: 0; }
.ctx, .example { margin: 0; padding: 10px 0; background: var(--c-code-bg); color: var(--lp-ink); border-radius: 12px; font-size: 13px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.example { padding: 12px 14px; }
.ctx:focus-visible, .example:focus-visible { outline: 3px solid var(--lp-focus); }
.ctx-line { display: inline-block; min-width: 100%; padding: 0 12px 0 0; }
.ctx-line.hit { background: var(--c-hit); font-weight: 700; }
.ln { display: inline-block; width: 3.6em; padding-right: 10px; text-align: right; color: var(--lp-soft); user-select: none; -webkit-user-select: none; }
.f-more { margin: 10px 0 0; }
.f-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--lp-accent-ink); }
.more-btn { justify-self: center; margin-top: 6px; cursor: pointer; }
.empty { text-align: center; padding: 22px 12px; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; }
.empty-e { font-size: 40px; margin: 0; }
.file-e { font-size: 20px; line-height: 1.4; flex: none; }
.file-meta { font-size: 13.5px; }
.badge { flex: none; font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.b-high { background: var(--c-danger-bg); color: var(--c-danger); }
.b-mid { background: var(--c-warn-bg); color: var(--c-warn); }
.b-low { background: var(--c-info-bg); color: var(--c-info); }
.file .f-body > p:first-child { margin-top: 12px; }
.about-q { margin: 0; padding: 8px 12px; border-left: 3px solid var(--lp-accent); background: var(--c-accent-soft); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
.name-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.name-chips code { display: inline-block; font-size: 13px; padding: 3px 8px; border-radius: 8px; background: var(--c-code-bg); overflow-wrap: anywhere; max-width: 100%; }
.file .lp-btn { margin-top: 12px; min-height: 44px; font-size: 14.5px; cursor: pointer; }

/* 아래 소개 */
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.feat { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; text-decoration: none; color: var(--lp-ink); transition: transform .25s var(--lp-ease), border-color .2s; }
.feat:hover { border-color: var(--lp-accent); }
@media (hover: hover) { .feat:hover { transform: translateY(-2px); } }
.feat-e { font-size: 28px; line-height: 1.2; flex: none; }
.feat-t { display: flex; flex-direction: column; gap: 2px; }
.feat-t b { font-size: 16.5px; font-weight: 800; }
.feat-t span { color: var(--lp-soft); font-size: 14px; line-height: 1.5; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; padding: 14px 16px; }
.steps li > span:last-child { display: flex; flex-direction: column; }
.steps b { font-weight: 800; }
.steps li span span { color: var(--lp-soft); font-size: 14px; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--lp-accent); color: var(--lp-on-accent); font-weight: 800; }
.more-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--lp-accent-ink); }

/* 검사 설명 */
.guide .toc { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; padding: 10px 16px; }
.toc-h { margin: 4px 0; font-weight: 800; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lp-accent-ink); font-weight: 700; }
.g-sec { margin-top: 30px; scroll-margin-top: 76px; }
.g-sec > p { margin: 0 0 10px; }
.rule { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; padding: 14px 16px; margin-top: 10px; scroll-margin-top: 76px; min-width: 0; }
.rule:target { border-color: var(--lp-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.rule h4 { margin: 0 0 8px; font-size: 17px; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 1.4; }
.rule p { margin: 0 0 8px; }
.ex-lab { font-weight: 800; font-size: 14.5px; }
.grade-list { padding-left: 20px; }
.cta { text-align: center; margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  .spin { animation-duration: 2.4s; }
  .paste summary::after, .bar span, .feat, .drop { transition: none; }
}
