/* ==========================================================================
   page: find (chat-style request)
   ========================================================================== */

.find-copy {
  color: #888;
  font-size: 13px;
  line-height: 1.7;
  margin: 16px 0 24px;
}

/* 시작 카드 */
.find-start { max-width: 620px; }
.find-type-label { display: block; font-size: 12px; color: #666; margin-bottom: 8px; }
.find-type-pick { display: flex; gap: 10px; margin-bottom: 16px; }
.type-chip {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s;
}
.type-chip.active { background: var(--dark); color: #fff; border-color: var(--dark); }

/* 채팅 공통 */
.find-chat { max-width: 620px; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.chat-badge {
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.chat-sub { font-size: 12px; color: #999; }

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 4px 2px 14px;
}

.chat-bubble { display: flex; }
.chat-bubble.me { justify-content: flex-end; }
.chat-bubble.ai { justify-content: flex-start; }
.bubble-inner {
  max-width: 78%;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 16px;
  word-break: break-word;
}
.chat-bubble.me .bubble-inner {
  background: var(--dark);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble.ai .bubble-inner {
  background: #f1f3f5;
  color: #222;
  border-bottom-left-radius: 4px;
}
.chat-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 10px;
  display: block;
}

/* 입력창 */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 6px 6px 6px 14px;
  background: #fff;
  margin-top: 6px;
}
.chat-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.prev-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.prev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prev-x {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 0;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-input-row input[type="text"] {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
  background: transparent;
}
.chat-attach {
  color: #999;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.chat-attach:hover { color: var(--dark); }
.chat-send {
  border: 0;
  background: var(--dark);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chat-send:disabled { opacity: .5; }

/* 타이핑 인디케이터 */
.typing-bubble .bubble-inner { display: flex; gap: 4px; padding: 14px 16px; }
.typing-bubble .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #adb5bd;
  animation: findBlink 1.2s infinite both;
}
.typing-bubble .dot:nth-child(2) { animation-delay: .2s; }
.typing-bubble .dot:nth-child(3) { animation-delay: .4s; }
@keyframes findBlink { 0%,80%,100%{ opacity:.3 } 40%{ opacity:1 } }

/* AI 추측 카드 (채팅 내) */
.guess-lead { font-weight: 600; margin-bottom: 8px; }
.guess-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0;
  background: #fff;
}
.guess-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.guess-head strong { font-size: 14px; }
.guess-conf { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.conf-high { background: #dcfce7; color: #166534; }
.conf-medium { background: #fef9c3; color: #854d0e; }
.conf-low { background: #f1f5f9; color: #475569; }
.guess-reason { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.guess-link { font-size: 12px; color: var(--dark); font-weight: 600; text-decoration: underline; }
.guess-note { font-size: 12px; color: #777; margin: 10px 0; }
.guess-foot { font-size: 12px; color: #999; margin-top: 6px; }
