/**
 * 색은 전부 변수로 둔다 — 어두운 화면에서 다시 정의해야 하기 때문이다.
 * 시트 안에 #fff 를 직접 적으면 그 자리만 밤에도 하얗게 남는다.
 *
 * **대비비는 실측해서 맞췄다**(WCAG AA 4.5:1, 테두리 같은 비글자 요소는 3:1).
 * 옆의 숫자는 계산해서 적은 것이고 `test/contrast.test.ts` 가 다시 잰다.
 * 옛 기록 하나를 남겨 둔다 — `--ok` 는 원래 #1a7f43 였는데 옅은 초록 태그 위에서
 * 4.45:1 이라 미달이었다. #177339 로 내려 5.22:1.
 *
 * **디자인: 정부24 느낌**(제품 책임자 요청 2026-09-27). 값은 정부24 화면에서 읽은 범정부 디자인 시스템
 * (KRDS) 색 그대로다 — 주 파랑 #256ef4, 글자 #1e2124, 바탕 회색 #f4f5f6, 글꼴 Pretendard GOV. 의뢰인이
 * 정부24 와 이 앱을 오가며 서류를 떼므로 같은 결의 화면이 덜 낯설다.
 *
 * **정부 누리집처럼 보이게 하지는 않는다** — 태극 표시·'공식 전자정부 누리집' 띠·정부24 이름과 로고는
 * 쓰지 않는다. 이 앱은 법률사무소의 서비스다.
 *
 * 주 파랑(`--brand`)은 **"가세요"** 다 — 진행(시작·다음·올리기)에만 준다. 흰 글자 4.55:1.
 * 확인·반영·확정("이 금액이 맞아요")에 주면 안 된다 — 원본과 대조한 뒤에만 눌러야 하는 단추다.
 */
:root {
  color-scheme: light;

  /* 바탕 */
  --bg: #f4f5f6;             /* ink 14.82:1 — KRDS gray-5 */
  --card: #fff;             /* ink 16.0:1 */
  --sunken: #f4f5f6;             /* ink 14.82:1 */
  --field: #fff;
  --tag-bg: #f4f5f6;             /* muted 7.95:1 */

  /* 글자 */
  --ink: #1e2124;             /* KRDS gray-90 · card 16.0 · bg 14.82:1 */
  --muted: #464c53;             /* KRDS gray-70 · card 8.68 · bg 7.95:1 */

  /* 테두리 — 글자색으로 쓰지 않는다 */
  --line: #e6e8ea;             /* KRDS gray-10 · 장식 전용 */
  --control-line: #6d7882;             /* KRDS gray-50 · 입력칸 경계 4.51 · bg 4.1:1 (비글자 3:1 기준) */

  /* 기능색 — 링크·포커스·진행. 브랜드색과 다르다 */
  --accent: #0b50d0;             /* KRDS primary-60 · card 6.83 · soft 6.09:1 */
  --accent-soft: #ecf2fe;
  --accent-line: #d8e5fd;             /* 장식 전용 */
  --on-accent: #fff;             /* accent 위 6.83:1 */

  /* 주 행동 — 정부24 '발급하기' 파랑 */
  --brand: #256ef4;             /* KRDS primary-50 · 흰 글자 4.55:1 */
  /* 남색 결과 카드 위의 숫자 */
  --brand-on-ink: #b1cefb;             /* 남색 결과 카드(#063a74) 위 7.02:1 */
  --on-brand: #fff;

  /**
   * 의미색과 그 옅은 바탕.
   *
   * 옅은 바탕을 중립 회색으로 통일하자는 안이 있었지만 그러지 않는다 —
   * 지금 값이 전부 AA 를 넘고, "빠진 빚" 배너가 옅은 빨강 면이라 스크롤
   * 중에도 눈에 걸린다. 기호(✕ ! ✓)가 있으니 색은 여분이지만,
   * 여분을 없앨 이유가 "요즘 앱처럼" 뿐이라면 두는 편이 낫다.
   */
  --ok: #1d7a33;             /* card 5.5 · soft 4.86:1 */
  --warn: #8a5b00;             /* card 6.1 · soft 5.34:1 */
  --bad: #ab2b36;             /* KRDS point-60 · soft 5.98:1 */
  --ok-soft: #eaf6ec; --warn-soft: #fff3db; --warn-line: #ffe0a3; --bad-soft: #fbeff0;

  /* 개발용 바 — 주 파랑과 헷갈리면 안 된다 */
  --dev-bg: #f5f5f5; --dev-line: #8a4b00; --dev-ink: #8a4b00;   /* 6.24:1 */

  --shadow: none;   /* 정부24 는 그림자 대신 테두리 */

  /* 라운드 — 정부24 처럼 작게(카드 12, 단추 8) */
  --r: 12px; --r-item: 10px; --r-control: 8px;
  --header-h: 54px;
  /* 휴대전화의 아래 탭 막대 높이(넓은 화면은 0) · 탭 그림(탭마다 정한다) */
  --tabbar-h: 0px;
  --ic: none;

  /* 여백은 8의 배수로 */
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 40px;

  /* 글자 크기 계단 */
  --text-title: 26px; --text-heading: 20px; --text-body: 16px; --text-help: 14px;
}

/**
 * **항상 밝은 화면.** 휴대폰이 다크 모드여도 따르지 않는다(제품 책임자 결정 2026-09-27) —
 * 정부24·은행 화면과 캡처 안내가 모두 밝은 화면이라, 앱만 어두우면 오가며 눈이 튄다.
 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  /* 한글은 낱말을 지킨다 — "개인회생절차 개시신청|서" 로 갈라지면 다른 말로 읽힌다 */
  word-break: keep-all; overflow-wrap: anywhere;
  font: 16px/1.65 'Pretendard GOV', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
header {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.tagline { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.conn { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.conn.ok { background: var(--ok); }
.conn.bad { background: var(--bad); }

main { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
/* 카드 제목은 전부 h2 다 — h2 가 h3 보다 작아서 위계가 거꾸로였다 */
.card h2 { font-size: 18px; margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.card h2.kicker { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.muted { color: var(--muted); }
.big { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/**
 * 금액은 자리를 맞춘다.
 *
 * 기본 숫자는 글자마다 폭이 달라서 세로로 늘어놓으면 자릿수가 어긋난다.
 * 변제금·청산가치처럼 비교해서 봐야 하는 숫자가 많다.
 */
.big, .money, .item .name, .bar + .muted, td, th { font-variant-numeric: tabular-nums; }

.q { font-size: 19px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.help { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
/* 도움말이 있으면 질문에 붙여 둔다 — 없을 때와 간격이 들쭉날쭉했다 */
.q + .help { margin-top: -8px; }

input, select, textarea, button { font: inherit; }
/**
 * 글자를 넣는 칸.
 *
 * 종류를 하나씩 적었더니 새로 쓴 `type=password` 가 빠져서 암호 칸만 테두리도
 * 여백도 없는 맨 칸으로 나왔다. 넣는 칸이 아닌 것(체크·파일·버튼)만 빼고 다 받는다.
 * 바탕은 카드보다 한 단 어둡게 둔다 — 어두운 화면에서 카드와 같으면 칸이 안 보인다.
 */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]),
select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-item);
  background: var(--field); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

/**
 * 키보드로 옮겨 다닐 때 **지금 어디에 있는지** 보여 준다.
 *
 * 지금까지 입력 칸에만 테두리가 생기고 버튼·링크·탭에는 아무 표시가 없었다.
 * 화면을 통째로 다시 그리는 방식이라 포커스가 자주 옮겨 가는데, 표시가 없으면
 * Tab 으로 쓰는 사람은 길을 잃는다. 마우스로 누를 때는 나오지 않는다(:focus-visible).
 */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
button {
  padding: 12px 18px; border-radius: var(--r-control); border: 1px solid var(--control-line);
  background: var(--card); cursor: pointer; font-weight: 600;
}
/**
 * **파랑은 "가세요" 다** — 정부24 '발급하기' 단추와 같은 칠. 진행하는 단추(시작·다음·올리기·목록 고치기)에만.
 */
button.primary, a.primary {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand);
  font-weight: 700;
}
/**
 * **확인하는 단추에는 주 파랑을 주지 않는다.**
 *
 * "이 금액이 맞아요" 는 눌러 달라는 단추가 아니다. 원본과 대조한 뒤에만
 * 눌러야 하는 단추다 — 한 눈만 읽은 값이 자리 하나 틀린 사건이 실제로
 * 있었다. "적어 뒀습니다"(복구코드)도 사용자의 서약이지 진행이 아니다.
 *
 * 눈에 띄되 재촉하지 않게: 바탕은 카드와 같고 테만 뚜렷하다.
 */
button.confirm {
  background: var(--card); border: 2px solid var(--ink); color: var(--ink); font-weight: 700;
}
button.confirm:hover { background: var(--sunken); }
button.primary:disabled, button.confirm:disabled { opacity: .5; cursor: default; }
/**
 * 보조 단추. 전에는 회색 글자뿐이라 눌리는 것인지 알 수 없었다 — '해당 없어요'·
 * '서류 탭으로' 가 본문 글과 똑같이 보였다. 파란 글자로 누를 수 있다고 말한다.
 */
button.ghost { border-color: transparent; color: var(--accent); font-weight: 600; background: transparent; }
button.ghost:hover { background: var(--accent-soft); }
/* 한국어 단추 글자는 낱말 중간에서 끊지 않는다 — '보/기' 로 두 줄이 됐다 */
button, .tag, .choice { word-break: keep-all; }
button.eye { flex: none; white-space: nowrap; }
/* 되돌릴 수 없는 것은 색으로도 말해 준다 */
button.danger { border-color: var(--bad); color: var(--bad); }
button.danger:hover { background: var(--bad-soft); }

/* 누르는 것은 손가락에 맞춘다 — 44px 는 애플·구글이 함께 권하는 최소치다 */
button, .tab, a.ghost, .choice { min-height: 44px; }

/* 링크지만 줄 안에서는 버튼처럼 놓인다 — 미리보기·내려받기 */
a.ghost {
  padding: 12px 14px; border-radius: var(--r-item); color: var(--muted);
  font-weight: 500; text-decoration: none;
}
a.ghost:hover { background: var(--accent-soft); color: var(--accent); }

/**
 * 접히는 카드.
 *
 * 답한 것 패널은 누를 때마다 다시 그려져서 `<details>` 를 못 쓴다(접혀 버린다).
 * 여기는 안쪽에 누를 것이 없어 다시 그릴 일이 드물므로 그냥 쓴다.
 */
details.card > summary { cursor: pointer; font-weight: 600; list-style: none; padding: 2px 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: '▸ '; color: var(--muted); }
details.card[open] > summary::before { content: '▾ '; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.choices { display: grid; gap: 8px; }
.choice {
  display: block; width: 100%; text-align: left; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-item); background: var(--card); cursor: pointer; font-weight: 500;
}
.choice:hover { border-color: var(--accent); background: var(--accent-soft); }

.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .25s; }

/* 움직임을 줄여 달라고 한 사람에게는 줄인다 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--tag-bg); color: var(--muted); font-weight: 600; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

/**
 * 줄 하나.
 *
 * `flex-wrap` 이 없어서 버튼이 있는 줄은 좁은 화면에서 본문이 50px 로 찌그러졌다 —
 * 가장 신중히 읽어야 할 "맞나요?" 카드가 바로 이 구조다. 이름이 먼저 자리를
 * 차지하고, 버튼 묶음은 자리가 없으면 통째로 아랫줄로 내려간다.
 */
.list { display: grid; gap: 8px; }
.item {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-item); background: var(--card);
}
.item .name { flex: 1 1 200px; min-width: 0; }
.item > .row, .item > button, .item > a { flex: 0 0 auto; }
.item.top { align-items: flex-start; }

footer {
  max-width: 720px; margin: 0 auto; padding: 10px 16px 24px;
  display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 13px;
}
/**
 * 저장 결과 알림.
 *
 * 화면 아래 가운데에 잠깐 떴다 사라진다. 손가락이 닿는 곳을 가리지 않도록
 * 안전 영역 위에 띄우고, 글자가 없을 때는 아예 자리를 차지하지 않는다.
 */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(8px);
  bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px); z-index: 20;
  padding: 10px 16px; border-radius: 99px;
  background: var(--ink); color: var(--card);
  font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgb(0 0 0 / .18);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
/**
 * 뜬 토스트는 **누를 수 있어야 한다. 다만 막대는 아니다.**
 *
 * 처음에는 `.toast` 의 `pointer-events: none` 때문에 안에 있는 '되돌리기'
 * 단추가 마우스·터치로 안 눌렸다. 그래서 막대 전체에 `auto` 를 줬는데,
 * 이번에는 **막대가 그 아래 단추를 덮었다.**
 *
 * 토스트는 화면 아래 가운데에 뜨고, 노란 `.primary` 단추('다음' ·
 * '빠진 곳 채우기')는 카드 맨 아래 `actions` 에 있어 대개 같은 자리다.
 * 저장할 때마다 토스트가 뜨므로 **저장 직후 몇 초 동안 그 단추가 안
 * 눌린다** — 사용자가 "노란색 버튼이 클릭 안 되는 경우가 종종 있어" 라고
 * 한 것이 이것이다. 눌러도 아무 일이 없으니 고장으로 보인다.
 *
 * 막대는 글자를 보여 줄 뿐이므로 **클릭을 통과시키고**, 그 안의 단추만
 * 클릭을 받는다. 둘 다 된다.
 */
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.show button, .toast.show a { pointer-events: auto; }
.toast.ok { background: var(--ok); color: var(--on-accent); }
/**
 * 실패 알림은 **어두운 화면에서도 읽혀야 한다.**
 *
 * `#fff` 를 못 박아 둔 탓에 밤에는 대비가 2.53:1 이었다 — 다크에서
 * `--bad` 가 밝아지기 때문이다(#f2837a). 저장이 실패했다는 말이 정작
 * 침대에서 보는 시간에 안 읽혔다. 옅은 바탕에 같은 색 글자로 바꾸면
 * 라이트 5.59:1 · 다크 5.98:1 로 양쪽 다 AA 를 넘는다.
 */
.toast.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid var(--bad); }

/* 키보드로 들어온 사람이 머리글을 매번 지나치지 않도록 */
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 30;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 0; }
#app:focus { outline: none; }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .08em; }
.banner { padding: 14px 16px; border-radius: var(--r-item); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.banner.warn { background: var(--warn-soft); border-color: var(--warn-line); }

/* 서류 탭은 카드가 여섯 장 쌓인다. 맨 아래에서 다른 탭으로 가려고 위로 올라가지 않게 */
.tabs {
  display: flex; gap: 6px; margin: -8px 0 6px; padding: 8px 0;
  position: sticky; top: var(--header-h); z-index: 9; background: var(--bg);
}
.tab {
  flex: 1; padding: 10px 12px; border-radius: var(--r-item); border: 1px solid var(--line);
  background: var(--card); font-weight: 600; color: var(--muted); cursor: pointer;
}
.tab.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* 같은 목록을 어느 순서로 볼지 — 탭이 아니라 그 카드 안의 선택이라 작게 둔다 */
.lens {
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.lens.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.lens:hover { border-color: var(--accent); }
.choice.on { border-color: var(--accent); background: var(--accent-soft); }
/**
 * 파일 고르기.
 *
 * `<input type=file>` 을 `display:none` 으로 감추면 **키보드로는 아예 닿지
 * 않는다** — Tab 으로 건너뛰어 버려서 마우스가 없는 사람은 서류를 못 올린다.
 * 화면에서만 지우고 포커스는 받게 두고, 포커스가 오면 라벨에 테두리를 준다.
 */
.drop {
  border: 2px dashed var(--line); border-radius: var(--r-item); padding: 26px 16px;
  text-align: center; color: var(--muted); background: var(--sunken);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden;
}
.drop input:focus-visible + span,
.drop input:focus-visible ~ span { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
a.item { text-decoration: none; color: inherit; }
a.item:hover { border-color: var(--accent); }
/**
 * 서류에서 읽은 원문.
 *
 * `break-all` 이었는데 그러면 한글이 낱말 한가운데서 잘린다("서울특별시 성동/구").
 * 한국어는 `keep-all` 로 낱말을 지키고, 넘칠 때만 아무 데서나 끊는다 —
 * 원문에는 긴 숫자나 영문이 섞여 있어 둘 다 필요하다.
 */
.evidence {
  font-size: 13px; color: var(--muted); background: var(--sunken);
  border-left: 3px solid var(--line); padding: 6px 10px; margin-top: 6px; border-radius: 4px;
  word-break: keep-all; overflow-wrap: anywhere;
}
.errand { border: 1px solid var(--line); border-radius: var(--r-item); padding: 14px 16px; background: var(--card); }
.site { font-weight: 700; color: var(--accent); text-decoration: none; }
.docs { margin: 8px 0 0; padding-left: 20px; }
.docs li { margin: 3px 0; }
.note-soft { margin-top: 8px; font-size: 13px; color: var(--muted); background: var(--sunken); padding: 8px 10px; border-radius: 6px; }
/**
 * fieldset 의 기본 테두리·여백을 걷어낸다 — 묶음은 의미만 필요하다.
 *
 * 구분선을 `:last-of-type` 으로 지우고 있었는데, 질문들 뒤에 '다음' 줄이 있어서
 * 마지막 질문은 `last-of-type` 이 아니었다. 선이 '다음' 버튼 위에 남았다.
 * 선을 아래가 아니라 **위로** 그으면 그런 예외가 필요 없다.
 */
.qbox { padding: 14px 0; border: none; margin: 0; min-width: 0; }
.qbox + .qbox { border-top: 1px solid var(--line); }
.qbox:first-of-type { padding-top: 0; }
.qbox .q { font-size: 17px; padding: 0; }
legend.q { display: block; width: 100%; }
legend.q:focus { outline: none; }
.devbar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: var(--dev-bg); border: 1px dashed var(--dev-line); color: var(--dev-ink);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px;
}
.devbar button { padding: 4px 10px; font-size: 13px; color: var(--dev-ink); }

/**
 * 좁은 화면.
 *
 * 이 앱에는 분기가 하나도 없었다. 360px(가장 흔한 휴대전화 폭)에서 탭 넷이
 * 서로를 밀어내고 — '신청서' 에 배지까지 붙으면 92px 이 필요한데 84px 밖에
 * 없다 — 머리글의 설명글이 로고를 눌러 버린다. 실제로 서류를 떼러 다니면서
 * 휴대전화로 보는 사람이 대부분이다.
 */
@media (max-width: 480px) {
  header { padding: 10px 14px; gap: 8px; }
  /* 설명글은 작은 화면에서 자리를 다투기만 한다. 제목에 이미 들어 있다 */
  .tagline { display: none; }
  main { padding: 12px; }
  .card { padding: 15px; border-radius: var(--r-item); }
  .card h2 { font-size: 17px; }
  .q { font-size: 17px; }
  .qbox .q { font-size: 16px; }
  .big { font-size: 20px; }

  .tabs { gap: 4px; }
  .tab { padding: 10px 4px; font-size: 14px; }
  .badge { margin-left: 4px; min-width: 18px; padding: 0 4px; line-height: 18px; font-size: 11px; }

  /* 태그가 위, 내용이 아래로 — 옆으로 세우면 내용이 한 줄에 두세 글자만 남는다 */
  .item { flex-direction: column; align-items: stretch; gap: 8px; }
  /**
   * 세로로 세울 때 `flex-basis` 를 풀어야 한다.
   *
   * 가로 배치에서 `.item .name { flex: 1 1 200px }` 의 200px 는 **너비**의
   * 기준 크기였다. 세로로 돌리면 같은 값이 **높이**의 기준이 되고, 줄어들
   * 여지가 없어 이름 한 줄짜리 항목도 200px 를 차지한다. 채권자 14곳이면
   * 빈 공간이 2,800px 다 — 휴대전화에서 목록이 끝없이 이어지는 것처럼 보였다.
   */
  .item .name { flex-basis: auto; }
  .item > .tag { align-self: flex-start; }
  .item .row { justify-content: flex-start; }

  .drop { padding: 20px 12px; }
  .toast { left: 12px; right: 12px; transform: none; max-width: none; text-align: center; }
  .toast.show { transform: none; }
}

/* 불러오는 동안 자리를 잡아 두는 회색 막대 */
.skel {
  background: linear-gradient(90deg, var(--line) 25%, var(--sunken) 37%, var(--line) 63%);
  background-size: 400% 100%;
  border-radius: 6px; margin: 8px 0;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* 연결 표시는 8px 점이라 있는지도 몰랐다 */
.conn { width: 10px; height: 10px; box-shadow: 0 0 0 1px var(--line) inset; }


/* ── 카드 위계 ──────────────────────────────────────────
 * 카드가 전부 같은 모양이라 "지금 손댈 곳"이 안 보였다. 세 단계로 나눈다.
 */
.card.act { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgb(27 79 216 / .08); }
.card.soft { background: transparent; border-style: dashed; }
.progress { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; flex-wrap: wrap; }
.progress .bar { flex: 1 1 140px; margin: 0; }

/* 진행 단계 — 여덟 구역 중 지금 몇 번째인지 */
.steps { display: flex; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; flex-wrap: wrap; font-size: 13px; }
.steps li { color: var(--muted); }
.steps li + li::before { content: '›'; margin-right: 6px; color: var(--line); }
.steps li.done { color: var(--ok); }
.steps li.now { color: var(--accent); font-weight: 700; }

/* 자격 판정 — 이 앱에서 가장 중요한 한 문장이 가장 작은 글자였다 */
.verdict { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-item); font-weight: 700; font-size: 17px; }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.verdict.bad { background: var(--bad-soft); color: var(--bad); }
.verdict.pending { background: var(--accent-soft); color: var(--accent); }
.verdict.ok::before { content: '✓'; } .verdict.bad::before { content: '!'; } .verdict.pending::before { content: '…'; }
.amount { font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* 보조 문구 — 12~13px 인라인 style 을 한 클래스로 */
.sub { font-size: 13px; color: var(--muted); line-height: 1.55; }
.tag { font-size: 13px; padding: 3px 9px; white-space: nowrap; }

/* 라벨 붙은 입력 칸 — placeholder 는 값을 넣는 순간 사라진다 */
.field { display: grid; gap: 6px; flex: 1 1 140px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .error { font-size: 13px; color: var(--bad); font-weight: 600; }
input[aria-invalid="true"] { border-color: var(--bad); }
.banner.bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

/* 금액 — 오른쪽 정렬하고 옆에 '235만원' 을 붙여 자릿수를 확인시킨다 */
input.won { text-align: right; font-variant-numeric: tabular-nums; }
.won-hint { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* 있다/없다 토글 — .tag 를 버튼으로 쓰면 너무 작고 상태가 안 읽힌다 */
.toggle {
  min-width: 92px; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-item); background: var(--card);
  font-weight: 600; color: var(--muted); cursor: pointer;
}
.toggle[aria-checked="true"] { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.toggle[aria-checked="true"]::before { content: '✓ '; }

/* 열두 달 — 세로로 열두 줄이면 어디까지 했는지 잃는다 */
.months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.months .field label { font-weight: 500; }
.months .field.done label::after { content: ' ✓'; color: var(--ok); }

/* 누른 느낌 — 터치에서 반응이 없으면 눌렸는지 모른다 */
button, .choice, .tab, a.item, a.ghost { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:active, .choice:active, .tab:active { transform: scale(.985); }
button.primary:hover { filter: brightness(1.04); }
.tab:hover { border-color: var(--accent); }

/* 누를 수 있는 줄은 화살표로 말한다 — 상태 태그와 같은 알약이면 구분이 안 된다 */
a.item::after { content: '›'; font-size: 22px; color: var(--muted); margin-left: auto; line-height: 1; }

/* 카드 아래 행동 줄 — 인라인 margin-top 이 여섯 가지였다 */
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 14px; }
.actions.between { justify-content: space-between; }

@media (max-width: 480px) {
  /* 화면의 유일한 진행 수단이 오른쪽 구석 80px 버튼이었다 */
  .actions > button.primary, .row.end > button.primary { flex: 1 1 100%; min-height: 48px; }
  .actions > button.ghost, .row.end > button.ghost { order: 2; flex: 1 1 100%; }
  .item > .row { flex-basis: 100%; }
  .item > .row > button, .item > .row > a { flex: 1; }
  .months { grid-template-columns: 1fr; }
}

/* 폰에는 끌어다 놓을 곳이 없다 */
@media (hover: none) {
  .drop { border-style: solid; padding: 18px 14px; }
  .drop .drag-only { display: none; }
}
.drop label.choice { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/**
 * 서류 올리기.
 *
 * 답 보기(`.choice`)와 섞이면 답 후보로 보이므로 따로 생겼다. 그리고 파일
 * 칸을 **위에 투명하게 덮어** 둔다 — 스크립트로 `input.click()` 을 부르면
 * 사파리가 거부해서 아무 일도 안 일어난다. 누르는 것이 곧 파일 칸이면
 * 브라우저가 관여할 여지가 없다.
 */
.upload {
  position: relative; display: inline-flex; align-items: center; width: auto;
  border-radius: var(--r-item);
}
.upload.drag-over .upload-face { outline: 2px dashed var(--accent); outline-offset: 3px; background: var(--surface, #fff); }
/* 파일을 끌고 들어오면 화면 전체가 받는 자리임을 보인다 — 단추 위에 놓으면 그 서류로 */
body.dropping::after {
  content: '여기에 놓으면 올려요 — 서류 단추 위에 놓으면 그 서류로 올라가요';
  position: fixed; inset: 12px; z-index: 50; pointer-events: none;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  border: 3px dashed var(--accent); border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent);
  color: var(--accent); font-weight: 700; font-size: 18px;
}
.upload-face {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 14px; min-height: 44px; border: 1px solid var(--accent); border-radius: var(--r-item);
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px;
}
.upload-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 0;
  /* 파일 칸의 기본 테두리·여백이 겹쳐 보이지 않게 */
  padding: 0; border: 0; background: none;
}
.upload:hover .upload-face { background: var(--card); }
.upload:focus-within .upload-face { outline: 3px solid var(--accent); outline-offset: 2px; }
.upload.busy { opacity: .6; pointer-events: none; }
.drop .upload-face { padding: 12px 18px; font-size: 15px; }
.drop.busy { opacity: .6; pointer-events: none; }

/* 복구코드 — 옮겨 적다 오타가 나면 영영 못 들어온다 */
.code-box { display: grid; gap: 4px; }
.code-box .code { user-select: all; }

/**
 * **원본과 읽은 값을 나란히.**
 *
 * "이렇게 읽었어요, 맞나요?" 를 제대로 물으려면 원본이 있어야 한다.
 * 의뢰인이 "화면 오른쪽" 이라고 한 것은 배치가 아니라 **값과 원본을 나란히
 * 보고 싶다**는 뜻으로 읽었다. DOM 은 하나, 미디어 쿼리 하나로 둘 다 된다 —
 * 넓은 화면에서는 오른쪽, 폰에서는 값 아래.
 *
 * **단추는 그림 뒤에 온다.** 폰에서는 원본을 스크롤로 지나쳐야 '맞아요' 에
 * 닿는다. "원본과 대조한 뒤에만" 을 글이 아니라 몸으로 지키게 하는 유일한
 * 방법이다. 그래서 `grid-template-areas` 로도 그 순서를 지킨다.
 */
.proof-wrap { margin-top: 10px; }
.proof-toggle { min-height: 40px; }
.proof {
  margin-top: 8px;
  /* 원본은 종이다 — 어두운 화면에서도 흰 바탕 위에 그려야 글자가 보인다 */
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-item);
  overflow: hidden;
}
.proof:empty { display: none; }
.proof img {
  display: block; width: 100%; height: auto;
  /* 손가락으로 확대해 자릿수를 셀 수 있어야 한다 */
  touch-action: pinch-zoom;
}
.proof .sub { padding: 8px 10px; }
.proof-actions { margin-top: 10px; }

@media (min-width: 900px) {
  /* 원본을 펼친 항목만 두 열로 — 접혀 있으면 지금 모양 그대로 */
  .item.proof-item.proof-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'name proof' 'actions proof';
    align-items: start; column-gap: 16px;
  }
  .item.proof-open > .name { grid-area: name; }
  .item.proof-open > .proof-wrap { grid-area: proof; margin-top: 0; }
  .item.proof-open > .proof-actions { grid-area: actions; align-self: end; }
}

/**
 * **질문 옆에서 읽은 값.**
 *
 * 질문 칸과 그 칸에 들어갈 값을 한 덩어리로 보이게 한다 — 떨어져 있으면
 * 무엇이 어느 칸 이야기인지 이름으로만 맞춰야 한다. 왼쪽 선 하나로 이
 * 질문에 딸린 것임을 말한다.
 */
.qbox .read-here {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}
.qbox .read-here .help { margin: 0 0 6px; }

/**
 * **달마다 급여명세서 올리기.**
 *
 * 금액 칸 아래에 붙는 작은 단추다. 칸과 같은 줄에 두면 폰에서 금액 칸이
 * 좁아져 쉼표가 잘린다 — 숫자가 먼저다.
 */
.months .field .upload { margin-top: 4px; }
.months .field .upload-face { font-size: 12px; padding: 4px 8px; }

/**
 * 서류 한 줄의 행동 — 신청해 뒀어요 · 못 구했어요 · 해당 없어요.
 * 테두리 없는 큰 단추 셋이 줄마다 세 줄을 차지해 서류 한 장이 화면 반을 먹었다.
 * 작은 테두리 단추로 한 줄에 모은다.
 */
.doc-actions { gap: 6px; margin-top: 6px; }
.doc-actions > button, .doc-actions button.ghost {
  min-height: 36px; padding: 6px 11px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: var(--card);
}
.doc-actions > button:hover { border-color: var(--accent); background: var(--accent-soft); }
/* '해당 없어요' 는 드문 선택이다 — 알약이 아니라 밑줄 글자로 뒤에 둔다 */
.doc-actions > button[data-focus-next^="doc:"] {
  border-color: transparent; background: transparent; color: var(--muted);
  font-weight: 500; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px;
}
.doc-actions > .row { flex-basis: 100%; }
.doc-actions .choices { margin-top: 4px; }
.docs li { margin: 10px 0; }
.docs li + li { border-top: 1px solid var(--line); padding-top: 10px; }
/* 보기가 많은 고르기 — 두 줄 */
.choices.many { grid-template-columns: 1fr 1fr; }
.choices.many .choice { padding: 12px 14px; }

/**
 * 누르면 열리는 줄(신청서 서식)은 휴대전화에서도 옆으로 — 세로로 세우면 '›' 가
 * 맨 아래로 내려가 한 줄짜리 서식 이름이 300px 카드가 됐다.
 */
@media (max-width: 480px) {
  a.item { flex-direction: row; align-items: center; flex-wrap: wrap; }
  a.item > .name { flex: 1 1 60%; }
}

/* 검사 한 줄의 여러 건 — 한 문단으로 붙이지 않고 줄마다 */
.check-items { margin-top: 6px; }
.check-items li { margin: 4px 0; border: none !important; padding-top: 0 !important; }

/* 글 속 단추 — 문장 안에서 링크처럼 읽힌다 (동의 철회처럼 자주 누르지 않는 것) */
button.link {
  border: 0; background: transparent; padding: 0; min-height: 0;
  color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; font: inherit;
}
/* 고른 파일을 들고 묻는 자리 — 화면 위에 뜬다 */
.sheet-back {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
}
.sheet { max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; margin: 0; }
@media (min-width: 640px) { .sheet-back { align-items: center; } }
/* 부채증명서 기관별 줄 */
.cert-rows { list-style: none; padding: 0; margin: 6px 0 2px; display: grid; gap: 4px; }
.cert-rows li { display: flex; align-items: center; gap: 6px; font-size: 14px; }
footer .biz { font-size: 12px; color: var(--muted); margin-top: 6px; word-break: keep-all; }
footer .biz a { color: var(--muted); }


/* ─────────────────────────────────────────────────────────────
 * 휴대전화 (2026-09-26 개편) — 사용자: "모바일에서 편히 할 수 있게"
 *
 * 390px 에서 재 보니 첫 화면의 절반을 머리글·개발 막대·탭·진행 카드가 차지하고, 첫 질문은
 * 화면 가운데서 시작했다. 탭은 엄지가 안 닿는 맨 위에 있었고, '다음' 은 긴 질문 끝까지 내려가야 보였다.
 *   ① 탭을 아래 막대로(그림 + 글, 안전 영역까지)  ② 진행 카드를 한 줄로
 *   ③ '다음' 을 화면 아래에 붙인다  ④ 개발 막대는 접는다  ⑤ 누르는 칸을 키운다
 * ───────────────────────────────────────────────────────────── */
details.devbar { display: block; }
details.devbar > summary { cursor: pointer; font-weight: 600; list-style: none; }
details.devbar > summary::-webkit-details-marker { display: none; }
details.devbar > summary::before { content: '▸ '; }
details.devbar[open] > summary::before { content: '▾ '; }
details.devbar[open] > summary { margin-bottom: 6px; }
details.card > summary { cursor: pointer; }
details.card > summary .h2 { font-size: 18px; font-weight: 700; color: var(--ink); }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }

@media (max-width: 640px) {
  :root { --tabbar-h: 64px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

  /* ① 아래 탭 막대 */
  .tabs {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 15;
    margin: 0; gap: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px rgb(0 0 0 / .06);
  }
  .tab {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 56px; padding: 4px 0; border: 0; border-radius: var(--r-item);
    background: none; color: var(--muted); font-size: 12px; font-weight: 600;
  }
  .tab::before {
    content: ''; width: 24px; height: 24px; background: currentColor;
    -webkit-mask: var(--ic) center / 24px no-repeat; mask: var(--ic) center / 24px no-repeat;
  }
  .tab.on { background: var(--accent-soft); color: var(--accent); border: 0; }
  .tab:hover { border: 0; }
  .tab[data-ic=questions] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5h16v11H10l-6 4z M8 9h8 M8 12h5%22/%3E%3C/svg%3E"); }
  .tab[data-ic=documents] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 3h7l5 5v13H7z M14 3v5h5 M10 13h6 M10 17h6%22/%3E%3C/svg%3E"); }
  .tab[data-ic=forms] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 3h9l4 4v14H6z M9 9h3 M9 13h7 M9 17h7%22/%3E%3C/svg%3E"); }
  .tab[data-ic=home] { --ic: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 11l8-7 8 7v9h-5v-6H9v6H4z%22/%3E%3C/svg%3E"); }
  .toast { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }

  /* ③ '다음' 은 화면 아래(탭 막대 위)에 붙는다 — 긴 질문 끝까지 내려가지 않게 */
  .card.act > .actions.sticky {
    position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    margin: 14px -15px -15px; padding: 12px 15px calc(12px);
    background: linear-gradient(to top, var(--card) 78%, transparent);
    border-radius: 0 0 10px 10px; z-index: 5;
  }

  /* 결제·동의 시트는 탭 막대 위로 */
  .sheet-back { z-index: 50; }

  /* ⑤ 선택지·단추를 엄지 크기로 */
  .choice { min-height: 52px; }
  button, a.ghost { min-height: 44px; }
  .card { margin-bottom: 10px; }
  details.card > summary .h2 { font-size: 17px; }
}

/* 질문 탭의 서류 안내 — 한 줄 띠(띠 전체가 단추) */
button.docs-strip {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; text-align: left;
  padding: 8px 12px; margin: 0 0 10px; border-radius: var(--r-item); cursor: pointer;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink);
  font-size: 14px; font-weight: 600;
}
button.docs-strip > span:first-child { flex: 1 1 auto; min-width: 0; }
button.docs-strip > .go { color: var(--accent); white-space: nowrap; }

/* 옵션 안내 — 접힌 채로는 한 줄(이름 · 가격 ›) */
details.offer-strip { padding: 8px 12px; }
details.offer-strip > summary {
  display: flex; align-items: center; gap: 8px; min-height: 36px; list-style: none; font-size: 14px;
}
details.offer-strip > summary::-webkit-details-marker { display: none; }
details.offer-strip > summary .name { flex: 1 1 auto; min-width: 0; font-weight: 600; }
details.offer-strip > summary .price { color: var(--muted); font-weight: 600; white-space: nowrap; }
details.offer-strip > summary .go { color: var(--accent); font-size: 18px; line-height: 1; transition: transform .15s; }
details.offer-strip[open] > summary .go { transform: rotate(90deg); }
details.offer-strip > summary::before { content: none; display: none; }

/* 서류 탭 — 지금 할 일 한 장 */
.task-kicker { font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.card.task { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card.task h2 { font-size: 20px; margin-bottom: 4px; }
.task-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
.task-actions > .upload { width: 100%; }
.task-actions > .upload .upload-face { display: block; text-align: center; }
.task-actions > button.link { align-self: flex-end; }
details.all-docs > summary .h2 { font-size: 16px; }

/* 한 화면 한 질문 — '‹ 이전' 은 왼쪽에 작게, '다음' 은 넓게, 한 줄로 */
.card.act.focus > .actions { flex-wrap: nowrap; align-items: center; }
.card.act.focus > .actions > button.ghost { flex: none; order: 0; }
.card.act.focus > .actions > button.primary { flex: 1 1 auto; }
@media (max-width: 480px) {
  .card.act.focus > .actions > button.ghost { flex: none; order: 0; min-width: 76px; }
  .card.act.focus > .actions > button.primary { flex: 1 1 auto; }
}
details.more { margin: 6px 0 0; }
details.more > summary { cursor: pointer; }

/* 질문 옆 '서류로 채우기' — 한 줄 */
.fill-row { gap: 8px; align-items: center; flex-wrap: wrap; }
.fill-row .fill-head { flex: 1 1 180px; font-weight: 600; font-size: 14px; }

/* 편집기 한 칸(채권자·가족·재산) — 세로로 쌓이는 항목 안의 줄은 늘어나지 않게, 칸은 화면 밖으로 밀리지 않게 */
.item.col > .row { flex-basis: auto; flex-wrap: wrap; }
.row > .field { flex: 1 1 140px; min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; box-sizing: border-box; }

/* 알림 안의 "되돌리기" — 초록 바탕의 파란 글씨는 안 읽혔다 */
.toast button, .toast a { color: inherit !important; text-decoration: underline; font-weight: 700; }

/* 옵션 단계의 첫 화면 */
.option-pitch .docs li { font-size: 15px; }
.option-choices { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 8px; }
.option-choices .primary-choice { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }

/* 사무소에 맡길 수 있는 단계 표시 */
.steps li.opt::after { content: ' ✦'; color: var(--accent); font-size: 11px; }

.option-pitch ul.why { margin: 8px 0 0; padding-left: 18px; }
.option-pitch ul.why li { font-size: 14px; line-height: 1.5; margin: 4px 0; color: var(--ink); }
.option-pitch .banner { padding: 10px 12px; }

/* ─────────────────────────────────────────────────────────────
 * 첫 화면 · 무료 진단 · 결과 (2026-09-26)
 * 한 화면에 한 가지 — 큰 제목, 큰 숫자 칸, 아래 붙은 단추. 설명은 한 줄.
 * ───────────────────────────────────────────────────────────── */
.hero-wrap { display: flex; flex-direction: column; gap: 14px; }
.hero { background: var(--card); border-radius: var(--r); padding: 28px 22px 24px; border: 1px solid var(--line); }
.hero-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
.hero-title { margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
.hero-sub { margin: 12px 0 22px; color: var(--muted); font-size: 16px; }
button.cta, a.cta { width: 100%; min-height: 56px; font-size: 18px; font-weight: 700; border-radius: var(--r-control); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-points li { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; }
.hero-points li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.hero-points li b { color: var(--ink); }
.hero-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hero-office { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
details.about > summary .h2 { font-size: 15px; font-weight: 700; }

.est { display: flex; flex-direction: column; min-height: calc(100dvh - 140px); }
.est-top { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.est-top .back { font-size: 26px; min-width: 44px; min-height: 44px; padding: 0; }
.est-bar { flex: 1; margin: 0; height: 6px; }
.est-title { font-size: 26px; line-height: 1.35; letter-spacing: -0.02em; font-weight: 800; margin: 6px 0 8px; }
.est-help { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.num-field { display: block; margin: 0 0 14px; }
.num-label { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.num-row { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.big-num { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; font-size: 34px; font-weight: 800; padding: 4px 0 !important; box-shadow: none !important; letter-spacing: -0.02em; }
.big-num:focus { outline: none; }
.unit { font-size: 20px; font-weight: 700; color: var(--muted); }
.num-pair { display: grid; gap: 8px; margin-top: 18px; }
.choice.big { min-height: 60px; font-size: 17px; font-weight: 700; }
.est-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; position: sticky; bottom: 12px; }
.est .choices { display: grid; gap: 10px; }

.result-card { background: #063a74; color: #fff; border-radius: var(--r); padding: 24px 22px; } /* KRDS secondary-70 남색 — 흰 글자 11.26:1 */
.result-card.muted-card { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.result-kicker { margin: 0 0 6px; font-size: 13px; opacity: .75; font-weight: 700; }
.result-main { font-size: 20px; font-weight: 700; }
.result-main .big { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; color: var(--brand-on-ink); }
.result-rows { margin-top: 18px; display: grid; gap: 8px; border-top: 1px solid rgb(255 255 255 / .15); padding-top: 14px; }
.result-rows > div { display: flex; justify-content: space-between; font-size: 15px; }
.result-rows > div span { opacity: .75; }
.result-rows .save b { color: var(--brand-on-ink); font-size: 18px; }
.result-notes { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.est-fine { font-size: 12px; color: var(--muted); text-align: center; margin: 18px 0 0; }
.center { text-align: center; justify-content: center; }
.conn.off { visibility: hidden; }

/* 질문 머리말 — '빚  3 / 7' 한 줄과 다섯 칸 막대 */
.qhead { margin: 2px 2px 12px; }
.qhead-row { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.qhead-row b { font-weight: 700; }
.qhead-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chaps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; margin: 8px 0 0; padding: 0; }
.chaps li { height: 4px; border-radius: 2px; background: var(--line); }
.chaps li.done { background: var(--accent); }
.chaps li.now { background: var(--accent); opacity: .45; }
.help-more { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.help-more summary { cursor: pointer; color: var(--accent); list-style: none; }
.help-more summary::-webkit-details-marker { display: none; }
.help-more p { margin: 6px 0 0; }

/* 신청서 칸 안의 두 쪽 */
.seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: var(--r-item); border: 1px solid var(--line); background: var(--card); }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent-soft); color: var(--accent); }

/* 홈 — 숫자 한 장, 세 단계, 도움 한 줄 */
.home .home-card { margin-bottom: 14px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stage { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-item); background: var(--card); }
.stage.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stage-no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent); }
.stage.done .stage-no { background: var(--ok-soft); color: var(--ok); }
.stage-body { flex: 1; min-width: 0; }
.stage-title { font-weight: 700; }
.stage.done .stage-title { color: var(--muted); }
.stage-body .primary { margin-top: 10px; width: 100%; }
.stage-go { flex: none; align-self: center; min-height: 36px; padding: 0 10px; font-size: 20px; color: var(--muted); }
.home-help { margin: 16px 4px 0; font-size: 14px; color: var(--muted); }
.home-help a { color: var(--accent); font-weight: 600; }

/* 가입·로그인 — 칸 둘, 동의 한 줄, 큰 단추 하나 */
.card.auth { display: grid; gap: 12px; }
.card.auth h2 { margin: 0; }
.card.auth .help { margin: -4px 0 4px; }
.auth-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-field input { width: 100%; font-size: 17px; }
.auth-field .row { flex-wrap: nowrap; }
.agree { border: 1px solid var(--line); border-radius: var(--r-item); padding: 12px 14px; display: grid; gap: 8px; }
.agree label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.agree input[type=checkbox] { width: 22px; height: 22px; flex: none; }
.agree-all { font-weight: 700; }
.agree-sum { margin: 0 0 2px 32px; padding: 0; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.agree-one { font-size: 14px; }
.agree-one span { flex: 1; }
.agree-one a { font-size: 13px; color: var(--muted); }
.card.auth .cta { width: 100%; min-height: 52px; font-size: 17px; }
.card.auth .ghost.center { justify-self: center; }
.result-short { margin: 14px 0 0; font-size: 13px; line-height: 1.55; opacity: .8; }
.est .choices.col .choice { text-align: left; }

/* ── 기본 질문을 마친 순간 — 정리하는 막(1.9초) → 결과 카드 ── */
.reveal-loading { text-align: center; padding: 36px 20px 30px; }
.reveal-loading h2 { margin: 18px 0 16px; font-size: 18px; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
  border: 4px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.reveal-steps { list-style: none; margin: 0 auto; padding: 0; display: inline-grid; gap: 10px; text-align: left; }
.reveal-steps li {
  position: relative; padding-left: 30px; color: var(--muted); font-size: 15px;
  opacity: 0; animation: step-in .3s ease-out forwards;
}
.reveal-steps li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box;
  animation: step-done .25s ease-out forwards;
}
.reveal-steps li::after {
  content: '✓'; position: absolute; left: 0; top: 50%; width: 20px; margin-top: -10px; line-height: 20px;
  text-align: center; font-size: 12px; font-weight: 800; color: var(--on-accent); opacity: 0;
  animation: fade-in .2s ease-out forwards;
}
.reveal-steps li:nth-child(1) { animation-delay: .05s; }
.reveal-steps li:nth-child(1)::before, .reveal-steps li:nth-child(1)::after { animation-delay: .55s; }
.reveal-steps li:nth-child(2) { animation-delay: .5s; }
.reveal-steps li:nth-child(2)::before, .reveal-steps li:nth-child(2)::after { animation-delay: 1.05s; }
.reveal-steps li:nth-child(3) { animation-delay: 1s; }
.reveal-steps li:nth-child(3)::before, .reveal-steps li:nth-child(3)::after { animation-delay: 1.55s; }

.reveal-card {
  position: relative; overflow: hidden; border: 1px solid var(--accent-line);
  animation: pop-in .45s cubic-bezier(.2, .9, .3, 1.2) both;
}
.reveal-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent);
  transform-origin: left; animation: grow-x .6s .1s ease-out both;
}
.reveal-kicker { margin: 0 0 4px; color: var(--ok); font-weight: 700; font-size: 14px; }
.reveal-card h2 { margin: 0; }
.reveal-num { margin: 12px 0 2px; font-size: 18px; color: var(--muted); }
.reveal-num b { font-size: 40px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.reveal-places { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.reveal-places li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 99px; background: var(--accent-soft); font-size: 14px;
  opacity: 0; animation: rise-in .35s ease-out forwards;
}
.reveal-places li b { color: var(--accent); font-variant-numeric: tabular-nums; }
.actions.col { flex-direction: column; align-items: stretch; }
.actions.col .primary { min-height: 52px; font-size: 17px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes step-done { to { background: var(--accent); border-color: var(--accent); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .reveal-steps li, .reveal-steps li::before, .reveal-steps li::after,
  .reveal-card, .reveal-card::before, .reveal-places li { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* ── 입력 편의 — 숫자판 날짜, 자주 쓰는 답 칩, 기간 두 칸 ── */
.field .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.date-in { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: 18px; }
.date-note { font-size: 13px; color: var(--bad); font-weight: 600; min-height: 0; }
.date-note:empty { display: none; }
.answer-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer;
}
.chip:active { transform: scale(.97); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.period-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.period-row span { color: var(--muted); }
/* 세로로 쌓는 목록 안의 칸 — `.field` 의 flex-basis(140px)가 높이로 먹어 라벨과 칸 사이가 벌어졌다 */
.item.col { flex-direction: column; align-items: stretch; gap: 12px; }
.item.col > .field { flex: none; }

/* ── 서류 한 장 안내 — 왜 · 이렇게 하세요(번호) · 함께 뗄 것 · 막혔어요 · 다음 ── */
.task-bar { height: 4px; border-radius: 2px; background: var(--line); margin: 6px 0 12px; overflow: hidden; }
.task-bar i { display: block; height: 100%; background: var(--accent); }
.need-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.need-chips > span { padding: 3px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.need-chips > span.must { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 700; }
.task .why { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.how-title { font-weight: 700; font-size: 15px; margin: 4px 0 8px; }
ol.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; gap: 12px; }
ol.how > li { counter-increment: how; position: relative; padding-left: 36px; min-height: 26px; line-height: 1.55; font-size: 15px; }
ol.how > li::before {
  content: counter(how); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800;
}
ol.how .kw { color: var(--accent); }
ol.how .upload-btn, ol.how label.upload { margin-top: 6px; }
.site-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-item);
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; text-decoration: none; background: var(--card);
}
.ask-box { margin: 8px 0 2px; padding: 12px; border-radius: var(--r-item); background: var(--bg); border: 1px dashed var(--line); }
.ask-box p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.ghost.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.back-box { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-item); background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; gap: 8px; }
.along { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-item); background: var(--bg); font-size: 14px; }
.along ul { margin: 6px 0 0; padding-left: 18px; }
details.stuck { margin-top: 14px; }
details.stuck > summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.next-doc { margin: 14px 0 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* 떼러 가기 전에 준비할 것 */
.card.prep > summary { cursor: pointer; list-style: none; }
.card.prep > summary::-webkit-details-marker { display: none; }
.card.prep > summary::after { content: '접기'; float: right; font-size: 13px; color: var(--muted); font-weight: 500; }
.card.prep:not([open]) > summary::after { content: '펼치기'; }
.prep-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.prep-list > li { position: relative; padding-left: 28px; line-height: 1.5; }
.prep-list > li::before { content: '☐'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 18px; line-height: 1.2; }
.prep-list .sub { margin-top: 2px; }

/* ── 화면으로 보기 — 발급 사이트 따라하기 ── */
.how-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.guide-btn {
  min-height: 34px; padding: 0 12px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--card); font-size: 13px; font-weight: 700;
}
.guide-sheet {
  position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr auto;
  background: #0b0b0c; color: #fff; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.guide-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; }
.guide-top .sub { color: rgb(255 255 255 / .6); font-size: 12px; }
.guide-top button, .guide-ctrl button { color: #fff; border-color: rgb(255 255 255 / .25); }
.guide-stage { min-height: 0; display: grid; place-items: center; padding: 0 16px; overflow: hidden; touch-action: pan-y; }
.guide-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-item); background: #fff; box-shadow: 0 8px 30px rgb(0 0 0 / .5); }
.guide-bottom { padding: 12px 16px 16px; display: grid; gap: 10px; }
.guide-dots { display: flex; gap: 4px; justify-content: center; }
.guide-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .3); transition: width .2s; }
.guide-dots i.on { width: 18px; border-radius: 3px; background: #86aff9; }
.guide-row { display: flex; gap: 10px; align-items: baseline; }
.guide-count { flex: none; font-size: 13px; color: #86aff9; font-weight: 800; font-variant-numeric: tabular-nums; }
.guide-say { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; min-height: 48px; }
.guide-ctrl { display: flex; justify-content: space-between; gap: 8px; }
.guide-note { margin: 0; font-size: 12px; color: rgb(255 255 255 / .55); }
.chap-note { margin: 6px 0 0; font-size: 14px; color: var(--ok); font-weight: 600; }
.best-box { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-item); background: var(--ok-soft); color: var(--ink); font-size: 14px; line-height: 1.55; }
.best-box b { color: var(--ok); }
details.received { margin-top: 8px; }
details.received > summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; }
details.received ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
details.received li b { font-size: 14px; }
.lock-box { border: 1px solid var(--warn-line); background: var(--warn-soft); }
.lock-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.lock-row .lock-name { grid-column: 1 / -1; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-row input { font-size: 17px; letter-spacing: .1em; }

/* ── 전면 리뷰 반영(아스트라 — 토스 앱 개발 총책임자 관점, 2026-09-27) ──
 * 파랑은 선택·포커스·진행에만. 질문과 지금 할 일 카드의 파란 테두리는 포커스처럼 보여 걷는다.
 * 질문 제목은 크게(22/700/1.45), 설명과 답 사이는 넉넉히. */
.card.act, .card.task { border-color: var(--line); box-shadow: none; }
.qbox .q, .q { font-size: 22px; font-weight: 700; line-height: 1.45; letter-spacing: -0.02em; }
.qbox .help { margin-top: 8px; }
.card h2 { font-size: 20px; line-height: 1.4; }
@media (max-width: 480px) {
  .qbox .q, .q { font-size: 20px; }
  .card h2 { font-size: 18px; }
}
/* 연결 점은 끊겼을 때만 — 초록 점은 무엇인지 알 수 없다 */
.conn { display: none; }
.conn.bad { display: inline-flex; width: auto; height: auto; border-radius: 99px; padding: 2px 10px; background: var(--bad-soft); box-shadow: none; }
.conn.bad::after { content: '연결이 끊겼어요'; font-size: 12px; color: var(--bad); font-weight: 600; }
/* PC 탭도 연한 파랑 — 진한 면이 작업 버튼과 경쟁하지 않게 */
.tab.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
/* 작업 화면에서는 사업자 정보를 한 줄로 — 첫 화면·가입·신청서에서는 그대로 */
body[data-screen="app"] footer > span, body[data-screen="app"] footer .biz.full { display: none; }
footer .biz.short { display: none; }
body[data-screen="app"] footer .biz.short { display: block; }
.est-count { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.est-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.result-main .sm { font-size: 16px; opacity: .85; }
button.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
details.reveal-where { margin: 10px 0 0; }
details.reveal-where > summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; }
.prep-sum { margin-top: 4px; font-weight: 500; }
.card.prep { position: relative; }
.card.prep > summary::after { position: absolute; top: 20px; right: 18px; float: none; }
.card.prep > summary .h2 { padding-right: 48px; }
.phone-no { margin-top: 6px; padding: 8px 10px; border-radius: var(--r-item); background: var(--warn-soft); font-size: 14px; line-height: 1.5; }

/**
 * **읽는 중 — 스캔 그림.** 문서 모양 위로 빛줄이 오르내리고, 줄 아래로 가는 막대가 흐른다.
 * 색은 주 파랑. 움직임 줄이기 설정이면 멈춘다(맨 아래 규칙).
 */
.reading-mark { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.tag.reading { background: var(--accent-soft); color: var(--accent); }
.scan-doc {
  position: relative; display: inline-block; flex: none; width: 22px; height: 28px; overflow: hidden;
  border: 1.5px solid var(--brand); border-radius: 4px; background:
    linear-gradient(var(--accent-line), var(--accent-line)) 4px 7px / 12px 2px no-repeat,
    linear-gradient(var(--accent-line), var(--accent-line)) 4px 12px / 10px 2px no-repeat,
    linear-gradient(var(--accent-line), var(--accent-line)) 4px 17px / 12px 2px no-repeat,
    linear-gradient(var(--accent-line), var(--accent-line)) 4px 22px / 7px 2px no-repeat,
    var(--card);
}
.scan-doc.sm { width: 14px; height: 18px; border-radius: 3px; vertical-align: -3px; margin-right: 6px; background: var(--card); }
.scan-doc i {
  position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand);
  box-shadow: 0 0 8px 2px rgb(37 110 244 / .45);
  animation: scan-sweep 1.6s ease-in-out infinite alternate;
}
@keyframes scan-sweep { from { transform: translateY(0); } to { transform: translateY(24px); } }
.scan-doc.sm i { height: 2px; animation-name: scan-sweep-sm; }
@keyframes scan-sweep-sm { from { transform: translateY(0); } to { transform: translateY(15px); } }
.reading-item { position: relative; overflow: hidden; }
.reading-item::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: reading-flow 1.8s linear infinite;
}
@keyframes reading-flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  .scan-doc i, .reading-item::after { animation: none !important; }
  .scan-doc i { top: 45%; }
}

/* 올리기 단추 자리의 진행 — 누른 단추가 스캔 그림과 'N/M' 으로, 읽는 동안은 옆에 '읽는 중' */
.upload.mine .upload-face { display: inline-flex; align-items: center; gap: 6px; }
.upload-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upload-reading { display: inline-flex; align-items: center; font-size: 13px; color: var(--accent); font-weight: 600; }
.scan-doc.on-brand { border-color: currentColor; margin-right: 0; }
.upload.busy.mine { opacity: 1; }

/* 몇 쪽까지 읽었는지(읽는 중인 서류) */
.read-progress { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: 14px; }
.read-progress b { color: var(--accent, #256ef4); font-weight: 600; }
.read-bar { flex: 1; max-width: 160px; height: 6px; border-radius: 99px; background: var(--line, #e3e6ea); overflow: hidden; }
.read-bar i { display: block; height: 100%; background: var(--accent, #256ef4); transition: width .4s; }
