/* STYLE-LIBRARY:BEGIN — tools/pick-style.js 가 쓴 블록. 손으로 고치지 말고 다시 실행 */
:root{--bg:#efe5dc;--paper:#fffaf5;--ink:#3a2a1f;--muted:#6b5646;--accent:#ef9a4a;--accent-ink:#3a2414;--line:#e3d6c9;--font-display:"Gothic A1", Pretendard, "Noto Sans KR", sans-serif;--font-body:Pretendard, "Noto Sans KR", system-ui, sans-serif;--radius:20px;--shadow:0 8px 22px rgba(90, 60, 35, .12);--border:none;--card-pad:18px;--dur:420ms;--ease:cubic-bezier(0.4, 0, 0.2, 1);--enter:fade-in;--stagger:60ms;--layout:dashboard;--x-surface-strong:#a57c5b;--x-on-strong:#ffffff}
/* STYLE-LIBRARY:END */
/* 신분증 촬영 카메라 자가진단(#2889).
 * Design read: 은행·증권 앱의 비대면 신분증 촬영에서 막힌 일반인(폰·카톡 인앱)을 위한 Operate 화면. ui-ux-pro-max: Trust & Authority · Minimalism/Swiss · VARIANCE 4 · MOTION 3 · DENSITY 5.
 * 색·글꼴·모서리·움직임은 위 STYLE-LIBRARY 블록(스타일 창고 mocha-home, tools/pick-style.js 가 씀)의 토큰만 쓰고, 대비가 모자란 자리만 같은 색상의 짙은 값을 더한다.
 * 짜임(배치형 dashboard, 참고 화면 warm-smarthome-control): 모카 머리 판 위로 흰 시트가 올라오고, 장면 버튼 같은 큰 기기 타일 2개,
 *   기기 토글 카드 같은 증상 카드(켜짐 = 주황 면 + 점), 머리의 숫자 3칸 같은 「먼저 볼 곳」 세 칸, 일정표 같은 세로 해결 순서, 모카 큰 알약.
 * 상태는 표가 아니라 선·색·배경. 바깥 글꼴은 불러오지 않는다(meta CSP font-src self, 한글 폴백 Noto Sans KR). */
:root {
  --hero: #8a6246;          /* 머리 판·끝낸 단계·알약: 흰 글자 5.3 */
  --on-hero-soft: #fff3e8;  /* 머리 판 위 보조 글자 */
  --pop-line: #b8641f;      /* 주황 선·지금 단계 테두리: paper 4.2 · bg 3.5 */
  --pop-text: #8a4510;      /* 주황 글자 */
  --pop-soft: #fde9d6;
  --high: #8a2a0b;          /* 「높음」 배지 면 */
  --high-ink: #ffffff;
  --field-line: #8f7a69;    /* 빈 원·타일 테두리: paper 3.9 */
  --focus: #6e4c33;
  --font: var(--font-body); /* 사이트 규칙: font-family 는 var(--font) 로만 */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { --font: var(--font-display); font-family: var(--font); line-height: 1.3; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.125rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 800; margin-top: 18px; }
a { color: var(--pop-text); text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: var(--paper); color: var(--ink); }
.skip:focus { left: 8px; top: 8px; z-index: 9; }

/* 머리 판: 참고 화면의 모카 상단 */
.hero { background: var(--hero); color: #ffffff; padding: 24px 16px 64px; }
.hero :focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.hero-in { max-width: 1180px; margin: 0 auto; }
.hero h1 { font-size: 1.375rem; font-weight: 800; }
.lede { margin: 10px 0 0; color: var(--on-hero-soft); font-size: 0.9375rem; max-width: 58ch; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 32px; }
.layout { display: grid; gap: 16px; align-items: start; }
.side, .main { min-width: 0; display: grid; gap: 16px; }

/* 흰 시트: 머리 판 위로 올라온 둥근 면 */
.sheet { margin-top: -40px; background: var(--paper); border-radius: 26px; padding: 18px 16px 20px; box-shadow: var(--shadow); }
.note { margin: 8px 0 0; color: var(--muted); font-size: 0.875rem; }
.q { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.q legend { padding: 0; font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; }

/* 타일: 참고 화면의 장면 버튼(기기)과 기기 토글 카드(증상). 켜짐 = 주황 면 + 오른쪽 위 점 */
.devs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.syms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.syms .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* 폴드 펼침·태블릿(600~1279px): 6열 격자에 3+2. auto-fit + 1/-1 은 1100 에서 빈 열 7개를 만들었다(바름 r1) */
@media (min-width: 600px) and (max-width: 1279px) {
  .syms { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .syms .tile { grid-column: span 2; }
  .syms .tile:nth-child(n+4),
  .syms .tile:last-child:nth-child(odd) { grid-column: span 3; }
}
.tile { position: relative; display: block; min-width: 0; cursor: pointer; }
.tile input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tile-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 104px; height: 100%; padding: 14px 14px 12px; border-radius: 18px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.dev .tile-in { min-height: 112px; }
.sym .tile-in { min-height: 120px; }
.tile-t { font-weight: 800; font-size: 0.9375rem; line-height: 1.3; text-wrap: balance; }
.nw { white-space: nowrap; } /* 타일 제목 구 덩어리: 가운뎃점 뒤 <wbr> 에서만 줄바꿈 */
.tile-s { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.ico { flex: none; fill: none; stroke: var(--hero); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.tile-dot { position: absolute; right: 12px; top: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--field-line); background: var(--paper); }
.tile:hover .tile-in { border-color: var(--field-line); }
.tile input:checked + .tile-in { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 8px 18px rgba(184, 100, 31, 0.22); }
.tile input:checked + .tile-in .tile-s { color: var(--accent-ink); }
.tile input:checked + .tile-in .ico { stroke: var(--accent-ink); }
.tile input:checked + .tile-in .tile-dot { background: var(--accent-ink); border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--paper); }
.tile input:focus-visible + .tile-in { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile:active .tile-in { transform: scale(0.98); }

/* 먼저 볼 곳: 참고 화면 머리의 숫자 3칸처럼 세 칸, 켜진 칸만 주황 */
.verdict-card { background: var(--paper); border-radius: 26px; padding: 18px 16px 20px; box-shadow: var(--shadow); }
.side3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; padding: 6px; border-radius: 16px; background: var(--bg); }
.side3 .s { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 6px; border-radius: 12px; text-align: center; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; color: var(--muted); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.side3[data-side="device"] .s-device, .side3[data-side="id"] .s-id, .side3[data-side="org"] .s-org { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 10px rgba(184, 100, 31, 0.2); }
.verdict { margin-top: 8px; }
.v-title { margin: 0; font-weight: 800; font-size: 1.0625rem; line-height: 1.4; }
.v-text { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.verdict.is-new .v-title { animation: rise 260ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.src { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; margin: 6px 0 0; font-size: 0.8125rem; color: var(--muted); }
.src a { display: inline-flex; align-items: center; min-height: 44px; }
.pick-status { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
.go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 10px; border-radius: 999px; background: var(--hero); color: #ffffff; font-weight: 800; text-decoration: none; }
.go:focus-visible { outline: 3px solid var(--pop-line); outline-offset: 3px; }
.go-n { font-weight: 600; font-size: 0.875rem; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }

/* 해결 순서: 참고 화면의 일정표처럼 세로 축 */
.steps { background: var(--paper); border-radius: 26px; padding: 18px 16px 8px; box-shadow: var(--shadow); }
.steps-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.steps-h h2:focus { outline: none; }
.steps-h h2:focus-visible { outline: 3px solid var(--focus); }
.progress { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.tl-empty { margin: 12px 0 14px; color: var(--muted); font-size: 0.9375rem; }
.tl { --done: 0; list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 11.5px; top: 14px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--line); }
.tl::after { content: ""; position: absolute; left: 11.5px; top: 14px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--hero); transform-origin: top; transform: scaleY(calc(var(--done) / 100)); transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.st { position: relative; z-index: 1; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding-bottom: 14px; animation: rise 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards; animation-delay: calc(min(var(--i, 0), 10) * 40ms); }
.st-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.st-w { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; line-height: 1.6; }
.w-low .st-w { background: var(--bg); color: var(--muted); }
.w-caution .st-w { background: var(--pop-soft); color: var(--pop-text); }
.w-high .st-w { background: var(--high); color: var(--high-ink); }
.w-info .st-w { background: var(--hero); color: #ffffff; }
.st-dot { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--field-line); background: var(--paper); margin-top: 1px; }
.st.now .st-dot { border-color: var(--pop-line); box-shadow: 0 0 0 4px var(--pop-soft); }
.st.done .st-dot { background: var(--hero); border-color: var(--hero); }
.st.done .st-dot::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #ffffff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.st-card { min-width: 0; background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.g-alt .st-card { background: var(--bg); }
.st.now .st-card { border-color: var(--pop-line); }
.st.focus .st-card { box-shadow: 0 6px 16px rgba(184, 100, 31, 0.16); }
.focus-tag { display: none; margin: 0 0 6px; font-size: 0.8125rem; font-weight: 800; color: var(--pop-text); }
.st.focus .focus-tag { display: block; }
.st.done .st-title, .st.done .st-body { color: var(--muted); }
.gate-tag { margin: 0 0 8px; padding-top: 8px; border-top: 3px solid var(--pop-line); font-size: 0.8125rem; font-weight: 800; color: var(--pop-text); }
.g-alt .gate-tag { border-top-color: var(--hero); color: var(--ink); }
.st-title { font-size: 1rem; font-weight: 800; margin: 0; }
.st-body, .st-how, .st-note { margin: 6px 0 0; font-size: 0.9375rem; }
.st-how { padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 0.875rem; }
/* 고객센터 번호 tel: 링크. 음수 여백 없음(이웃 링크와 누름 영역 겹침 0, 바름 design r2 필수 1).
 * 번호는 하나여도 문장 속에 두지 않고 .tel-list 로 한 줄에 하나씩(줄·링크 44px, 바름 design r3 권고 1).
 * 번호만 있는 사실 카드 값(.fact-v)도 44px. */
.tel { display: inline-block; padding: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact-v .tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.tel-lead, .tel-tail { margin: 0; }
.tel-list { list-style: none; margin: 4px 0; padding: 0; }
ul.tel-list > li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; min-height: 44px; margin: 0; }
ul.tel-list > li + li { border-top: 1px solid var(--line); }
.tel-sep { color: var(--muted); }
.tel-after { color: var(--muted); font-size: 0.8125rem; }
.tel-list .tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0; }
.g-alt .st-how { background: var(--paper); }
.st-note { color: var(--muted); font-size: 0.875rem; }
.st-erase { margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--pop-line); border-radius: 10px; background: var(--pop-soft); color: var(--pop-text); font-weight: 700; font-size: 0.875rem; }
.st-src { margin-top: 8px; }
.st-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px; font-weight: 700; font-size: 0.9375rem; cursor: pointer; }
.st-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--hero); }
.st-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 대안 한눈에: 참고 화면의 사용량 칸처럼 숫자 카드 격자 */
.facts-sec { background: var(--paper); border-radius: 26px; padding: 18px 16px 16px; box-shadow: var(--shadow); }
.facts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.fact { background: var(--bg); border-radius: 18px; padding: 14px; min-width: 0; }
.fact p { margin: 0; }
.fact-k { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.fact-v { --font: var(--font-display); font-family: var(--font); font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin-top: 2px; color: var(--hero); font-variant-numeric: tabular-nums; }
.fact-n { margin-top: 6px; font-size: 0.875rem; }
.fact .src { margin-top: 4px; }

/* 아래 안내 */
.guide { margin-top: 24px; padding-top: 18px; border-top: 1.5px solid var(--line); }
.muted { color: var(--muted); font-size: 0.9375rem; }
details summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; }
.all summary { color: var(--pop-text); }
.all-steps { margin: 8px 0 0; padding-left: 1.2em; font-size: 0.9375rem; }
.all-steps li { margin-bottom: 10px; }
.w, .dv { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; background: var(--paper); color: var(--muted); }
.w.w-caution { background: var(--pop-soft); color: var(--pop-text); }
.w.w-high { background: var(--high); color: var(--high-ink); }
.w.w-info { background: var(--hero); color: #ffffff; }
.erase { display: block; margin-top: 4px; color: var(--pop-text); font-weight: 700; }
.sib-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.sib a { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 14px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.sib a strong { color: var(--pop-text); }
.sib a span { font-size: 0.875rem; color: var(--muted); }
.faq p { margin: 4px 0 10px; font-size: 0.9375rem; }
.src-list { margin: 8px 0 0; padding-left: 1.2em; font-size: 0.875rem; }
.src-list a { display: inline-flex; align-items: center; min-height: 44px; }
.notice { margin: 24px 0 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 0.9375rem; font-weight: 600; }
.asof { margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 16px 32px; font-size: 0.8125rem; color: var(--muted); }
.foot p { margin: 0 0 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* 넓은 화면(1280px 부터): 왼쪽 고르기·먼저 볼 곳, 오른쪽 해결 순서·대안. 1279px 까지는 한 단(오너 폴드 펼침 약 1,100px 포함) */
@media (min-width: 1280px) {
  .hero { padding: 32px 24px 72px; }
  .hero h1 { font-size: 2rem; }
  .wrap { padding: 0 24px 40px; }
  .layout { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px; }
  .main { margin-top: -40px; }
}

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