:root{
  --bg:#f3f5f7;
  --card:#ffffff;
  --border:#d5dadf;
  --text:#1f2328;
  --muted:#6b7280;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

.wrap{max-width:1400px;margin:0 auto;padding:14px}
.topbar{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
}
.title{font-weight:800;font-size:18px;margin-bottom:10px}
.controls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
button{
  border:1px solid var(--border);
  background:#fff;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
}
button:hover{filter:brightness(0.98)}
button.danger{border-color:#f0b4b4}

.chk{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:10px;border:1px solid var(--border);background:#fff}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.pane{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:70vh;
}
.paneTitle{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  font-weight:700;
}
textarea{
  width:100%;
  height:100%;
  border:0;
  outline:none;
  resize:none;
  padding:12px;
  font-size:14px;
  line-height:1.35;
  background:#fff;
}
.output{
  margin:0;
  padding:12px;
  white-space:pre-wrap;
  overflow:auto;
  height:100%;
  font-size:14px;
  line-height:1.35;
}

.chat{
  padding:12px;
  overflow:auto;
  height:100%;
  background:var(--bg);
}

.msg{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  margin:10px 0;
}
.msgHeader{
  display:flex;
  gap:8px;
  align-items:baseline;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.time{color:var(--muted);font-size:12px}
.name{font-weight:800}
.email{color:var(--muted);font-size:12px}
.body{white-space:pre-wrap;line-height:1.35}

.participants{
  margin-top:14px;
  padding:10px 12px;
  background:transparent;
}
.participantsTitle{font-weight:800;margin-bottom:6px}
.participantsList{white-space:pre-wrap;color:var(--text)}

.hint{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .pane{min-height:45vh}
}