/* STYLE-LIBRARY:BEGIN — tools/pick-style.js 가 쓴 블록. 손으로 고치지 말고 다시 실행 */
:root{--bg:#fbefe8;--paper:#ffffff;--ink:#2b2142;--muted:#5e5570;--accent:#6b4ad6;--accent-ink:#ffffff;--line:#f0dccf;--font-display:"Outfit", Pretendard, "Noto Sans KR", sans-serif;--font-body:Pretendard, "Noto Sans KR", system-ui, sans-serif;--radius:20px;--shadow:0 14px 34px rgba(107, 74, 214, .16);--border:none;--card-pad:20px;--dur:480ms;--ease:cubic-bezier(0.4, 0, 0.2, 1);--enter:scale-in;--stagger:80ms;--layout:split-hero;--x-hero:linear-gradient(160deg, #f7a072 0%, #c86bb0 55%, #6b4ad6 100%)}
/* STYLE-LIBRARY:END */
/* 사진 복구 앱이 안 될 때 자가진단(#3181).
 * Design read: 지운 사진 때문에 마음이 급한 일반인(폰·카톡 인앱)을 위한 trust-first 자가진단. 다이얼 VARIANCE 4 · MOTION 2 · DENSITY 5.
 * 색·글꼴·모서리는 위 STYLE-LIBRARY 블록(스타일 창고 sunset-travel, tools/pick-style.js 가 씀 — #3493 에서 vision-glass → sunset-travel 로 다시 고름: 11-01 /cash-receipt-self-issued/ 와 같은 묶음이었음)의 토큰만 쓴다. 바깥 글꼴은 불러오지 않는다(meta CSP font-src self, 한글 폴백 "Noto Sans KR").
 * 짜임: 노을빛 밝은 바탕 위 큰 흰 판(왼쪽 제목·짧은 설명, 오른쪽 크기가 다른 타일 중 하나만 노을 그라데이션 면 = 흰 막을 얹은 --x-hero, 진한 글자 대비 유지) →
 *   아래도 흰 판 두 줄기(왼쪽 진단, 오른쪽 점검 타일). 선택 단추는 둥근 흰 알약 타일. 그림자는 묶음의 보라 기운(--shadow).
 * 상태는 표가 아니라 선·색·배경: 결과 카드 왼쪽 굵은 막대 = 되찾을 수 있음 초록 · 확인 필요 파랑 · 어려움 주황(발주문 지정). 지금 질문은 강조(보라) 면. */
:root {
  --soft: #fdf6f2;         /* 선택 단추·질문 머리 면(노을빛 바탕에 맞춘 따뜻한 흰색) */
  --focus: #3f2a8c;        /* 포커스 테두리(강조 보라의 짙은 쪽) */
  --bar-ok: #15803d;       /* 되찾을 수 있음(초록) */
  --bar-check: #1d4ed8;    /* 확인 필요(파랑) */
  --bar-hard: #c2410c;     /* 어려움(주황) */
  --ok-soft: #e7f6ec; --ok-text: #166534;
  --check-soft: #e6edfd; --check-text: #1e40af;
  --hard-soft: #fdeee4; --hard-text: #9a3412;
  --on-accent-soft: #ede6ff; /* 강조(보라) 면 위 보조 글자 */
  --accent-soft: #f1ecfd;    /* 강조 테두리 단추를 누르기 전(hover) 면 */
  --panel-shadow: var(--shadow);
  --hero-veil: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)); /* 노을 그라데이션 위 흰 막: 진한 글자(--ink) 대비 4.5 이상 */
  --font: var(--font-body);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, .day-n { --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.1875rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
main a { display: inline-flex; align-items: center; min-height: 44px; }
[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 { padding: 14px 12px 0; }
.hero-in { max-width: 760px; margin: 0 auto; padding: 18px 16px 16px; border-radius: 28px; background: var(--paper); box-shadow: var(--panel-shadow); display: grid; gap: 14px; }
.hero h1 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.lede { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; max-width: 46ch; }
.lede strong { color: var(--ink); font-weight: 700; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.day { display: grid; align-content: start; gap: 2px; padding: 10px 8px 10px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.day-n { font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.day-k { font-size: 0.75rem; line-height: 1.35; color: var(--muted); }
.holo { background: var(--hero-veil), var(--x-hero); border-color: rgba(255, 255, 255, 0.8); }
.holo .day-k { color: var(--ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 14px 12px 32px; }
.layout { display: grid; gap: 14px; align-items: start; }
.col-a, .col-b { min-width: 0; display: grid; gap: 14px; }

/* 흰 판(진단·점검·사라진 게 아닐 수도) */
.sheet, .panel { background: var(--paper); border-radius: var(--radius); padding: 18px 14px; box-shadow: var(--panel-shadow); }
.sub { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.note { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }
.qs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.q { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; }
.q-head { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 2px 10px; align-items: start; padding: 12px 14px; background: var(--soft); transition: background-color 240ms var(--ease), color 240ms var(--ease); }
.q-slot { grid-column: 1; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.q-title { grid-column: 1; font-size: 1rem; font-weight: 700; }
.q-mark { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.q.now > .q-head { background: var(--accent); color: var(--accent-ink); }
.q.now > .q-head .q-slot { color: var(--on-accent-soft); }
.q.now > .q-head .q-mark { border-color: var(--on-accent-soft); background: transparent; }
.q.now > .q-head .q-title:focus-visible { outline-color: #ffffff; }
.q.done .q-mark { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--paper); }
.q-hint { padding: 10px 14px 0; font-size: 0.875rem; color: var(--muted); }
.opts { display: grid; gap: 8px; padding: 10px 14px 14px; }
/* 선택 단추 = 둥근 흰 알약 타일 */
.opt { position: relative; display: flex; align-items: center; width: 100%; min-height: 48px; padding: 10px 44px 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; box-shadow: 0 2px 6px rgba(107, 74, 214, 0.06); transition: background-color 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease); }
.opt::after { content: ""; position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); transform: translateY(-50%); }
.opt:hover { border-color: var(--accent); }
.opt:active { transform: scale(0.99); }
.opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt[aria-pressed="true"]::after { border-color: var(--accent-ink); background: var(--accent-ink); box-shadow: inset 0 0 0 4px var(--accent); }
.opt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 결과 카드: 왼쪽 굵은 색 막대(초록·파랑·주황) */
.result { margin-top: 14px; padding: 16px 16px 10px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--panel-shadow); animation: settle 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.result[data-tone="ok"] { border-left: 8px solid var(--bar-ok); }
.result[data-tone="check"] { border-left: 8px solid var(--bar-check); }
.result[data-tone="hard"] { border-left: 8px solid var(--bar-hard); }
/* 결과 낭독 영역: 늘 렌더된 빈 요소(화면엔 안 보임). hidden 에서 막 나타난 live 영역은 낭독이 빠질 수 있어 따로 둔다 */
.sr-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.r-kind { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.r-kind[data-tone="ok"] { background: var(--ok-soft); color: var(--ok-text); }
.r-kind[data-tone="check"] { background: var(--check-soft); color: var(--check-text); }
.r-kind[data-tone="hard"] { background: var(--hard-soft); color: var(--hard-text); }
.r-title { margin-top: 6px; font-size: 1.125rem; }
.r-first { margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.r-first strong { display: block; font-size: 0.8125rem; color: var(--muted); }
.r-first p { font-weight: 700; }
.r-sub { margin-top: 12px; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.r-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.r-steps li { counter-increment: st; position: relative; padding: 2px 0 0 34px; font-size: 0.9375rem; }
.r-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.8125rem; font-weight: 700; }
.r-link { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.875rem; }
.r-next { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.r-next strong { display: block; font-size: 0.8125rem; color: var(--muted); }
.r-note { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg); font-size: 0.875rem; }
.nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.nav-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--paper); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.nav-btn:hover { background: var(--accent-soft); }

/* 출처 줄 */
.src { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }

/* 점검 타일(크기가 다른 타일, 첫 타일만 노을 그라데이션 면) */
.tiles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.tile { padding: 14px 14px 8px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); font-size: 0.9375rem; }
.tile p { margin-top: 6px; }
.tile.holo, .tile.holo .src { color: var(--ink); }
.tile.holo a { color: var(--ink); }
.more { margin-top: 2px; font-weight: 700; }
.more a { font-weight: 700; }

.gone { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.gone li { padding: 12px 0 6px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.gone li:first-child { border-top: 0; padding-top: 0; }
.gone p { margin-top: 6px; }

/* 아래 안내 */
.guide { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.muted { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.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; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 20px; background: var(--paper); box-shadow: var(--panel-shadow); color: var(--ink); text-decoration: none; }
.sib a strong { color: var(--accent); }
.sib a span { font-size: 0.875rem; color: var(--muted); }
details summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 700; }
.faq { border-bottom: 1px solid var(--line); }
.faq > p { margin: 0 0 6px; font-size: 0.9375rem; }
.src-list { margin: 8px 0 0; padding-left: 1.2em; font-size: 0.875rem; }
.notice { margin-top: 24px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 600; }
.asof { margin-top: 8px; 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 settle { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }

/* 좁은 화면(1279px 까지, 오너 폴드 펼침 약 1,100px·카톡 인앱 1,066px 포함): 한 단. 진단 → 점검 → 사라진 게 아닐 수도 */
@media (max-width: 1279px) {
  .layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
  .guide, .notice, .asof { max-width: 760px; margin-left: auto; margin-right: auto; }
}
/* 폰 폭 넘어(600px~): 선택 단추·점검 타일 두 줄 격자 */
@media (min-width: 600px) {
  .hero { padding: 20px 16px 0; }
  .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; padding: 24px; }
  .hero h1 { font-size: 1.75rem; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days .holo { grid-column: 1 / -1; }
  .day-k { text-wrap: balance; }   /* 「갤럭시 휴지통 / (One UI 6 이후)」로 끊기게(좁은 폭은 기본 줄바꿈이 「One UI 6」을 붙여 둠) */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .holo { grid-column: 1 / -1; }
  .sheet, .panel { padding: 22px 20px; }
}
/* 넓은 화면(1280px 부터): 왼쪽 진단, 오른쪽 점검·사라진 게 아닐 수도 */
@media (min-width: 1280px) {
  .hero { padding: 28px 24px 0; }
  .hero-in { max-width: 1132px; padding: 32px 36px; }
  .hero h1 { font-size: 2.125rem; }
  .wrap { padding: 20px 24px 40px; }
  .layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }   /* 오른쪽 단은 좁아서 타일을 한 줄씩 */
  .tiles .holo { grid-column: auto; }
}

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