:root{
  --bg:#0b0f19;
  --panel:#0f172a;
  --line:#1f2937;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#22c55e;
  --maxw: 860px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.shell{ min-height:100vh; display:flex; flex-direction:column; align-items:center; }
.topbar{
  width:100%;
  border-bottom:1px solid var(--line);
  background: rgba(11,15,25,0.75);
  backdrop-filter: blur(10px);
  position:sticky; top:0; z-index:10;
}
.topbar .inner{
  max-width: var(--maxw);
  margin:0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; letter-spacing:0.2px; }
.dot{ width:10px; height:10px; border-radius:50%; background: var(--accent); }
.actions{ display:flex; gap:10px; align-items:center; color: var(--muted); font-size:14px; }
.link{ cursor:pointer; user-select:none; }
.link:hover{ color: var(--text); }

.content{ width:100%; display:flex; justify-content:center; padding: 18px 0 120px; }
.thread{ width:100%; max-width: var(--maxw); padding: 0 16px; }

.msg{
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  background: rgba(15,23,42,0.45);
}
.msg.user{ background: rgba(11,18,32,0.65); }
.meta{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin-bottom: 8px; color: var(--muted); font-size: 12px;
}
.role{ text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.body{ line-height: 1.55; white-space: pre-wrap; font-size: 15px; }

.composerWrap{
  width:100%;
  position:fixed;
  bottom:0;
  left:0;
  border-top:1px solid var(--line);
  background: rgba(11,15,25,0.75);
  backdrop-filter: blur(10px);
}
.composer{
  max-width: var(--maxw);
  margin:0 auto;
  padding: 14px 16px 18px;
}
.box{
  border:1px solid var(--line);
  background: rgba(15,23,42,0.6);
  border-radius: 16px;
  padding: 10px 10px 10px 12px;
  display:flex;
  align-items:flex-end;
  gap:10px;
}
textarea{
  flex:1;
  resize:none;
  border:none;
  outline:none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  max-height: 180px;
  min-height: 28px;
  padding: 6px 6px 6px 4px;
}
.send{
  border:1px solid var(--line);
  background: #111827;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:600;
}
.send:disabled{ opacity:.5; cursor:not-allowed; }
.hint{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 0 2px;
}
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(17,24,39,0.55);
  color: var(--muted);
  font-size: 12px;
}
