
/* 1.9.3 AI-first extension */
.az-ai-assistant{
  margin:0 0 24px;
  border:1px solid #dbe5eb;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 18px 42px rgba(18,58,84,.07);
}
.az-ai-top{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  padding:19px;
  background:
    radial-gradient(circle at 82% 15%,rgba(20,126,189,.12),transparent 25%),
    linear-gradient(135deg,#f6fbfe,#fff);
  border-bottom:1px solid #e9eef2;
}
.az-ai-avatar{
  width:56px;height:56px;
  border-radius:17px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#fff7c8,#ffe36a);
  font-size:2rem;
  box-shadow:0 8px 22px rgba(240,197,0,.15);
}
.az-ai-kicker{
  display:block;
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:900;
  color:#0a6da9;
}
.az-ai-top h2{
  margin:3px 0 4px;
  font-size:1.55rem;
  color:#153147;
}
.az-ai-top p{
  margin:0;
  color:#657783;
  line-height:1.5;
}
.az-ai-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 9px;
  border-radius:999px;
  background:#edf8f2;
  color:#2f7c51;
  font-size:.76rem;
  font-weight:800;
}
.az-ai-status i{
  width:7px;height:7px;border-radius:50%;
  background:#33a96b;
  box-shadow:0 0 0 4px rgba(51,169,107,.12);
}
.az-ai-chat{
  max-height:360px;
  overflow:auto;
  padding:18px;
  background:linear-gradient(180deg,#fafcfd,#fff);
}
.az-ai-msg{
  max-width:85%;
  margin:0 0 11px;
}
.az-ai-msg b{
  display:block;
  margin:0 0 4px;
  font-size:.75rem;
  color:#6d7f8a;
}
.az-ai-msg p{
  margin:0;
  padding:12px 14px;
  border-radius:15px 15px 15px 4px;
  background:#eef5f9;
  color:#334d5f;
  line-height:1.6;
}
.az-ai-msg.user{
  margin-left:auto;
}
.az-ai-msg.user b{
  text-align:right;
}
.az-ai-msg.user p{
  border-radius:15px 15px 4px 15px;
  background:#0b5f92;
  color:#fff;
}
.az-ai-sources{
  display:grid;
  gap:6px;
  margin-top:8px;
}
.az-ai-source{
  display:block;
  padding:9px 10px;
  border:1px solid #dfe7ec;
  border-radius:10px;
  background:#fff;
  color:#0a69aa;
  text-decoration:none;
  font-size:.83rem;
  font-weight:750;
}
.az-ai-suggestions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding:0 18px 12px;
}
.az-ai-suggestions button{
  border:1px solid #d9e3e9;
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  color:#526773;
  cursor:pointer;
}
.az-ai-suggestions button:hover{
  background:#eef6fa;
  border-color:#c6d9e4;
}
.az-ai-input{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:end;
  margin:0 18px 12px;
  padding:10px;
  border:1px solid #ccdbe4;
  border-radius:15px;
  background:#fff;
  box-shadow:0 7px 20px rgba(18,58,84,.05);
}
.az-ai-input textarea{
  width:100%;
  min-height:52px;
  max-height:140px;
  resize:vertical;
  border:0;
  outline:0;
  font:inherit;
  color:#273f50;
  background:transparent;
}
.az-ai-actions{
  display:flex;
  gap:7px;
  align-items:center;
}
.az-ai-actions button{
  border:0;
  cursor:pointer;
  font-weight:850;
}
.az-ai-voice{
  width:40px;height:40px;
  border-radius:11px;
  background:#eef4f7;
}
.az-ai-send{
  min-height:40px;
  padding:0 14px;
  border-radius:11px;
  background:linear-gradient(135deg,#0b3558,#0a6da9);
  color:#fff;
  box-shadow:0 7px 16px rgba(11,53,88,.13);
}
.az-ai-note{
  padding:0 19px 15px;
  color:#86939b;
  font-size:.74rem;
}
.az-lex-head{
  margin-bottom:16px;
}
.az-lex-searchbox{
  top:10px;
}
@media(max-width:700px){
  .az-ai-top{
    grid-template-columns:auto 1fr;
  }
  .az-ai-status{
    grid-column:1/-1;
    width:max-content;
  }
  .az-ai-input{
    grid-template-columns:1fr;
  }
  .az-ai-actions{
    justify-content:flex-end;
  }
  .az-ai-msg{
    max-width:94%;
  }
}
