:root{
  --bg:#0b1220;
  --panel:#0f1720;
  --muted:#94a3b8;
  --accent:#06b6d4;
  --glass: rgba(255,255,255,0.02);
}

*{box-sizing:border-box}

body{
  margin:0;
  height:100vh;
  font-family:Inter,Segoe UI,Arial;
  background:linear-gradient(180deg,#071026,#071827);
  color:#e6eef6;
  display:flex;
  flex-direction:column;
}

.app{
  max-width:1100px;
  margin:12px auto;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  padding:12px;
  height:calc(100vh - 24px);
}

.header{display:flex;align-items:center;justify-content:space-between;gap:12px}

.brand{display:flex;align-items:center;gap:12px}

.logo{
  width:44px;height:44px;border-radius:8px;
  background:linear-gradient(135deg,var(--accent),#7c3aed);
  display:flex;align-items:center;justify-content:center;font-weight:700;
}

.title{font-weight:700}

.controls{display:flex;gap:8px;align-items:center}

/* chat area */
.panel{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:12px;
  padding:10px;
  box-shadow:0 6px 18px rgba(2,6,23,0.6);
  display:flex;
  flex-direction:column;
  height:calc(100vh - 160px);
}

.topbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}

.info{color:var(--muted);font-size:13px}

.chat{
  flex:1;
  overflow:auto;
  padding:12px;
  border-radius:8px;
  background:transparent;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.row{display:flex;gap:8px;align-items:flex-end}

.msg{
  max-width:86%;
  padding:10px 12px;
  border-radius:12px;
  line-height:1.4;
  white-space:pre-wrap;
  word-break:break-word;
}

.user{
  margin-left:auto;
  background:linear-gradient(90deg,#063b48,#065f73);
  color:#dff6fb;
}

.bot{
  background:rgba(255,255,255,0.02);
  color:var(--muted);
  border:1px solid rgba(255,255,255,0.02);
}

/* typing cursor */
.cursor{
  display:inline-block;
  width:10px;
  height:18px;
  background:var(--accent);
  margin-left:4px;
  vertical-align:middle;
  border-radius:2px;
  animation:blink 1s steps(2) infinite;
}

@keyframes blink{50%{opacity:0}}

/* composer */
.composer{
  display:flex;
  gap:8px;
  padding:10px;
  align-items:center;
  border-top:1px solid rgba(255,255,255,0.02);
}

textarea{
  flex:1;
  min-height:56px;
  max-height:220px;
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.03);
  background:transparent;
  color:inherit;
  resize:vertical;
  font-size:15px;
}

input[type=text]{padding:8px;border-radius:8px;border:1px solid rgba(255,255,255,0.03);background:transparent;color:inherit}

select,input[type=text]{padding:8px;border-radius:8px;border:1px solid rgba(255,255,255,0.03);background:transparent;color:inherit}

.neoben-chat .btn, .neoben-send{
  background:linear-gradient(90deg,var(--accent),#7c3aed);
  border:none;
  color:#022;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}

.btn.ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,0.03);
  color:var(--muted);
}

.small{font-size:13px;color:var(--muted)}

/* utilities */
.footer{display:flex;justify-content:space-between;align-items:center;margin-top:8px;gap:8px}

@media (max-width:900px){
  .panel{height:calc(100vh - 120px)}
  textarea{min-height:44px}
}

pre,code{
  background:#0b0e12;
  padding:.2em .4em;
  border-radius:6px;
  overflow:auto;
}
