/* STYLE-LIBRARY:BEGIN — tools/pick-style.js 가 쓴 블록. 손으로 고치지 말고 다시 실행 */
:root{--bg:#efe6fc;--paper:#ffffff;--ink:#2d2738;--muted:#5f5770;--accent:#7445d8;--accent-ink:#ffffff;--line:#e2d6f6;--font-display:"IBM Plex Sans KR", Pretendard, "Noto Sans KR", sans-serif;--font-body:"IBM Plex Sans KR", Pretendard, "Noto Sans KR", sans-serif;--radius:14px;--shadow:0 4px 14px rgba(80, 50, 150, .08);--border:1px solid #e2d6f6;--card-pad:14px 16px;--dur:240ms;--ease:cubic-bezier(0.2, 0, 0, 1);--enter:fade-up;--stagger:40ms;--layout:step-guide;--x-now-bg:#7445d8;--x-done-line:#b9a3ec}
/* STYLE-LIBRARY:END */
/* 은행 앱 접속 안 될 때 자가진단(#3008).
 * Design read: 돈이 걸린 순간 은행 앱이 안 열리는 일반인(폰·카톡 인앱)을 위한 trust-first 자가진단. 다이얼 VARIANCE 3 · MOTION 2 · DENSITY 5.
 * 색·글꼴·모서리·움직임은 위 STYLE-LIBRARY 블록(스타일 창고 violet-checklist, tools/pick-style.js 가 씀)의 토큰만 쓴다.
 * 짜임(참고 화면 violet-task-manager): 보라 머리 판(오늘 날짜·요일 칩 줄) → 흰 시트 위 시간 칸이 붙은 체크 줄(지금 질문만 진보라로 채움, 답한 질문은 체크 칸이 채워짐)
 *   → 선택 단추는 범주 목록 줄(이름 + 오른쪽 꺾쇠). 하나은행 공지 실례는 「시간 칸 + 내용」 줄, 앱·웹이 함께 멈춘 줄만 진보라로 채운다.
 * 상태는 표가 아니라 선·색·배경: 결과 카드 왼쪽 굵은 막대 = 은행 쪽 주황 · 내 폰 쪽 파랑 · 급함 빨강(발주문 지정).
 * 바깥 글꼴은 불러오지 않는다(meta CSP font-src self, 한글 폴백 "Noto Sans KR"). */
:root {
  --now-bg: var(--x-now-bg);
  --done-line: var(--x-done-line);
  --soft: #f6f1fe;         /* 선택 단추 면: ink 13.6 */
  --on-accent-soft: #ede4fb; /* 보라 판 위 보조 글자: accent 4.8 */
  --focus: #3b1d8f;        /* 포커스 테두리: 흰 11 · soft 10 */
  --bar-bank: #c2410c;     /* 은행 쪽 막대(주황) */
  --bar-phone: #1d4ed8;    /* 내 폰 쪽 막대(파랑) */
  --bar-urgent: #b91c1c;   /* 급함 막대(빨강) */
  --bank-soft: #fdeee4; --bank-text: #9a3412;
  --phone-soft: #e6edfd; --phone-text: #1e40af;
  --urgent-soft: #fdecec; --urgent-text: #991b1b;
  --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 { --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; }
[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; }

/* 보라 머리 판: 참고 화면 첫 화면의 「날짜 · Today」 머리 + 요일 칩 줄 */
.hero { background: var(--accent); color: var(--accent-ink); padding: 18px 16px 60px; }
.hero :focus-visible { outline-color: #ffffff; }
.hero-in { max-width: 1180px; margin: 0 auto; }
.hero h1 { font-size: 1.4375rem; font-weight: 700; }
.lede { margin-top: 10px; color: var(--on-accent-soft); font-size: 0.9375rem; max-width: 52ch; }
.clock { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; }
.clock-k { font-size: 0.8125rem; font-weight: 700; color: var(--on-accent-soft); }
.clock-v { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 1.6em; }
.week { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px; min-height: 44px; }
.week li { display: grid; place-items: center; align-content: center; min-height: 44px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); color: var(--accent-ink); font-size: 0.75rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.week li b { font-size: 0.9375rem; }
.week li.we { background: rgba(255, 255, 255, 0.24); }
.week li.today { background: var(--paper); color: var(--accent); box-shadow: 0 4px 12px rgba(40, 20, 90, 0.25); }

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

/* 흰 시트(진단): 머리 판 위로 올라온 면 */
.sheet { margin-top: -40px; background: var(--paper); border-radius: 20px; padding: 18px 14px 18px; box-shadow: var(--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: 12px; }
.q { border: var(--border); border-radius: var(--radius); 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 var(--dur) var(--ease), color var(--dur) var(--ease); }
.q-slot { grid-column: 1; font-size: 0.8125rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-title { grid-column: 1; font-size: 1rem; font-weight: 700; }
.q-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.q-mark { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--done-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 3px 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 40px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.opt::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--accent); border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.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); width: 10px; height: 6px; border-width: 0 0 2px 2px; transform: translateY(-70%) rotate(-45deg); }
.opt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.q-note { margin: 0 14px 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 0.875rem; }
.q-note a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.q-note .src { margin-top: 0; }
.q-note .src a { font-weight: 400; }

/* 결과 카드: 왼쪽 굵은 색 막대(은행 쪽 주황 · 내 폰 쪽 파랑) */
.result { margin-top: 14px; padding: 16px 16px 12px; border-radius: var(--radius); background: var(--paper); border: var(--border); box-shadow: var(--shadow); animation: rise var(--dur) var(--ease) backwards; }
.result[data-side="bank"] { border-left: 8px solid var(--bar-bank); }
.result[data-side="phone"] { border-left: 8px solid var(--bar-phone); }
.r-kind { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.r-kind[data-side="bank"] { background: var(--bank-soft); color: var(--bank-text); }
.r-kind[data-side="phone"] { background: var(--phone-soft); color: var(--phone-text); }
.r-title { margin-top: 6px; font-size: 1.125rem; }
.r-cause { margin-top: 8px; font-size: 0.9375rem; }
.r-cause strong, .r-next strong { display: block; font-size: 0.8125rem; color: var(--muted); }
.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: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.r-note { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 0.875rem; }
.reset { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--paper); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.reset:hover { background: var(--soft); }

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

/* 급할 때: 빨강 막대 */
.urgent { background: var(--paper); border-radius: var(--radius); padding: 16px 16px 10px; box-shadow: var(--shadow); border-left: 8px solid var(--bar-urgent); }
.urgent h3 { margin-top: 14px; color: var(--urgent-text); }
.urgent p { margin-top: 6px; font-size: 0.9375rem; }
.tels { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tels li { display: grid; gap: 2px; }
.tel { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: 12px; background: var(--urgent-soft); color: var(--urgent-text); text-decoration: none; font-weight: 700; }
.tel-num { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.tel-also { padding: 0 4px; font-size: 0.8125rem; color: var(--muted); }
.tel-none { padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); }
.tel-none .tel-bank { font-weight: 700; }
.tel.tel-in { display: inline-flex; min-height: 44px; padding: 0 10px; margin: 0 2px; vertical-align: middle; }

/* 하나은행 공지 실례: 참고 화면의 「시간 칸 + 할 일」 줄. 앱·웹이 함께 멈춘 줄만 진보라로 채움 */
.cases, .loss { background: var(--paper); border-radius: var(--radius); padding: 16px 16px 12px; box-shadow: var(--shadow); }
.slots { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.slot { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.slot-t { font-size: 0.8125rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.45; }
.slot-b { min-width: 0; font-size: 0.875rem; }
.slot-h { font-weight: 700; font-size: 0.9375rem; }
.slot-b .src { margin-top: 2px; }
.slot.key { background: var(--now-bg); color: var(--accent-ink); }
.slot.key .slot-t, .slot.key .src { color: var(--on-accent-soft); }
.slot.key a { color: var(--accent-ink); }
.slot.key :focus-visible { outline-color: #ffffff; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 700; }

/* 손해가 났다면: 세 걸음 축 */
.flow { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: fl; position: relative; }
.flow::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 30px; width: 2px; background: var(--done-line); }
.flow li { counter-increment: fl; position: relative; padding: 0 0 14px 40px; font-size: 0.9375rem; }
.flow li::before { content: counter(fl); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.875rem; }
.flow-h { font-weight: 700; }
.law { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.law p { margin-top: 6px; font-size: 0.9375rem; }

/* 아래 안내 */
.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; gap: 2px; min-height: 44px; padding: 14px; border-radius: var(--radius); background: var(--paper); border: var(--border); 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 8px; 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-top: 24px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: var(--border); 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 rise { from { opacity: 0; transform: translateY(6px); } }

/* 좁은 화면(1279px 까지, 오너 폴드 펼침 약 1,100px·카톡 인앱 1,066px 포함): 한 단. 진단 → 급할 때 → 실례 → 손해 순 */
@media (max-width: 1279px) {
  .layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
  .hero-in { max-width: 760px; }
}
/* 아주 좁은 폭(폴드 접힘 약 360px): 실례 줄의 시간 칸을 위로 */
@media (max-width: 380px) {
  .slot { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero h1 { font-size: 1.3125rem; }
}
/* 넓은 화면(1280px 부터): 왼쪽 진단, 오른쪽 급할 때·실례·손해 */
@media (min-width: 1280px) {
  .hero { padding: 30px 24px 72px; }
  .hero-in { max-width: 1132px; } /* 아래 .wrap(1180 − 좌우 24)과 왼쪽 끝을 맞춤 */
  .hero h1 { font-size: 2rem; }
  .clock { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
  .clock-k { grid-column: 1 / -1; }
  .week { margin-top: 0; }
  .wrap { padding: 0 24px 40px; }
  .layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
  .col-b { margin-top: -40px; }
}

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