:root{
  --llas-charcoal:#221f1c;
  --llas-ink:#2b2723;
  --llas-ink-soft:#5c564d;
  --llas-brass:#a9773a;
  --llas-paper:#fbf9f5;
  --llas-border:#d9d2c3;
  --llas-bubble-user:#e7d9c3;
  --llas-shadow: 0 18px 40px rgba(34,31,28,0.18);
}
.llas-launcher{
  position:fixed; bottom:26px; right:26px; width:60px; height:60px;
  border-radius:50%; background:var(--llas-charcoal); color:var(--llas-paper);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:var(--llas-shadow); border:none; z-index:99999; transition:transform .15s ease;
}
.llas-launcher:hover{ transform:scale(1.05); }
.llas-launcher svg{ width:26px; height:26px; }
.llas-panel{
  position:fixed; bottom:26px; right:26px; width:380px; max-width:calc(100vw - 32px);
  height:560px; max-height:calc(100vh - 60px); background:var(--llas-paper);
  border-radius:16px; box-shadow:var(--llas-shadow); display:flex; flex-direction:column;
  overflow:hidden; border:1px solid var(--llas-border); z-index:100000;
  opacity:0; transform:translateY(16px) scale(.98); pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
.llas-panel.open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.llas-panel-head{
  background:var(--llas-charcoal); color:#f2ede2; padding:16px 18px;
  display:flex; align-items:center; justify-content:space-between;
}
.llas-name{ font-size:18px; font-weight:600; }
.llas-status{ font-size:12px; color:#c9c0ad; display:flex; align-items:center; gap:6px; margin-top:2px; }
.llas-led{ width:6px; height:6px; border-radius:50%; background:#5fbf9f; }
.llas-close{ background:none; border:none; color:#e8e2d4; cursor:pointer; font-size:20px; padding:4px; }
.llas-messages{ flex:1; overflow-y:auto; padding:16px 16px 8px; display:flex; flex-direction:column; gap:10px; }
.llas-msg{ max-width:82%; padding:10px 13px; border-radius:14px; font-size:14px; line-height:1.5; white-space:pre-wrap; color:var(--llas-ink); }
.llas-msg a{ color:var(--llas-brass); text-decoration:underline; word-break:break-word; }
.llas-msg strong{ font-weight:600; }
.llas-msg.assistant{ align-self:flex-start; background:#fff; border:1px solid var(--llas-border); border-bottom-left-radius:4px; }
.llas-msg.user{ align-self:flex-end; background:var(--llas-bubble-user); border-bottom-right-radius:4px; }
.llas-msg.typing{ align-self:flex-start; background:#fff; border:1px solid var(--llas-border); border-bottom-left-radius:4px; display:flex; gap:4px; padding:13px 15px; }
.llas-msg.typing span{ width:6px; height:6px; border-radius:50%; background:var(--llas-ink-soft); opacity:.5; animation:llasBlink 1.1s infinite; }
.llas-msg.typing span:nth-child(2){ animation-delay:.15s; }
.llas-msg.typing span:nth-child(3){ animation-delay:.3s; }
@keyframes llasBlink{ 0%,80%,100%{opacity:.3;} 40%{opacity:1;} }
.llas-input-row{ display:flex; align-items:flex-end; gap:8px; padding:12px 14px 14px; border-top:1px solid var(--llas-border); background:var(--llas-paper); }
.llas-input-row textarea{ flex:1; resize:none; border:1px solid var(--llas-border); border-radius:12px; padding:10px 12px; font-size:14px; max-height:90px; background:#fff; color:var(--llas-ink); font-family:inherit; }
.llas-input-row textarea:focus{ outline:2px solid var(--llas-brass); outline-offset:1px; }
.llas-send{ background:var(--llas-charcoal); color:var(--llas-paper); border:none; width:38px; height:38px; border-radius:10px; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.llas-send:disabled{ opacity:.4; cursor:default; }
.llas-send svg{ width:16px; height:16px; }
@media (max-width:480px){
  .llas-panel{ width:calc(100vw - 20px); right:10px; bottom:10px; height:70vh; }
  .llas-launcher{ right:20px; bottom:20px; }
}
