/* 풀이 뒤 질문(chat.js) 전용. 색은 style.css 변수(--paper·--line·--ink·--muted·--accent·--warn-bg·--bg)만 쓴다(다크 모드는 style.css가 바꾼다). */
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 16px 0; box-shadow: var(--shadow); }
.chat-h { margin: 0 0 6px; font-size: 19px; }
.chat-note { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chat-chip { font: inherit; font-size: 14px; line-height: 1.4; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer; text-align: left; }
.chat-chip:hover:not(:disabled) { border-color: var(--accent); }
.chat .chat-form { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.chat .chat-send { width: 100%; min-height: 44px; }
.chat-input { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; font-size: 15px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); resize: vertical; }
.chat-send { font: inherit; font-size: 15px; font-weight: 700; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent, #fff); cursor: pointer; }
.chat button:disabled, .chat-input:disabled { opacity: .55; cursor: default; }
.chat-left { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.chat-msg { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.chat-msg:empty { display: none; }
.chat-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.chat-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.chat-q { margin: 0 0 6px; font-weight: 700; font-size: 15px; line-height: 1.5; }
.chat-a { margin: 0; padding: 8px 10px; border-left: 4px solid var(--accent); border-radius: 8px; background: var(--warn-bg); font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-ai { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.is-busy .chat-send { opacity: .55; }
/* 11/24: 질문 칸 전송 안내 · 「이 답 알리기」 · 위기 표현 안내(서버 고정 글 + 전화 걸기) */
.chat-send-note { margin-top: -6px; overflow-wrap: anywhere; }
.chat-privacy, .chat-report { color: var(--ink); text-decoration: underline; }
.chat-report-row { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.chat-report { display: inline-block; padding: 6px 0; }
.chat-report-hint { display: block; }
.chat-report-hint[hidden] { display: none; }
.chat-crisis-slot:empty { display: none; }
.chat-crisis { margin: 12px 0 0; padding: 12px; border: 2px solid var(--accent); border-radius: 12px; background: var(--warn-bg); }
.chat-crisis-msg { margin: 0; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.chat-crisis-tels { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chat-tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
/* 11/18 A4: 긴 답 = 첫 문장 + 「자세히」 접힘 */
.chat-head, .chat-rest { margin: 0; }
.chat-more > summary { cursor: pointer; margin-top: 4px; font-size: 13px; color: var(--muted); }
.chat-rest { margin-top: 4px; }
/* 11/18 A2: 결과 화면 문장 속 「근거」 단추는 기본 숨김 — reading-page.js의 「근거 표시 켜기」(body.tg-on)로 전체 표시.
   이 파일은 data-keep 으로 붙어 「파일로 저장」 사본에선 빠지므로, 저장본은 근거 단추가 그대로 보인다. 인쇄는 reading.css가 단추를 숨긴다. */
body:not(.tg-on) .tgb, body:not(.tg-on) .tg.open .tgt { display: none; }
.tg-toggle[aria-pressed="true"] { font-weight: 700; }
/* 11/18: 「다른 두 사람 풀이하기」 = 보조 단추(주 단추 .act 의 인주색 테두리·굵기와 구분). 결과 화면 변수(reading.css)를 쓴다. */
.newpair { display: inline-flex; align-items: center; border: 1px solid var(--line); background: transparent; border-radius: 3px; padding: 11px 16px; font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; }
.newpair:hover, .newpair:focus-visible { border-color: var(--mut); }
