﻿:root{
  --ink:#15104D;
  --muted:#667085;
  --line:#E4E7EC;
}

*{box-sizing:border-box;}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#fff;
  color:var(--ink);
}

.chat-page{
  width:100%;
  max-width:420px;
  margin:0 auto;
  min-height:100vh;
  padding:16px 16px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.chat-top{
  display:grid;
  grid-template-columns:32px 1fr 32px;
  align-items:center;
}

.chat-back{
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  background:#F2F4F7;
  color:#101828;
  font-size:16px;
  cursor:pointer;
}

.chat-title{
  margin:0;
  font-size:18px;
  font-weight:600;
  line-height:24px;
  text-align:center;
  color:#101828;
}

.chat-thread{
  flex:1;
  min-height:48vh;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#FCFCFD;
}

.chat-msg{
  max-width:88%;
  padding:10px 12px;
  border-radius:12px;
  line-height:20px;
  font-size:14px;
  white-space:pre-wrap;
}

.chat-msg.bot{
  align-self:flex-start;
  background:#EEF1F5;
  color:#101828;
}

.chat-msg.user{
  align-self:flex-end;
  background:#101828;
  color:#fff;
}

.chat-quick{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:2px;
}

.chat-chip{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:500;
  color:#344054;
  cursor:pointer;
  white-space:nowrap;
}

.chat-compose{
  display:flex;
  gap:8px;
}

.chat-input{
  flex:1;
  min-height:44px;
  border:1px solid #D0D5DD;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  color:#101828;
}

.chat-send{
  min-width:72px;
  min-height:44px;
  border:0;
  border-radius:10px;
  background:#101828;
  color:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
