.ementis-landing-ui {
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f3f4f6;
  --brand:#2f5d50;
  --brand2:#254a40;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* ➜ NEW: center + side padding like main chat */
  width:100%;
  padding:0 16px;
}

/* ➜ NEW: limit width to match regular eMentis chat */
.ementis-landing-card{
  position: relative;
  width:100%;
  max-width:980px;   /* prilagodi po želji: 920 / 960 / 1000 */
  margin:0 auto;
}

.lc-wrap{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}

/* header (hidden until expand) */
.lc-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.lc-avatar{
  width:42px;height:42px;border-radius:999px;overflow:hidden;
  background:var(--soft);
  display:grid;place-items:center;
  flex:0 0 auto;
}
.lc-avatar img{width:100%;height:100%;object-fit:cover;}
.lc-avatar-fallback{
  width:100%;height:100%;
  background:linear-gradient(135deg,#e5e7eb,#f3f4f6);
}
.lc-meta{display:flex;flex-direction:column;gap:4px;}
.lc-name{font-weight:800;display:flex;align-items:center;gap:8px;}
.lc-dot{width:8px;height:8px;border-radius:999px;background:#10b981;display:inline-block;}
.lc-credits{font-size:12px;color:var(--muted);}

/* messages */
.lc-messages{
  padding:14px 16px;
  height:520px;
  overflow:auto;
  background:#fff;
}
@media (max-width:720px){
  .lc-messages{ height:60vh; }
}

.lc-msg{ display:flex; margin-bottom:10px; }
.lc-msg.user{ justify-content:flex-end; }

.lc-bubble{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  max-width:78%;
  white-space:pre-wrap;
  line-height:1.45;
  font-size:14px;
}
.lc-bubble.user{
  background:#111827;
  color:#fff;
  border-color:rgba(255,255,255,.08);
}
.lc-bubble.agent{ background:var(--soft); color:#111827; }
.lc-agentname{ font-size:12px; font-weight:800; opacity:.85; margin-bottom:6px; }

/* typing */
.lc-typing{ display:inline-flex; gap:6px; align-items:center; padding:2px 0; }
.lc-typing span{
  width:6px;height:6px;border-radius:999px;background:#9ca3af;
  animation: lcDot 1s infinite ease-in-out;
}
.lc-typing span:nth-child(2){ animation-delay:.15s; }
.lc-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes lcDot{
  0%,80%,100%{ transform:translateY(0); opacity:.5; }
  40%{ transform:translateY(-4px); opacity:1; }
}

/* compose */
.lc-compose{
  padding:12px 16px;
  border-top:1px solid var(--line);
  display:flex;
  gap:10px;
  align-items:flex-end;
  background:#fff;
}
.lc-input{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  outline:none;
  resize:vertical;
  min-height:44px;
}
.lc-input:focus{
  border-color: rgba(47,93,80,.5);
  box-shadow:0 0 0 3px rgba(47,93,80,.12);
}
.lc-send{
  border:none;
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
  background:var(--brand);
  color:#fff;
  cursor:pointer;
}
.lc-send:hover{ background:var(--brand2); }
.lc-send:disabled{ opacity:.6; cursor:not-allowed; }

.lc-hint{
  padding:10px 16px 14px 16px;
  font-size:13px;
  color: var(--muted);
}

/* collapsed state: only 1-row textarea visible */
.ementis-landing-card.lc-collapsed .lc-wrap{
  border-radius:14px;
}
.ementis-landing-card.lc-collapsed .lc-compose{
  border-top:none;
}
.ementis-landing-card.lc-collapsed .lc-input{
  min-height:44px;
}

/* freeze overlay + modal */
.lc-freeze{
  position:absolute;
  inset:0;
  background:rgba(17,24,39,.62);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}
.lc-modal{
  width:min(560px, 100%);
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  padding:16px;
}
.lc-modal-title{ font-weight:900; font-size:18px; margin-bottom:6px; }
.lc-modal-sub{ color:var(--muted); font-size:13px; margin-bottom:12px; }
.lc-embed{
  border:1px solid var(--line);
  background:var(--soft);
  border-radius:12px;
  padding:12px;
}
.lc-embed-placeholder{ color:var(--muted); font-size:13px; }

