/* 공통: 큰 닫기(X) 버튼 · 자동 링크 · 진행 표시 */
.x-close, button.close, button.x, #close-dialog, .support-x {
  width: 48px; height: 48px; min-width: 48px; border-radius: 12px; border: 2px solid currentColor; background: transparent;
  font-size: 30px; line-height: 1; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: inherit;
}
.x-close:hover, button.close:hover, button.x:hover, #close-dialog:hover { background: rgba(200, 40, 40, .12); color: #c0392b; border-color: #c0392b; }
.x-close:focus-visible { outline: 3px solid #e8710a; outline-offset: 2px; }
a.auto-link { color: #1a5fb4; text-decoration: underline; word-break: break-all; cursor: pointer; }
a.auto-link:hover { color: #0b3d80; }
.md a, .doc a { color: #1a5fb4; text-decoration: underline; word-break: break-all; }
/* 진행 표시 (여러 화면 공통) */
.progress .steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.progress .step { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--chip, #eee); color: var(--ink-3, #667); }
.progress .step i { font-style: normal; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; background: #c9d3dc; color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
.progress .step.on { background: var(--accent-soft, #eaf1f6); color: var(--accent, #07334c); font-weight: 700; }
.progress .step.on i { background: var(--accent, #07334c); animation: uxpulse 1.2s ease-in-out infinite; }
.progress .step.done i { background: #2f7d4f; }
.progress .step.done i::before { content: "✓"; }
.progress .step.done i { font-size: 0; }
.progress .step.done i::before { font-size: 12px; }
.progress .bar { height: 8px; border-radius: 6px; background: var(--line, #dde); overflow: hidden; }
.progress .bar b { display: block; height: 100%; width: 0; background: var(--accent-2, #2d638e); transition: width .6s ease; }
.progress .plabel { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--ink-3, #667); }
@keyframes uxpulse { 50% { transform: scale(1.18); } }

/* ===== 가시성 강화: 조작 버튼은 크고 분명하게, 닫기는 글자 라벨과 함께, 보조 글씨는 읽기 쉬운 크기·대비로 ===== */
button, .btn, .cta, select, summary { min-height: 44px; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid #e8710a; outline-offset: 2px; }
/* 작은 보조 버튼 */
.small, button.small { font-size: 14.5px; padding: 9px 16px; min-height: 40px; border-width: 2px; border-color: var(--blue, #356284); color: var(--blue, #356284); }
.small.danger, button.small.danger { border-color: #c0392b; color: #c0392b; }
.small.primary { color: #fff; }
/* 예시 질문 칩 */
.sample button { font-size: 14.5px; padding: 10px 16px; min-height: 44px; border-width: 2px; }
/* 위험/삭제 성격의 글자형 버튼 → 눈에 띄는 테두리 버튼 */
.quiet { font-size: 14.5px; font-weight: 700; text-decoration: none; padding: 10px 16px; min-height: 44px; border: 2px solid #c0392b; border-radius: 10px; background: #fff6f5; color: #a8322b; }
/* 머리말 오른쪽 버튼(언어·로그아웃 등) */
.account button, .lang-button { font-size: 15px; padding: 9px 18px; min-height: 44px; border-width: 2px; border-color: #fff; background: rgba(0,0,0,.35); }
.account { gap: 12px; }
/* 탭 */
.tabs button { font-size: 15.5px; padding: 11px 20px; min-height: 46px; border: 2px solid transparent; }
.tabs button[aria-selected=true] { box-shadow: 0 3px 0 var(--gold, #ae8c54); }
/* 문서 보기 닫기 — 큰 X + '닫기' 글자 */
#viewer-close, .viewer-head button#viewer-close { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 2px solid #c0392b; border-radius: 12px; background: #fff; color: #c0392b; font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; flex: none; }
#viewer-close .x-ico { font-size: 28px; line-height: 1; }
#viewer-close:hover { background: #c0392b; color: #fff; }
/* 말로 대화 */
.vc-head .vc-x { width: auto; min-width: 48px; height: 48px; padding: 0 14px; font-size: 17px; font-weight: 700; border: 2px solid #fff; background: rgba(255,255,255,.18); }
.vc-x .x-ico { font-size: 26px; margin-right: 6px; vertical-align: -2px; }
.vc-row .vc-btn { flex: 1 1 45%; min-height: 52px; padding: 12px 8px; font-size: 16px; line-height: 1.25; border-width: 2px; }
button.vc-dict { width: 48px; height: 48px; border-width: 2px; }
button.vc-dict svg { width: 24px; height: 24px; }
/* 보조 글씨: 12px대 → 14px 안팎, 흐린 회색 → 진한 회색 */
.muted, .lawyer small, .composer-bottom span, .clock, .ai-tip, .ai-meta, .viewer-foot, .vc-hint, .vc-opts, .progress .plabel, .ai-chip, .ai-src, .bubble .src, .bubble .who, .message strong { font-size: 14px; color: #4f5d6a; }
.eyebrow, .tag { font-size: 13.5px; }
.demo { font-size: 14.5px; }
/* 2026-11-12: 화면에 다크 테마가 없어 다크모드 글자색 규칙 제거(흰 배경에서 안 보임) */
@media (max-width: 520px) { button, .btn, .cta { min-height: 48px; } }
/* 2026-11-24 인용 조문 현행 원문 */
.statutes{margin:14px 0 4px;border:1px solid var(--line,#dbe3ea);border-radius:8px;padding:10px 14px;background:var(--panel,#f7fafc)}
.statutes summary{cursor:pointer;font-weight:600;font-size:.92em}
.statute{margin:12px 0;padding-top:10px;border-top:1px solid var(--line,#e3e9ee)}
.statute .statute-text{white-space:pre-wrap;line-height:1.7;font-size:.92em;margin:6px 0}
.statute a{display:inline-block;margin-left:8px;font-size:.88em}
.statute.missing strong{color:#a5481f}
.statute.missing p{font-size:.92em;line-height:1.7}
