.page-hero { padding: 1.8rem 0 0.2rem; }
.page-hero h1 { max-width: 16em; }
.quote-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 1.2rem;
  align-items: start;
  margin: 0.4rem 0 2rem;
}
.quote-chat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: 0 10px 30px rgba(20, 23, 26, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 640px;
  max-height: calc(100vh - 8rem);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff4ea;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 0.8rem;
}
.chat-top strong { display: block; font-size: 0.95rem; }
.chat-top span { color: var(--muted); font-size: 0.82rem; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a45a;
  display: inline-block;
  margin-right: 0.35rem;
}
.quote-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.msg { max-width: 88%; }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; }
.bubble {
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.msg.bot .bubble { background: var(--paper); border-bottom-left-radius: 6px; }
.msg.user .bubble { background: var(--navy); color: white; border-bottom-right-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.typing { display: flex; gap: 5px; }
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9b6b0;
  animation: bounce 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.quote-tool .composer {
  display: flex;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0.9rem 1rem;
}
.quote-tool .composer input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 0.95rem;
  background: white;
}
.quote-tool .composer input:focus { border-color: var(--orange); outline: none; }
.quote-file {
  background: white;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: 0 10px 30px rgba(20, 23, 26, 0.06);
  padding: 1.2rem 1.25rem;
  position: sticky;
  top: 5.6rem;
}
.file-head { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.quote-file h2 { font-size: 1.05rem; margin: 0; }
.btn-reset {
  background: white;
  color: var(--muted);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 650;
  font-size: 0.8rem;
  cursor: pointer;
}
.quote-file .sub { color: var(--muted); font-size: 0.82rem; margin: 0.35rem 0 0.8rem; }
.quote-file .row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.quote-file .row span { color: var(--muted); }
.quote-file .row b { text-align: right; font-weight: 650; }
.quote-file .row b.empty { color: #c4c1bb; font-weight: 500; }
.quote-file .status {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #fff4ea;
  color: #9a4a00;
  font-size: 0.82rem;
  font-weight: 650;
}
.quote-file .status.ready { background: #eaf7ee; color: #1b6b38; }
.quote-file .status.search { background: #eef3f8; color: #1f3a5f; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 860px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-file { position: static; }
  .quote-chat { min-height: 520px; max-height: none; }
}
