* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f5f5f5;
  color: #111;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
h1 { margin: 0 0 4px; font-size: 28px; }
p { margin: 0; color: #666; }
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  font-weight: 700;
  cursor: pointer;
}
.status {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #999;
}
.feed {
  display: grid;
  gap: 10px;
}
.card {
  background: white;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.card .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card .agent { font-weight: 800; }
.card .title { margin-top: 6px; font-weight: 700; }
.card .message { margin-top: 4px; color: #444; }
.card .time { color: #888; font-size: 12px; white-space: nowrap; }
.level-critical { border-left: 5px solid #111; }
.level-warning { border-left: 5px solid #777; }
.level-complete { border-left: 5px solid #bbb; }
.empty { color: #777; padding: 24px 0; }
@media (max-width: 600px) {
  header { align-items: flex-start; flex-direction: column; }
  button { width: 100%; }
}


/* ===== MCP AGENT CARDS V1 ===== */

.card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.agent-avatar {
  width: 78px;
  height: 78px;
  min-width: 78px;
  border-radius: 18px;
  object-fit: cover;
  background: #eee;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.agent {
  font-size: 18px;
  font-weight: 800;
}

.role {
  margin-top: 2px;
  font-size: 13px;
  color: #777;
}

.status-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f2f2f2;
  font-size: 12px;
  font-weight: 700;
}

.card .title {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 800;
}

.card .message {
  margin-top: 5px;
  line-height: 1.45;
}

@media (max-width: 600px) {

  .agent-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 15px;
  }

  .card {
    gap: 12px;
  }

  .card-header {
    flex-direction: column;
    gap: 3px;
  }

  .time {
    font-size: 11px;
  }
}

/* Round MCP avatars */
.agent-avatar {
  border-radius: 50% !important;
}
