.chat-page { max-width: 1080px; margin: 0 auto; padding: 30px 0 56px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.chat-head h1 { font-size: 22px; letter-spacing: -.02em; }
.chat-head p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.online-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 12px; font-weight: 700; }
.online-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(17,155,112,.15); }

.chat-shell { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; height: 620px; }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.chat-bar strong { font-size: 13.5px; display: block; }
.chat-bar small { color: var(--muted); font-size: 11.5px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px 18px; background: #f8fafd; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 9px; max-width: 86%; }
.msg .bubble { padding: 11px 14px; border-radius: 13px; font-size: 13px; line-height: 1.65; }
.msg.bot .bubble { background: #fff; border: 1px solid #e8edf6; border-top-left-radius: 4px; color: #2b3648; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.msg .who { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.msg.bot .who { background: var(--brand-soft); color: var(--brand); }
.msg.me .who { background: #e9edf4; color: #5c6880; }
.msg time { display: block; color: #a3adbb; font-size: 10.5px; margin-top: 5px; }
.msg.me time { text-align: right; }
.bubble a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.msg.me .bubble a { color: #fff; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #b6c0d1; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; background: #f8fafd; }
.chip { border: 1px solid #dde4ef; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; color: #4f5e78; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft); background: #fff; align-items: flex-end; }
.chat-input textarea {
  flex: 1; resize: none; height: 44px; max-height: 120px; padding: 11px 13px;
  border: 1px solid #d9dee7; border-radius: 10px; outline: 0; font-size: 13px; line-height: 1.5;
}
.chat-input textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,93,255,.12); }
.chat-input button {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 15px; display: grid; place-items: center;
}
.chat-input button:hover { background: #000; }
.chat-input button:disabled { opacity: .35; cursor: not-allowed; }

.side { display: grid; gap: 14px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 14px; margin-bottom: 12px; }
.side-card p { color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.side-list { display: grid; gap: 10px; }
.side-list a, .side-list div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; font-size: 12.5px;
}
.side-list a:hover { border-color: #cfd6e2; background: #fbfcfe; }
.side-list span { color: var(--muted); font-size: 11.5px; }
.hours { display: grid; gap: 6px; font-size: 12.5px; color: #4f5e78; }
.hours b { color: var(--ink); }
.note { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: #fff8e6; border: 1px solid #f4e2b4; color: #7a641f; font-size: 11.5px; line-height: 1.6; }

@media (max-width: 900px) {
  .chat-page { grid-template-columns: 1fr; padding-top: 20px; }
  .chat-shell { height: 68vh; min-height: 480px; }
  .side { grid-template-columns: 1fr; }
}
