/* AI 분석 채팅 화면(MVP, 2026-10-09) */
.ai-chat-overlay { position: fixed; inset: 0; z-index: 520; display: none; flex-direction: column; background: var(--bg); color: var(--text); }
.ai-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ai-chat-title { flex: 1; font-size: 16px; font-weight: 700; }
.ai-chat-title small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.ai-chat-head button { border: none; background: var(--subtle-fill); color: var(--text); border-radius: 10px; height: 34px; padding: 0 12px; font-size: 13px; cursor: pointer; }
.ai-chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; word-break: break-word; }
.ai-msg-user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.ai-msg-assistant { align-self: flex-start; background: var(--subtle-fill-2); border-bottom-left-radius: 5px; }
.ai-msg-pending { color: var(--muted); }
.ai-msg-error { background: var(--bad-soft); color: var(--bad); }
.ai-intro { margin: auto 0; text-align: center; padding: 0 6px; }
.ai-intro-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ai-intro-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ai-chip { border: 1px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: 999px; padding: 8px 13px; font-size: 13px; cursor: pointer; }
.ai-chat-foot { border-top: 1px solid var(--border); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); }
.ai-chat-notice { font-size: 10.5px; color: var(--muted); line-height: 1.4; margin-bottom: 6px; }
.ai-chat-notice b { font-weight: 600; margin-left: 6px; }
.ai-chat-form { display: flex; align-items: flex-end; gap: 8px; }
.ai-chat-form textarea { flex: 1; resize: none; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: 18px; padding: 10px 14px; font-size: 15px; line-height: 1.4; max-height: 110px; font-family: inherit; }
.ai-chat-form textarea:focus { outline: none; border-color: var(--navy); }
.ai-chat-form button { border: none; background: var(--navy); color: #fff; border-radius: 18px; height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ai-chat-form button:disabled { opacity: 0.45; cursor: default; }
:root[data-theme="dark"] .ai-msg-user, :root[data-theme="dark"] .ai-chat-form button { background: var(--accent); color: #000; }
